Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defective at prior art, a kind of network fee deduction treatment method and system are provided, it can be implemented under the situation that the long-range server of deducting fees can't connect, still can finish transaction and deduction corresponding cost, improved trading efficiency, provided users with the convenient.
The technical scheme that technical solution problem of the present invention is adopted is as follows:
A kind of network fee deduction treatment method wherein, comprising:
A, receive user's operation selection instruction, need the product information bought to obtain, and whether checking is connected normally with the long-range server of deducting fees;
B, when judging can't be connected with the long-range server of deducting fees the time, then deduction is consumed in the account formation data storehouse in the local account managed storage module of presetting according to local client, to finish transaction; Described local account managed storage module and the described long-range server sync operation of deducting fees are used to write down the accounts information with the simultaneous user;
C, be connected just often with the long-range server of deducting fees, then connect the long-range server of deducting fees and normally deduct fees, and upgrade the account data of described local account managed storage module stores when judging.
Described network fee deduction treatment method, wherein, described local account managed storage module and the described long-range server sync operation of deducting fees specifically are: comprise client and the long-range server end account balance data of deducting fees synchronously, with information-setting by user, user's purchase product information.
Described network fee deduction treatment method, wherein, described step B also comprises:
B1, after consuming deduction by the account formation data storehouse in the local account managed storage module and finishing transaction, detect in real time and whether reconnect normally with the long-range server of deducting fees;
B2, reconnect just often, then the accounts information data sync of local account managed storage module is normally deducted fees to the long-range server of deducting fees when judging with the long-range server of deducting fees.
Described network fee deduction treatment method, wherein, when having a plurality of client,
Described steps A also comprises: A1, when need are bought networking products, select the networking products of appointment to buy the ID and the encrypted message of network store platform validation client by local client logging in network store platform and the operation that receives the user;
Described step B also comprises: B1, after checking is passed through, judge whether to surpass the Spending Limit of distributing to each client, if do not surpass this Spending Limit, then the consumption deduction is carried out in the account formation data storehouse in the local account managed storage module of local client, to finish transaction, continue consumption otherwise refuse client.
Described network fee deduction treatment method, wherein: reconnect just often when judging, also comprise with the long-range server of deducting fees:
The ID and the encrypted message of the long-range server authentication client of deducting fees;
After checking is passed through, obtain the affiliated server end accounts information of this ID clients corresponding;
Obtain the consumption amount of this ID clients corresponding, deduct this consumption amount at server end;
Judge under this server end account each client all on-line whether under it, if all on-line then the consumption amount of each client synchronously.
Described network fee deduction treatment method, wherein: described step is obtained the consumption amount of client, also comprises before server end deducts this consumption amount:
The authority of other client update service device client informations under the account of lock server end until the described consumption amount of obtaining client, deducts this consumption amount at server end and finishes.
A kind of network fee deduction treatment system wherein, comprises at least one local client, and the long-range server of deducting fees that is connected with local client;
Described local client comprises:
Receiver module is used to receive user's operation selection instruction, needs the product information bought to obtain;
Local account managed storage module is used for the accounts information of recording user, and with the long-range server sync operation of deducting fees; Normally be connected when detecting, then client terminal local data of database and the long-range data in server of deducting fees carried out synchronously with the long-range server of deducting fees;
Whether authentication module when the user buys networking products, is used for checking and normally is connected with the long-range server of deducting fees;
The domestic transaction module is used for then enabling local account managed storage module, and consuming deduction according to the account formation data storehouse in the local account managed storage module, to finish transaction when judgement can't be connected with the long-range server of deducting fees;
The described long-range server of deducting fees is used for the networking products that the user the buys management of deducting fees.
Described network fee deduction treatment system, wherein, described client also comprises:
The initial log administration module is used for behind the platform of each logging in network store account formation data storehouse in the client terminal local account management memory module and the long-range data in server of deducting fees being carried out synchronously.
Described network fee deduction treatment system, wherein, described client also comprises:
The remote transaction module is used for being connected just often with the long-range server of deducting fees when judging, then connects the long-range server of deducting fees and normally deducts fees, and upgrade local data base.
Described network fee deduction treatment system, wherein, described client also comprises:
The domestic transaction detection module, be used for when consume by the account formation data storehouse in the local account managed storage module deduction finish transaction after, detect the long-range server of deducting fees in real time and whether reconnect normally; When being, with the data sync of local data base to the long-range server of deducting fees.
Network fee deduction treatment method and system provided by the present invention increase a local account managed storage module of moving with the long-range server sync of deducting fees owing to adopted at local client, are used for the accounts information of recording user; When need are bought networking products, select the networking products of appointment to buy by local client logging in network store platform and the operation that receives the user, select to finish then the authenticating remote server of deducting fees and whether normally connect; When judgement can't be connected with the long-range server of deducting fees, then enable local account managed storage module, and consume deduction, to finish transaction according to the account formation data storehouse in the local account managed storage module; When normally be connected with the long-range server of deducting fees next time, with the data sync of local data base to the long-range server of deducting fees; It can be implemented under the situation that the long-range server of deducting fees can't connect, and still can finish transaction and deduction corresponding cost, has improved trading efficiency, provides users with the convenient.
Embodiment
The invention provides a kind of network fee deduction treatment method and system, clearer, clear and definite for making purpose of the present invention, technical scheme and advantage, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
A kind of network fee deduction treatment method that the embodiment of the invention provides as shown in Figure 1, mainly may further comprise the steps:
Step S110, receive user's operation selection instruction, need the product information bought to obtain, and whether checking is connected normally with the long-range server of deducting fees.For example need when buying commodity, network can login network store platform as the user.
Step S120, when judging can't be connected with the long-range server of deducting fees the time, then deduction is consumed in the account formation data storehouse in the local account managed storage module of presetting according to local client, to finish transaction; Described local account managed storage module and the described long-range server sync operation of deducting fees are used to write down the accounts information with the simultaneous user;
Step S130, be connected just often with the long-range server of deducting fees, then connect the long-range server of deducting fees and normally deduct fees, and upgrade the account data of described local account managed storage module stores when judging.
At least one local client of control moves with the long-range server sync of deducting fees in the embodiment of the invention, and is provided with local account managed storage module at local client, is used to write down the accounts information with the simultaneous user.For example can adopt in local account managed storage module local data base is set, come the various account signals of recording user, as transaction account information etc.The user after passing through client logging in network store platform at every turn, immediately account formation data storehouse in the client terminal local account management memory module and the long-range data in server of deducting fees are carried out synchronously, upgrade simultaneously to guarantee local data base and the long-range data in server of deducting fees.
Wherein said local account managed storage module and the described long-range server sync operation of deducting fees specifically are: comprise client and the long-range server end account balance data of deducting fees synchronously, with information-setting by user, user's purchase product information.
In the present embodiment, when the client buys networking products, select the networking products of appointment to buy, select to finish and whether the authenticating remote server of deducting fees normally connects by local client logging in network store platform and the operation that receives the user.
For example when the user need buy the QQ show, can local client login QQ Shoooow network store platform after the user chooses corresponding QQ show product, can be judged normally connect the long-range server of deducting fees.Be connected just often with the long-range server of deducting fees when judging, then connect the long-range server of deducting fees and normally deduct fees, and upgrade the interior account information database of synchronous local account managed storage module.
And when judgement can't be connected with the long-range server of deducting fees, then enable local account managed storage module, and consume deduction according to the account information database in the local account managed storage module, to finish transaction.
That is, the user network store platform buy commodity and the long-range server of deducting fees normally junction button is time-consuming, then can deduct fees by can finishing of embodiment of the invention setting with the local account managed storage module that the long-range server sync of deducting fees is moved.Consume deduction according to the account formation data storehouse in the default local account managed storage module of local client, to finish transaction, the user normally uses the networking products of purchase.
After consuming deduction by the account formation data storehouse in the local account managed storage module and finishing transaction, detect in real time and whether reconnect normally with the long-range server of deducting fees; Reconnect just often when judging, then the accounts information data sync of local account managed storage module is normally deducted fees to the long-range server of deducting fees, to finish deducting fees of the long-range server of deducting fees with the long-range server of deducting fees.Comprise client and the long-range server end account balance data of deducting fees synchronously, with information-setting by user, user's purchase product information.
Be connected just often with the long-range server of deducting fees when judging, then connect the long-range server of deducting fees and normally deduct fees, and upgrade the account data of local data base and client stores.
And may further comprise the steps when there are a plurality of clients in this locality and can not normally be connected to the server of deducting fees: A1, when need are bought networking products, select the networking products of appointment to buy the ID and the encrypted message of network store platform validation client by local client logging in network store platform and the operation that receives the user; B1, after checking is passed through, judge whether to surpass the Spending Limit of distributing to each client, if do not surpass this Spending Limit, then the consumption deduction is carried out in the account formation data storehouse in the local account managed storage module of local client, to finish transaction, continue consumption otherwise refuse client.Wherein, the consumption amount is the consumption amount that total account is distributed to each client.As two clients, the consumption amount of then giving tacit consent to each client is: service end full amount/2.
And have a plurality of clients and can not normally be connected to the server of deducting fees when this locality, after the consumption deduction was carried out in account formation data storehouse in the local account managed storage module of local client, reconnect just often with the long-range server of deducting fees again, also comprise:
The ID and the encrypted message of the long-range server authentication client of deducting fees;
After checking is passed through, obtain the affiliated server end accounts information of this ID clients corresponding;
Obtain the consumption amount of this ID clients corresponding, deduct this consumption amount at server end;
And when the corresponding accounts information of certain application of client is handled, the authority of other client update service device client informations under the account of need lock server end, until the described consumption amount of obtaining client, deduct this consumption amount at server end and finish.
Judge under this server end account each client all on-line whether under it, if all on-line then the consumption amount of each client synchronously.
Below, resource packet registration charge management method under the off-line state of the embodiment of the invention is described in further details by concrete Application Example.
201, beginning;
202, login network store platform;
203, at first synchronous local data base and the long-range server of deducting fees;
204, the operation that receives the user selects to buy the A product;
205, choose after commodity confirm, whether checking can connect the long-range server of deducting fees, and enters step 207 when being, enters step 206 when not.
206, promptly when connecting long-range deducting fees during server, consume deduction, enter step 208 according to local data base.
207, when normal connection is long-range when deducting fees server, then connects the long-range server of deducting fees and deduct the fee and upgrade data in the local data base, enter step 208.
208, select to use the A product;
209, finish.
Therefore, among the present invention on just can be after the logging in system by user at once the long-range server of deducting fees this user's information synchronization got off, need buy A QQ show such as the user, can judge and to connect the long-range server of deducting fees, if database not all right then that employing is local is deducted, finish transaction.As seen, the present invention can be implemented under the situation that the long-range server of deducting fees can't connect, and still can finish transaction and deduction corresponding cost, has improved trading efficiency, provides users with the convenient
Based on the foregoing description, the embodiment of the invention also provides a kind of network fee deduction treatment device, as shown in Figure 3, comprises local client 300, the long-range server 400 of deducting fees that is connected with local client 300; The described long-range server 400 of deducting fees is used for the networking products that the user the buys management of deducting fees.Local client 300 also is connected directly to each network store Platform Server, to carry out the purchase to each commodity.
Wherein, described local client 300 comprises:
Receiver module 301 is used to receive user's operation selection instruction, needs the product information bought to obtain.
Local account managed storage module 310, be used for the accounts information of recording user, and and the long-range server sync operation of deducting fees, normally be connected when detecting, then client terminal local data of database and the long-range data in server of deducting fees carried out synchronously with the long-range server of deducting fees; Specifically as mentioned above.
Authentication module 320, when the user buys networking products, whether be used for checking normally is connected with the long-range server of deducting fees, promptly when needing to buy networking products, select the networking products of appointment to buy by local client logging in network store platform and the operation that receives the user, select to finish then the authenticating remote server of deducting fees and whether normally connect; Specifically as mentioned above.
Domestic transaction module 330 is used for then enabling local account managed storage module, and consuming deduction according to the account formation data storehouse in the local account managed storage module, to finish transaction when judgement can't be connected with the long-range server of deducting fees; Specifically as mentioned above.
Initial log administration module 340 is used for behind the platform of each logging in network store account formation data storehouse in the client terminal local account management memory module and the long-range data in server of deducting fees being carried out synchronously; Specifically as mentioned above.
Remote transaction module 350 is used for being connected just often with the long-range server of deducting fees when judging, then connects the long-range server of deducting fees and normally deducts fees, and upgrade local data base; Specifically as mentioned above.
Domestic transaction detection module 360, be used for when consume by the account formation data storehouse in the local account managed storage module deduction finish transaction after, detect the long-range server of deducting fees in real time and whether reconnect normally; When being, with the data sync of local data base to the long-range server of deducting fees; Specifically as mentioned above.
In sum, network fee deduction treatment method and system provided by the present invention increase a local account managed storage module of moving with the long-range server sync of deducting fees owing to adopted at local client, are used for the accounts information of recording user; When need are bought networking products, select the networking products of appointment to buy by local client logging in network store platform and the operation that receives the user, select to finish then the authenticating remote server of deducting fees and whether normally connect; When judgement can't be connected with the long-range server of deducting fees, then enable local account managed storage module, and consume deduction, to finish transaction according to the account formation data storehouse in the local account managed storage module; When normally be connected with the long-range server of deducting fees next time, with the data sync of local data base to the long-range server of deducting fees; It can be implemented under the situation that the long-range server of deducting fees can't connect, and still can finish transaction and deduction corresponding cost, has improved trading efficiency, provides users with the convenient.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.