Transaction data synchronization method, bank back-end system and transaction terminal
By parsing, verifying and checking transaction vouchers, the problem of data inconsistency between the transaction terminal and the bank's backend system in the absence of network is solved, achieving data consistency and payment system stability, and avoiding capital losses.
Patent Information
- Application Number
- CN202110619901.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-03
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-06-03
AI Technical Summary
Transactions conducted without a network lead to data inconsistencies between the bank's backend system and the transaction terminal, which may cause confusion and loss of transaction data, and even cause the payment system to collapse. Existing technology cannot effectively solve this problem.
By receiving the frozen transaction vouchers sent from the transaction terminal, parsing and security verification, and after successful verification, the transaction vouchers are unfrozen, ownership changes and data are added to ensure data consistency between the bank's back-end system and the transaction terminal. sex.
It achieves data consistency between the bank's backend system and transaction terminals, improves the security and stability of financial payments, avoids capital losses, and protects the interests of operating institutions and customers.
Smart Images

Figure CN113191769B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, can be applied to the financial field, and in particular to a transaction data synchronization method, a bank back-end system and a transaction terminal. Background Art
[0002] Off-line transactions refer to offline transactions conducted between two transaction terminals when the communication line connected to the bank's back-end system is unavailable. When off-line transactions are conducted between transaction terminals, transaction vouchers will be transmitted, causing the funds in the corresponding accounts to increase or decrease. Since these off-line transactions are separated from the bank's back-end system and are not recorded by the bank's back-end system, the data between the bank's back-end system and the transaction terminal of the off-line transaction will be inconsistent. This inconsistent state may cause confusion and loss of transaction data, resulting in a gap in the entire transaction closed loop, thereby causing economic losses to the bank or the bilateral transaction parties conducting the off-line transaction, and even causing the payment system to collapse.
[0003] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiment of the present invention provides a method for synchronizing transaction data, which is used to solve the problem of data inconsistency between a bank backend system and a transaction terminal for transactions without a network state. The method includes:
[0005] Receiving the frozen transaction voucher sent by the transaction terminal, and parsing the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when the transaction is not in the network state;
[0006] When the analysis is successful, the security of the frozen transaction voucher and the analyzed transaction voucher is verified;
[0007] After the security check is passed, the frozen transaction voucher sent up is checked and matched to determine whether the transaction voucher of the other end of the frozen transaction voucher sent up is present in the stored transaction voucher. If the transaction voucher of the other end of the frozen transaction voucher sent up is present in the stored transaction voucher, it is determined that the check is successful, and a thawing instruction is sent to the transaction terminal, wherein the transaction terminal is used to thaw and cancel the frozen transaction voucher sent up;
[0008] The ownership of the frozen transaction voucher that has been successfully submitted for verification is changed and the transaction data is supplemented, and the transaction voucher with changed ownership is returned to the transaction terminal.
[0009] The embodiment of the present invention provides a method for synchronizing transaction data, which is used to solve the problem of data inconsistency between a bank backend system and a transaction terminal for transactions without a network state. The method includes:
[0010] When the network connection with the bank's back-end system is restored, the transaction voucher generated during the transaction without network status is frozen and sent to the bank's back-end system, wherein the bank's back-end system is used to parse and verify the security of the frozen transaction voucher sent up, and after the security verification is passed, the frozen transaction voucher sent up is checked to determine whether there is a transaction voucher of the other end of the frozen transaction voucher sent up in the stored transaction voucher, and when the check is successful, an instruction to unfreeze the frozen transaction voucher sent up is sent to the transaction terminal;
[0011] Receive the unfreezing instruction sent by the bank's back-end system, unfreeze and cancel the successfully verified frozen transaction voucher;
[0012] Receive and store the transaction voucher with changed ownership sent by the bank's back-end system, wherein the bank's back-end system is used to change the ownership of the frozen transaction voucher that has been successfully verified and sent up.
[0013] The embodiment of the present invention provides a bank backend system for synchronizing transaction data, which is used to solve the problem of data inconsistency between the bank backend system and a transaction terminal for transactions without a network state. The bank backend system includes:
[0014] The voucher parsing module is used to receive the frozen transaction voucher sent by the transaction terminal and parse the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when the transaction is not in the network state;
[0015] A security verification module is used to perform security verification on the frozen transaction voucher and the parsed transaction voucher when the parsing is successful;
[0016] A verification module is used to verify the frozen transaction voucher after the security check is passed, and determine whether the transaction voucher of the frozen transaction voucher counterparty is present in the stored transaction voucher. If the transaction voucher of the frozen transaction voucher counterparty is present in the stored transaction voucher, it is determined that the verification is successful, and a thawing instruction is sent to the transaction terminal, wherein the transaction terminal is used to thaw and cancel the frozen transaction voucher;
[0017] The data synchronization module is used to change the ownership of the frozen transaction vouchers that have been successfully uploaded and re-enter the transaction data, and return the transaction vouchers with changed ownership to the transaction terminal.
[0018] The embodiment of the present invention provides a transaction terminal for synchronizing transaction data, which is used to solve the problem of data inconsistency between a bank backend system and a transaction terminal for transactions without a network state. The transaction terminal includes:
[0019] The voucher freezing module is used to freeze the transaction voucher generated during the transaction without network status and send it to the bank's back-end system when the network connection with the bank's back-end system is restored, wherein the bank's back-end system is used to parse and verify the security of the frozen transaction voucher sent up, and after the security verification is passed, to check whether the transaction voucher of the other end of the frozen transaction voucher sent up exists in the stored transaction voucher, and when the check is successful, to send a thawing instruction of the frozen transaction voucher sent up to the transaction terminal;
[0020] The voucher unfreezing and cancellation module is used to receive the unfreezing instruction sent by the bank's back-end system, unfreeze and cancel the successfully frozen transaction voucher;
[0021] The transaction voucher storage module is used to receive and store the transaction vouchers with changed ownership sent by the bank's back-end system, wherein the bank's back-end system is used to change the ownership of the frozen transaction vouchers that have been successfully submitted for verification.
[0022] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned transaction data synchronization method is implemented when the processor executes the computer program.
[0023] An embodiment of the present invention further provides a computer-readable storage medium, which stores a method for executing the above-mentioned transaction data synchronization.
[0024] The embodiment of the present invention comprises: receiving a frozen transaction voucher sent by a transaction terminal, parsing the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when there is no network state transaction; when the parsing is successful, performing security verification on the sent frozen transaction voucher and the parsed transaction voucher; after the security verification is passed, performing verification on the sent frozen transaction voucher to determine whether there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored transaction voucher, if there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored transaction voucher, determining that the verification is successful, and sending a thawing instruction to the transaction terminal, wherein the transaction terminal is used to thaw and cancel the sent frozen transaction voucher; performing transaction voucher ownership change and transaction data supplement recording on the sent frozen transaction voucher that has successfully been verified, returning the transaction voucher after the ownership change to the transaction terminal, and then freezing the transaction voucher through the transaction terminal, and the bank backend system parsing, security verification, verification, ownership change and data supplement recording of the sent frozen transaction voucher, thereby achieving data consistency between the bank backend system and the transaction terminal, and improving the security and stability of financial payment. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0026] Figure 1 A schematic diagram of the method flow for synchronizing transaction data in an embodiment of the present invention (from the perspective of a bank backend system);
[0027] Figure 2 for Figure 1 Schematic diagram of the specific process of step 103;
[0028] Figure 3 for Figure 2 A schematic diagram of the specific process of step 206;
[0029] Figure 4 A schematic diagram of a method flow for synchronizing transaction data in an embodiment of the present invention (from the perspective of a transaction terminal);
[0030] Figure 5 A schematic diagram of a bank backend system structure for synchronization of transaction data in an embodiment of the present invention;
[0031] Figure 6 A schematic diagram of another structure of a bank backend system for synchronizing transaction data in an embodiment of the present invention;
[0032] Figure 7 A schematic diagram of a transaction terminal structure for synchronizing transaction data in an embodiment of the present invention;
[0033] Figure 8 It is a schematic diagram of a specific embodiment process in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, method or computer program product. Therefore, the present invention may be implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0036] Before introducing the embodiments of the present invention, the professional terms involved in the embodiments of the present invention are first introduced.
[0037] Off-line transactions: refers to transactions conducted by both parties when the communication line connected to the back-end system of the operating organization, such as the network, is unavailable, also known as offline transactions.
[0038] Transaction voucher: originally refers to the accounting voucher recording bank deposit payment business. In the embodiment of the present invention, it refers to the voucher such as the encrypted string recording the transaction information transmitted between the transaction terminal and the transaction terminal, or between the transaction terminal and the bank backend system when conducting a transaction.
[0039] Data consistency: usually refers to the correctness and completeness of the logical relationship between related data, which must be kept consistent. In the embodiment of the present invention, attention is paid to whether the data between data nodes, that is, between the bank's back-end system and the transaction terminal, is correct and complete after executing a transaction without network status, and whether the data is still in a consistent state.
[0040] Synchronization: refers to two or more quantities that change over time maintaining a certain relative relationship during the change process. In the embodiment of the present invention, it refers to maintaining a relatively consistent relationship between the bank's backend system and the transaction terminal without a network connection.
[0041] The embodiment of the present invention provides a method for synchronizing transaction data (from the perspective of a bank backend system) to solve the problem of data inconsistency between a bank backend system and a transaction terminal for transactions without a network status. Figure 1 FIG. 1 is a schematic diagram of a method flow for synchronizing transaction data in an embodiment of the present invention (from the perspective of a bank backend system). Figure 1 As shown, the method includes:
[0042] Step 101: receiving a frozen transaction voucher sent by a transaction terminal, and parsing the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when the transaction is not in a network state;
[0043] Step 102: When the parsing is successful, a security check is performed on the frozen transaction voucher and the parsed transaction voucher that have been sent up;
[0044] Step 103: after the security check is passed, the frozen transaction voucher that has been uploaded is checked and it is determined whether the transaction voucher of the counterparty of the frozen transaction voucher that has been uploaded is present in the stored transaction voucher. If the transaction voucher of the counterparty of the frozen transaction voucher that has been uploaded is present in the stored transaction voucher, it is determined that the check is successful, and a thawing instruction is sent to the transaction terminal, wherein the transaction terminal is used to thaw and cancel the frozen transaction voucher that has been uploaded;
[0045] Step 104: Change the ownership of the frozen transaction voucher that has been successfully verified and uploaded, and re-enter the transaction data, and return the transaction voucher with the ownership changed to the transaction terminal.
[0046] like Figure 1 As shown, the embodiment of the present invention comprises: receiving a frozen transaction voucher sent by a transaction terminal, parsing the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when there is no network state transaction; when the parsing is successful, performing security verification on the sent frozen transaction voucher and the parsed transaction voucher; after the security verification is passed, performing verification on the sent frozen transaction voucher to determine whether there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored transaction voucher, if there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored transaction voucher, determining that the verification is successful, and sending a thawing instruction to the transaction terminal, wherein the transaction terminal is used to thaw and cancel the sent frozen transaction voucher; performing transaction voucher ownership change and transaction data supplement recording on the sent frozen transaction voucher that has successfully been verified, returning the transaction voucher with changed ownership to the transaction terminal, and then freezing the transaction voucher through the transaction terminal, and the bank backend system parsing, security verification, verification, ownership change and data supplement recording of the sent frozen transaction voucher, thereby achieving data consistency between the bank backend system and the transaction terminal, and improving the security and stability of financial payment.
[0047] In specific implementation, when the transaction terminal ends the offline state and exchanges data with the bank's back-end system, it is very likely that due to some force majeure, such as unstable signals, fluctuations in the back-end network, etc., the online process is interrupted and the data processing results returned by the bank's back-end system cannot be received. Therefore, when the transaction terminal synchronizes data with the bank's back-end system, the transaction voucher sent to the bank's back-end system must first be frozen, and the next processing action can only be performed after receiving the unfreeze rollback or unfreeze cancellation instruction returned by the bank's back-end system; if the return result of the bank's back-end system has not been received, it is necessary to initiate a transaction query to query the transaction status corresponding to the transaction, so as to determine the next processing action required for the frozen transaction voucher.
[0048] First, steps 101 and 102 are described in detail below.
[0049] In one embodiment, the method further includes: when the parsing fails, sending an unfreeze and rollback account amount instruction to the transaction terminal, the transaction terminal is used to unfreeze the uploaded frozen transaction voucher and roll back the active account amount of the uploaded frozen transaction voucher.
[0050] In specific implementation, the transaction voucher should record the transaction information of each transaction during the circulation process without network. When the transaction terminal without network ends the offline state and connects to the bank's back-end system, the transaction voucher in the transaction terminal will be frozen and sent to the bank's back-end system. After receiving the frozen transaction voucher sent by the transaction terminal, the bank's back-end system will first parse the frozen transaction voucher according to the pre-agreed rules or format to obtain the transaction time, transaction amount, counterparty and other transaction information of each transaction without network for subsequent transaction supplement. When the parsing fails, it indicates that there is an error in the frozen transaction voucher. The bank's back-end system can report an error to the transaction terminal and send an instruction to unfreeze and roll back the account amount. The transaction terminal will unfreeze the frozen transaction voucher sent and roll back the account amount of the frozen transaction voucher sent. When the parsing is successful, the bank's back-end system can perform security verification on the frozen transaction voucher sent and the parsed transaction voucher.
[0051] In one embodiment, the method further includes: when the security check fails, marking the transaction terminal that uploads the frozen transaction voucher as a risky transaction terminal, sending the risky transaction terminal information to other transaction terminals, and the other transaction terminals are used to reject transaction requests initiated by the risky transaction terminal.
[0052] In specific implementation, during the period when the transaction terminal conducts transactions without network status, it is actually out of the monitoring of the bank's back-end system. The transaction voucher generated and transmitted by the transaction terminal has not been verified by the bank's back-end system and is likely to be a fake voucher that has been technically forged. The bank's back-end system needs to perform a series of security checks on the frozen transaction vouchers and the parsed transaction vouchers, for example, it can include: verifying the signature of the voucher owner, the available amount of the voucher and other information, and indeed prove that the voucher is legally issued by the voucher owner before subsequent operations can be carried out. Otherwise, it is likely to be exploited by counterfeiters, causing financial losses to the operating institution and institutional customers. If the security check fails, it indicates that the account of the transaction terminal is suspicious. The transaction terminal that has sent the frozen transaction voucher can be marked as a risky transaction terminal, and the suspicious information can be broadcasted to the entire network, and the risky transaction terminal information can be sent to other transaction terminals. After receiving the broadcast, all transaction terminals in the entire network reject the transaction request initiated by the risky transaction terminal to avoid capital losses.
[0053] Next, step 103 is described in detail.
[0054] Figure 2 for Figure 1 The schematic diagram of the specific process of step 103 is as follows: Figure 2 As shown, in one embodiment, in step 103, the uploaded frozen transaction voucher is checked. If the stored transaction voucher contains the transaction voucher of the uploaded frozen transaction voucher counterpart, determining that the check is successful may include:
[0055] Step 201: Perform a first check on the uploaded frozen transaction vouchers to determine whether the stored frozen transaction vouchers with unknown transaction status contain the transaction vouchers of the uploaded frozen transaction vouchers;
[0056] Step 202: If the stored frozen transaction vouchers with unclear transaction status contain the transaction vouchers of the sent frozen transaction voucher counterpart, it is determined that the first verification is successful, and a thawing instruction is sent to the transaction terminal;
[0057] Step 203: If the transaction voucher of the sent frozen transaction voucher counterpart does not exist in the stored frozen transaction voucher with unclear transaction status, it is determined that the first verification fails, and a second verification is performed on the sent frozen transaction voucher to determine whether the transaction voucher of the sent frozen transaction voucher counterpart exists in the stored transaction voucher with successful transaction;
[0058] Step 204: If the stored transaction vouchers for successful transactions contain the transaction vouchers of the frozen transaction voucher counterparty, it is determined that the second verification is successful, and a thawing instruction is sent to the transaction terminal;
[0059] Step 205: If the transaction voucher of the other end of the frozen transaction voucher sent up does not exist in the stored transaction vouchers of successful transactions, it is determined that the second verification has failed, and the sent frozen transaction voucher is stored as a frozen transaction voucher with an unknown transaction status;
[0060] In step 104, the ownership of the frozen transaction voucher that has been successfully verified and sent up is changed and the transaction data is supplemented, and the transaction voucher with the ownership changed is returned to the transaction terminal, including:
[0061] Step 206: For the frozen transaction voucher that has been successfully verified for the first time or the second time, the ownership of the transaction voucher is changed and the transaction data is supplemented, and the transaction voucher with the ownership changed is returned to the transaction terminal.
[0062] In specific implementation, after the security check is passed, the frozen transaction voucher that has been sent up needs to be checked. During the process of trading in the offline state, the transaction of the counterparty may be unclear. At this time, the corresponding transaction voucher in the offline state will remain frozen. When the transaction terminal sends the frozen transaction voucher with unclear transaction status, the bank backend system will conduct the first check on the sent frozen transaction voucher. The first check is to determine whether there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the frozen transaction voucher with unclear transaction status stored in the database. If there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored frozen transaction voucher with unclear transaction status, it indicates that the voucher has been sent by the counterparty terminal. Then the first check of the voucher is successful, and the bank backend system can send a thawing instruction to the transaction terminal to notify the transaction terminal that the voucher has been used. At this time, the transaction terminal will thaw and cancel the voucher.
[0063] If the transaction voucher of the other end of the frozen transaction voucher that has been sent does not exist in the stored frozen transaction voucher with unclear transaction status, it is determined that the first verification has failed, and a second verification is performed on the submitted frozen transaction voucher to determine whether the transaction voucher of the other end of the frozen transaction voucher that has been sent exists in the stored transaction voucher of successful transaction. If the transaction voucher of the other end of the frozen transaction voucher that has been sent exists in the stored transaction voucher of successful transaction, it is determined that the second verification is successful, and an unfreezing instruction is sent to the transaction terminal. At this time, the transaction terminal unfreezes and cancels the voucher. If the transaction voucher of the other end of the frozen transaction voucher that has been sent does not exist in the stored transaction voucher of successful transaction, it is determined that the second verification has failed, and the submitted frozen transaction voucher is stored as a frozen transaction voucher with unclear transaction status.
[0064] For frozen transaction vouchers with unknown transaction status, the bank backend system records the voucher in the database and waits for the counterparty transaction terminal corresponding to the voucher to conduct transactions. The voucher remains frozen in the transaction terminal. If the counterparty does not upload the voucher during online data synchronization, the bank backend system notifies the transaction terminal where the voucher is located to unfreeze the voucher and roll back the amount in the voucher. If the counterparty uploads the voucher, the bank backend system notifies the transaction terminal where the voucher is located to unfreeze and destroy the voucher. The above-mentioned verification and collision processing can effectively reduce the number of frozen vouchers and the number of transactions with unknown status.
[0065] Next, step 104 is described in detail.
[0066] Figure 3 for Figure 2 The schematic diagram of the specific process of step 206 is as follows: Figure 3As shown, in one embodiment, in step 206, the owner of the transaction voucher is changed and the transaction data is supplemented for the frozen transaction voucher that has been successfully checked for the first time or the second time, including:
[0067] Step 301: merge the frozen transaction vouchers that have been successfully verified for the first time or the second time, and change the ownership of the merged transaction vouchers;
[0068] Step 302: Based on the transaction voucher after the ownership change, the transaction data is asynchronously supplemented and the transaction bill is pushed to the transaction voucher ownership end.
[0069] In specific implementation, after the verification is successful, the bank's back-end system needs to process the accounts, because after the transaction terminal uploads the transaction voucher, it will wait for the result of the bank's back-end system's voucher inspection and integration. Therefore, if the transaction information meets the security requirements, the frozen transaction vouchers that have been successfully verified for the first time or the second time will be merged into a new transaction voucher, and the ownership of the new transaction voucher will be changed to the customer who uploaded the transaction, and the new transaction voucher will be returned to the transaction terminal. The transaction bill is pushed to the transaction voucher ownership end, and the online processing ends. Because the supplementary transaction belongs to the transaction that has occurred, the bank's back-end system can asynchronously process each transaction that needs to be supplemented, which is equivalent to redoing the transaction without network status when the transaction terminal is offline. The bank's back-end system needs to force multiple retries to supplement the transaction until each supplementary transaction is successful. In this way, the transaction terminal freezes the transaction voucher, and the bank's back-end system parses, verifies, changes ownership and supplements the data of the frozen transaction voucher that has been uploaded, thereby achieving data consistency between the bank's back-end system and the transaction terminal, and improving the security and stability of financial payment.
[0070] The embodiment of the present invention provides a method for synchronizing transaction data (from the perspective of transaction terminals) to solve the problem of data inconsistency between a bank backend system and a transaction terminal that is not in a network state. Figure 4 FIG. 1 is a schematic diagram of a method flow for synchronizing transaction data in an embodiment of the present invention (from the perspective of a transaction terminal). Figure 4 As shown, the method includes:
[0071] Step 401: When the network connection with the bank's back-end system is restored, the transaction voucher generated during the transaction without network status is frozen and then sent to the bank's back-end system, wherein the bank's back-end system is used to parse and verify the security of the frozen transaction voucher sent up, and after the security verification passes, the frozen transaction voucher sent up is checked to determine whether the transaction voucher of the other end of the frozen transaction voucher sent up is present in the stored transaction vouchers, and when the check is successful, an instruction to unfreeze the frozen transaction voucher sent up is sent to the transaction terminal;
[0072] Step 402: receiving a thawing instruction sent by the bank's back-end system, thawing and canceling the successfully verified frozen transaction voucher;
[0073] Step 403: receiving and storing the transaction voucher with changed ownership sent by the bank backend system, wherein the bank backend system is used to change the ownership of the transaction voucher for the frozen transaction voucher that has been successfully verified and sent up.
[0074] During specific implementation, the transaction terminal can change the status of the transaction voucher sent to the bank's back-end system to frozen, determine whether the transaction voucher needs to be unfrozen and cancelled, unfrozen and rolled back, or remain frozen based on the return instructions from the bank's back-end system, receive the return instructions and issued vouchers from the bank's back-end system, and perform operations based on the instructions.
[0075] Based on the same inventive concept, an embodiment of the present invention also provides a bank backend system for synchronizing transaction data, such as the following embodiment. Since the principle of solving the problem by the bank backend system for synchronizing transaction data is similar to the method for synchronizing transaction data, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0076] The embodiment of the present invention provides a bank backend system for synchronizing transaction data, which is used to solve the problem of data inconsistency between the bank backend system and a transaction terminal for transactions without network status. Figure 5 FIG. 1 is a schematic diagram of a bank backend system structure for synchronizing transaction data in an embodiment of the present invention. Figure 5 As shown, the bank's back-end system includes:
[0077] The voucher parsing module 501 is used to receive the frozen transaction voucher sent by the transaction terminal and parse the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when the transaction is not in the network state;
[0078] The security verification module 502 is used to perform security verification on the frozen transaction voucher and the parsed transaction voucher when the parsing is successful;
[0079] The verification module 503 is used to verify the frozen transaction voucher after the security check is passed, and determine whether the transaction voucher of the frozen transaction voucher counterparty is present in the stored transaction voucher. If the transaction voucher of the frozen transaction voucher counterparty is present in the stored transaction voucher, it is determined that the verification is successful, and a thawing instruction is sent to the transaction terminal, wherein the transaction terminal is used to thaw and cancel the frozen transaction voucher.
[0080] The data synchronization module 504 is used to change the ownership of the frozen transaction voucher that has been successfully verified and uploaded and to re-record the transaction data, and return the transaction voucher with the ownership changed to the transaction terminal.
[0081] In one embodiment, the nuclear collision module 503 is specifically used to:
[0082] Perform a first check on the frozen transaction vouchers sent up, and determine whether the stored frozen transaction vouchers with unknown transaction status contain the transaction vouchers of the other end of the frozen transaction vouchers sent up;
[0083] If the stored frozen transaction vouchers with unclear transaction status contain the transaction vouchers of the sent frozen transaction voucher counterpart, it is determined that the first verification is successful, and a thawing instruction is sent to the transaction terminal;
[0084] If the stored frozen transaction vouchers with unclear transaction status do not contain the transaction vouchers of the opposite end of the frozen transaction vouchers, it is determined that the first verification has failed, and a second verification is performed on the frozen transaction vouchers to determine whether the stored transaction vouchers with successful transactions contain the transaction vouchers of the opposite end of the frozen transaction vouchers.
[0085] If the stored transaction vouchers for successful transactions contain the transaction vouchers of the frozen transaction voucher counterparty, it is determined that the second verification is successful, and a thawing instruction is sent to the transaction terminal;
[0086] If the transaction voucher of the other end of the frozen transaction voucher sent up does not exist in the stored transaction voucher of the successful transaction, it is determined that the second verification has failed, and the sent frozen transaction voucher is stored as a frozen transaction voucher with an unknown transaction status;
[0087] The data synchronization module 504 is specifically used for:
[0088] For the frozen transaction vouchers that have been successfully verified for the first time or the second time, the ownership of the transaction vouchers is changed and the transaction data is supplemented, and the transaction vouchers with changed ownership are returned to the transaction terminal.
[0089] In one implementation, the data synchronization module 504 is further configured to:
[0090] Merge the frozen transaction vouchers that have been successfully verified for the first time or the second time, and change the ownership of the merged transaction vouchers;
[0091] Based on the transaction voucher after the ownership change, the transaction data is asynchronously re-recorded and the transaction bill is pushed to the transaction voucher ownership end.
[0092] Figure 6FIG. 1 is a schematic diagram of another structure of a bank backend system for synchronizing transaction data in an embodiment of the present invention. Figure 6 As shown, in one embodiment, the system further includes: a rollback account amount module 505, which is used to:
[0093] When the parsing fails, an instruction to unfreeze and roll back the account amount is sent to the transaction terminal, and the transaction terminal is used to unfreeze the uploaded frozen transaction voucher and roll back the account amount of the uploaded frozen transaction voucher.
[0094] like Figure 6 As shown, in one embodiment, the system further includes: a risk transaction terminal marking module 506, which is used to:
[0095] When the security check fails, the transaction terminal that has uploaded the frozen transaction voucher will be marked as a risky transaction terminal, and the risky transaction terminal information will be sent to other transaction terminals, which are used to reject transaction requests initiated by the risky transaction terminal.
[0096] Based on the same inventive concept, the present invention also provides a transaction terminal for synchronizing transaction data, such as the following embodiment. Since the principle of solving the problem by the transaction terminal for synchronizing transaction data is similar to the method for synchronizing transaction data, the implementation of the transaction terminal can refer to the implementation of the method, and the repeated parts will not be repeated.
[0097] The embodiment of the present invention provides a transaction data synchronization transaction terminal, which is used to solve the problem of data inconsistency between a bank backend system and a transaction terminal for transactions without a network state. Figure 7 FIG. 1 is a schematic diagram of a transaction terminal structure for synchronizing transaction data in an embodiment of the present invention. Figure 7 As shown, the trading terminal includes:
[0098] The voucher freezing module 701 is used to freeze the transaction voucher generated during the transaction without network status and send it to the bank backend system when the network connection with the bank backend system is restored, wherein the bank backend system is used to parse and verify the security of the frozen transaction voucher sent up, and after the security verification passes, verify the frozen transaction voucher sent up to determine whether there is a transaction voucher of the other end of the frozen transaction voucher sent up in the stored transaction voucher, and when the verification is successful, send a thawing instruction of the frozen transaction voucher sent up to the transaction terminal;
[0099] The voucher unfreezing and cancellation module 702 is used to receive the unfreezing instruction sent by the bank's back-end system, unfreeze and cancel the successfully verified frozen transaction voucher;
[0100] The transaction voucher storage module 703 is used to receive and store the transaction vouchers with changed ownership sent by the bank's backend system, wherein the bank's backend system is used to change the ownership of the frozen transaction vouchers that have been successfully submitted for verification.
[0101] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned transaction data synchronization method is implemented when the processor executes the computer program.
[0102] An embodiment of the present invention further provides a computer-readable storage medium, which stores a method for executing the above-mentioned transaction data synchronization.
[0103] A specific example is given below to facilitate understanding of how to implement the present invention.
[0104] Figure 8 Schematic diagram of a specific embodiment process in the embodiment of the present invention, such as Figure 8 As shown, the following steps are included:
[0105] Step 1: When the transaction terminal restores the network connection with the bank's back-end system, the transaction voucher generated when the transaction is offline is frozen and sent to the bank's back-end system;
[0106] Step 2: The bank backend system parses the frozen transaction voucher according to the pre-agreed rules or format, and obtains the transaction time, transaction amount, counterparty and other transaction information of each offline transaction. If the parsing fails, it sends the unfreeze and rollback account amount instructions to the transaction terminal, and the transaction terminal unfreezes the frozen transaction voucher and rolls back the account amount of the frozen transaction voucher. If the parsing succeeds, the third step is executed:
[0107] Step 3: The bank's back-end system performs security verification on the frozen transaction vouchers and parsed transaction vouchers. If the security verification fails, the transaction terminal that has uploaded the frozen transaction vouchers will be marked as a risky transaction terminal, and suspicious information will be broadcasted to the entire network. After receiving the broadcast, all transaction terminals in the entire network will reject the transaction request initiated by the risky transaction terminal. After the security verification passes, the fourth step will be executed:
[0108] Step 4: The bank backend system performs the first verification on the frozen transaction voucher sent up, and determines whether the transaction voucher of the opposite end of the frozen transaction voucher sent up exists in the frozen transaction voucher with unknown transaction status stored in the database. If the transaction voucher of the opposite end of the frozen transaction voucher sent up exists in the frozen transaction voucher with unknown transaction status stored in the database, it is determined that the first verification is successful, and a thawing instruction is sent to the transaction terminal;
[0109] Step 5: The transaction terminal receives the unfreezing instruction sent by the bank's back-end system, unfreezes and cancels the frozen transaction voucher that has been successfully verified for the first time;
[0110] Step 6: If the transaction voucher of the opposite end of the frozen transaction voucher sent up does not exist in the stored frozen transaction voucher with unclear transaction status, it is determined that the first verification has failed, and the frozen transaction voucher sent up is verified for the second time to determine whether the transaction voucher of the opposite end of the frozen transaction voucher sent up exists in the stored transaction voucher of successful transaction; if the transaction voucher of the opposite end of the frozen transaction voucher sent up exists in the stored transaction voucher of successful transaction, it is determined that the second verification has succeeded, and a thawing instruction is sent to the transaction terminal; if the transaction voucher of the opposite end of the frozen transaction voucher sent up does not exist in the stored transaction voucher of successful transaction, it is determined that the second verification has failed, and the sent frozen transaction voucher is stored as a frozen transaction voucher with unclear transaction status;
[0111] Step 7: The transaction terminal receives the unfreezing instruction sent by the bank's back-end system, unfreezes and cancels the frozen transaction voucher that has been successfully verified for the second time;
[0112] Step 8: The bank backend system merges the frozen transaction vouchers that have been successfully verified for the first time or the second time into a new transaction voucher, changes the ownership of the new transaction voucher to the customer who submitted the transaction, returns the new transaction voucher to the transaction terminal, and pushes the transaction bill to the end that owns the transaction voucher;
[0113] Step 9: The transaction terminal receives and stores the transaction voucher after the ownership change sent by the bank's back-end system;
[0114] Step 10: The bank’s back-end system asynchronously re-enters the transaction information.
[0115] In summary, the embodiment of the present invention comprises: receiving a frozen transaction voucher sent by a transaction terminal, parsing the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when there is no network state transaction; when the parsing is successful, performing a security check on the sent frozen transaction voucher and the parsed transaction voucher; after the security check is passed, performing a check on the sent frozen transaction voucher to determine whether there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored transaction voucher, if there is a transaction voucher of the opposite end of the sent frozen transaction voucher in the stored transaction voucher, determining that the check is successful, and sending a thawing instruction to the transaction terminal, wherein the transaction terminal is used to store the sent frozen transaction voucher. The transaction voucher is unfrozen and cancelled; the ownership of the frozen transaction voucher that has been successfully verified and uploaded is changed and the transaction data is supplemented, and the transaction voucher with changed ownership is returned to the transaction terminal, and then the transaction voucher is frozen through the transaction terminal. The bank's back-end system parses, verifies security, verifies, changes ownership and supplements data of the uploaded frozen transaction voucher, and can synchronize the data of the terminal without network status to the bank's back-end system as soon as possible, thereby achieving data consistency between the bank's back-end system and the transaction terminal, improving the security and stability of financial payment, avoiding the occurrence of capital loss, thereby protecting the interests of operating institutions and institutional customers and ensuring the stability of the entire financial payment market.
[0116] Although the present invention provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).
[0117] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, devices (systems) or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the present invention may 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-ROM, optical storage, etc.) containing computer-usable program codes.
[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0121] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. The orientation or position relationship indicated by the terms "upper", "lower", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other in the absence of conflict. The present invention is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or permutation of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of the present invention can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A method for synchronizing transaction data, characterized in that: include: The bank backend system receives the frozen transaction voucher sent by the transaction terminal and parses the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when the transaction is not in the network state; When the analysis is successful, the bank's back-end system performs security verification on the frozen transaction voucher and the analyzed transaction voucher; After the security check is passed, the bank's back-end system performs a first check on the uploaded frozen transaction voucher to determine whether the stored frozen transaction voucher with an unclear transaction status has the transaction voucher of the uploaded frozen transaction voucher's counterpart. If the stored frozen transaction voucher with an unclear transaction status has the transaction voucher of the uploaded frozen transaction voucher's counterpart, it is determined that the first check is successful and a thawing instruction is sent to the transaction terminal. If the stored frozen transaction voucher with an unclear transaction status does not have the transaction voucher of the uploaded frozen transaction voucher's counterpart, it is determined that the first check has failed and the uploaded frozen transaction voucher is checked again. Perform a second verification to determine whether the transaction voucher of the frozen transaction voucher peer end is present in the stored transaction voucher of the successful transaction; if the transaction voucher of the frozen transaction voucher peer end is present in the stored transaction voucher of the successful transaction, determine that the second verification is successful, and send a thawing instruction to the transaction terminal; if the transaction voucher of the frozen transaction voucher peer end is not present in the stored transaction voucher of the successful transaction, determine that the second verification has failed, and store the frozen transaction voucher as a frozen transaction voucher with an unknown transaction status; wherein the transaction terminal is used to thaw and cancel the frozen transaction voucher that has been submitted; The bank's back-end system changes the ownership of the frozen transaction voucher and re-enters the transaction data for the transaction voucher that has been successfully verified for the first time or the second time, and returns the transaction voucher with the changed ownership to the transaction terminal.
2. The method according to claim 1, characterized in that For the frozen transaction vouchers that have been successfully verified for the first time or the second time, the owner of the transaction vouchers is changed and the transaction data is supplemented, including: Merge the frozen transaction vouchers that have been successfully verified for the first time or the second time, and change the ownership of the merged transaction vouchers; Based on the transaction voucher after the ownership change, the transaction data is asynchronously re-recorded and the transaction bill is pushed to the transaction voucher ownership end.
3. The method according to claim 1, characterized in that Also includes: When the parsing fails, an instruction to unfreeze and roll back the account amount is sent to the transaction terminal, and the transaction terminal is used to unfreeze the uploaded frozen transaction voucher and roll back the account amount of the uploaded frozen transaction voucher.
4. The method according to claim 1, characterized in that Also includes: When the security check fails, the transaction terminal that has uploaded the frozen transaction voucher will be marked as a risky transaction terminal, and the risky transaction terminal information will be sent to other transaction terminals, which are used to reject transaction requests initiated by the risky transaction terminal.
5. A bank backend system for transaction data synchronization, characterized in that: include: The voucher parsing module is used to receive the frozen transaction voucher sent by the transaction terminal and parse the sent frozen transaction voucher, wherein the transaction terminal is used to freeze the transaction voucher generated when the transaction is not in the network state; A security verification module is used to perform security verification on the frozen transaction voucher and the parsed transaction voucher when the parsing is successful; The verification module is used to perform the first verification on the frozen transaction voucher sent up after the security check is passed, and to determine whether the transaction voucher of the sent frozen transaction voucher counterpart exists in the stored frozen transaction voucher with an unclear transaction status. If the transaction voucher of the sent frozen transaction voucher counterpart exists in the stored frozen transaction voucher with an unclear transaction status, it is determined that the first verification is successful, and a thawing instruction is sent to the transaction terminal; if the transaction voucher of the sent frozen transaction voucher counterpart does not exist in the stored frozen transaction voucher with an unclear transaction status, it is determined that the first verification fails, and the sent frozen transaction voucher is verified. Perform a second check to determine whether the transaction voucher of the frozen transaction voucher peer end is present in the stored transaction voucher of the successful transaction. If the transaction voucher of the frozen transaction voucher peer end is present in the stored transaction voucher of the successful transaction, it is determined that the second check is successful, and a thawing instruction is sent to the transaction terminal. If the transaction voucher of the frozen transaction voucher peer end is not present in the stored transaction voucher of the successful transaction, it is determined that the second check fails, and the frozen transaction voucher is stored as a frozen transaction voucher with an unknown transaction status, wherein the transaction terminal is used to thaw and cancel the frozen transaction voucher. The data synchronization module is used to change the ownership of the frozen transaction voucher and supplement the transaction data of the transaction voucher that has been successfully verified for the first time or the second time, and return the transaction voucher with changed ownership to the transaction terminal.
6. The bank backend system as claimed in claim 5, characterized in that: The data synchronization module is further used to: Merge the frozen transaction vouchers that have been successfully verified for the first time or the second time, and change the ownership of the merged transaction vouchers; Based on the transaction voucher after the ownership change, the transaction data is asynchronously re-recorded and the transaction bill is pushed to the transaction voucher ownership end.
7. The bank backend system as claimed in claim 6, characterized in that: Also includes: The rollback account amount module is used to: When the parsing fails, an instruction to unfreeze and roll back the account amount is sent to the transaction terminal, and the transaction terminal is used to unfreeze the uploaded frozen transaction voucher and roll back the account amount of the uploaded frozen transaction voucher.
8. The bank backend system as claimed in claim 6, characterized in that: Also included: a risk transaction terminal marking module, used to: When the security check fails, the transaction terminal that has uploaded the frozen transaction voucher will be marked as a risky transaction terminal, and the risky transaction terminal information will be sent to other transaction terminals, which are used to reject transaction requests initiated by the risky transaction terminal.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
