Method, system and apparatus for processing a transaction debit
By determining whether a transaction request is being submitted for the first time in the front-end application, and coordinating with the front-end and back-end servers after confirming that the information matches, the problem of inaccurate transaction deductions caused by the vulnerability of code to tampering has been solved, thus ensuring the accuracy of transaction deductions.
Patent Information
- Application Number
- CN202210785299.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2042-07-05
AI Technical Summary
In existing technologies, adding code to the front-end application to prevent multiple submissions for each transaction is easily tampered with, leading to inaccurate transaction deductions.
The front-end application determines whether the transaction request is the first submission. If it is confirmed to be the first submission, the hyperlinks in the transaction interface are restricted, and the transaction request is forwarded to the back-end server. The back-end server stores the transaction identifier and data, and executes the transaction deduction after confirming that the information matches.
It effectively prevents duplicate deductions and improves the accuracy of transaction deductions.
Smart Images

Figure CN115049394B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of financial technology, in particular to a transaction deduction processing method, a processing system and a processing device. BACKGROUND
[0002] Accounting is one of the most sensitive and important contents in financial institutions. In the process of transferring money and payment, if there is a problem of repeated payment deduction, it will cause great trouble to customers, and may also provide opportunities for some illegal personnel. Therefore, controlling transactions to prevent repeated account deduction is a very serious and important research topic.
[0003] The prior art generally controls by adding a code to prevent multiple submissions in each front-end application that submits a dynamic account transaction. However, the result may be sent to the front-end or the code may be tampered with to bypass the front-end control, and the repeated account deduction cannot be prevented comprehensively.
[0004] In the related art, the code to prevent multiple submissions is added in each front-end application that submits a dynamic account transaction to implement deduction control. However, the code is easy to tamper with, resulting in inaccurate transaction deduction. So far, no effective solution has been proposed. SUMMARY
[0005] The main purpose of the present application is to provide a transaction deduction processing method, a processing system and a processing device to solve the problem of inaccurate transaction deduction in the related art, which is caused by adding a code to prevent multiple submissions in each front-end application that submits a dynamic account transaction to implement deduction control.
[0006] In order to achieve the above object, according to one aspect of the present application, a transaction deduction processing method is provided. The method comprises: receiving a target transaction request submitted by a target object through a front-end application; determining whether the target transaction request is a first submission through the front-end application; if the target transaction request is a first submission, performing restriction processing on a hyperlink in a transaction interface, and forwarding the target transaction request to a back-end server, so as to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and send a transaction confirmation interface to the front-end application according to the target transaction request; judging whether a second transaction identifier in the confirmation information is the same as the first transaction identifier through the back-end server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the back-end server; if the second transaction identifier is the same as the first transaction identifier, performing transaction deduction according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application.
[0007] Further, the determination of whether the target transaction request is a first submission through the front-end application comprises: generating the transaction interface through the front-end application, and obtaining state information of the transaction interface; receiving the target transaction request submitted by the target object through the transaction interface; and determining whether the target transaction request is a first submission according to the state information of the transaction interface.
[0008] Further, the determination of whether the target transaction request is a first submission according to the state information of the transaction interface comprises: if the state information of the transaction interface is a first preset value, the target transaction request is a first submission; if the state information of the transaction interface is a second preset value, the target transaction request is not a first submission.
[0009] Further, before the restriction processing on the hyperlink in the transaction interface and the forwarding of the target transaction request to the back-end server, the method further comprises: changing the state information of the transaction interface to the second preset value.
[0010] Further, the limiting processing on the hyperlinks in the transaction interface includes: obtaining each hyperlink in the transaction interface; setting a link attribute of the each hyperlink as non-jumpable and setting a click trigger method of the each hyperlink as empty; obtaining a link address of the each hyperlink and converting the link address of the each hyperlink into a plurality of temporary variables; deleting the link address of the each hyperlink and setting a data link attribute for the each hyperlink; and storing the plurality of temporary variables into the data link attribute, so that the limiting processing on the each hyperlink is completed.
[0011] Further, after forwarding the target transaction request to the backend server, the method further includes: if a transaction modification instruction is received, then in response to the transaction modification instruction, changing state information of the transaction interface to the first preset value and removing the limitation on the hyperlinks in the transaction interface.
[0012] Further, removing the limitation on the hyperlinks in the transaction interface includes: if a link attribute of each hyperlink in the transaction interface is non-jumpable, then obtaining the plurality of temporary variables from the data link attribute and converting the plurality of temporary variables into the link address of the each hyperlink; and setting the link attribute of the each hyperlink as jumpable to remove the limitation on the hyperlinks in the transaction interface.
[0013] To achieve the above object, according to an aspect of the present application, a transaction deduction processing method is provided. The method includes: receiving, by a backend server, a target transaction request in the transaction deduction processing method; storing, by the backend server, a first transaction identifier and transaction data in the target transaction request into a session storage unit and sending a transaction confirmation interface to the front-end application according to the target transaction request; judging, by the backend server, whether a second transaction identifier in confirmation information is same as the first transaction identifier, wherein the confirmation information input by a target object is obtained in the transaction confirmation interface received by the front-end application and the confirmation information is sent to the backend server; and if the second transaction identifier is same as the first transaction identifier, executing transaction deduction according to the transaction data in the session storage unit.
[0014] Further, when executing transaction deduction according to the transaction data in the session storage unit includes: if it is detected that the transaction data has an error, triggering a transaction modification instruction, wherein the transaction modification instruction is used to indicate that state information of the transaction interface is changed to the first preset value and the limitation on the hyperlinks in the transaction interface is removed.
[0015] Further, after completing the deduction according to the transaction data in the session storage unit, the method further comprises: deleting the first transaction identification in the session storage unit and the transaction data in the session storage unit.
[0016] To achieve the above object, according to another aspect of the present application, a processing system for transaction deduction is provided. The system comprises: a front-end application program, configured to receive a target transaction request submitted by a target object, determine whether the target transaction request is a first submission, if the target transaction request is a first submission, limit a hyperlink in a transaction interface and forward the target transaction request to a back-end server, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application program; the back-end server, configured to receive the target transaction request sent by the front-end application program, store a first transaction identification and transaction data in the target transaction request into a session storage unit, and send a transaction confirmation interface to the front-end application program according to the target transaction request; determine whether a second transaction identification in the confirmation information is same as the first transaction identification, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the back-end server, if the second transaction identification is same as the first transaction identification, execute transaction deduction according to the transaction data in the session storage unit.
[0017] To achieve the above object, according to another aspect of the present application, a processing system for transaction deduction is provided. The system comprises: a front-end application program, configured to receive a target transaction request submitted by a target object, determine whether the target transaction request is a first submission, if the target transaction request is a first submission, limit a hyperlink in a transaction interface and forward the target transaction request to a back-end server, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application program; the back-end server, configured to receive the target transaction request sent by the front-end application program, store a first transaction identification and transaction data in the target transaction request into a session storage unit, and send a transaction confirmation interface to the front-end application program according to the target transaction request; determine whether a second transaction identification in the confirmation information is same as the first transaction identification, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the back-end server, if the second transaction identification is same as the first transaction identification, execute transaction deduction according to the transaction data in the session storage unit.
[0018] Further, the determining unit comprises: a generating module, configured to generate the transaction interface by the front-end application program and obtain state information of the transaction interface; a receiving module, configured to receive the target transaction request submitted by the target object through the transaction interface; and a judging module, configured to judge whether the target transaction request is the first submission according to the state information of the transaction interface.
[0019] Further, the judging module comprises: a first determining module, configured to determine that the target transaction request is the first submission if the state information of the transaction interface is a first preset value; and a second determining module, configured to determine that the target transaction request is not the first submission if the state information of the transaction interface is a second preset value.
[0020] Further, the device further comprises: a first changing unit, configured to change the state information of the transaction interface to the second preset value before limiting the hyperlinks in the transaction interface and forwarding the target transaction request to the back-end server.
[0021] Further, the limiting unit comprises: a first obtaining module, configured to obtain each hyperlink in the transaction interface; a first setting module, configured to set a link attribute of the each hyperlink to be not jumpable and set a click triggering device of the each hyperlink to be empty; a second obtaining module, configured to obtain a link address of the each hyperlink and convert the link address of the each hyperlink into a plurality of temporary variables; a deleting module, configured to delete the link address of the each hyperlink and set a data link attribute for the each hyperlink; and a storing module, configured to store the plurality of temporary variables into the data link attribute, so that the limiting of the each hyperlink is completed.
[0022] Further, the device further comprises: a second changing unit, configured to change the state information of the transaction interface to the first preset value and remove the limitation on the hyperlinks in the transaction interface in response to a transaction modification instruction if the transaction modification instruction is received after the target transaction request is forwarded to the back-end server.
[0023] Further, the second changing unit comprises: a third obtaining module, configured to obtain the plurality of temporary variables from the data link attribute and convert the plurality of temporary variables into the link address of the each hyperlink if the link attribute of the each hyperlink in the transaction interface is not jumpable; and a second setting module, configured to set the link attribute of the each hyperlink to be jumpable to remove the limitation on the hyperlinks in the transaction interface.
[0024] To achieve the above object, according to another aspect of the present application, a processing device for transaction deduction is provided. The device comprises: a second receiving unit configured to receive a target transaction request in any one of the processing methods for transaction deduction described above via a backend server; a storage unit configured to store a first transaction identifier and transaction data in the target transaction request into a session storage unit via the backend server, and send a transaction confirmation interface to the front-end application according to the target transaction request; a judging unit configured to judge whether a second transaction identifier in confirmation information is the same as the first transaction identifier via the backend server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the backend server; and an executing unit configured to execute transaction deduction according to the transaction data in the session storage unit if the second transaction identifier is the same as the first transaction identifier.
[0025] Further, the executing unit comprises a detection module configured to trigger a transaction modification instruction if it is detected that the transaction data has an error, wherein the transaction modification instruction is used to change the state information of the transaction interface to the first preset value, and remove the restriction on the hyperlink in the transaction interface.
[0026] Further, the device further comprises a deleting unit configured to delete the first transaction identifier in the session storage unit and the transaction data in the session storage unit after completing the deduction according to the transaction data in the session storage unit.
[0027] To achieve the above object, according to one aspect of the present application, a processor is provided, and the processor is used to run a program, wherein the program performs any one of the processing methods for transaction deduction described above when running.
[0028] To achieve the above object, according to one aspect of the present application, an electronic device is provided, and the electronic device comprises one or more processors and a memory, and the memory is used to store the one or more processors to implement any one of the processing methods for transaction deduction described above.
[0029] According to the application, the following steps are adopted: receiving a target transaction request submitted by a target object through a front-end application; determining whether the target transaction request is a first submission through the front-end application; if the target transaction request is a first submission, performing restriction processing on a hyperlink in a transaction interface, and forwarding the target transaction request to a back-end server to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and sending a transaction confirmation interface to the front-end application according to the target transaction request; determining whether the second transaction identifier and the first transaction identifier are the same through the back-end server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the back-end server; if the second transaction identifier and the first transaction identifier are the same, performing transaction deduction according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application, and the problem that the code is easy to tamper with, resulting in inaccurate transaction deduction in the related art by adding a code to prevent multiple submissions in each front-end application for submitting a dynamic transaction is solved. First, it is determined whether the target transaction request is a first submission in the front-end application, and when it is determined that it is a first submission, the hyperlink in the transaction interface is processed, and the target transaction request is forwarded to the back-end server, the back-end server stores the first transaction identifier and the transaction data into the session storage unit, after receiving the confirmation information of the target object, it is determined whether the second transaction identifier and the first transaction identifier in the confirmation information are the same, and in the case of being the same, the transaction deduction is performed, which is controlled from the front-end application and the back-end server respectively, so as to prevent the phenomenon of repeated deduction of accounts when the target object transacts, and thus the effect of improving the accuracy of transaction deduction is achieved. BRIEF DESCRIPTION OF DRAWINGS
[0030] The accompanying drawings, which form a part of this application, are included to provide a further understanding of the application and are incorporated in and constitute a part of this application. The embodiments of this application and their
[0031] Figure 1 is a flowchart of a processing method of transaction deduction according to an embodiment of the application; Figure One ;
[0032] Figure 2 is a flowchart of a processing method of transaction deduction according to an embodiment of the application; Figure Two ;
[0033] Figure 3 is a flowchart of an optional processing method of transaction deduction according to an embodiment of the application;
[0034] Figure 4is a schematic diagram of a transaction deduction processing system provided by an embodiment of the present application;
[0035] Figure 5 is a schematic diagram of a transaction deduction processing device one provided by an embodiment of the present application;
[0036] Figure 6 is a schematic diagram of a transaction deduction processing device two provided by an embodiment of the present application;
[0037] Figure 7 is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0038] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict. The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0039] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0040] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0041] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties. For example, an interface is provided between the system and the relevant user or institution. Before obtaining the relevant information, the interface needs to send a request to the aforementioned user or institution, and after receiving the consent information feedback from the aforementioned user or institution, the relevant information is obtained.
[0042] The application will be described in the following with reference to the preferred embodiments, Figure 1 is a flow of the processing method of transaction deduction provided by the embodiments of the application Figure One As shown in Figure 1 , the method comprises the following steps:
[0043] Step S101, receiving a target transaction request submitted by a target object through a front-end application program.
[0044] Step S102, determining whether the target transaction request is a first-time submission through the front-end application program.
[0045] Step S103, if the target transaction request is a first-time submission, limiting the hyperlinks in the transaction interface, and forwarding the target transaction request to a back-end server, so as to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and send a transaction confirmation interface to the front-end application program according to the target transaction request; judging whether a second transaction identifier in the confirmation information is the same as the first transaction identifier through the back-end server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the back-end server; if the second transaction identifier is the same as the first transaction identifier, executing transaction deduction according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application program.
[0046] Specifically, the application provides a processing method of transaction deduction, which is controlled from the front-end application program and the back-end server respectively, so as to prevent the phenomenon of repeated account deduction when the customer (i.e. the target object) transacts.
[0047] From the perspective of the front-end application program, the customer submits a target transaction request in the transaction interface of the front-end application program, the front-end application program judges whether it is a first-time submission, in the case of determining that it is a first-time submission, all hyperlinks in the transaction interface are limited, so as to prevent the repeated operation of the customer, and the target transaction request is sent to the back-end server.
[0048] In the case of determining that it is not a first-time submission, the front-end application program will pop up a prompt to prevent the transaction, because in the case of not being a first-time submission, there is a risk of repeated transaction.
[0049] After the backend server receives the target transaction request, the backend server stores the first transaction identification and the transaction data in the session control unit in the target transaction request. The backend server sends a transaction confirmation interface to the front-end application according to the target transaction request. The customer inputs confirmation information through the transaction confirmation interface, and then the front-end application sends the confirmation information to the backend server. The backend server judges whether the second transaction identification in the confirmation information is the same as the first transaction identification. If the second transaction identification is the same as the first transaction identification, the backend server completes the transaction deduction according to the transaction data.
[0050] In summary, first, the front-end application determines whether the target transaction request is the first submission. If it is determined that the target transaction request is the first submission, the hyperlinks in the transaction interface are limited and the target transaction request is forwarded to the backend server. The backend server stores the first transaction identification and the transaction data in the session storage unit. After receiving the confirmation information of the target object, the backend server judges whether the second transaction identification in the confirmation information is the same as the first transaction identification. If the second transaction identification is the same as the first transaction identification, the backend server executes the transaction deduction. The front-end application and the backend server are controlled respectively, so that the phenomenon of repeated account deduction in the transaction of the target object is prevented, and the accuracy of the transaction deduction is improved.
[0051] It is crucial to determine whether the target transaction request is the first submission. Therefore, in the transaction deduction processing method provided in the embodiments of the present application, the following method is used to determine whether the target transaction request is the first submission: generating a transaction interface by the front-end application and obtaining state information of the transaction interface; receiving the target transaction request submitted by the target object through the transaction interface; judging whether the target transaction request is the first submission according to the state information of the transaction interface. If the state information of the transaction interface is a first preset value, the target transaction request is the first submission. If the state information of the transaction interface is a second preset value, the target transaction request is not the first submission.
[0052] Specifically, the front-end application generates a transaction interface, and each transaction interface has corresponding state information. After receiving the target transaction request submitted by the customer (i.e., the target object described above), it is determined whether the target transaction request is the first submission according to the state information of the transaction interface.
[0053] If the state information of the transaction interface is a first preset value (for example, 0), the target transaction request is the first submission. If the state information of the transaction interface is a second preset value (for example, 1), the target transaction request is not the first submission.
[0054] The state information of each transaction interface is by default a first preset value. After receiving a target transaction request submitted by a client (i.e., the target transaction object) and determining that the target transaction request is submitted for the first time, the state information is immediately changed to a second preset value. This can effectively avoid repeated submission of the target transaction request, thereby improving the accuracy of transaction deduction.
[0055] To better control transaction deduction, in the transaction deduction processing method provided in the embodiments of the present application, the hyperlinks in the transaction interface are subjected to restriction processing, mainly including the following restriction contents: obtaining each hyperlink in the transaction interface; setting the link attribute of each hyperlink to be non-jumpable and setting the click trigger method of each hyperlink to be empty; obtaining the link address of each hyperlink and converting the link address of each hyperlink into a plurality of temporary variables; deleting the link address of each hyperlink and setting a data link attribute for each hyperlink; and storing the plurality of temporary variables into the data link attribute, thereby completing the restriction processing of each hyperlink.
[0056] Specifically, all hyperlinks in the transaction page are obtained, and each hyperlink is iterated: the link attribute (link attribute) of each hyperlink is set to be disabled (i.e., non-jumpable), the click trigger method (onclick method) of each hyperlink is set to be an empty method void, and the link address of each hyperlink is converted into a plurality of temporary variables (href) and then removed. Meanwhile, a data link attribute (data-link attribute) is set for each hyperlink, and the value of the data link attribute is the link address of the hyperlink, i.e., the temporary variable (href).
[0057] In summary, by restricting all hyperlinks in the transaction interface, the phenomenon of multiple triggering of the client to submit a transaction request can be effectively avoided, thereby improving the accuracy of transaction deduction.
[0058] During the execution of transaction deduction, transaction errors and client input of illegal information may occur. Therefore, in the transaction deduction processing method provided in the embodiments of the present application, after forwarding the target transaction request to the backend server, if a transaction modification instruction is received, the state information of the transaction interface is changed to the first preset value in response to the transaction modification instruction, and the restriction on the hyperlinks in the transaction interface is removed. If the link attribute of each hyperlink in the transaction interface is non-jumpable, a plurality of temporary variables are obtained from the data link attribute, and the plurality of temporary variables are converted into the link address of each hyperlink. The link attribute of each hyperlink is set to be jumpable, so as to remove the restriction on the hyperlinks in the transaction interface.
[0059] Specifically, when the transaction is problematic, a transaction modification instruction is triggered, and when the front-end application receives the transaction modification instruction, the state information of the transaction interface is changed to a first preset value, and the restriction on the hyperlinks in the transaction interface is removed, so that the customer can modify and resubmit the transaction information.
[0060] The removal of the restriction on all hyperlinks of the transaction interface mainly includes the following steps: traversing each hyperlink; if the link attribute of the hyperlink is disabled; reading the attribute value of the data-link of the link to obtain the link address of each hyperlink, and setting the link attribute (link attribute) of each hyperlink to be able to jump (able).
[0061] In summary, the above steps ensure that the transaction can be modified, and the success probability of submitting the transaction is improved.
[0062] The transaction deduction processing method provided by the embodiment of the application includes the following steps: receiving a target transaction request submitted by a target object through a front-end application; determining whether the target transaction request is a first submission through the front-end application; if the target transaction request is a first submission, limiting the hyperlinks in the transaction interface, and forwarding the target transaction request to a back-end server to store a first transaction identifier and transaction data in the target transaction request in a session storage unit through the back-end server, and sending a transaction confirmation interface to the front-end application according to the target transaction request; determining whether a second transaction identifier in the confirmation information is the same as the first transaction identifier through the back-end server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the back-end server; if the second transaction identifier is the same as the first transaction identifier, performing transaction deduction according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application, and the problem that the code is easy to tamper with in the related art, resulting in inaccurate transaction deduction is solved. First, it is determined whether the target transaction request is a first submission in the front-end application, and when it is determined that it is a first submission, the hyperlinks in the transaction interface are limited, and the target transaction request is forwarded to the back-end server. The back-end server stores the first transaction identifier and the transaction data in the session storage unit. After receiving the confirmation information of the target object, it is determined whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, and in the case of being the same, transaction deduction is performed. From the front-end application and the back-end server, it is controlled respectively, so as to prevent the phenomenon of repeated deduction of accounts when the target object transacts, and thus the effect of improving the accuracy of transaction deduction is achieved.
[0063] It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0064] Figure 2 is a flow of a processing method of transaction deduction provided according to an embodiment of the present application Figure Two As shown in Figure 2 , the method comprises the following steps:
[0065] Step S201, receiving a target transaction request through a backend server.
[0066] Step S202, storing a first transaction identifier and transaction data in the target transaction request into a session storage unit through the backend server, and sending a transaction confirmation interface to a front-end application according to the target transaction request.
[0067] Step S203, determining whether the second transaction identifier in the confirmation information is the same as the first transaction identifier through the backend server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the backend server.
[0068] Step S204, if the second transaction identifier is the same as the first transaction identifier, performing transaction deduction according to the transaction data in the session storage unit.
[0069] Specifically, steps S201-S204 are mainly for the execution steps of the backend server, and mainly include the following contents: in the case where the front-end application determines that it is the first time to submit, the target transaction request will be sent to the backend server, and after the backend server receives the target transaction request, the first transaction identifier and the transaction data (also called transaction elements) in the target transaction request are stored into the session storage unit. Then according to the target transaction request, a transaction confirmation interface is sent to the front-end application. For example, the transaction confirmation interface here can include the following contents: transaction amount, payment method, commission and other information.
[0070] The customer confirms whether the information of the transaction confirmation interface through the front-end application is accurate, and inputs the confirmation information in the case where there is no problem. It should be noted that when confirming the transaction information, the customer may need to be authenticated, for example, inputting a payment password and a payment fingerprint, etc. The front-end application will send the confirmation information to the backend server again.
[0071] The backend server compares the second transaction identifier in the confirmation information with the first transaction identifier in the session storage unit, and if the first transaction identifier and the second transaction identifier are consistent, executes the transaction deduction according to the transaction data in the session storage unit. If the first transaction identifier and the second transaction identifier are not the same, it indicates that there is a repeated submission of the transaction request, and error processing is performed to avoid the phenomenon of repeated deduction.
[0072] In summary, through the above steps, the repeated submission and account deduction problem caused by various reasons can be accurately blocked, and the accuracy of transaction deduction is improved.
[0073] During the execution of the transaction deduction, transaction errors, customer input illegal, and the like may inevitably occur. Therefore, when executing the transaction deduction according to the transaction data in the session storage unit, if it is detected that the transaction data has an error, a transaction modification instruction is triggered, wherein the transaction modification instruction is used to indicate that the state information of the transaction interface is changed to a first preset value, and the restriction on the hyperlink in the transaction interface is removed.
[0074] Specifically, when the backend server executes the transaction deduction, it detects that the transaction data has an error, and triggers the transaction modification instruction, which is used to indicate that the state information of the transaction interface is changed to a first preset value, and the restriction on the hyperlink in the transaction interface is removed. How to remove the restriction on the hyperlink in the transaction interface is consistent with the above method, and will not be described here.
[0075] In order to effectively avoid the occurrence of repeated deduction, after completing the deduction according to the transaction data in the session storage unit, the first transaction identifier in the session storage unit and the transaction data in the session storage unit are deleted. In the above operation, if the transaction is repeatedly submitted, the transaction identifier will be inconsistent, thereby preventing the phenomenon of repeated deduction.
[0076] In an optional embodiment, the control of the transaction deduction can be implemented by using the flowchart as shown in Figure 3
[0077] The transaction deduction processing method provided in the embodiments of the present application comprises the following steps: receiving a target transaction request by a backend server; storing a first transaction identifier and transaction data in the target transaction request into a session storage unit by the backend server, and sending a transaction confirmation interface to a front-end application according to the target transaction request; judging whether a second transaction identifier in confirmation information is the same as the first transaction identifier by the backend server, wherein the confirmation information input by a target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the backend server; and if the second transaction identifier is the same as the first transaction identifier, performing transaction deduction according to the transaction data in the session storage unit. The problem that the code is easy to be tampered with, resulting in inaccurate transaction deduction in the related art is solved. First, it is determined whether the target transaction request is the first submission in the front-end application, and when it is determined that the target transaction request is the first submission, the hyperlink in the transaction interface is limited and processed, and the target transaction request is forwarded to the backend server. The backend server stores the first transaction identifier and the transaction data into the session storage unit. After receiving the confirmation information of the target object, it is judged whether the second transaction identifier in the confirmation information is the same as the first transaction identifier. If they are the same, transaction deduction is performed. The front-end application and the backend server are controlled respectively, so that the phenomenon of repeated deduction of the target object during transaction is prevented, and the effect of improving the accuracy of transaction deduction is achieved.
[0078] The embodiments of the present application further provide a transaction deduction processing system. It should be noted that the transaction deduction processing device in the embodiments of the present application can be used to execute the transaction deduction processing method provided in the embodiments of the present application. The transaction deduction processing system provided in the embodiments of the present application is introduced as follows.
[0079] Figure 4 FIG. 1 is a schematic diagram of a transaction deduction processing system according to the embodiments of the present application. As shown in FIG. 1, the transaction deduction processing system comprises a front-end application and a backend server. Figure 4As shown, the system comprises: a front-end application program 41, configured to receive a target transaction request submitted by a target object, determine whether the target transaction request is a first-time submission, if the target transaction request is a first-time submission, perform restriction processing on hyperlinks in a transaction interface, and forward the target transaction request to a back-end server, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application program; the back-end server 42, configured to receive the target transaction request sent by the front-end application program; and store a first transaction identifier and transaction data in the target transaction request in a session storage unit, and send a transaction confirmation interface to the front-end application program according to the target transaction request; determine whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the back-end server, if the second transaction identifier is the same as the first transaction identifier, perform transaction deduction according to the transaction data in the session storage unit.
[0080] Specifically, the front-end application program 41, the customer submits a target transaction request in the transaction interface of the front-end application program 41, the front-end application program 41 will determine whether it is the first time to submit, in the case of determining that it is the first time to submit, all hyperlinks in the transaction interface are processed to prevent repeated operation of the customer, and the target transaction request is sent to the back-end server 42.
[0081] In the case of determining that it is not the first time to submit, the front-end application program 41 will pop up a prompt to prevent the transaction, because in the case of not being the first time to submit, there is a risk of repeated transactions.
[0082] After the back-end server 42 receives the target transaction request, the first transaction identifier and the transaction data in the target transaction request are stored in the session control unit. And according to the target transaction request, a transaction confirmation interface is sent to the front-end application program 41. The customer inputs confirmation information through the transaction confirmation interface, and then the front-end application program 41 sends the confirmation information to the back-end server. The back-end server 42 will determine whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, in the case of being the same, complete the transaction deduction according to the transaction data.
[0083] In summary, the transaction deduction processing system provided by the embodiment of the present application solves the problem that in the related art, the code for preventing multiple submissions is added in each front-end application program that submits a dynamic transaction to realize deduction control, but the code is easy to be tampered with, resulting in inaccurate transaction deduction.
[0084] The embodiment of the present application further provides a processing device I for transaction deduction. It should be noted that the processing device I for transaction deduction provided by the embodiment of the present application can be used to execute the processing method for transaction deduction provided by the embodiment of the present application. The processing device I for transaction deduction provided by the embodiment of the present application is introduced as follows.
[0085] Figure 5 FIG. 1 is a schematic diagram of the processing device I for transaction deduction according to the embodiment of the present application. As shown in the figure, the device comprises a first receiving unit 501, a determining unit 502 and a limiting unit 503. Figure 5
[0086] The first receiving unit 501 is used to receive a target transaction request submitted by a target object through a front-end application program.
[0087] The determining unit 502 is used to determine whether the target transaction request is submitted for the first time through the front-end application program.
[0088] The limiting unit 503 is used to limit a hyperlink in a transaction interface if the target transaction request is submitted for the first time, and forward the target transaction request to a back-end server, so as to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and send a transaction confirmation interface to the front-end application program according to the target transaction request; judge whether a second transaction identifier in the confirmation information is the same as the first transaction identifier through the back-end server, wherein the confirmation information input by the target object is obtained from the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the back-end server; if the second transaction identifier is the same as the first transaction identifier, execute transaction deduction according to the transaction data in the session storage unit, and the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application program.
[0089] The transaction deduction processing device one provided by the embodiment of the application receives a target transaction request submitted by a target object through a front-end application program through a first receiving unit 501; a determining unit 502 determines whether the target transaction request is a first-time submission through the front-end application program; a limiting unit 503 limits a hyperlink in a transaction interface if the target transaction request is a first-time submission, and forwards the target transaction request to a back-end server, so as to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and send a transaction confirmation interface to the front-end application program according to the target transaction request; the back-end server judges whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the back-end server; if the second transaction identifier is the same as the first transaction identifier, transaction deduction is performed according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application program, and the problem that the code is easy to be tampered with, resulting in inaccurate transaction deduction in the related art by adding the code for preventing multiple submissions in each front-end application program for submitting a dynamic transaction to implement deduction control is solved. First, it is determined whether the target transaction request is a first-time submission in the front-end application program, the hyperlink in the transaction interface is limited when it is determined that it is a first-time submission, and the target transaction request is forwarded to the back-end server, the back-end server stores the first transaction identifier and the transaction data into the session storage unit, after receiving the confirmation information of the target object, it is judged whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, and the transaction deduction is performed in the case of being the same, which is controlled from the front-end application program and the back-end server respectively, so as to prevent the phenomenon of repeated account deduction when the target object transacts, and thus the effect of improving the accuracy of transaction deduction is achieved.
[0090] Optionally, in the transaction deduction processing device one provided by the embodiment of the application, the determining unit comprises: a generation module, configured to generate a transaction interface through a front-end application program, and obtain state information of the transaction interface; a receiving module, configured to receive a target transaction request submitted by a target object through the transaction interface; and a judgment module, configured to judge whether the target transaction request is a first-time submission according to the state information of the transaction interface.
[0091] Optionally, in the transaction deduction processing device one provided by the embodiment of the application, the judgment module comprises: a first determination module, configured to determine that the target transaction request is a first-time submission if the state information of the transaction interface is a first preset value; and a second determination module, configured to determine that the target transaction request is not a first-time submission if the state information of the transaction interface is a second preset value.
[0092] Optionally, in the transaction deduction processing apparatus I provided in the embodiment of the present application, the apparatus further comprises a first changing unit, configured to change the state information of the transaction interface to a second preset value before the restriction processing on the hyperlinks in the transaction interface is performed and the target transaction request is forwarded to the backend server.
[0093] Optionally, in the transaction deduction processing apparatus I provided in the embodiment of the present application, the restriction unit 503 comprises a first obtaining module, configured to obtain each hyperlink in the transaction interface; a first setting module, configured to set the link attribute of each hyperlink to non-jumpable and set the click trigger device of each hyperlink to null; a second obtaining module, configured to obtain the link address of each hyperlink and convert the link address of each hyperlink into a plurality of temporary variables; a deleting module, configured to delete the link address of each hyperlink and set a data link attribute for each hyperlink; and a storage module, configured to store the plurality of temporary variables into the data link attribute, so that the restriction processing on each hyperlink is completed.
[0094] Optionally, in the transaction deduction processing apparatus I provided in the embodiment of the present application, the apparatus further comprises a second changing unit, configured to change the state information of the transaction interface to a first preset value and release the restriction on the hyperlinks in the transaction interface in response to a transaction modification instruction if the transaction modification instruction is received after the target transaction request is forwarded to the backend server.
[0095] Optionally, in the transaction deduction processing apparatus I provided in the embodiment of the present application, the second changing unit comprises a third obtaining module, configured to obtain the plurality of temporary variables from the data link attribute and convert the plurality of temporary variables into the link address of each hyperlink if the link attribute of each hyperlink in the transaction interface is non-jumpable; and a second setting module, configured to set the link attribute of each hyperlink to jumpable to release the restriction on the hyperlinks in the transaction interface.
[0096] The embodiment of the present application further provides a transaction deduction processing apparatus II. It should be noted that the transaction deduction processing apparatus II in the embodiment of the present application can be used to execute the transaction deduction processing method provided in the embodiment of the present application. The transaction deduction processing apparatus II provided in the embodiment of the present application is introduced as follows.
[0097] Figure 6 is a schematic diagram of the transaction deduction processing apparatus II according to the embodiment of the present application. As shown in the figure, the apparatus comprises a second receiving unit 601, a storage unit 602, a judging unit 603 and an executing unit 604. Figure 6
[0098] The second receiving unit 601 is configured to receive a target transaction request through a backend server.
[0099] The storage unit 602 is configured to store the first transaction identifier and the transaction data in the session storage unit by the backend server, and send a transaction confirmation interface to the front-end application according to the target transaction request.
[0100] The determination unit 603 is configured to determine, by the backend server, whether the second transaction identifier is same as the first transaction identifier in the confirmation information, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the backend server.
[0101] The execution unit 604 is configured to execute the transaction deduction according to the transaction data in the session storage unit if the second transaction identifier is same as the first transaction identifier.
[0102] Optionally, in the second transaction deduction processing device provided by the embodiment of the application, the execution unit 604 includes a detection module configured to trigger a transaction modification instruction if it is detected that the transaction data is incorrect, wherein the transaction modification instruction is used to change the state information of the transaction interface to a first preset value and remove the restriction on the hyperlink in the transaction interface.
[0103] Optionally, in the second transaction deduction processing device provided by the embodiment of the application, the device further includes a deletion unit configured to delete the first transaction identifier in the session storage unit and the transaction data in the session storage unit after the deduction is completed according to the transaction data in the session storage unit.
[0104] The transaction deduction processing device includes a processor and a memory, and the first receiving unit 501, the determination unit 502, the restriction unit 503, the second receiving unit 601, the storage unit 602, the determination unit 603 and the execution unit 604 are all stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory.
[0105] The processor includes a core, and the core calls the corresponding program units from the memory. The core can be one or more, and the transaction deduction control is realized by adjusting the core parameters.
[0106] The memory can include a non-permanent memory in a computer readable medium, a random access memory (RAM) and / or a non-volatile memory such as a read-only memory (ROM) or a flash memory (flash RAM), and the memory includes at least one memory chip.
[0107] The embodiment of the application provides a processor, which is used to run a program, wherein the program runs to execute the transaction deduction processing method.
[0108] As Figure 7As shown, the embodiment of the present application provides an electronic device, the device comprising a processor, a memory and a program stored on the memory and executable on the processor, the processor implements the following steps when executing the program: receiving a target transaction request submitted by a target object through a front-end application; determining whether the target transaction request is a first submission through the front-end application; if the target transaction request is a first submission, performing restriction processing on a hyperlink in a transaction interface, and forwarding the target transaction request to a back-end server, so as to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and send a transaction confirmation interface to the front-end application according to the target transaction request; determining whether the second transaction identifier and the first transaction identifier are the same through the back-end server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the back-end server; if the second transaction identifier and the first transaction identifier are the same, performing transaction deduction according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application.
[0109] Optionally, determining whether the target transaction request is a first submission through the front-end application comprises: generating a transaction interface through the front-end application, and obtaining state information of the transaction interface; receiving the target transaction request submitted by the target object through the transaction interface; and determining whether the target transaction request is a first submission according to the state information of the transaction interface.
[0110] Optionally, determining whether the target transaction request is a first submission according to the state information of the transaction interface comprises: if the state information of the transaction interface is a first preset value, the target transaction request is a first submission; if the state information of the transaction interface is a second preset value, the target transaction request is not a first submission.
[0111] Optionally, before performing restriction processing on the hyperlink in the transaction interface and forwarding the target transaction request to the back-end server, the method further comprises: changing the state information of the transaction interface to the second preset value.
[0112] Optionally, the restriction processing on the hyperlink in the transaction interface comprises: obtaining each hyperlink in the transaction interface; setting the link attribute of each hyperlink to be not jumpable, and setting the click trigger method of each hyperlink to be empty; obtaining the link address of each hyperlink, and converting the link address of each hyperlink into a plurality of temporary variables; deleting the link address of each hyperlink, and setting a data link attribute for each hyperlink; and storing the plurality of temporary variables into the data link attribute, so that the restriction processing on each hyperlink is completed.
[0113] Optionally, after forwarding the target transaction request to the backend server, the method further comprises: if a transaction modification instruction is received, changing the state information of the transaction interface to a first preset value and releasing the restriction on the hyperlinks in the transaction interface in response to the transaction modification instruction.
[0114] Optionally, releasing the restriction on the hyperlinks in the transaction interface comprises: if the link attribute of each hyperlink in the transaction interface is not jumpable, obtaining a plurality of temporary variables from the data link attribute and converting the plurality of temporary variables into the link address of each hyperlink; and setting the link attribute of each hyperlink to be jumpable to release the restriction on the hyperlinks in the transaction interface.
[0115] receiving, by the backend server, the target transaction request in the transaction deduction processing method of any one of the above; storing, by the backend server, the first transaction identifier and the transaction data in the target transaction request into a session storage unit, and sending a transaction confirmation interface to the front-end application program according to the target transaction request; determining, by the backend server, whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the backend server; and if the second transaction identifier is the same as the first transaction identifier, performing transaction deduction according to the transaction data in the session storage unit.
[0116] Optionally, when performing transaction deduction according to the transaction data in the session storage unit comprises: if an error is detected in the transaction data, triggering a transaction modification instruction, wherein the transaction modification instruction is used to indicate that the state information of the transaction interface is changed to a first preset value and the restriction on the hyperlinks in the transaction interface is released.
[0117] Optionally, after completing the deduction according to the transaction data in the session storage unit, the method further comprises: deleting the first transaction identifier in the session storage unit and the transaction data in the session storage unit.
[0118] The device herein can be a server, a PC, a PAD, a mobile phone, etc.
[0119] The application further provides a computer program product, which is suitable for executing a program for initializing the following method steps when executed on a data processing device: receiving a target transaction request submitted by a target object through a front-end application; determining whether the target transaction request is a first submission through the front-end application; if the target transaction request is the first submission, performing restriction processing on a hyperlink in a transaction interface, and forwarding the target transaction request to a back-end server to store a first transaction identifier and transaction data in the target transaction request into a session storage unit through the back-end server, and sending a transaction confirmation interface to the front-end application according to the target transaction request; determining whether the second transaction identifier is the same as the first transaction identifier through the back-end server, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application, and the confirmation information is sent to the back-end server; if the second transaction identifier is the same as the first transaction identifier, performing transaction deduction according to the transaction data in the session storage unit, wherein the transaction interface is a transaction interface corresponding to the target transaction request in the front-end application.
[0120] Optionally, determining whether the target transaction request is a first submission through the front-end application comprises: generating a transaction interface through the front-end application, and obtaining state information of the transaction interface; receiving the target transaction request submitted by the target object through the transaction interface; and determining whether the target transaction request is a first submission according to the state information of the transaction interface.
[0121] Optionally, determining whether the target transaction request is a first submission according to the state information of the transaction interface comprises: if the state information of the transaction interface is a first preset value, the target transaction request is a first submission; and if the state information of the transaction interface is a second preset value, the target transaction request is not a first submission.
[0122] Optionally, before the restriction processing on the hyperlink in the transaction interface and the forwarding of the target transaction request to the back-end server, the method further comprises: changing the state information of the transaction interface to the second preset value.
[0123] Optionally, the restriction processing on the hyperlink in the transaction interface comprises: obtaining each hyperlink in the transaction interface; setting a link attribute of each hyperlink to be not jumpable, and setting a click trigger method of each hyperlink to be empty; obtaining a link address of each hyperlink, and converting the link address of each hyperlink into a plurality of temporary variables; deleting the link address of each hyperlink, and setting a data link attribute for each hyperlink; and storing the plurality of temporary variables into the data link attribute, so that the restriction processing on each hyperlink is completed.
[0124] Optionally, after forwarding the target transaction request to the backend server, the method further comprises: if a transaction modification instruction is received, changing the state information of the transaction interface to a first preset value and releasing the restriction on the hyperlinks in the transaction interface in response to the transaction modification instruction.
[0125] Optionally, releasing the restriction on the hyperlinks in the transaction interface comprises: if the link attribute of each hyperlink in the transaction interface is not jumpable, obtaining a plurality of temporary variables from the data link attribute and converting the plurality of temporary variables into the link address of each hyperlink; and setting the link attribute of each hyperlink to be jumpable to release the restriction on the hyperlinks in the transaction interface.
[0126] receiving, by the backend server, the target transaction request in the transaction deduction processing method of any one of the preceding embodiments; storing, by the backend server, the first transaction identifier and the transaction data in the target transaction request into a session storage unit, and sending, by the backend server, a transaction confirmation interface to the front-end application program according to the target transaction request; determining, by the backend server, whether the second transaction identifier in the confirmation information is the same as the first transaction identifier, wherein the confirmation information input by the target object is obtained in the transaction confirmation interface received by the front-end application program, and the confirmation information is sent to the backend server; and if the second transaction identifier is the same as the first transaction identifier, performing, by the backend server, the transaction deduction according to the transaction data in the session storage unit.
[0127] Optionally, when performing the transaction deduction according to the transaction data in the session storage unit comprises: if an error is detected in the transaction data, triggering a transaction modification instruction, wherein the transaction modification instruction is used to indicate that the state information of the transaction interface is changed to a first preset value and the restriction on the hyperlinks in the transaction interface is released.
[0128] Optionally, after completing the deduction according to the transaction data in the session storage unit, the method further comprises: deleting the first transaction identifier in the session storage unit and the transaction data in the session storage unit.
[0129] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage media, etc.) containing computer-usable program code.
[0130] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure One one or more flow or blocks Figure One means for functionally implementing the steps in the flowchart block or blocks
[0131] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure One one or more flow or blocks Figure One means for functionally implementing the steps in the flowchart block or blocks
[0132] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure One one or more flow or blocks Figure One means for functionally implementing the steps in the flowchart block or blocks
[0133] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0134] The memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), or electrically erasable programmable read only memory (EEPROM), for the storage of software that is read during runtime. The memory is an example of computer readable media.
[0135] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0136] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusions, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0137] Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system or computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) containing computer usable program code.
[0138] The above merely provides embodiments of the present application and is not intended to limit the present application. Various modifications and changes can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the scope of the claims of the present application.
Claims
1. A method for processing transaction deductions, characterized in that, include: Receive the target transaction request submitted by the target object through the front-end application; The front-end application determines whether the target transaction request is being submitted for the first time. If the target transaction request is submitted for the first time, the hyperlinks in the transaction interface are restricted, and the target transaction request is forwarded to the backend server. The backend server stores the first transaction identifier and transaction data in the target transaction request in the session storage unit. Based on the target transaction request, a transaction confirmation interface is sent to the frontend application. The backend server determines whether the second transaction identifier in the confirmation information is the same as the first transaction identifier. In the transaction confirmation interface received by the frontend application, the confirmation information input by the target object is obtained, and the confirmation information is sent to the backend server. If the second transaction identifier is the same as the first transaction identifier, the transaction deduction is executed based on the transaction data in the session storage unit. The transaction interface is the transaction interface corresponding to the target transaction request in the frontend application. The process of determining whether the target transaction request is being submitted for the first time through the front-end application includes: generating the transaction interface through the front-end application and obtaining the status information of the transaction interface; receiving the target transaction request submitted by the target object through the transaction interface; and determining whether the target transaction request is being submitted for the first time based on the status information of the transaction interface, wherein the status information of the transaction interface is defaulted to a first preset value, and after receiving the target transaction request submitted for the first time by the target object, the status information is changed to a second preset value. The restrictions on hyperlinks in the trading interface include: Obtain each hyperlink in the transaction interface; Set the link attribute of each hyperlink to non-jumpable and set the click trigger method of each hyperlink to empty; Obtain the link address of each hyperlink, and convert the link address of each hyperlink into multiple temporary variables; Delete the link address of each hyperlink and set the data link attribute for each hyperlink; By storing the multiple temporary variables into the data link attribute, the restriction processing for each hyperlink has been completed. Specifically, when confirming transaction information, the target object is identified.
2. The method according to claim 1, characterized in that, Determining whether the target transaction request is the first submission based on the status information of the transaction interface includes: If the status information of the transaction interface is a first preset value, then the target transaction request is the first submission; If the status information of the transaction interface is a second preset value, then the target transaction request is not the first submission.
3. The method according to claim 2, characterized in that, Before restricting hyperlinks in the transaction interface and forwarding the target transaction request to the backend server, the method further includes: Change the status information of the transaction interface to the second preset value.
4. The method according to claim 1, characterized in that, After forwarding the target transaction request to the backend server, the method further includes: If a transaction modification instruction is received, the transaction modification instruction is responded to by changing the status information of the transaction interface to a first preset value and removing the restriction on hyperlinks in the transaction interface.
5. The method according to claim 4, characterized in that, Removing the restrictions on hyperlinks in the transaction interface includes: If the link attribute of each hyperlink in the transaction interface is non-jumpable, then the plurality of temporary variables are obtained from the data link attribute, and the plurality of temporary variables are converted into the link address of each hyperlink; Set the link attribute of each hyperlink to be jumpable to remove the restriction on hyperlinks in the transaction interface.
6. A method for processing transaction deductions, characterized in that, include: The backend server receives the target transaction request in the transaction deduction processing method according to any one of claims 1 to 5 above; The backend server stores the first transaction identifier and transaction data from the target transaction request into the session storage unit, and sends a transaction confirmation interface to the frontend application according to the target transaction request. The backend server determines whether the second transaction identifier in the confirmation information is the same as the first transaction identifier. In the transaction confirmation interface received by the frontend application, the confirmation information input by the target object is obtained and the confirmation information is sent to the backend server. If the second transaction identifier is the same as the first transaction identifier, then the transaction deduction is performed based on the transaction data in the session storage unit.
7. The method according to claim 6, characterized in that, When performing a transaction deduction based on the transaction data in the session storage unit, the following is included: If an error is detected in the transaction data, a transaction modification instruction is triggered, wherein the transaction modification instruction is used to instruct the status information of the transaction interface to be changed to the first preset value and to remove the restriction on hyperlinks in the transaction interface.
8. The method according to claim 6, characterized in that, After completing the deduction based on the transaction data in the session storage unit, the method further includes: Delete the first transaction identifier and the transaction data in the session storage unit.
9. A transaction deduction processing system, characterized in that, include: A front-end application is used to receive a target transaction request submitted by a target object and determine whether the target transaction request is the first submission. If the target transaction request is submitted for the first time, the hyperlinks in the transaction interface are restricted, and the target transaction request is forwarded to the backend server. The transaction interface is the transaction interface corresponding to the target transaction request in the frontend application. A backend server is configured to receive a target transaction request sent by the frontend application; store the first transaction identifier and transaction data in the target transaction request in a session storage unit; and send a transaction confirmation interface to the frontend application based on the target transaction request, and determine whether the second transaction identifier in the confirmation information is the same as the first transaction identifier. In the transaction confirmation interface received by the frontend application, the confirmation information input by the target object is obtained and the confirmation information is sent to the backend server. If the second transaction identifier is the same as the first transaction identifier, the transaction deduction is executed based on the transaction data in the session storage unit. The process of determining whether the target transaction request is being submitted for the first time includes: generating the transaction interface through the front-end application and obtaining the status information of the transaction interface; receiving the target transaction request submitted by the target object through the transaction interface; and determining whether the target transaction request is being submitted for the first time based on the status information of the transaction interface, wherein the status information of the transaction interface is defaulted to a first preset value, and after receiving the target object's first submission of the target transaction request, the status information is changed to a second preset value. The process of restricting hyperlinks in the transaction interface includes: obtaining each hyperlink in the transaction interface; setting the link attribute of each hyperlink to non-jumpable and setting the click trigger method of each hyperlink to empty; obtaining the link address of each hyperlink and converting the link address of each hyperlink into multiple temporary variables; deleting the link address of each hyperlink and setting a data link attribute for each hyperlink; and storing the multiple temporary variables in the data link attribute, thus completing the restriction processing for each hyperlink. The system also includes verifying the identity of the target object when confirming transaction information.
10. A transaction deduction processing device, characterized in that, include: The first receiving unit is used to receive the target transaction request submitted by the target object through the front-end application. A determining unit is configured to determine, through the front-end application, whether the target transaction request is being submitted for the first time. A restriction unit is configured to restrict hyperlinks in the transaction interface if the target transaction request is submitted for the first time, and forward the target transaction request to a backend server. The backend server stores the first transaction identifier and transaction data in the target transaction request in a session storage unit. Based on the target transaction request, a transaction confirmation interface is sent to the frontend application. The backend server determines whether the second transaction identifier in the confirmation information is the same as the first transaction identifier. In the transaction confirmation interface received by the frontend application, the confirmation information input by the target object is obtained and sent to the backend server. If the second transaction identifier is the same as the first transaction identifier, the transaction deduction is executed based on the transaction data in the session storage unit. The transaction interface is the transaction interface corresponding to the target transaction request in the frontend application. The determining unit includes: a generation module, used to generate the transaction interface through the front-end application and obtain the status information of the transaction interface; a receiving module, used to receive the target transaction request submitted by the target object through the transaction interface; and a judging module, used to judge whether the target transaction request is submitted for the first time based on the status information of the transaction interface, wherein the status information of the transaction interface is defaulted to a first preset value, and after receiving the target object's first submission of the target transaction request, the status information is changed to a second preset value; The restriction unit includes: a first acquisition module for acquiring each hyperlink in the transaction interface; a setting module for setting the link attribute of each hyperlink to non-jumpable and setting the click trigger method of each hyperlink to empty; a second acquisition module for acquiring the link address of each hyperlink and converting the link address of each hyperlink into multiple temporary variables; a deletion module for deleting the link address of each hyperlink and setting a data link attribute for each hyperlink; and a storage module for storing the multiple temporary variables into the data link attribute, thus completing the restriction processing for each hyperlink. The device is also used to authenticate the target object when confirming transaction information.
11. A transaction deduction processing device, characterized in that, include: The second receiving unit is used to receive the target transaction request in the transaction deduction processing method according to any one of claims 1 to 5 through a backend server; The storage unit is used to store the first transaction identifier and transaction data in the target transaction request into the session storage unit through the backend server, and send a transaction confirmation interface to the frontend application according to the target transaction request; The judgment unit is used to determine whether the second transaction identifier in the confirmation information is the same as the first transaction identifier through the backend server, wherein, in the transaction confirmation interface received by the frontend application, the confirmation information input by the target object is obtained and the confirmation information is sent to the backend server; An execution unit is configured to perform a transaction deduction based on the transaction data in the session storage unit if the second transaction identifier is the same as the first transaction identifier.
12. A processor, characterized in that, The processor is used to run a program, wherein the program executes the transaction deduction processing method according to any one of claims 1 to 5 or claims 6 to 8.
13. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the transaction deduction processing method according to any one of claims 1 to 5 or claims 6 to 8.
Citation Information
Patent Citations
Deduction control method, device and equipment and readable storage medium
CN109670807A
Transaction processing method, device and equipment
CN110992040A
Real-time payment system, method, apparatus, and computer program
US20210073750A1