A kind of recharge method based on rechargeable card, equipment and system
Technical field
The present invention relates to communication technical field, more particularly to a kind of recharge method based on rechargeable card, equipment and system.
Background technology
Rechargeable card obtains people more and more concern and use due to its convenience.Rechargeable card is that one kind can be used for
Stored value card continue to pay dues, that there is certain face amount, certain price is supplemented with money to specific stored value card or certain service (mobile communication).Example
Such as, rechargeable card can include top up card, game rechargeable card etc..
Wherein, user can supplement client with money by logging in, to On-line Control and charging gateway (Online Control
And Charging Gateway, OCG) rechargeable card request is initiated, by OCG and the voucher center of management, value-charging card-like state
(Voucher Center, VC) equipment, Online Charging System (the Online Charging for being responsible for user account accounting management
System, OCS) equipment progress data interaction, to realize rechargeable card as user account (e.g., GID or phone number etc.)
Supplement with money.Wherein, the state of rechargeable card includes:Unused state, lock-out state and use state.It is in the lock state
Rechargeable card can not be used by other users, can avoid the reuse of rechargeable card.
Specifically, OCG, VC equipment and OCS equipment realize that rechargeable card can include for the interaction flow that user account is supplemented with money:
For OCG after user initiates rechargeable card request, the rechargeable card is arranged to lock-out state by control VC equipment by unused state;OCG
Sent to OCS equipment and carry the mark of the rechargeable card and the charging request of user account to be supplemented with money, to indicate that OCS equipment is adopted
The rechargeable card corresponding to the mark of the rechargeable card is that user account to be supplemented with money is supplemented with money;What OCG reception OCS equipment was sent is used to refer to
That shows recharging result (successful recharging is supplemented with money unsuccessfully) supplements response with money;If successful recharging, OCG sends set instruction to VC equipment,
To indicate that the state of the rechargeable card is arranged to use state (rechargeable card can not then reuse) by VC equipment by lock-out state;
If supplementing with money unsuccessfully, OCG sends unblock instruction to VC equipment, to indicate that VC equipment is set the state of the rechargeable card by lock-out state
For unused state (rechargeable card can still reuse).
State in realization during being supplemented with money using rechargeable card, on the one hand, due to network timeout, may result in
OCG can not timely receive OCS equipment transmission supplement response with money, now, if since OCG to OCS equipment transmission charging request,
After a certain time, OCG is not received when supplementing response with money, and OCG then thinks successful recharging, then can indicate to send to VC equipment and put
The state of the rechargeable card is arranged to use state by position instruction, VC equipment by lock-out state.But the problem of existing, is:OCS
Equipment may not use rechargeable card as user account successful recharging, but rechargeable card can not reuse, and cause to supplement with money
The state of card is not consistent with actual recharging result, causes the economic loss of user.
On the other hand, due to network timeout, may result in VC equipment can not timely receive the set instruction of OCG transmissions
Or unblock instruction, now, if since the rechargeable card card is arranged to lock-out state by VC equipment by unused state,
After certain time, when VC equipment does not receive the set instruction or unblock instruction of OCG transmissions, VC equipment then thinks to supplement mistake with money
Lose, then the state of the rechargeable card is arranged to unused state by lock-out state.But the problem of existing, is:OCS equipment may
Rechargeable card has been used as user account successful recharging, but rechargeable card can still reuse, cause the state of rechargeable card with
Actual recharging result is not consistent, and when user reuses the rechargeable card, then can cause the economic damage of rechargeable card operator
Lose.
The content of the invention
Embodiments of the invention provide a kind of recharge method based on rechargeable card, equipment and system, are filled to solve to use
During value card is supplemented with money for user account, due to network timeout, cause the state of rechargeable card and actual recharging result is not consistent
Problem, to reduce the economic loss of user or rechargeable card operator.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
The first aspect of the embodiment of the present invention, there is provided a kind of recharge method based on rechargeable card, including:
On-line Control and charging gateway OCG after the first inquiry response of voucher center VC equipment transmission is received, according to
The state supplemented status information with money and determine rechargeable card carried in first inquiry response, first inquiry response are for looking into
Ask the response message of the first inquiry request of the state of the rechargeable card;
If the state of the rechargeable card is first state, the OCG is then according to the mark of the rechargeable card and described first
The first user account carried in inquiry response, the rechargeable card is once used to be supplemented with money for first user account before inquiry
When, if successfully supplemented with money for first user account, first user account once uses the rechargeable card to be preceding
When, the state for causing the rechargeable card is the user account of the first state;
If the rechargeable card is once used to be supplemented with money unsuccessfully for first user account before Query Result instruction, the OCG
Then the mark of the rechargeable card is carried to the transmission of Online Charging System OCS equipment and the first of second user account is supplemented with money and asked
Ask, so that the OCS equipment uses the rechargeable card to be supplemented with money for second user account;
Wherein, the first state is response timeout state and unlocks any one in timeout mode;The response is super
When state be it is preceding once use the rechargeable card to be supplemented with money for first user account when, from the OCG to the OCS equipment
Send the second charging request to start, after the first preset time, the OCG does not receive second that the OCS equipment is sent and filled
During value response, the state of the time-out locking residing for the rechargeable card recorded in the VC equipment;It is described unblock timeout mode be
It is preceding once use the rechargeable card to be supplemented with money for first user account when, from the VC equipment to the OCG send second
Inquiry response or the VC equipment receive the second inquiry request that the OCG is sent and started, after the second preset time, institute
When stating VC equipment and not receiving the set instruction or unblock instruction that the OCG is sent, what is recorded in the VC equipment described fills
The state of the residing time-out locking of value card, second inquiry response are the second inquiry for inquiring about the state of the rechargeable card
The response message of request.
With reference in a first aspect, in a kind of possible implementation, the OCG is then according to the mark of the rechargeable card and institute
The first user account carried in inquiry response is stated, when once using the rechargeable card before inquiry, if be described first
User account is successfully supplemented with money, including:
The OCG sends the mark of the rechargeable card and first user account to the OCS equipment, described to cause
Whether it is first user when OCS equipment once uses the rechargeable card before being inquired about according to the mark of the rechargeable card
Account is successfully supplemented with money;
Receive the Query Result that the OCS equipment is sent.
It is described to be based on filling in alternatively possible implementation with reference to first aspect and above-mentioned possible implementation
It is worth the recharge method of card, can also includes:
It is described if once using the rechargeable card before the Query Result instruction as the first user account successful recharging
OCG then sends the set to the VC equipment and indicated;
Wherein, the set indicates to have used for indicating that the state of the rechargeable card is arranged to described by the VC equipment
State.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, first shape
State is the response timeout state;
The recharge method based on rechargeable card, can also include:
If the Query Result instruction does not inquire related to the mark of the rechargeable card and first user account
Supplement record with money, the OCG then sends the unblock to the VC equipment and indicated;
Wherein, the unblock instruction is used to indicate that the state of the rechargeable card is arranged to described and is not used by the VC equipment
State.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, first shape
State is the unblock timeout mode;
The recharge method based on rechargeable card, can also include:
If the Query Result instruction does not inquire related to the mark of the rechargeable card and first user account
Supplement record with money, the OCG then sends first charging request to the VC equipment, so that described in the OCS equipment uses
Rechargeable card is that the second user account is supplemented with money.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, in the OCG then
The first charging request is sent to the OCS equipment, so that the OCS equipment uses the rechargeable card as the second user account
After supplementing with money, methods described also includes:
If since the OCG sends first charging request to the OCS equipment, in first preset time
Afterwards, the OCG do not receive that the OCS equipment is sent first when supplementing response with money, the OCS equipment is then sent out to the VC equipment
Overtime instruction is sent, the time-out is indicated for indicating that the state of the rechargeable card is arranged to the response timeout by the VC equipment
State;
If since the OCG sends first charging request to the OCS equipment, the OCG is pre- described first
If in the time, receive described the first of the OCS equipment transmission and supplement response with money, and described first supplements with money described in response instruction
OCS equipment uses the rechargeable card as the second user account successful recharging, then sending the set to the VC equipment refers to
Show, the set is indicated for indicating that the state of the rechargeable card is arranged to the use state by the VC equipment;
If since the OCG sends first charging request to the OCS equipment, the OCG is pre- described first
If in the time, receive described the first of the OCS equipment transmission and supplement response with money, and described first supplements with money described in response instruction
OCS equipment uses the rechargeable card to be supplemented with money unsuccessfully for the second user account, then sending the unblock to the VC equipment refers to
Show, the unblock instruction is used to indicate that the state of the rechargeable card is arranged to the unused state by the VC equipment.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, connect in the OCG
Before receiving first inquiry response that the VC equipment is sent, methods described also includes:
The OCG sends the first query messages to the VC equipment, to cause the VC equipment according to the described first inquiry
The mark of the rechargeable card carried in message inquires about the state of the rechargeable card, and causes the VC equipment to record described first
Corresponding pass between the second user account and the second user account and the rechargeable card that are carried in query messages
System.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, methods described is also
Including:
The OCG sends second charging request to the OCS equipment;
Since the OCG sends second charging request to the OCS equipment, if in first preset time
Afterwards, the OCG does not receive described the second of the OCS equipment transmission and supplements response with money, and the OCG is then sent to the VC equipment
Time-out instruction, the time-out are indicated for indicating that the state of the rechargeable card is arranged to respond by the VC equipment by lock-out state
Timeout mode.
The second aspect of the embodiment of the present invention, a kind of recharge method based on rechargeable card is also provided, including:
Voucher center VC equipment sends inquiry response to On-line Control and charging gateway OCG, the inquiry response be for
The response message of the inquiry request of the state of rechargeable card is inquired about, is carried in the inquiry response and supplements status information with money, it is described to fill
State of value information is used for the state for indicating the rechargeable card;
The inquiry response is sent from the VC equipment to the OCG or the VC equipment receives the OCG and sent
The inquiry request start, if after the second preset time, the VC equipment does not receive the set instruction that the OCG is sent
Or the state of the rechargeable card is then arranged to unlock timeout mode by unblock instruction, the VC equipment.
The third aspect of the embodiment of the present invention, a kind of On-line Control and charging gateway OCG are also provided, including:
Receiving unit, for receiving the first inquiry response of voucher center VC equipment transmission, first inquiry response is
Response message for the first inquiry request of the state of inquiring about the rechargeable card;
Determining unit, for after the receiving unit receives first inquiry response, being inquired about according to described first
The state supplemented status information with money and determine rechargeable card carried in response;
Query unit, if determining that the state of the rechargeable card is first state for the determining unit, according to
The first user account carried in first inquiry response that the mark of rechargeable card and the receiving unit receive, inquiry are previous
It is secondary when using the rechargeable card to be supplemented with money for first user account, if successfully supplemented with money for first user account, it is described
When first user account once uses the rechargeable card for before, the state for causing the rechargeable card is the first state
User account;
Transmitting element, if once used before the Query Result instruction inquired for the query unit the rechargeable card for
First user account is supplemented with money unsuccessfully, then to Online Charging System OCS equipment send carry the rechargeable card mark and
First charging request of second user account, so that the OCS equipment uses the rechargeable card to be filled for the second user account
Value;
Wherein, the first state is response timeout state and unlocks any one in timeout mode;The response is super
When state be it is preceding once use the rechargeable card to be supplemented with money for first user account when, from the transmitting element to described
OCS equipment sends the second charging request and started, and after the first preset time, the receiving unit does not receive the OCS equipment
When second sent supplements response with money, the state of the time-out locking residing for the rechargeable card recorded in the VC equipment;The solution
Lock timeout mode be it is preceding once use the rechargeable card to be supplemented with money for first user account when, from the VC equipment to described
OCG sends the second inquiry response or the VC equipment receives the second inquiry request that the OCG is sent and started, pre- second
If after the time, when the VC equipment does not receive the set instruction or unblock instruction that the OCG is sent, remember in the VC equipment
The state of time-out locking residing for the rechargeable card of record, second inquiry response is the state for inquiring about the rechargeable card
The second inquiry request response message.
With reference to the third aspect, in a kind of possible implementation, the transmitting element, it is additionally operable to the OCS equipment
The mark of the rechargeable card and first user account are sent, to cause mark of the OCS equipment according to the rechargeable card
Whether it is that first user account is successfully supplemented with money when once using the rechargeable card before inquiry;
The receiving unit, it is additionally operable to receive the Query Result that the OCS equipment is sent.
It is described to send list in alternatively possible implementation with reference to the third aspect and above-mentioned possible implementation
Member, if once using the rechargeable card before being additionally operable to the Query Result instruction as the first user account successful recharging,
The set instruction is sent to the VC equipment;
Wherein, the set indicates to have used for indicating that the state of the rechargeable card is arranged to described by the VC equipment
State.
With reference to the third aspect and above-mentioned possible implementation, in alternatively possible implementation, first shape
State is the response timeout state;
The transmitting element, do not inquired and the mark of the rechargeable card and institute if being additionally operable to the Query Result instruction
That states the first user account correlation supplements record with money, then sending the unblock to the VC equipment indicates;
Wherein, the unblock instruction is used to indicate that the state of the rechargeable card is arranged to described and is not used by the VC equipment
State.
With reference to the third aspect and above-mentioned possible implementation, in alternatively possible implementation, first shape
State is the unblock timeout mode;
The transmitting element, do not inquired and the mark of the rechargeable card and institute if being additionally operable to the Query Result instruction
That states the first user account correlation supplements record with money, then first charging request is sent to the VC equipment, so that the OCS is set
It is standby to use the rechargeable card to be supplemented with money for the second user account.
It is described to receive list in alternatively possible implementation with reference to the third aspect and above-mentioned possible implementation
Member, is additionally operable to receive that the OCS equipment is sent first supplements response with money;
The transmitting element, it is additionally operable to after the first charging request is sent to the OCS equipment,
It is if default described first since the transmitting element sends first charging request to the OCS equipment
After time, the receiving unit does not receive described first when supplementing response with money, then sends time-out instruction to the VC equipment, described
Time-out is indicated for indicating that the state of the rechargeable card is arranged to the response timeout state by the VC equipment;
If since the transmitting element sends first charging request to the OCS equipment, the receiving unit exists
In first preset time, receive described first and supplement response with money, and described first supplements response with money and indicate that the OCS equipment is adopted
It is the second user account successful recharging with the rechargeable card, then sending the set to the VC equipment indicates, described to put
Position is indicated for indicating that the state of the rechargeable card is arranged to the use state by the VC equipment;
If since the transmitting element sends first charging request to the OCS equipment, the receiving unit exists
In first preset time, the receiving unit receives described first and supplements response with money, and described first supplements response instruction with money
The OCS equipment uses the rechargeable card to be supplemented with money unsuccessfully for the second user account, then sends the solution to the VC equipment
Lock instruction, the unblock instruction are used to indicate that the state of the rechargeable card is arranged to the unused state by the VC equipment.
It is described to send list in alternatively possible implementation with reference to the third aspect and above-mentioned possible implementation
Member, it is additionally operable to before first inquiry response that the receiving unit receives that the VC equipment is sent, to the VC equipment
The first query messages are sent, to cause mark of the VC equipment according to the rechargeable card carried in first query messages
The state of the rechargeable card is inquired about, and causes the VC equipment to record the second user carried in first query messages
Corresponding relation between account and the second user account and the rechargeable card.
It is described to send list in alternatively possible implementation with reference to the third aspect and above-mentioned possible implementation
Member, it is additionally operable to send second charging request to the OCS equipment;
The receiving unit, is additionally operable to receive that the OCS equipment is sent described second supplements response with money;
The transmitting element, it is additionally operable to transmission second charging request from the transmitting element to the OCS equipment and opens
Begin, if after first preset time, the receiving unit does not receive described second that the OCS equipment is sent and supplements sound with money
Should, then time-out instruction is sent to the VC equipment, the time-out is indicated for indicating the VC equipment by the shape of the rechargeable card
State is arranged to response timeout state by lock-out state.
The fourth aspect of the embodiment of the present invention, there is provided a kind of voucher center VC equipment, including:
Transmitting element, for sending inquiry response to On-line Control and charging gateway OCG, the inquiry response is for looking into
The response message of the inquiry request of the state of rechargeable card is ask, is carried in the inquiry response and supplements status information with money, it is described to supplement with money
Status information is used for the state for indicating the rechargeable card;
Receiving unit, the set instruction or unblock instruction sent for receiving the OCG;
Setting unit, for sending the inquiry response or the receiving unit from the transmitting element to the OCG
Receive the inquiry request that the OCG is sent to start, if after the second preset time, the receiving unit does not receive institute
The set instruction or unblock instruction of OCG transmissions are stated, then is arranged to the state of the rechargeable card unlock timeout mode.
5th aspect of the embodiment of the present invention, there is provided a kind of charging system based on rechargeable card, including:On-line Control and meter
Take gateway OCG, voucher center VC equipment and Online Charging System OCS equipment;
The OCG is used to perform the described recharge method based on rechargeable card;
The OCS equipment, for using the rechargeable card to be supplemented with money for user account, it is responsible for the charging pipe of the user account
Reason;
The voucher center VC equipment, for the state of management, value-charging card, the state of the rechargeable card includes:Shape is not used
State, lock-out state, first state and use state, the first state are in response timeout state and unblock timeout mode
Any one;
Wherein, the VC equipment, the time-out instruction sent specifically for receiving the OCG, will according to the time-out instruction
The state of the rechargeable card is arranged to the response timeout state, and the time-out is designated as sending out from the OCG to the OCS equipment
The second charging request is sent to start, after the first preset time, if the OCG does not receive second that the OCS equipment is sent and filled
During value response, the OCG is sent to the VC equipment;
The VC equipment, specifically for since the VC equipment to the OCG send the second inquiry response, it is pre- second
If after the time, if the VC equipment does not receive the set instruction or unblock instruction from the OCG, supplemented with money described
The state of card is arranged to the unblock timeout mode, and second inquiry response is for inquiring about the of the state of the rechargeable card
The response message of two inquiry requests.
Recharge method based on rechargeable card, equipment and system provided in an embodiment of the present invention, and in the prior art, due to net
Network time-out, causes the state of rechargeable card compared with actual recharging result is not consistent, in this programme, if network timeout, not directly
Connect and the state of rechargeable card is arranged to use state or unused state by lock-out state, but there is provided by lock-out state
To intermediateness-first state (response timeout state or unblock timeout mode) of the either unused state of use state,
Can then solve due to network timeout, the problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is that a kind of state of rechargeable card of the prior art switches schematic diagram;
Fig. 2 is that a kind of state of rechargeable card in the embodiment of the present invention switches schematic diagram;
Fig. 3 is a kind of recharge method flow chart based on rechargeable card in the embodiment of the present invention;
Fig. 4 is another recharge method flow chart based on rechargeable card in the embodiment of the present invention;
Fig. 5 is another recharge method flow chart based on rechargeable card in the embodiment of the present invention;
Fig. 6 is another recharge method flow chart based on rechargeable card in the embodiment of the present invention;
Fig. 7 is the composition schematic diagram of OCG in the embodiment of the present invention a kind of;
Fig. 8 is a kind of composition schematic diagram of VC equipment in the embodiment of the present invention;
Fig. 9 is the composition schematic diagram of another OCG in the embodiment of the present invention;
Figure 10 is the composition schematic diagram of another OCG in the embodiment of the present invention;
Figure 11 is the composition schematic diagram of another VC equipment in the embodiment of the present invention;
Figure 12 is the composition schematic diagram of another VC equipment in the embodiment of the present invention;
Figure 13 is a kind of composition schematic diagram of charging system based on rechargeable card in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/
Or ", only a kind of incidence relation for describing affiliated partner, represents there may be three kinds of relations, for example, A and/or B, can be with table
Show:Individualism A, while A and B be present, these three situations of individualism B.In addition, character "/" herein, is typicallyed represent front and rear
Affiliated partner is a kind of relation of "or".
The method of the embodiment of the present invention can apply to it is as shown in Figure 10, by On-line Control and charging gateway (Online
Control And Charging Gateway, OCG), Online Charging System (Online Charging System, OCS) sets
The charging system based on rechargeable card that standby and voucher center (Voucher Center, VC) equipment is formed.
It can include in one charging system based on rechargeable card:One OCG, a VC equipment and at least one OCS are set
It is standby.Wherein, an OCG can be responsible for the control of the signaling access of the user of the whole network, be interacted with OCS equipment and VC equipment,
To complete rechargeable card flow;One OCS equipment can be responsible for the management of balance of a regional user account, using described
Rechargeable card is supplemented with money for user account;One VC equipment can manage the state for the rechargeable card that all operators release.
As shown in figure 1, the state of rechargeable card includes in the prior art:Unused state, lock-out state and use state
Three states.VC equipment, can be by rechargeable card after the inquiry request for the mark for carrying rechargeable card of OCG transmissions is received
The state of the corresponding rechargeable card of mark is arranged to lock-out state by unused state and (rechargeable card is locked, to prevent this from supplementing with money
Card uses the loss for causing operator by least two users simultaneously);When VC equipment receives the set instruction of OCG equipment transmission
When (OCG sends set instruction after it is determined that OCS equipment uses rechargeable card as user account successful recharging, to VC equipment), then may be used
So that the state of rechargeable card is arranged into use state by lock-out state;User's cancellation that OCG transmissions are received when VC equipment is filled
During the cancellation instruction of value, then the state of rechargeable card can be arranged to unused state (unlocking rechargeable card) by lock-out state.
Unlike the prior art, as shown in Fig. 2 the state of the rechargeable card in the embodiment of the present invention is removed and shape is not used
State, lock-out state and outside three states of use state, in addition to first state.Wherein, first state is response timeout shape
Any one in state and unblock timeout mode;Response timeout state is once to use rechargeable card to be filled for a user account preceding
During value, since OCG sends charging request to OCS equipment, after the first preset time, OCG does not receive the transmission of OCS equipment
Second when supplementing response with money, the state of the time-out locking residing for the rechargeable card recorded in VC equipment;It is previous to unlock timeout mode
It is secondary when using the rechargeable card to be supplemented with money for a user account, since VC equipment sends inquiry response to OCG, in the second preset time
Afterwards, it is super residing for the rechargeable card that records in VC equipment when VC equipment does not receive the set instruction or unblock instruction from OCG
Shi Suoding state.
It should be noted that VC equipment sets the state of rechargeable card for response timeout state or unlocks the tool of timeout mode
Body method may be referred to the follow-up associated description of the embodiment of the present invention, and the embodiment of the present invention repeats no more here.
Embodiment 1
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, can apply to by On-line Control and charging
Interaction between gateway OCG, voucher center VC equipment and Online Charging System OCS equipment threes, supplemented with money for second user account
During, as shown in figure 3, being somebody's turn to do the recharge method based on rechargeable card includes:
S101, OCG fill after the first inquiry response of VC equipment transmission is received according to what is carried in the first inquiry response
State of value information determines the state of rechargeable card.
Wherein, the first inquiry response is the response message of the first inquiry request of the state for inquiring about rechargeable card.OCG can
So that after user is received by supplementing the rechargeable card request that client is initiated with money, the mark for carrying rechargeable card is sent to VC equipment
The first inquiry request, to cause the rechargeable card corresponding to the mark of rechargeable card carried in the inquiry request of VC equipment queries first
State, and then cause VC equipment to OCG reply carry the first inquiry response for supplementing status information with money.Supplement status information use with money
In the state of instruction rechargeable card.
When supplement with money status information instruction rechargeable card state for first state (response timeout state and unblock timeout mode in
Any one) when, then it represents that preceding when once using the rechargeable card to be supplemented with money for the first user account, due to network timeout, VC is set
It is standby that the state of the rechargeable card has been arranged to first state;Now, an OCS equipment, which uses, before can not being determined due to OCG is somebody's turn to do
When rechargeable card is that the first user account is supplemented with money, if the rechargeable card is used as the first user account successful recharging, therefore in order to keep away
When exempting from currently once to use rechargeable card as the first user account successful recharging (i.e. the rechargeable card is unavailable), still using the rechargeable card
Supplemented with money for second user account, cause the repetition of the rechargeable card to be supplemented with money, cause the loss of operator, OCG is needed before inquiring about once
When using the rechargeable card to be supplemented with money for the first user account, if successfully supplemented with money for the first user account, and before Query Result instruction
When once using the rechargeable card to supplement unsuccessfully (i.e. the rechargeable card still available) with money for the first user account, just send and carry to OCS equipment
There are the mark of rechargeable card and the first charging request of second user account, so that OCS equipment uses rechargeable card as second user account
Number supplement with money.Specifically, the method for the embodiment of the present invention also includes S102.
Further, when the state for supplementing status information instruction rechargeable card with money is use state, then it represents that the rechargeable card
Remaining sum be zero, i.e., the rechargeable card can not reuse;Now OCG can terminate the recharge procedure based on rechargeable card, and
The recharge procedure based on rechargeable card is prompted the user with by supplementing client with money to terminate, and can be to by supplementing client with money to user
Prompting is that the remaining sum of rechargeable card used in user is zero based on the reason for the recharge procedure of rechargeable card terminates.
When supplement with money status information instruction rechargeable card state be lock-out state when, then it represents that VC equipment by rechargeable card by
Unused state is arranged to lock-out state;Now, OCG then can by OCS equipment send carry rechargeable card mark and
First charging request of second user account, so that OCS equipment uses rechargeable card to be supplemented with money for second user account.
It should be noted that the first user account in the embodiment of the present invention is the preceding user for once using rechargeable card
Account, second user account use the user account of rechargeable card for this.Wherein, the first user account and second user account
Number can be same user account, the first user account and second user account can also be two different user accounts.
If the state of S102, rechargeable card is first state, OCG then takes according in the mark of rechargeable card and the first inquiry response
First user account of band, when once using the rechargeable card to be supplemented with money for the first user account before inquiry, if be the first user account
Successfully supplement with money, when the first user account once uses rechargeable card for before, the state for causing rechargeable card is the use of first state
Family account.
Exemplary, OCG can be by sending the mark and the first user account of rechargeable card to OCS equipment, to cause OCS
When equipment once uses rechargeable card before being inquired about according to the mark of rechargeable card, if successfully supplement with money, enter for the first user account
And OCS equipment is caused to send Query Result to OCG.
It should be noted that Query Result once uses rechargeable card to be supplemented with money unsuccessfully for the first user account before can indicating;
Or Query Result can indicate before once use rechargeable card as the first user account successful recharging;Or Query Result can be with
Indicate not inquire and related to the mark of rechargeable card and the first user account supplement record with money.
When once using rechargeable card to be supplemented with money unsuccessfully for the first user account before Query Result instruction, then it represents that the rechargeable card
Still available, OCG can then send to OCS equipment and carry the mark of rechargeable card and the first charging request of second user account,
So that OCS equipment uses rechargeable card to be supplemented with money for second user account, that is, continue executing with S103.
Further, when once using rechargeable card before Query Result instruction as the first user account successful recharging, then table
It has been the first user account successful recharging to show the rechargeable card, but because network timeout, VC equipment are not supplemented with money to this and sticked into
Row set (will the rechargeable card be arranged to SM set mode);Therefore, OCG can then send set instruction to VC equipment, with instruction
The state of rechargeable card is arranged to use state by VC equipment.
It should be noted that when Query Result instruction do not inquire it is related to the mark of rechargeable card and the first user account
The method flow to be continued executing with during record of supplementing with money may be referred to the follow-up associated description of the embodiment of the present invention, the present invention is implemented
Example repeats no more here.
If once using rechargeable card to be supplemented with money unsuccessfully for the first user account before the instruction of S103, Query Result, OCG is then to OCS
Equipment sends and carries the mark of rechargeable card and the first charging request of second user account, so that OCS equipment uses rechargeable card
Supplemented with money for second user account.
Wherein, the first state is response timeout state and unlocks any one in timeout mode;The response is super
When state be it is preceding once use the rechargeable card to be supplemented with money for first user account when, from the OCG to the OCS equipment
Send the second charging request to start, after the first preset time, the OCG does not receive second that the OCS equipment is sent and filled
During value response, the state of the time-out locking residing for the rechargeable card recorded in the VC equipment;It is described unblock timeout mode be
It is preceding once use the rechargeable card to be supplemented with money for first user account when, from the VC equipment to the OCG send second
Inquiry response starts, and after the second preset time, the VC equipment does not receive set instruction or unblock from the OCG
During instruction, the state of the time-out locking residing for rechargeable card recorded in the VC equipment, the second inquiry response is to be filled for inquiring about
It is worth the response message of the second inquiry request of the state of card.
It should be noted that because OCG is needed by supplementing client realization and interacting between user with money, therefore in order to carry
High Consumer's Experience, OCG overtime response time (i.e. the first preset time) is traditionally arranged to be second level, and (such as the first preset time can be with
For 5 seconds).For example, since OCG sends the second charging request to OCS equipment, after 5 seconds, if OCG does not receive OCS equipment hair
When second sent supplements response with money, OCG can then prompt the user with supplementing with money unsuccessfully based on rechargeable card, and stream is supplemented with money based on rechargeable card
Journey terminates, and by sending time-out instruction to VC equipment, the state of rechargeable card is arranged to response timeout state by control VC equipment.
And VC equipment only needs to interact with OCG, then need not be interacted with user, therefore, the overtime response time of VC equipment
(i.e. the second preset time) is traditionally arranged to be minute level (such as the second preset time can be 5 minutes).
Recharge method provided in an embodiment of the present invention based on rechargeable card, with the prior art, due to network timeout, causing
The state of rechargeable card is not compared with actual recharging result is consistent, in this programme, if network timeout, not directly by rechargeable card
State is arranged to use state or unused state, but there is provided by locking state to use state or being not used
Intermediateness-first state (response timeout state or unblock timeout mode) of state, then can solve due to network timeout,
The problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Embodiment 2
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, as shown in figure 4, should supplementing with money based on rechargeable card
Method, including:
S201, VC equipment send inquiry response to OCG, and inquiry response is for the inquiry request for the state for inquiring about rechargeable card
Response message, carry in inquiry response and supplement status information with money, supplement the state that status information is used to indicate the rechargeable card with money.
S202, from VC equipment to the OCG, transmission inquiry response or VC equipment receive the inquiry request that OCG is sent and opened
Begin, if after the second preset time, VC equipment does not receive the set instruction or unblock instruction of OCG transmissions, and VC equipment then will
The state of rechargeable card is arranged to unlock timeout mode.
It should be noted that the inquiry response in the present embodiment includes the first inquiry response in other embodiments of the invention
With the second inquiry response, inquiry request includes the first inquiry request and the second inquiry request in other embodiments of the invention.
Recharge method provided in an embodiment of the present invention based on rechargeable card, inquiry response, inquiry response can be sent to OCG
For the response message of the inquiry request of the state for inquiring about rechargeable card, carried in inquiry response and supplement status information with money, supplemented with money
Status information is used for the state for indicating the rechargeable card;Looked into from sending inquiry response to OCG or receiving described in OCG transmissions
Ask request to start, if after the second preset time, do not receive set instruction or unblock instruction that the OCG is sent, then will
The state of rechargeable card is arranged to unlock timeout mode.
With in the prior art, due to network timeout, causing the state of rechargeable card compared with actual recharging result is not consistent,
In this programme, if network timeout, the state of rechargeable card is not directly arranged to use state or unused state, but
There is provided the intermediateness by locking state to use state or unused state-unblock timeout mode, then can solve
Due to network timeout, the problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Embodiment 3
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, can apply to by OCG, VC equipment and
Interaction between OCS equipment threes, during being supplemented with money for the first user account, as shown in figure 5, should supplementing with money based on rechargeable card
Method includes:
S301, OCG receive user to be asked by supplementing the rechargeable card that client is initiated with money, is carried and is supplemented with money in rechargeable card request
The mark of card and the first user account.
It is further alternative, in order to avoid causing to supplement with money extremely unsuccessfully due to user account, rechargeable card is being used as user
Before account is supplemented with money, OCG and OCS equipment can authenticate to the current state of the first user account, i.e., to first user's account
Number validity carry out authentication verification.The method of the embodiment of the present invention can also include S302:
S302, OCG and OCS equipment authenticate to the current state of the first user account.
Exemplary, the current state of user account (the first user account) can include:Canceled state, limitation use
State and any one etc. that can be in normal operating condition.
Wherein, canceled state can be to have nullified user account as user 1, and the user account not by with
Family 2 is applied in use, the user account state in which;Limitation use state can be when user is carried out using the user account
Illegal transaction limits the business operation that the user account can carry out when user carries out operator using the user account
When, the user account state in which;Can normal operating condition be that the user account can be normally carried out every business operation
State.
Specifically, S302 can include:S302a-S302c, i.e. User Status authorizing procedure can include:
S302a, OCG send state authentication request to OCS equipment, and the first user account is carried in state authentication request.
S302b, OCS equipment carry out User Status authentication to the first user account.
Wherein, OCS equipment can carry out authentication to the validity of the first user account and test by inquiring about the first user account
Card.When the current state of the first user account is canceled state or limitation use state, then it represents that can not currently use
Rechargeable card is that the first user account is supplemented with money, i.e. the first user account is abnormal;When the current state of the first user account is can be normal
During use state, then it represents that currently rechargeable card can be used to be supplemented with money for the first user account, i.e., the first user account is normal.
S302c, OCS equipment send state Authentication Response to OCG, and User Status authentication knot is carried in state Authentication Response
Fruit.
It should be noted that the current state for the first user account that OCS equipment directly can arrive OCS equipment queries is made
Sent for User Status authenticating result to OCG, judge that the first user account is according to the current state of the first user account by OCG
It is no normal;Certainly, OCS equipment can also be after inquiry obtains the current state of the first user account, according to the first user account
Current state judge whether the first user account normal, then will determine that result, (the first user account is normal or first uses
Family account is abnormal) send to OCG.
Specifically, if User Status authenticating result indicates that the first user account is normal, S303 is continued executing with:If user's shape
State authenticating result indicates that the first user account is abnormal, then the recharge procedure based on rechargeable card terminates.
The state of S303, OCG and VC equipment query rechargeable card.
Specifically, as shown in figure 5, S303 can include S303a-S303d, i.e., " rechargeable card status inquiry flow " can wrap
Include:
S303a, OCG send the second inquiry request to VC equipment, and the second inquiry request is used to indicate that VC equipment queries are supplemented with money
The state of card.
Wherein, the mark of rechargeable card is carried in the second inquiry request.VC equipment can be inquired about in the second inquiry request and taken
The state of rechargeable card corresponding to the mark of the rechargeable card of band.
The state of S303b, VC equipment query rechargeable card.
Exemplary, the state for the rechargeable card that VC equipment is found can be:Unused state, lock-out state have used
Any one in state.
S303c, when the state of rechargeable card is unused state, VC equipment is then by the state of rechargeable card by unused state
Lock-out state is arranged to, and the second inquiry response is sent to OCG, the shape for indicating rechargeable card is carried in the second inquiry response
State supplements status information with money for lock-out state.
Wherein, when the state of rechargeable card is unused state, expression can use the rechargeable card as the first user account
Supplement with money.In order to avoid user's use during using the rechargeable card to be supplemented with money for the first user account, be present, this is supplemented with money and sticked into
Row other users account is supplemented with money, causes the repetition of the rechargeable card to be supplemented with money, and VC equipment then can be by the state of the rechargeable card by not making
Lock-out state is arranged to state.
S303d, when the state of rechargeable card is lock-out state or use state, VC equipment then to OCG send second
Inquiry response, carry in the second inquiry response and supplement status information with money for indicating that rechargeable card is disabled.
Wherein, when the state of rechargeable card is lock-out state, then it represents that current to there is user to use the rechargeable card to be used for other
Family account is supplemented with money, and the rechargeable card is currently unavailable;Now, OCG can be prompted the user with based on rechargeable card by supplementing client with money
Recharge procedure terminate.
When the state of rechargeable card is use state, then it represents that the remaining sum of the rechargeable card is zero, and the rechargeable card is current not
It can use.Now, OCG can prompt the user with the recharge procedure based on rechargeable card by supplementing client with money and terminate.
If specifically, carried in the second inquiry response supplement with money status information instruction rechargeable card state be lock-out state,
OCG then can send the second charging request to OCS equipment, to cause OCS equipment to use rechargeable card to be supplemented with money as the first user account,
Continue executing with S307 and follow-up process.
If the status information of supplementing with money carried in the first inquiry response indicates that rechargeable card is disabled, then it represents that the rechargeable card
State is lock-out state or use state, then the recharge procedure based on rechargeable card terminates.
S307, OCG send to OCS equipment and carry the mark of rechargeable card and the first charging request of the first user account.
S308, OCS equipment use the rechargeable card corresponding to the mark of rechargeable card to be supplemented with money for the first user account, and to OCG
Send second and supplement response with money.
Wherein, OCS equipment is after using the rechargeable card corresponding to the mark of rechargeable card to be supplemented with money for the first user account, can be with
Generate a mark comprising rechargeable card, the first user account and recharging result supplements record with money.
S309, OCG judge that after the first preset time, OCG is since OCG sends the second charging request to OCS equipment
It is no receive the transmission of OCS equipment second supplement response with money.
If specifically, since OCG sends the second charging request to OCS equipment, after the first preset time, OCG does not connect
Receive the transmission of OCS equipment second supplements response with money, then continues executing with S310 and follow-up process;If the is sent from OCG to OCS equipment
Two charging requests start, and after the first preset time, OCG receives second that OCS equipment is sent and supplements response with money, then continues executing with
S312 and follow-up process.
S310, OCG send time-out instruction to VC equipment.
Wherein, time-out is indicated for indicating that the state of rechargeable card is arranged to response timeout state by VC equipment.
S311, from VC equipment to OCG, the second inquiry response of transmission or VC equipment receive the second inquiry that OCG is sent and asked
Beginning is asked, in the second preset time, if VC equipment receives the time-out instruction from OCG, VC equipment is then by the shape of rechargeable card
State is arranged to response timeout state.
S312, OCG judge that first supplements whether response refers to that OCS equipment uses rechargeable card to be supplemented with money into for the first user account with money
Work(.
If specifically, first supplement with money response instruction OCS equipment use rechargeable card as the first user account successful recharging, after
It is continuous to perform S313 and follow-up process;If second, which supplements response with money, indicates that the OCS equipment uses rechargeable card to be filled for the first user account
Value failure, then continue executing with S315 and follow-up process:
S313, OCG send set instruction to VC equipment.
S314, from VC equipment to OCG, the second inquiry response of transmission or VC equipment receive the second inquiry that OCG is sent and asked
Beginning is asked, in the second preset time, if VC equipment receives the set instruction from OCG, VC equipment is then by the shape of rechargeable card
State is arranged to use state.
It should be noted that when the state of rechargeable card is lock-out state, the second inquiry response is sent from VC equipment to OCG
Or VC equipment receives the second inquiry request that OCG is sent and started, and in the second preset time, is come from if VC equipment receives
The state of rechargeable card is then arranged to use state by OCG set instruction, VC equipment by lock-out state.
S315, OCG send unblock instruction to VC equipment.
S316, from VC equipment to OCG, the second inquiry response of transmission or VC equipment receive the second inquiry that OCG is sent and asked
Beginning is asked, in the second preset time, if VC equipment receives the unblock instruction from OCG, VC equipment is then by the shape of rechargeable card
State is arranged to unused state.
It should be noted that when the state of rechargeable card is lock-out state, the second inquiry response is sent from VC equipment to OCG
Start, in the second preset time, if VC equipment receives the unblock instruction from OCG, VC equipment is then by the state of rechargeable card
Unused state is arranged to by lock-out state.
S317, from VC equipment to OCG, the second inquiry response of transmission or VC equipment receive the second inquiry that OCG is sent and asked
Beginning is asked, after the second preset time, if VC equipment does not receive the time-out instruction from OCG, set instruction or unblock and referred to
The state of rechargeable card is then arranged to unlock timeout mode by any one instruction in showing, VC equipment.
Recharge method provided in an embodiment of the present invention based on rechargeable card, with the prior art, due to network timeout, causing
The state of rechargeable card is not compared with actual recharging result is consistent, in this programme, if network timeout, not directly by rechargeable card
State is arranged to use state or unused state by lock-out state, but there is provided by locking state to use state
Either intermediateness-first state (response timeout state or unblock timeout mode) of unused state, then can solve by
In network timeout, the problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Embodiment 4
The embodiment of the present invention provides a kind of recharge method based on rechargeable card, can apply to by OCG, VC equipment and
Interaction between OCS equipment threes, during being supplemented with money for second user account, as shown in fig. 6, should supplementing with money based on rechargeable card
Method includes:
S401, OCG receive user to be asked by supplementing the rechargeable card that client is initiated with money, is carried and is supplemented with money in rechargeable card request
The mark and second user account of card.
It is further alternative, in order to avoid causing to supplement with money extremely unsuccessfully due to user account, rechargeable card is being used as user
Before account is supplemented with money, OCG and OCS equipment can authenticate to the current state of second user account, i.e., to second user account
Number validity carry out authentication verification.The method of the embodiment of the present invention can also include S402:
S402, OCG and OCS equipment authenticate to the current state of second user account.
Exemplary, the current state of user account (second user account) can include:Canceled state, limitation use
State and any one etc. that can be in normal operating condition.
Wherein, canceled state can be to have nullified user account as user 1, and the user account not by with
Family 2 is applied in use, the user account state in which;Limitation use state can be when user is carried out using the user account
Illegal transaction limits the business operation that the user account can carry out when user carries out operator using the user account
When, the user account state in which;Can normal operating condition be that the user account can be normally carried out every business operation
State.
Specifically, S402 can include:S402a-S402c, i.e. User Status authorizing procedure can include:
S402a, OCG send state authentication request to OCS equipment, and second user account is carried in state authentication request.
S402b, OCS equipment carry out User Status authentication to second user account.
Wherein, OCS equipment can carry out authentication to the validity of second user account by inquiring about second user account and test
Card.When the current state of second user account is canceled state or limitation use state, then it represents that can not currently use
Rechargeable card is that second user account is supplemented with money, i.e., second user account is abnormal;When the current state of second user account is can be normal
During use state, then it represents that currently rechargeable card can be used to be supplemented with money for second user account, i.e. second user account is normal.
S402c, OCS equipment send state Authentication Response to OCG, and User Status authentication knot is carried in state Authentication Response
Fruit.
It should be noted that the current state for the second user account that OCS equipment directly can arrive OCS equipment queries is made
Sent for User Status authenticating result to OCG, judge that second user account is according to the current state of second user account by OCG
It is no normal;Certainly, OCS equipment can also be after inquiry obtains the current state of second user account, according to second user account
Current state judge whether second user account normal, then will determine that result, (second user account is normal or second uses
Family account is abnormal) send to OCG.
Specifically, if User Status authenticating result instruction second user account is normal, S403 is continued executing with:If user's shape
State authenticating result instruction second user account is abnormal, then the recharge procedure based on rechargeable card terminates.
The state of S403, OCG and VC equipment query rechargeable card.
Specifically, as shown in fig. 6, S403 can include S403a-S403e, i.e., " rechargeable card status inquiry flow " can wrap
Include:
S403a, OCG send the first inquiry request to VC equipment, and the first inquiry request is used to indicate that VC equipment queries are supplemented with money
The state of card.
Wherein, the mark of rechargeable card is carried in the first inquiry request.VC equipment can be inquired about in the first inquiry request and taken
The state of rechargeable card corresponding to the mark of the rechargeable card of band.
The state of S403b, VC equipment query rechargeable card.
Exemplary, the state for the rechargeable card that VC equipment is found can be:Unused state, first state, lock-out state
Or any one in use state.
S403c, when the state of rechargeable card is unused state, VC equipment is then by the state of rechargeable card by unused state
Lock-out state is arranged to, and the first inquiry response is sent to OCG, the shape for indicating rechargeable card is carried in the first inquiry response
State supplements status information with money for lock-out state.
Wherein, when the state of rechargeable card is unused state, expression can use the rechargeable card as second user account
Supplement with money.In order to avoid user's use during using the rechargeable card to be supplemented with money for second user account, be present, this is supplemented with money and sticked into
Row other users account is supplemented with money, causes the repetition of the rechargeable card to be supplemented with money, and VC equipment then can be by the state of the rechargeable card by not making
Lock-out state is arranged to state.
S403d, when the state of rechargeable card is first state, VC equipment then to OCG send the first inquiry response, first looks into
Ask to carry in response and supplement status information with money for the state for indicating rechargeable card for first state.
In a kind of application scenarios of the embodiment of the present invention, first state is response timeout state.When the state of rechargeable card
For first state when, then it represents that it is preceding once use the rechargeable card to be supplemented with money for the first user account when, may due to network timeout,
Cause OCG to be not timely received the second of the transmission of OCS equipment and supplement response with money, OCG have sent overtime instruction to VC equipment, and VC is set
For after time-out instruction is received, the state of rechargeable card response timeout state has been arranged to.
In another application scenarios of the embodiment of the present invention, first state is unblock timeout mode.When the shape of rechargeable card
When state is first state, then it represents that it is preceding once use the rechargeable card to be supplemented with money for the first user account when, may be surpassed due to network
When, causing VC equipment to be not timely received the set instruction, unblock instruction or time-out instruction, VC equipment of OCG transmissions will supplement with money
The state of card has been arranged to unblock timeout mode.
S403e, when the state of rechargeable card is lock-out state or use state, VC equipment then to OCG send first
Inquiry response, carry in the first inquiry response and supplement status information with money for indicating that rechargeable card is disabled.
Wherein, when the state of rechargeable card is lock-out state, then it represents that current to there is user to use the rechargeable card to be used for other
Family account is supplemented with money, and the rechargeable card is currently unavailable;Now, OCG can be prompted the user with based on rechargeable card by supplementing client with money
Recharge procedure terminate.
When the state of rechargeable card is use state, then it represents that the remaining sum of the rechargeable card is zero, and the rechargeable card is current not
It can use.Now, OCG can prompt the user with the recharge procedure based on rechargeable card by supplementing client with money and terminate.
If specifically, carried in the first inquiry response supplement with money status information instruction rechargeable card state be lock-out state,
OCG then can send the first charging request to OCS equipment, to cause OCS equipment to use rechargeable card to be supplemented with money as second user account,
Continue executing with S407 and follow-up process.
If the status information of supplementing with money carried in the first inquiry response indicates that rechargeable card is disabled, then it represents that the rechargeable card
State is lock-out state or use state, then the recharge procedure based on rechargeable card terminates.
It is first state (response timeout that if what is carried in the first inquiry response, which supplements the state of status information instruction rechargeable card with money,
Any one in state and unblock timeout mode), then it represents that user once used rechargeable card as user account (including second user
Account or other users account, are designated as the first user account herein) supplement with money, and once supplemented with money preceding for the first user account
During, due to network timeout, cause VC equipment by the state recording of rechargeable card to be first state.Therefore, OCG currently can not
Whether it is determined that once using rechargeable card to supplement with money for the first user account to succeed preceding, i.e. OCG can not determine that rechargeable card is currently
It is no available, and can not determine to be whether second user account charging can cause user or operator according to rechargeable card
Economic loss, therefore, OCG can to once use before OCS equipment queries the rechargeable card for the first user account supplement with money whether
Success, that is, continue executing with S404 and follow-up process.
When S404, OCG once use the rechargeable card to be supplemented with money for the first user account before determining, whether be the first user account into
Work(is supplemented with money.
Wherein, the first user account is carried in the first inquiry response.OCG can use according to the mark of rechargeable card and first
Family account, when once using the rechargeable card to be supplemented with money for first user account before inquiry, if be that the first user account successfully fills
Value.
Specifically, as shown in fig. 6, S404 can include S404a and S404b:
S404a, OCG send the mark and the first user account of rechargeable card to OCS equipment.
S404b, OCS equipment are according to the mark of rechargeable card, when once use rechargeable card before inquiry, if be the first use
Family account is successfully supplemented with money, and sends Query Result to OCG.
Wherein, OCS equipment can record one and supplement record with money after using rechargeable card to be supplemented with money for user account every time,
This, which supplements record with money, includes supplementing the mark of used rechargeable card, the user account supplemented with money with money and uses corresponding rechargeable card to use
The recharging result that family account is supplemented with money (successful recharging is supplemented with money unsuccessfully).
S405, OCG judge whether OCS equipment inquires according to Query Result and use rechargeable card to be supplemented with money for the first user account
Supplement record with money.
Wherein, Query Result can be:OCS equipment, which does not inquire, uses rechargeable card to be supplemented with money for what the first user account was supplemented with money
Record;Or Query Result can be:OCS equipment queries to using rechargeable card to supplement record with money for what the first user account was supplemented with money,
It is and preceding once to use rechargeable card to be supplemented with money unsuccessfully for the first user account;Or Query Result can be:OCS equipment queries arrive
Use rechargeable card to supplement record with money for what the first user account was supplemented with money, and preceding once use rechargeable card to be supplemented with money for the first user account
Success.
Specifically, if OCS equipment queries, to using rechargeable card to supplement record with money for what the first user account was supplemented with money, OCG then may be used
Whether succeed once to use rechargeable card to be supplemented with money as the first user account before judging, that is, continue executing with S406 and follow-up process.
Use rechargeable card to supplement record with money for what the first user account was supplemented with money if OCS equipment does not inquire, work as first state
For response timeout state when, continue executing with S415 and follow-up process.
Because OCG is needed by supplementing client realization and interacting between user with money, therefore in order to improve Consumer's Experience,
The OCG overtime response time (i.e. the first preset time) is traditionally arranged to be second level (such as the first preset time can be 5 seconds).Example
Such as, since OCG sends the second charging request to OCS equipment, after 5 seconds, if OCG does not receive the second of OCS equipment transmission
When supplementing response with money, OCG can then prompt the user with supplementing with money unsuccessfully based on rechargeable card, and the recharge procedure based on rechargeable card terminates,
And by sending time-out instruction to VC equipment, the state of rechargeable card is arranged to response timeout state by control VC equipment.
In a kind of application scenarios of the embodiment of the present invention, when OCS equipment receives the second charging request of OCG transmissions
Afterwards, may be more due to the pending charging request in OCS equipment side, OCS equipment can not the charging request of timely processing second,
Two charging requests be in wait in line during, such OCS equipment then can not be in 5 after receiving the second charging request second
Response is supplemented with money to OCG second is sent, then OCG can control VC equipment by the shape of rechargeable card by sending time-out instruction to VC equipment
State is arranged to response timeout state.
In above-mentioned application scenarios, due to the second charging request be in wait in line during, then OCS equipment then may be used
The second charging request can be handled after certain time (such as 10 seconds), then OCS equipment may then supplement with money for second
The corresponding user account successful recharging of request, it is also possible to the user account corresponding to the second charging request is supplemented with money unsuccessfully,
Therefore also need to re-start the inquiry for supplementing record with money before charging request is initiated to OCS equipment again and (perform
S405), then be able to will continue to supplement with money according to Query Result.
If not inquired in OCS equipment uses rechargeable card to supplement record with money for what the first user account was supplemented with money, when the first shape
In the case that state is response timeout state, OCG still sends the mark and second user account for carrying rechargeable card to OCS equipment
The first charging request, then the repetition that may result in rechargeable card supplements with money, causes the economic loss of rechargeable card operator.Therefore,
If not inquired in OCS equipment uses rechargeable card to supplement record with money for what the first user account was supplemented with money, when first state is response
During timeout mode, then S415 and follow-up process can be continued executing with.
Use rechargeable card to supplement record with money for what the first user account was supplemented with money if OCS equipment does not inquire, work as first state
For it is described unblock timeout mode when, then continue executing with S407 and follow-up process.
Because VC equipment only needs to interact with OCG, it is not necessary to interacted with user, therefore, the time-out of VC equipment
Response time (i.e. the second preset time) is traditionally arranged to be minute level (such as the second preset time can be 5 minutes).Due to second
Preset time is generally the time of minute level, and queuing delay of the charging request in CS equipment side be typically less than second it is default when
Between, therefore OCS equipment handles the result usually stabilization of a charging request, therefore, if OCS equipment does not inquire
Use rechargeable card to supplement record with money for what the first user account was supplemented with money, then when first state for unblock timeout mode when, then can be after
It is continuous to perform S407 and follow-up process.
Whether S406, OCG once use rechargeable card to supplement with money as the first user account to succeed before judging.
If specifically, rechargeable card is once used to be supplemented with money unsuccessfully for the first user account before Query Result instruction, then it represents that should
Rechargeable card is still available, and OCG then can send the first charging request to OCS equipment, to cause OCS equipment to use rechargeable card as second
User account is supplemented with money, that is, continues executing with S407 and follow-up process;If rechargeable card is once used to be used for first before Query Result instruction
Family account successful recharging, then it represents that the remaining sum of the rechargeable card is zero, and the rechargeable card is unavailable, and OCG can then be sent to VC equipment
Set indicates, to indicate that the state of the rechargeable card is arranged to use state by VC equipment, that is, continues executing with S413 and rear afterflow
Journey.
S407, OCG send to OCS equipment and carry the mark of rechargeable card and the first charging request of second user account.
S408, OCS equipment use the rechargeable card corresponding to the mark of rechargeable card to be supplemented with money for second user account, and to OCG
Send first and supplement response with money.
Wherein, OCS equipment is after using the rechargeable card corresponding to the mark of rechargeable card to be supplemented with money for second user account, can be with
Generate a mark comprising rechargeable card, second user account and recharging result supplements record with money.
S409, OCG judge that after the first preset time, OCG is since OCG sends the first charging request to OCS equipment
It is no receive the transmission of OCS equipment first supplement response with money.
If specifically, since OCG sends the first charging request to OCS equipment, after the first preset time, OCG does not connect
Receive the transmission of OCS equipment first supplements response with money, then continues executing with S410 and follow-up process;If the is sent from OCG to OCS equipment
One charging request starts, and after the first preset time, OCG receives first that OCS equipment is sent and supplements response with money, then continues executing with
S412 and follow-up process.
S410, OCG send time-out instruction to VC equipment.
Wherein, time-out is indicated for indicating that the state of rechargeable card is arranged to response timeout state by VC equipment.
S411, from VC equipment to OCG, the first inquiry response of transmission or VC equipment receive the first inquiry that OCG is sent and asked
Beginning is asked, in the second preset time, if VC equipment receives the time-out instruction from OCG, VC equipment is then by the shape of rechargeable card
State is arranged to response timeout state.
S412, OCG judge that first supplements whether response refers to that OCS equipment uses rechargeable card to be supplemented with money into for second user account with money
Work(.
If specifically, first supplement with money response instruction OCS equipment use rechargeable card as second user account successful recharging, after
It is continuous to perform S413 and follow-up process;If first, which supplements response with money, indicates that the OCS equipment uses rechargeable card to be filled for second user account
Value failure, then continue executing with S415 and follow-up process:
S413, OCG send set instruction to VC equipment.
S414, from VC equipment to OCG, the first inquiry response of transmission or VC equipment receive the first inquiry that OCG is sent and asked
Beginning is asked, in the second preset time, if VC equipment receives the set instruction from OCG, VC equipment is then by the shape of rechargeable card
State is arranged to use state.
It should be noted that since VC equipment sends the first inquiry response to OCG, in the second preset time, if VC
Equipment receives the set instruction from OCG, and the state of rechargeable card is then arranged to use state by VC equipment to be included:When
When the state of rechargeable card is lock-out state, since VC equipment sends the first inquiry response to OCG, in the second preset time,
If VC equipment receives the set instruction from OCG, the state of rechargeable card then is arranged to use by VC equipment by lock-out state
State;When the state of rechargeable card is first state (any one in response timeout state and unblock timeout mode), from VC
Equipment sends the first inquiry response to OCG and started, in the second preset time, if VC equipment receives the set from OCG and referred to
Show, the state of rechargeable card is then arranged to use state by VC equipment by first state.
S415, OCG send unblock instruction to VC equipment.
S416, from VC equipment to OCG, the first inquiry response of transmission or VC equipment receive the first inquiry that OCG is sent and asked
Beginning is asked, in the second preset time, if VC equipment receives the unblock instruction from OCG, VC equipment is then by the shape of rechargeable card
State is arranged to unused state.
It should be noted that since VC equipment sends the first inquiry response to OCG, in the second preset time, if VC
Equipment receives the unblock instruction from OCG, and the state of rechargeable card is then arranged to unused state by VC equipment to be included:When
When the state of rechargeable card is lock-out state, since VC equipment sends the first inquiry response to OCG, in the second preset time,
If VC equipment receives the unblock instruction from OCG, the state of rechargeable card is then arranged to unused by VC equipment by lock-out state
State;When the state of rechargeable card is first state (any one in response timeout state and unblock timeout mode), from VC
Equipment sends the first inquiry response to OCG and started, in the second preset time, if VC equipment receives the unblock from OCG and referred to
Show, the state of rechargeable card is then arranged to unused state by VC equipment by first state.
S417, from VC equipment to OCG, the first inquiry response of transmission or VC equipment receive the first inquiry that OCG is sent and asked
Beginning is asked, after the second preset time, if VC equipment does not receive the time-out instruction from OCG, set instruction or unblock and referred to
The state of rechargeable card is then arranged to unlock timeout mode by any one instruction in showing, VC equipment.
Recharge method provided in an embodiment of the present invention based on rechargeable card, with the prior art, due to network timeout, causing
The state of rechargeable card is not compared with actual recharging result is consistent, in this programme, if network timeout, not directly by rechargeable card
State is arranged to use state or unused state by lock-out state, but there is provided by locking state to use state
Either intermediateness-first state (response timeout state or unblock timeout mode) of unused state, then can solve by
In network timeout, the problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Embodiment 5
The embodiment of the present invention provides a kind of OCG, as shown in fig. 7, comprises:Receiving unit 51, determining unit 52, query unit
53 and transmitting element 54.
Receiving unit 51, for receiving the first inquiry response of VC equipment transmission, the first inquiry response is to be filled for inquiring about
It is worth the response message of the first inquiry request of the state of card.
Determining unit 52, for after receiving unit 51 receives the first inquiry response, according in first inquiry response
The state supplemented status information with money and determine rechargeable card carried.
Query unit 53, for if it is determined that unit 52 determines that the state of rechargeable card is first state, then according to the rechargeable card
Mark and the first inquiry response that receives of receiving unit 51 in the first user account for carrying, before inquiry once use this supplement with money
Block when being supplemented with money for first user account, if successfully supplemented with money for first user account, first user account for it is preceding once
During using the rechargeable card, the state for causing the rechargeable card is the user account of first state.
Transmitting element 54, if once using rechargeable card before the Query Result instruction inquired for query unit 53 as first
User account is supplemented with money unsuccessfully, then carries the mark of the rechargeable card to the transmission of OCS equipment and the first of second user account is supplemented with money
Request, so that OCS equipment uses the rechargeable card to be supplemented with money for second user account.
Wherein, first state is response timeout state and unlocks any one in timeout mode.Response timeout state is
It is preceding once use rechargeable card to be supplemented with money for the first user account when, from transmitting element 54 to OCS equipment send the second charging request
Start, after the first preset time, receiving unit 51 does not receive the second of the transmission of OCS equipment when supplementing response with money, in VC equipment
The state of time-out locking residing for the rechargeable card of record;Unblock timeout mode is once to use rechargeable card preceding as first user's account
When number supplementing with money, since VC equipment sends the second inquiry response to OCG, after the second preset time, VC equipment, which does not receive, to be come
From the state of the time-out locking residing for rechargeable card during OCG set instruction or unblock instruction, recorded in VC equipment.
Further, transmitting element 54, it is additionally operable to send the mark and the first user account of rechargeable card to OCS equipment, with
Whether it is the success of the first user account during so that OCS equipment once using rechargeable card before being inquired about according to the mark of rechargeable card
Supplement with money.
Receiving unit 51, it is additionally operable to receive the Query Result that OCS equipment is sent.
Further, transmitting element 54, if once using rechargeable card before being additionally operable to Query Result instruction as first user's account
Number successful recharging, then send set instruction to VC equipment.
Wherein, set is indicated for indicating that the state of rechargeable card is arranged to use state by VC equipment.
Further, in a kind of application scenarios of the embodiment of the present invention, first state is response timeout state.
In the application scenarios, transmitting element 54, do not inquired and the rechargeable card if being additionally operable to Query Result instruction
Identify and what the first user account was related supplements record with money, then send unblock instruction to VC equipment;
Wherein, unblock instruction is used to indicate that the state of rechargeable card is arranged to unused state by VC equipment.
Further, in a kind of application scenarios of the embodiment of the present invention, first state is unblock timeout mode.
In the application scenarios, transmitting element 54, indicate not inquiring the mark with rechargeable card if being additionally operable to Query Result
And first user account it is related supplement record with money, then the first charging request is sent to VC equipment, so that the use of OCS equipment is supplemented with money
Block and supplemented with money for second user account.
Further, receiving unit 51, be additionally operable to receive the transmission of OCS equipment first supplement response with money.
Transmitting element 54, it is additionally operable to after the first charging request is sent to OCS equipment,
If since transmitting element 54 sends the first charging request to OCS equipment, after the first preset time, receiving unit
51 do not receive first when supplementing response with money, then send time-out instruction to VC equipment, and the time-out indicates to be used to indicate that the VC is set
It is standby that the state of the rechargeable card is arranged to the response timeout state;
If since transmitting element 54 sends the first charging request to OCS equipment, receiving unit 51 is in the first preset time
It is interior, receive first and supplement response with money, and first supplements response instruction OCS equipment with money and use rechargeable card to be supplemented with money into for second user account
Work(, then send set instruction to VC equipment, and the set is indicated for indicating that the state of rechargeable card is arranged to use by VC equipment
State;
If since transmitting element 54 sends the first charging request to OCS equipment, receiving unit 51 is in the first preset time
Interior, receiving unit 51 receives first and supplements response with money, and first supplements response instruction OCS equipment with money and use rechargeable card as second user
Account is supplemented with money unsuccessfully, then sends unblock instruction to VC equipment, and unblock instruction is used to indicate that VC equipment sets the state of rechargeable card
For unused state.
Further, transmitting element 54, be additionally operable to receiving unit 51 receive the first inquiry response that VC equipment sends it
Before, the first query messages are sent to VC equipment, to cause mark of the VC equipment according to the rechargeable card carried in the first query messages
The state of rechargeable card is inquired about, and causes VC equipment to record the second user account and second user carried in the first query messages
Corresponding relation between account and rechargeable card.
Further, the transmitting element 54, it is additionally operable to send second charging request to the OCS equipment.
The receiving unit 51, is additionally operable to receive that the OCS equipment is sent described second supplements response with money.
The transmitting element 54, be additionally operable to from the transmitting element 54 to the OCS equipment send described second supplement with money please
Beginning is asked, if after first preset time, the receiving unit does not receive described second that the OCS equipment is sent and filled
Value response, then send time-out instruction to the VC equipment, and the time-out indicates to be used to indicate the VC equipment by the rechargeable card
State response timeout state is arranged to by lock-out state.
It should be noted that in OCG provided in an embodiment of the present invention part functional module the specific descriptions side of may be referred to
Corresponding content in method embodiment, the present embodiment are no longer described in detail here.
OCG provided in an embodiment of the present invention, and in the prior art, due to network timeout, cause the state and reality of rechargeable card
Border recharging result, which is not consistent, to be compared, and in this programme, if network timeout, is not directly set the state of rechargeable card by lock-out state
It is set to use state or unused state, but there is provided by locking state to use state or unused state
Intermediateness-first state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause to fill
The problem of state of value card is not consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Embodiment 6
The embodiment of the present invention provides a kind of VC equipment, as shown in figure 8, including:Transmitting element 61, receiving unit 62 and setting
Unit 63.
Transmitting element 61, for sending inquiry response to On-line Control and charging gateway OCG, the inquiry response be for
The response message of the inquiry request of the state of rechargeable card is inquired about, is carried in the inquiry response and supplements status information with money, it is described to fill
State of value information is used for the state for indicating the rechargeable card.
Receiving unit 62, the set instruction or unblock instruction sent for receiving the OCG.
Setting unit 63, for sending the inquiry response or the reception from the transmitting element 61 to the OCG
Unit 62 receives the inquiry request that the OCG is sent and started, if after the second preset time, the receiving unit does not connect
Set instruction or unblock instruction that the OCG is sent are received, then is arranged to the state of the rechargeable card unlock timeout mode.
VC equipment provided in an embodiment of the present invention, can send inquiry response to OCG, and inquiry response is to be supplemented with money for inquiring about
The response message of the inquiry request of the state of card, carry in inquiry response and supplement status information with money, supplement status information with money and be used to refer to
Show the state of the rechargeable card;Since sending inquiry response to OCG or receiving the inquiry request of OCG transmissions, if
After the second preset time, set instruction or unblock instruction that the OCG is sent are not received, then is set the state of rechargeable card
It is set to unblock timeout mode.
With in the prior art, due to network timeout, causing the state of rechargeable card compared with actual recharging result is not consistent,
In this programme, if network timeout, the state of rechargeable card is not directly arranged to use state or unused state, but
There is provided the intermediateness by locking state to use state or unused state-unblock timeout mode, then can solve
Due to network timeout, the problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Embodiment 7
The embodiment of the present invention provides a kind of OCG, as shown in figure 9, including:Receiver 71, processor 72 and transmitter 73.
Receiver 71, for receiving the first inquiry response of VC equipment transmission, first inquiry response is for inquiring about
The response message of first inquiry request of the state of the rechargeable card.
Processor 72, for the receiver 71 receive VC equipment transmission the first inquiry response after, according to described
The state supplemented status information with money and determine rechargeable card carried in first inquiry response;If the state of the rechargeable card is the first shape
State, then according to the first user account carried in the mark of the rechargeable card and first inquiry response, once adopted before inquiry
When being supplemented with money with the rechargeable card for first user account, if successfully supplemented with money for first user account, described first
When user account once uses the rechargeable card for before, the state for causing the rechargeable card is the user of the first state
Account.
Transmitter 73, if for once using the rechargeable card before the Query Result instruction of the processor 72 inquiry as institute
State the first user account to supplement with money unsuccessfully, then the mark and second user account for carrying the rechargeable card are sent to OCS equipment
First charging request, so that the OCS equipment uses the rechargeable card to be supplemented with money for second user account.
Wherein, the first state is response timeout state and unlocks any one in timeout mode;The response is super
When state be it is preceding once use the rechargeable card to be supplemented with money for first user account when, from the OCG to the OCS equipment
Send the second charging request to start, after the first preset time, the OCG does not receive second that the OCS equipment is sent and filled
During value response, the state of the time-out locking residing for the rechargeable card recorded in the VC equipment;It is described unblock timeout mode be
It is preceding once use the rechargeable card to be supplemented with money for first user account when, from the VC equipment to the OCG send second
Inquiry response starts, and after the second preset time, the VC equipment does not receive set instruction or unblock from the OCG
During instruction, the state of the time-out locking residing for the rechargeable card recorded in the VC equipment, second inquiry response is use
In the response message of the second inquiry request of the state for inquiring about the rechargeable card.
In embodiments of the present invention, receiver 71, processor 72 are connected by bus with transmitter 73 and completed each other
Communication.
Wherein, bus can be industry standard architecture (Industry Standard Architecture, ISA)
Always, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extension Industry Standard Architecture
Structure (Extended Industry Standard Architecture, EISA) bus etc..It is total that the bus can be divided into address
Line, data/address bus, controlling bus etc..For ease of representing, only represented in Fig. 9 with a thick line, it is not intended that only one total
Line or a type of bus.
Processor 72 can be central processing unit (Central Processing Unit, CPU), or CPU, number
Control chip (such as base band core in word signal processor (Digital Signal Processor, DSP) and communication unit
Piece) combination.In embodiments of the present invention, CPU can be single arithmetic core, can also include multioperation core.
Transmitter 73 and receiver 62 can be the device that wireless signal is sent and received by antenna, or other
The device that signal sends and receives interface is provided.
Further, as shown in Figure 10, in embodiments of the present invention, OCG can also include memory 74.Memory 74,
It can be used for storing the data such as mark and the second user account of the rechargeable card in the embodiment of the present invention.Memory 74, is additionally operable to
Batch processing code is stored, the program code is the program to be executed code of processor 72.Memory 74 can be OCG meter
Calculation machine storage medium, for example, memory 74 can be random access memory (Ramdom Access Memory, RAM), read-only storage
Device (Read-only Memory, ROM) and flash memory (Flash Memory) etc..It is only thick with one in Figure 10 for ease of representing
Line represents, it is not intended that an only bus or a type of bus.
Further, the transmitter 73, it is additionally operable to send the mark and described the of the rechargeable card to the OCS equipment
One user account, to cause the OCS equipment once to use the rechargeable card before being inquired about according to the mark of the rechargeable card
When, whether it is that first user account is successfully supplemented with money.
The receiver 71, it is additionally operable to receive the Query Result that the OCS equipment is sent.
Further, the transmitter 73, if it is previous to be additionally operable to the Query Result instruction that the processor 72 is inquired about
Secondary to use the rechargeable card as the first user account successful recharging, the OCG then sends the set to the VC equipment
Instruction.
Wherein, the set indicates to have used for indicating that the state of the rechargeable card is arranged to described by the VC equipment
State.
Further, in a kind of application scenarios of the embodiment of the present invention, the first state is the response timeout shape
State.
In this application scenarios, the transmitter 73, if being additionally operable to the Query Result that the processor 72 is inquired about
Instruction does not inquire the supplement record related to the mark of the rechargeable card and first user account, the OCG then to
The VC equipment sends the unblock instruction.
Wherein, the unblock instruction is used to indicate that the VC equipment does not make the state of the rechargeable card by being arranged to described
Use state.
Further, in another application scenarios of the embodiment of the present invention, the first state is the unblock time-out
State.
In this application scenarios, the transmitter 73, if being additionally operable to the Query Result that the processor 72 is inquired about
Instruction does not inquire the supplement record related to the mark of the rechargeable card and first user account, the OCG then to
The VC equipment sends first charging request, so that the OCS equipment uses the rechargeable card as the second user account
Number supplement with money.
Further, the transmitter 73, it is additionally operable to after the first charging request is sent to the OCS equipment,
It is if default described first since the transmitter 73 sends first charging request to the OCS equipment
After time, the receiver 71 receives first that the OCS equipment is sent when supplementing response with money, then is sent to the VC equipment super
When indicate, the time-out is indicated for indicating that the state of the rechargeable card is arranged to the response timeout shape by the VC equipment
State;
If since the transmitter 73 sends first charging request to the OCS equipment, the receiver 71 exists
In first preset time, receive that the OCS equipment is sent described first supplements response with money, and described first supplements response with money
Indicate that the OCS equipment uses the rechargeable card as the second user account successful recharging, then send institute to the VC equipment
Set instruction is stated, the set indicates to use shape for indicating that the state of the rechargeable card is arranged to described by the VC equipment
State;
If since the transmitter 73 sends first charging request to the OCS equipment, the receiver 71 exists
In first preset time, receive that the OCS equipment is sent described first supplements response with money, and described first supplements response with money
Indicate that the OCS equipment uses the rechargeable card to be supplemented with money unsuccessfully for the second user account, then send institute to the VC equipment
Unblock instruction is stated, the unblock instruction is used to indicate that the state of the rechargeable card is arranged to the unused shape by the VC equipment
State.
Further, the transmitter 73, it is additionally operable to receive that the VC equipment sends in the receiver 71 described the
Before one inquiry response, the first query messages are sent to the VC equipment, to cause the VC equipment according to the described first inquiry
The mark of the rechargeable card carried in message inquires about the state of the rechargeable card, and causes the VC equipment to record described first
Corresponding pass between the second user account and the second user account and the rechargeable card that are carried in query messages
System.
The transmitter 73, it is additionally operable to send second charging request to the OCS equipment.
The receiver 71, is additionally operable to receive that the OCS equipment is sent described second supplements response with money.
The transmitter 73, it is additionally operable to transmission second charging request from the transmitter 73 to the OCS equipment and opens
Begin, if after first preset time, the receiver 71 does not receive described second that the OCS equipment is sent and supplements sound with money
Should, then time-out instruction is sent to the VC equipment, the time-out is indicated for indicating the VC equipment by the shape of the rechargeable card
State is arranged to response timeout state by lock-out state.
It should be noted that in OCG provided in an embodiment of the present invention part functional module the specific descriptions side of may be referred to
Corresponding content in method embodiment, the present embodiment are no longer described in detail here.
OCG provided in an embodiment of the present invention, and in the prior art, due to network timeout, cause the state and reality of rechargeable card
Border recharging result, which is not consistent, to be compared, and in this programme, if network timeout, directly is not arranged to use by the state of rechargeable card
State or unused state, but there is provided by lock state to the intermediateness of use state or unused state-
First state (response timeout state or unblock timeout mode), then can solve due to network timeout, cause the shape of rechargeable card
The problem of state is not consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Embodiment 8
The embodiment of the present invention provides a kind of VC equipment, as shown in figure 11, including:Transmitter 81, receiver 82 and processor
83。
Transmitter 81, for sending inquiry response to On-line Control and charging gateway OCG, the inquiry response is for looking into
The response message of the inquiry request of the state of rechargeable card is ask, is carried in the inquiry response and supplements status information with money, it is described to supplement with money
Status information is used for the state for indicating the rechargeable card.
Receiver 82, the set instruction or unblock instruction sent for receiving the OCG.
Processor 83, it is additionally operable to send the inquiry response or the receiver from the transmitter 81 to the OCG
82, which receive the inquiry request that the OCG is sent, starts, if after the second preset time, the receiver 82 does not receive
The set instruction or unblock instruction that the OCG is sent, then the state of the rechargeable card is arranged to unlock timeout mode.
In embodiments of the present invention, transmitter 81, receiver 82 are connected by bus with processor 83 and completed each other
Communication.
Wherein, bus can be industry standard architecture (Industry Standard Architecture, ISA)
Always, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extension Industry Standard Architecture
Structure (Extended Industry Standard Architecture, EISA) bus etc..It is total that the bus can be divided into address
Line, data/address bus, controlling bus etc..For ease of representing, only represented in Figure 11 with a thick line, it is not intended that only one total
Line or a type of bus.
Processor 83, can be central processing unit (Central Processing Unit, CPU), or CPU, number
Control chip (such as base band core in word signal processor (Digital Signal Processor, DSP) and communication unit
Piece) combination.In embodiments of the present invention, CPU can be single arithmetic core, can also include multioperation core.
Transmitter 81 and receiver 82 can be the device that wireless signal is sent and received by antenna, or other
The device that signal sends and receives interface is provided.
Further, as shown in figure 12, in embodiments of the present invention, OCG can also include memory 84.Memory 84,
It can be used for storing the data such as mark and the second user account of the rechargeable card in the embodiment of the present invention.Memory 84, is additionally operable to
Batch processing code is stored, the program code is the program to be executed code of processor 83.Memory 84 can be OCG meter
Calculation machine storage medium, for example, memory 84 can be random access memory (Ramdom Access Memory, RAM), read-only storage
Device (Read-only Memory, ROM) and flash memory (Flash Memory) etc..It is only thick with one in Figure 12 for ease of representing
Line represents, it is not intended that an only bus or a type of bus.
VC equipment provided in an embodiment of the present invention, can send inquiry response to OCG, and inquiry response is to be supplemented with money for inquiring about
The response message of the inquiry request of the state of card, carry in inquiry response and supplement status information with money, supplement status information with money and be used to refer to
Show the state of the rechargeable card;Since sending inquiry response to OCG or receiving the inquiry request of OCG transmissions, if
After the second preset time, set instruction or unblock instruction that the OCG is sent are not received, then is set the state of rechargeable card
It is set to unblock timeout mode.
With in the prior art, due to network timeout, causing the state of rechargeable card compared with actual recharging result is not consistent,
In this programme, if network timeout, the state of rechargeable card is not directly arranged to use state or unused state, but
There is provided the intermediateness by locking state to use state or unused state-unblock timeout mode, then can solve
Due to network timeout, the problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Embodiment 9
The embodiment of the present invention provides a kind of charging system based on rechargeable card, as shown in figure 13, including:OCG 91, VC are set
Standby 92 and OCS equipment 93.
Wherein, OCG 91, operation is supplemented with money below based on rechargeable card for performing:
After the first inquiry response of the transmission of VC equipment 92 is received, state is supplemented with money according to what is carried in the first inquiry response
Information determines the state of rechargeable card, and the first inquiry response is the sound of the first inquiry request of the state for inquiring about the rechargeable card
Answer message;
If the state of rechargeable card is first state, OCG 91 then takes according in the mark of the rechargeable card and the first inquiry response
First user account of band, when once using the rechargeable card to be supplemented with money for the first user account before inquiry, if be the first user account
Successfully supplement with money, when the first user account once uses the rechargeable card for before, the state for causing the rechargeable card is first state
User account;
If the rechargeable card is once used to be supplemented with money unsuccessfully for the first user account before Query Result instruction, to OCS equipment 93
Transmission carry the mark of the rechargeable card and the first charging request of second user account so that the use of OCS equipment 93 this fill
Value card is supplemented with money for second user account.
Wherein, first state is response timeout state and unlocks any one in timeout mode.Response timeout state is
It is preceding once use rechargeable card to be supplemented with money for the first user account when, from OCG 91 to OCS equipment 93 send the second charging request open
Begin, after the first preset time, OCG 91 does not receive the second of the transmission of OCS equipment 93 when supplementing response with money, remembers in VC equipment 92
The state of time-out locking residing for the rechargeable card of record;Unblock timeout mode is once to use rechargeable card preceding as first user's account
When number supplementing with money, since VC equipment 92 sends the second inquiry response to the OCG 91, after the second preset time, VC equipment 92
When not receiving the set instruction or unblock instruction from OCG 91, the time-out residing for rechargeable card recorded in VC equipment 92 is locked
Fixed state, the second inquiry response are the response message of the second inquiry request of the state for inquiring about rechargeable card.
OCS equipment 93, for using rechargeable card to be supplemented with money for user account, it is responsible for the accounting management of user account.
VC equipment 92, for the state of management, value-charging card, the state of rechargeable card includes:Unused state, lock-out state,
One state and use state, first state are response timeout state and unlock any one in timeout mode.
Further, VC equipment 92, the time-out sent specifically for receiving OCG 91 indicates, will be supplemented with money according to time-out instruction
The state of card is arranged to response timeout state, and time-out is designated as since OCG 91 sends the second charging request to OCS equipment 93,
After the first preset time, if OCG 91 does not receive the second of the transmission of OCS equipment 93 when supplementing response with money, OCG 91 is to VC equipment
92 transmissions.
VC equipment 92, specifically for since VC equipment 92 sends the second inquiry response to OCG 91, when second is default
Between after, if VC equipment 92 do not receive from OCG 91 set instruction or unblock instruction, the state of rechargeable card is set
Unblock timeout mode is set to, the second inquiry response is the response message of the second inquiry request of the state for inquiring about rechargeable card.
It should be noted that in the charging system provided in an embodiment of the present invention based on rechargeable card part functional module tool
Body description may be referred to the corresponding content in embodiment of the method, and the present embodiment is no longer described in detail here.
Charging system provided in an embodiment of the present invention based on rechargeable card, with the prior art, due to network timeout, causing
The state of rechargeable card is not compared with actual recharging result is consistent, in this programme, if network timeout, not directly by rechargeable card
State is arranged to use state or unused state, but there is provided by locking state to use state or being not used
Intermediateness-first state (response timeout state or unblock timeout mode) of state, then can solve due to network timeout,
The problem of causing the state of rechargeable card not to be consistent with actual recharging result.
Also, before using rechargeable card to be supplemented with money for user account (second user account), OCG can inquire about rechargeable card
State, and when the state of rechargeable card is first state, it is determined that once using rechargeable card preceding as user account (first user's account
Family) when supplementing with money, network timeout be present;Now, OCG once uses whether rechargeable card supplements with money into for the first user account before then judging
Work(, and only it is preceding once use rechargeable card to be supplemented with money unsuccessfully for the first user account when, just to OCS equipment send carry rechargeable card
Mark and second user account the first charging request, can so that OCS equipment uses rechargeable card to be supplemented with money for second user account
To reduce the economic loss of user or rechargeable card operator.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description
It is convenient and succinct, can as needed will be upper only with the division progress of above-mentioned each functional module for example, in practical application
State function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete
All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before may be referred to
The corresponding process in embodiment of the method is stated, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.