Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of self-help payment system based on Browser/Server structure, and to reach the object that reduces length money phenomenon and can get rid of length money fault, technical scheme is as follows:
A self-help payment system based on Browser/Server structure, comprising:
Data interaction server, for receiving and store end message and the user profile being sent by Web server, in definite described end message and described user profile legal in the situation that, for current fee payment service distributes unique pay the fees serial number storage, send described unique serial number of paying the fees to Web server, and the request of paying the fees that Web server is sent is processed;
Web server, for the corresponding relation of described unique pay the fees serial number and described end message, described user profile is sent to local support module, and send service requesting information and receive service response information, from described service response information, obtain the record of inserting coins, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees;
Local support module, the service requesting information that is used for forwarding Web server is to third party's hardware platform, and in local daily record, record the service request corresponding relation of described unique pay the fees serial number and end message, user profile, service requesting information, forward the service response information of third party's hardware platform feedback to Web server, and in local data base and local daily record, recording the service response corresponding relation of described unique pay the fees serial number and end message, user profile, service response information, described service response information comprises the record of inserting coins;
Web browser, to Web server, receives service requesting information display business response message interface for transmitting terminal information and user profile;
Third party's hardware platform, for receiving and process service request corresponding to described service requesting information, and feeds back service response information.
Preferably, when described data interaction server is processed for the request of paying the fees that Web server is sent, comprising:
Described data interaction server, for in the situation that unique pay the fees serial number and described end message, the described user profile coupling of inserting coins and recording that described unique in corresponding relation pays the fees serial number and described end message, described user profile and the current fee payment service stored is corresponding of the request of paying the fees that verification Web server sends, pay the fees described in submission and ask to peripheral system bill payment server.
Preferably, described service requesting information comprises:
Start to process insert coins service requesting information, stop the service requesting information of inserting coins, described in stop inserting coins service requesting information for stopping receiving the submission record of inserting coins;
Described service response information comprises: start to process the service response information of inserting coins, the process of inserting coins service response information, submit service response information to, wherein saidly start to process the service response information correspondence of inserting coins and start to process the service requesting information of inserting coins, described submission service response information comprises submits the record of inserting coins to.
Preferably, at described local support module, after the service requesting information that stops inserting coins described in forwarding, also comprise:
Described local support module, after the default duration of time delay, stops receiving submission that third party's hardware platform the sends record of inserting coins.
Preferably, when described local support module is being submitted to described submission to insert coins to record unsuccessfully, also comprise:
Described local support module, for resubmiting the record of inserting coins that is stored in local data base to described data interaction server.
A method, comprising:
By Web browser transmitting terminal information and user profile to Web server;
By data interaction server, receive and storage terminal information and user profile, in definite described end message and described user profile legal in the situation that, for current fee payment service distributes unique pay the fees serial number storage, send described unique serial number of paying the fees to Web server, described end message and user profile are sent by Web server;
By Web server, the corresponding relation of described unique pay the fees serial number and described end message, described user profile is sent to local support module;
By Web browser, send service requesting information to Web server;
By Web server, send service requesting information to local support module;
The service requesting information that forwards Web server by local support module is to third party's hardware platform, and in local daily record, records the service request corresponding relation of described unique pay the fees serial number and end message, user profile, service requesting information;
By third party's hardware platform, receive and process service request corresponding to described service requesting information, and feed back service response information, described service response information comprises the record of inserting coins;
The service response information that forwards described third party's hardware platform feedback by local support module is to Web server, and in local data base and local daily record, records the service response corresponding relation of described unique pay the fees serial number and end message, user profile, service response information;
By Web server, receive service response information, from described service response information, obtain the record of inserting coins, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees;
By Web browser display business response message interface;
By data interaction server, the described request of paying the fees is processed.
Preferably, described the described request of paying the fees processed and comprised:
In the situation that inserting coins in the request of paying the fees that verification Web service district sends records that described unique in corresponding relation pays the fees serial number and described end message, described user profile and the current fee payment service stored is corresponding, unique serial number and described end message, described user profile of paying the fees matches, and pays the fees described in submission and asks to peripheral system bill payment server.
Preferably, described service requesting information comprises:
Start to process insert coins service requesting information, stop the service requesting information of inserting coins, described in stop inserting coins service requesting information for stopping receiving the submission record of inserting coins;
Described service response information comprises: start to process the service response information of inserting coins, the process of inserting coins service response information, submit service response information to, wherein saidly start to process the service response information correspondence of inserting coins and start to process the service requesting information of inserting coins, described submission service response information comprises submits the record of inserting coins to.
Preferably, after the service requesting information that stops inserting coins described in forwarding by local support module, also comprise: after the default duration of time delay, stop receiving submission that third party's hardware platform the sends record of inserting coins.
Preferably, described in submitting to, pay the fees the in the situation that of asking to data interaction server failure, also comprise: by local support module, the inserting coins record being stored in local data base is resubmited to described data interaction server.
Compared with prior art, the application's beneficial effect is:
In this application, self-help payment system comprises data interaction server, Web server, local support module, Web browser and third party's hardware platform, wherein Web server is for being sent to local support module by the corresponding relation of described unique pay the fees serial number and described end message, described user profile, and send service requesting information and receive service response information, from described service response information, obtain the record of inserting coins, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees.
Therefore Web server and third party's hardware platform are undertaken alternately by local support module, service requesting information and service response message all have record in local support module, in system, break down or Network Abnormal can not normally be submitted to and inserts coins be recorded to data interaction server in the situation that, can in local support module, find the record of inserting coins accordingly, the record of inserting coins finding is recorded in to data interaction server again, can reduces length money phenomenon.Owing to recording the corresponding record of inserting coins in local support module, therefore can find the reason that length money phenomenon occurs, after finding the reason that length money occurs, after being recorded in to data interaction server, corresponding the inserting coins of the reason of generation can get rid of length money fault.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The application provides a kind of self-help payment system based on Browser/Server structure, comprise data interaction server, for receiving and store end message and the user profile being sent by Web server, in definite described end message and described user profile legal in the situation that, for current fee payment service distributes unique pay the fees serial number storage, send described unique serial number of paying the fees to Web server, and the request of paying the fees that Web server is sent is processed; Web server, for the corresponding relation of described unique pay the fees serial number and described end message, described user profile is sent to local support module, and send service requesting information and receive service response information, from described service response information, obtain the record of inserting coins, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees; Local support module, the service requesting information that is used for forwarding Web server is to third party's hardware platform, and in local daily record, record the service request corresponding relation of described unique pay the fees serial number and end message, user profile, service requesting information, forward the service response information of third party's hardware platform feedback to Web server, and in local data base and local daily record, recording the service response corresponding relation of described unique pay the fees serial number and end message, user profile, service response information, described service response information comprises the record of inserting coins; Web browser, to Web server, receives service requesting information display business response message interface for transmitting terminal information and user profile; Third party's hardware platform, for receiving and process service request corresponding to described service requesting information, and feeds back service response information.Lower a kind of self-help payment system based on Browser/Server structure of enumerating embodiment the application being provided is elaborated.
An embodiment
Refer to Fig. 1, it shows a kind of structural representation of a kind of self-help payment system based on Browser/Server structure that the application provides, and the self-help payment system based on Browser/Server structure comprises: data interaction server 11, Web server 12, local support module 13, Web browser 14 and third party's hardware platform 15.Wherein:
Data interaction server 11, for receiving and store end message and the user profile being sent by Web server 12, in definite described end message and described user profile legal in the situation that, for current fee payment service distributes unique pay the fees serial number storage, send described unique serial number of paying the fees to Web server 12, and the request of paying the fees that Web server 12 is sent is processed.
In the present embodiment, when data interaction server 11 is processed in the request of paying the fees that Web server 12 is sent, in the situation of inserting coins in the request of paying the fees that data interaction server 11 sends specifically for verification Web server 12 records that described unique in corresponding relation pays the fees serial number and described end message, described user profile and the current fee payment service stored is corresponding unique pay the fees serial number and described end message, described user profile coupling, pay the fees described in submission and ask to peripheral system bill payment server.
Web server 12, for the corresponding relation of described unique pay the fees serial number and described end message, described user profile is sent to local support module 13, and send service requesting information and receive service response information, from described service response information, obtain the record of inserting coins, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees.
In the present embodiment, service requesting information comprises: start to process the service requesting information of inserting coins, stop the service requesting information of inserting coins.Wherein, stop inserting coins service requesting information for stopping receive submitting to the record of inserting coins.
Service requesting information is sent by Web browser.Web server, after receiving service requesting information, sends service requesting information to local support module 13.
Service response information comprises: start to process the service response information of inserting coins, the process of inserting coins service response information, submit service response information to, wherein saidly start to process the service response information correspondence of inserting coins and start to process the service requesting information of inserting coins, described submission service response information comprises submits the record of inserting coins to.
The process of inserting coins service response information at least comprises: detect that user inserts coins, hardware platform is being known coin, bank note can not be exited bank note by hardware platform identification of hardware platform, hardware platform is known coin and successfully bank note moved into cash box.
Submit to service response information to include and submit the record of inserting coins to.
In the present embodiment, Web server 12 receives after service response information, service response information is sent to Web browser and shows.For example, in the process of the inserting coins service response information that, Web server 12 receives detect user inserting coins corresponding in Web browser the page show and " insert coins.。。", the page shows " inserts coins.。。" time, the button of can cancellation inserting coins is set to unavailable or hiding.
Local support module 13, the service requesting information that is used for forwarding Web server 12 is to third party's hardware platform 15, and in local daily record, record the service request corresponding relation of described unique pay the fees serial number and end message, user profile, service requesting information, forward the service response information of third party's hardware platform 15 feedbacks to Web server 12, and in local data base and local daily record, recording the service response corresponding relation of described unique pay the fees serial number and end message, user profile, service response information, described service response information comprises the record of inserting coins.
In the present embodiment, local support module 13 can forward starting to process and inserting coins service requesting information and stop inserting coins service requesting information to third party's hardware platform 15 of Web server 12, and in local daily record, record respectively unique pay the fees serial number and end message, user profile, start to process the service requesting information of inserting coins start the insert coins service request corresponding relation of inserting coins that stops of service request corresponding relation and unique pay the fees serial number and end message, user profile, the service requesting information that stops inserting coins of processing.
What local support module 13 can forward respectively third party's hardware platform 15 feedbacks starts to process insert coins service response information or the process service response information or submit to service response information to Web server 12 of inserting coins, and in local data base and local daily record, record respectively unique serial number and end message of paying the fees, user profile, start to process insert coins service response information start to process the service response corresponding relation of inserting coins, unique serial number and end message of paying the fees, user profile, the process of the inserting coins service response corresponding relation of the process of inserting coins service response information and unique serial number and end message of paying the fees, user profile, submit the submission service response corresponding relation of service response information to.
Local support module 13 is when forwarding stops inserting coins service requesting information, and self-help payment system also comprises: local support module 13, after the default duration of time delay, stops receiving submission that third party's hardware platform the sends record of inserting coins.After the default duration of local support module 13 time delays, stop receiving former because: receiving while stopping inserting coins service requesting information, may there is uncompleted receipts coin flow process in third party's hardware platform, prevent from submitting to the record of inserting coins to receive mistakes and omissions.Wherein, default duration can be set to any one numerical value in 5~10 seconds.
In the present embodiment, local support module 13 is inserted coins and is recorded to Web server when failure in submission, and local support module can also resubmit the inserting coins record being stored in local data base to data interaction server 11.
Because local support module records the service request corresponding relation of unique pay the fees serial number and end message, user profile, service requesting information in local daily record, therefore when needed, can in local daily record, inquire unique serial number of paying the fees, end message, user profile and the service requesting information of this fee payment service.
Because local support module records the service response corresponding relation of unique pay the fees serial number and end message, user profile, service response information in local daily record and local data base, therefore in the situation that do not receive the record of inserting coins in service response information in data interaction server, can in local daily record or local data base, inquire the record of inserting coins in service response information according to unique serial number or end message or user profile of paying the fees, to reduce the generation of length money phenomenon.
Web browser 14, to Web server 12, receives service requesting information display business response message interface for transmitting terminal information and user profile.
Web browser 14 is when starting fee payment service, and end message and user profile that current fee payment service is corresponding are sent to Web server 12.At fee payment service, carry out in process, Web browser 14 receives service requesting information, and service requesting information is sent to Web server 12, Web browser 14 is after receiving the service response information of Web server 12 transmissions, in interface, service response information is shown, concrete, Web browser 14 display business response message interfaces.
Third party's hardware platform 15, for receiving and process service request corresponding to described service requesting information, and feeds back service response information.
Third party's hardware platform 15 receives the service requesting information that local support module 13 forwards, and the service requesting information receiving is processed, and feeds back service response information to local support module 13.
The specific works process of the self-help payment system below the application being provided is set forth.
After fee payment service starts, Web browser transmitting terminal information and user profile are to Web server.Web server is sent to data interaction server by end message and user profile, data interaction server receives and storage terminal information and user profile, in definite end message and user profile legal in the situation that, for current fee payment service distributes unique serial number being stored in server database of paying the fees, send unique serial number of paying the fees to Web server, Web server is receiving unique paying the fees after serial number, and the corresponding relation of unique pay the fees serial number and end message, user profile is sent to local support module.Web browser sends the service requesting information of current fee payment service to Web server, and Web server is sent to local support module by service requesting information.Local support module forwarding service solicited message is to third party's hardware platform, and in local daily record, records the service request corresponding relation of unique pay the fees serial number and end message, user profile, service requesting information.Third party's hardware platform is after receiving service requesting information, process service request corresponding to service requesting information, and the service response information that feedback includes the record of inserting coins is to local support module, local support module forwarding service response message is to Web server, and in local data base and local daily record, records the service response corresponding relation of unique pay the fees serial number and end message, user profile, service response information.Web server is sent to Web browser by service response information, Web browser display business response message interface.
In this application, self-help payment system comprises data interaction server, Web server, local support module, Web browser and third party's hardware platform, wherein local support module is used for described unique serial number and described end message of paying the fees, the corresponding relation of described user profile is sent to local support module, and send service requesting information and receive service response information, from described service response information, obtain the record of inserting coins, by described unique serial number and end message of paying the fees, user profile, the inserting coins of record of inserting coins recorded corresponding relation and is packaged as the request of paying the fees.
Therefore Web server and third party's hardware platform are undertaken alternately by local support module, service requesting information and service response message all have record in local support module, in system, break down or Network Abnormal can not normally be submitted to and inserts coins be recorded to data interaction server in the situation that, can in local support module, find the record of inserting coins accordingly, the record of inserting coins finding is recorded in to data interaction server again, can reduces length money phenomenon.Owing to recording the corresponding record of inserting coins in local support module, therefore can find the reason that length money phenomenon occurs, after finding the reason that length money occurs, after being recorded in to data interaction server, corresponding the inserting coins of the reason of generation can get rid of length money fault.
Another embodiment
Embodiment is corresponding with said system, and the application provides a kind of self-help charging method, refers to Fig. 2, and Fig. 2 shows a kind of flow chart of a kind of self-help charging method that the application provides, and can comprise the following steps:
Step S21: by Web browser transmitting terminal information and user profile to Web server.
Step S22: receive and storage terminal information and user profile by data interaction server, in definite described end message and described user profile legal in the situation that, for current fee payment service distributes unique pay the fees serial number storage, send described unique serial number of paying the fees to Web server, described end message and user profile are sent by Web server.
Step S23: the corresponding relation of described unique pay the fees serial number and described end message, described user profile is sent to local support module by Web server.
Step S24: send service requesting information to Web server by Web browser.
In the present embodiment, service requesting information comprises: start to process the service requesting information of inserting coins, stop the service requesting information of inserting coins.Wherein, stop inserting coins service requesting information for stopping receive submitting to the record of inserting coins.
Step S25: send service requesting information to local support module by Web server.
Step S26: the service requesting information that forwards Web server by local support module is to third party's hardware platform, and in local daily record, record the service request corresponding relation of described unique pay the fees serial number and end message, user profile, service requesting information.
Step S27: receive and process service request corresponding to described service requesting information by third party's hardware platform, and feed back service response information, described service response information comprises the record of inserting coins.
Service response information comprises: start to process the service response information of inserting coins, the process of inserting coins service response information, submit service response information to, wherein saidly start to process the service response information correspondence of inserting coins and start to process the service requesting information of inserting coins, described submission service response information comprises submits the record of inserting coins to.
The process of inserting coins service response information at least comprises: detect that user inserts coins, hardware platform is being known coin, bank note can not be exited bank note by hardware platform identification of hardware platform, hardware platform is known coin and successfully bank note moved into cash box.
Submit to service response information to include and submit the record of inserting coins to.
Step S28: the service response information that forwards described third party's hardware platform feedback by local support module is to Web server, and in local data base and local daily record, record the service response corresponding relation of described unique pay the fees serial number and end message, user profile, service response information.
Step S29: receive service response information by Web server, obtain the record of inserting coins from described service response information, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees.
Step S210: by Web browser display business response message interface.
Step S211: the described request of paying the fees is processed by data interaction server.
In the present embodiment, to paying the fees, the process processed of request can be: in the situation that inserting coins in the request of paying the fees that verification Web service district sends records that described unique in corresponding relation pays the fees serial number and described end message, described user profile and the current fee payment service stored is corresponding, unique serial number and described end message, described user profile of paying the fees matches, and pays the fees described in submission and asks to peripheral system bill payment server.
In said method step, included the stopping of service requesting information that forwards Web server by local support module inserted coins after service requesting information, after the default duration of local support module time delay, stop receiving submission that third party's hardware platform the sends record of inserting coins.
Another embodiment
In the present embodiment, expand another kind of self-help charging method on the basis of a kind of self-help charging method shown in Fig. 2, detailed process refers to Fig. 3.The another kind of flow chart of a kind of self-help charging method that wherein Fig. 3 provides for the application, can comprise the following steps:
Step S31: by Web browser transmitting terminal information and user profile to Web server.
Step S32: receive and storage terminal information and user profile by data interaction server, in definite described end message and described user profile legal in the situation that, for current fee payment service distributes unique pay the fees serial number storage, send described unique serial number of paying the fees to Web server, described end message and user profile are sent by Web server.
Step S33: the corresponding relation of described unique pay the fees serial number and described end message, described user profile is sent to local support module by Web server.
Step S34: send service requesting information to Web server by Web browser.
Step S35: send service requesting information to local support module by Web server.
Step S36: the service requesting information that forwards Web server by local support module is to third party's hardware platform, and in local daily record, record the service request corresponding relation of described unique pay the fees serial number and end message, user profile, service requesting information.
Step S37: receive and process service request corresponding to described service requesting information by third party's hardware platform, and feed back service response information, described service response information comprises the record of inserting coins.
Step S38: the service response information that forwards described third party's hardware platform feedback by local support module is to Web server, and in local data base and local daily record, record the service response corresponding relation of described unique pay the fees serial number and end message, user profile, service response information.
Step S31, step S32, step S33, step S34, step S35, step S36, step S37 and step S38 are identical with step S28 with step S21, step S22, step S23, step S24, step S25, step S26, step S27 in the self-help charging method shown in Fig. 2, do not repeat them here.
Step S39: pay the fees ask to data interaction server failure in the situation that in submission, by local support module, the inserting coins record being stored in local data base is resubmited to data interaction server.
In submission, pay the fees and ask to data interaction server failure, by local support module, the record of inserting coins being stored in local data base is resubmited to data interaction server, data interaction server receives the record of inserting coins, and carries out respective handling, to reduce the generation of length money phenomenon.
Step S310: receive service response information by Web server, obtain the record of inserting coins from described service response information, described unique pay the fees serial number and end message, user profile, the inserting coins of record of inserting coins are recorded to corresponding relation and be packaged as the request of paying the fees.
Step S311: by Web browser display business response message interface.
Step S312: the described request of paying the fees is processed by data interaction server.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
A kind of self-help payment system and the method based on Browser/Server structure above the application being provided is described in detail, applied specific case herein the application's principle and execution mode are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.