A data processing method, device, equipment and storage medium

Through double verification and private blockchain storage of data processing requests in foreign exchange transactions, the problem of loss of profits and transaction risks caused by changes in quotation information in foreign exchange transactions is solved, and the protection of user interests and transaction security are achieved.

CN112926988BActive Publication Date: 2024-10-29BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110272137.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-12
Publication Date
2024-10-29
Estimated Expiration
2041-03-12

AI Technical Summary

Technical Problem

In foreign exchange transactions, because the price information changes with the market conditions, it takes time for the bank's foreign exchange system to process foreign exchange transactions. As a result, the price information initiated by the user is different from the price information processed by the system, resulting in loss of profits, and the user's transaction information may be tampered with, increasing transactions. risk.

Method used

By double-verifying the first price information in the data processing request to ensure that it is consistent with the current price information in the processing server and price publishing server, a private blockchain is used to store the data processing request to prevent tampering.

Benefits of technology

Ensure that the interests of banks or users are not damaged, reduce transaction risks, prevent data processing requests from being tampered with, and improve the security and accuracy of transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112926988B_ABST
    Figure CN112926988B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, device, equipment and storage medium, which relates to the field of data processing technology, and can guarantee the interests of banks or users and reduce the risks of user transactions. The method includes: receiving a data processing request for an account from a terminal; the data processing request includes first quotation information, and the data processing request is used to request to change the resources of a target business in the account based on the first quotation information; determining the characteristic value of the first quotation information; when the characteristic value of the first quotation information is the same as the characteristic value of the second quotation information and the characteristic value of the third quotation information, changing the resources of the target business in the account based on the first quotation information. The method of the present application performs a double verification on the first quotation information in the data processing request, and only changes the resources of the target business in the account when both double verifications are passed, thereby guaranteeing the interests of the bank or user and reducing the risks of user transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, equipment and storage medium. Background Art

[0002] After a user initiates a foreign exchange transaction, the bank's foreign exchange system generally processes the transaction based on the exchange rate information at the time the user initiates the foreign exchange transaction.

[0003] However, since the exchange rate information of foreign exchange transactions will change with the market situation, and it takes a certain amount of time for the bank's foreign exchange system to process foreign exchange transactions, this will result in the exchange rate information when the user initiates the foreign exchange transaction being different from the exchange rate information when the bank's foreign exchange system processes the foreign exchange transaction, causing damage to the interests of the bank or the user. In addition, the information of the user initiating the foreign exchange transaction may be tampered with, resulting in a higher risk of user transactions. Summary of the invention

[0004] The present application provides a data processing method, apparatus, device and storage medium, which can ensure the interests of banks or users and reduce the risks of user transactions.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a data processing method, applied to a processing server, the method comprising: receiving a data processing request for an account from a terminal; the data processing request comprises first price information, the data processing request is used to request to change the resources of a target business in the above-mentioned account based on the first price information; determining a characteristic value of the above-mentioned first price information; when the characteristic value of the above-mentioned first price information is the same as the characteristic value of the second price information and the characteristic value of the third price information, changing the resources of the target business in the above-mentioned account based on the above-mentioned first price information; the above-mentioned second price information is the current price information of the above-mentioned target business in the price publishing server, and the above-mentioned third price information is the current price information of the above-mentioned target business in the above-mentioned processing server.

[0007] The data processing method provided by the present application changes the resources of the target business in the account based on the first exchange rate information when the first exchange rate information in the data processing request is the same as the current exchange rate information in the processing server and the current exchange rate information in the exchange rate issuing server. That is, the scheme of the present application performs a double verification on the first exchange rate information in the data processing request, and only changes the resources of the target business in the account when both double verifications are passed, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0008] In combination with the first aspect, in a possible implementation method, after determining the characteristic value of the first price information, the method also includes: sending a price confirmation request to a price publishing server; the price confirmation request includes the characteristic value of the first price information; receiving price confirmation information from the price publishing server; the price confirmation information is used to indicate whether the characteristic value of the first price information is the same as the characteristic value of the second price information.

[0009] Based on this solution, after determining the characteristic value of the first price information, a price confirmation request is sent to the price publishing server, and price confirmation information from the above price publishing server is received, so as to determine whether the characteristic value of the first price information is the same as the characteristic value of the second price information.

[0010] In combination with the first aspect, in a possible implementation, the data processing request also includes the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed. Before changing the resources of the target business in the account based on the first exchange rate information, the method also includes: storing the data processing request in a blockchain to be processed; the blockchain to be processed is a private blockchain.

[0011] Based on this solution, before changing the resources of the target business in the account based on the first exchange rate information, the data processing request is stored in the pending blockchain, and the pending blockchain is a private blockchain, which can determine the unprocessed data processing requests and prevent the data processing requests from being tampered with, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0012] In combination with the first aspect, in a possible implementation, the data processing request also includes the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed. After changing the resources of the target business in the account based on the first exchange rate information, the method also includes: storing the data processing request in a processed blockchain; the processed blockchain is a private blockchain.

[0013] Based on this solution, after the resources of the target business in the account are changed based on the first exchange rate information, the data processing request is stored in the processed blockchain, and the processed blockchain is a private blockchain, which can determine the processed data processing request and prevent the user's data processing request from being tampered with, thereby ensuring the interests of the bank or the user and reducing the risk of user transactions.

[0014] In combination with the first aspect, in a possible implementation, before changing the resources of the target business in the account based on the first quotation information, the method also includes: receiving second quotation information from a quotation publishing server; determining third quotation information based on the second quotation information; and determining a characteristic value of the third quotation information based on the third quotation information.

[0015] Based on this solution, before changing the resources of the target business in the account, the third pricing information, that is, the current pricing information of the target business in the processing server, can be determined based on the second pricing information from the pricing publishing server, and the characteristic value of the third pricing information can be determined.

[0016] In combination with the first aspect, in a possible implementation, the above method also includes: generating status information of a data processing request; the status information of the data processing request is used to indicate that the status of the data processing request is a pending state or a processed state; and sending the status information of the data processing request to the terminal.

[0017] Based on this solution, the status information of the data processing request is sent to the terminal, so that the user can determine whether the initiated data processing request is in a processed state or a pending state.

[0018] In the second aspect, the present application provides a data processing method, which is applied to a price publishing server, and the method includes: determining second price information, which is the current price information of the target business in the price publishing server; based on the above second price information, determining the characteristic value of the above second price information; receiving a price confirmation request from a processing server; the price confirmation request includes the characteristic value of the first price information; the first price information is the price information in the data processing request of the terminal for the account; sending price confirmation information to the above processing server; the above price confirmation information is used to indicate whether the characteristic value of the above first price information is the same as the characteristic value of the above second price information.

[0019] The data processing method provided by the present application is that the quotation publishing server sends to the processing server an instruction terminal to indicate whether the quotation information in the data processing request for the account is the same as the current quotation information in the quotation publishing server, so that when the processing server processes the data processing request, it ensures that the quotation information in the data processing request is the same as the current quotation information of the target business in the processing server, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0020] In conjunction with the second aspect, in a possible implementation manner, before receiving the price confirmation request from the processing server, the method further includes: sending second price information to the processing server and the terminal.

[0021] Based on this solution, before receiving the price confirmation request from the processing server, the second price information is sent to the processing server and the terminal, so that the processing server can determine the third price information, that is, the current price information of the target business in the processing server, based on the second price information.

[0022] In a third aspect, the present application provides a data processing device, which is applied to a processing server, and the device includes: a receiving unit, which receives a data processing request for an account from a terminal; the data processing request includes first price information, and the data processing request is used to request to change the resources of the target business in the above-mentioned account based on the first price information; a determination unit, which is used to determine the characteristic value of the above-mentioned first price information received by the above-mentioned receiving unit; a change unit, which is used to change the resources of the target business in the above-mentioned account based on the above-mentioned first price information when the characteristic value of the above-mentioned first price information is the same as the characteristic value of the second price information and the characteristic value of the third price information; the above-mentioned second price information is the current price information of the above-mentioned target business in the price publishing server, and the above-mentioned third price information is the current price information of the above-mentioned target business in the above-mentioned processing server.

[0023] The data processing device provided by the present application changes the resources of the target business in the account based on the first exchange rate information when the first exchange rate information in the data processing request is the same as the current exchange rate information in the processing server and the current exchange rate information in the exchange rate issuing server. That is, the scheme of the present application performs a double verification on the first exchange rate information in the data processing request, and only changes the resources of the target business in the account when both double verifications are passed, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0024] In a fourth aspect, the present application provides a data processing device, which is applied to a price publishing server, and the device includes: a determination unit, which is used to determine second price information; the second price information is the current price information of the target business in the above-mentioned price publishing server; the above-mentioned determination unit is also used to determine the characteristic value of the above-mentioned second price information based on the above-mentioned second price information determined by the above-mentioned determination unit; a receiving unit, which is used to receive a price confirmation request from a processing server; the above-mentioned price confirmation request includes the characteristic value of the first price information; the above-mentioned first price information is the price information in the data processing request of the terminal for the account; a sending unit, which is used to send price confirmation information to the above-mentioned processing server; the above-mentioned price confirmation information is used to indicate whether the characteristic value of the above-mentioned first price information is the same as the characteristic value of the second price information.

[0025] The data processing method provided by the present application is that the quotation publishing server sends to the processing server an instruction terminal to indicate whether the quotation information in the data processing request for the account is the same as the current quotation information in the quotation publishing server, so that when the processing server processes the data processing request, it ensures that the quotation information in the data processing request is the same as the current quotation information of the target business in the processing server, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0026] In a fifth aspect, the present application provides a data processing device, the data processing device comprising a memory and a processor. The memory and the processor are coupled. The memory is used to store a computer program code, the computer program code comprising a computer instruction. When the processor executes the computer instruction, the data processing device performs the data processing method as described in the first aspect and any possible design thereof; or performs the data processing method as described in the second aspect and any possible design thereof.

[0027] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium runs on a data processing device, the data processing device executes the data processing method described in the first aspect and any possible design thereof; or executes the data processing method described in the second aspect and any possible design thereof.

[0028] In the seventh aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a data processing device, the data processing device executes the data processing method as described in the first aspect and any possible design thereof; or executes the data processing method as described in the second aspect and any possible design thereof.

[0029] For the specific description of the fifth, sixth, and seventh aspects of the present application and their various implementations, reference may be made to the detailed description of the first, second, and various implementations thereof; and for the beneficial effects of the fifth, sixth, and seventh aspects and their various implementations, reference may be made to the beneficial effects analysis of the first, second, and various implementations thereof, which will not be repeated here.

[0030] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 A schematic diagram of the data processing system structure provided in an embodiment of the present application;

[0033] Figure 2 Schematic diagram of the data processing method provided in the embodiment of the present application Figure 1 ;

[0034] Figure 3 Schematic diagram of the data processing method provided in the embodiment of the present application Figure 2 ;

[0035] Figure 4 A schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the structure of the data processing device provided in the embodiment of the present application Figure 1 ;

[0037] Figure 6 A schematic diagram of the structure of the data processing device provided in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0040] In order to facilitate understanding of the embodiments of the present application, relevant terms involved in the embodiments of the present application are first described here.

[0041] Foreign exchange trading refers to the exchange of one country's currency for another country's currency. Unlike other financial markets, the foreign exchange market has no specific location, but is traded through electronic networks between banks, companies and individuals. "Foreign exchange trading" is to buy one currency in a pair of currencies and sell another currency at the same time. Foreign exchange is traded in the form of currency pairs. For banks, foreign exchange trading can refer to all foreign exchange-related transactions conducted by banks, such as real and virtual foreign exchange transactions, foreign exchange settlement and sales transactions, precious metals and crude oil transactions, etc.

[0042] Blockchain is a distributed storage architecture. There is no centralized hardware or management organization. "Decentralization" is one of its major advantages. Each block contains the hash value of the previous block, as well as the random number, generation time, storage data and other information of this block. The current block points to the hash value of the previous block, forming a "chain". If the data of a block in the chain is modified, the hash value of the block will also change, and then the hash values ​​of all blocks in the chain must be recalculated. Therefore, it requires a huge amount of computing power to modify the data machine of the blockchain, which is considered impossible in theory. Therefore, the blockchain has the characteristic of "unchangeable", and the data interaction between nodes relies on cryptographic algorithms, and does not require mutual trust. Blockchain is divided into public blockchain and private blockchain. Public blockchain is a public chain that can be read and added by anyone.

[0043] Private blockchain: refers to a completely private blockchain. The write permission of a blockchain is only in the hands of a certain person or organization, and the access and writing of data are subject to very strict permissions. The private blockchain still has the characteristics of decentralization and distributed accounting of ordinary blockchains.

[0044] The quoted price is the specified price. The quoted price of foreign exchange transactions is the price of foreign exchange transactions, that is, the exchange rate of foreign exchange transactions. The quoted price of foreign exchange transactions changes in real time, and even the quoted price on the same day is different. The quoted price of foreign exchange transactions includes the spot purchase price, the spot purchase price, etc. The quoted price in this application is the quoted price of foreign exchange transactions.

[0045] After a user initiates a foreign exchange transaction, the bank's foreign exchange system generally processes the transaction based on the exchange rate information at the time the user initiates the foreign exchange transaction.

[0046] However, since the exchange rate information of foreign exchange transactions will change with the market situation, and it takes a certain amount of time for the bank's foreign exchange system to process foreign exchange transactions, this will result in the exchange rate information when the user initiates the foreign exchange transaction being different from the exchange rate information when the bank's foreign exchange system processes the foreign exchange transaction, causing damage to the interests of the bank or the user. In addition, the information of the user initiating the foreign exchange transaction may be tampered with, resulting in a higher risk of user transactions.

[0047] In response to the above problems, the present application provides a data processing method, which performs double verification on the first exchange rate information in the data processing request, and only changes the resources of the target business in the account when both verifications are passed, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0048] like Figure 1 As shown, the data processing system 01 provided in the present application includes a terminal 02 , a processing server 03 and a price publishing server 04 .

[0049] The terminal 02 is used to display the exchange rate information to the user, and send a data processing request for the user's account to the processing server 03 according to the exchange rate information selected by the user.

[0050] The processing server 03 is used to receive a data processing request for an account from the terminal 02, and verify the exchange rate information in the data processing request. After the verification is passed, the resources of the target business in the account are changed based on the exchange rate information in the data processing request.

[0051] The price issuing server 04 is used to determine the price information and send the price information to the processing server 03 and the terminal 02, and receive the price confirmation request from the processing server 03 and send the price confirmation information to the processing server 03.

[0052] The executor of the data processing method provided in the embodiment of the present application is a data processing device, which can be applied to a processing server or a price publishing server.

[0053] The data processing method provided in the embodiment of the present application is described below.

[0054] like Figure 2 As shown, the data processing method includes:

[0055] S201. The price publishing server determines second price information.

[0056] The second price information is the current price information of the target service in the price publishing server.

[0057] Optionally, the target business includes transactions between currencies, crude oil transactions, and precious metal transactions, etc. Transactions between currencies include transactions between any two different currencies.

[0058] The second price information may be one or more, and this application does not limit this.

[0059] Optionally, the exchange rate publishing server formulates exchange rate information between various currencies, namely, second exchange rate information, according to the market middle price of the currency and the international foreign exchange market situation.

[0060] Optionally, the second price information may be a serial number of current price information of the target service in the price publishing server.

[0061] S202: The price publishing server determines a characteristic value of the second price information based on the second price information.

[0062] The characteristic value of the second price information is used to characterize the second price information.

[0063] Optionally, the characteristic value of the second price information may be a hash value of the second price information. The price issuing server performs a hash operation on the second price information to obtain the hash value of the second price information.

[0064] Exemplarily, when the second price information is a serial number, the characteristic value of the second price information is a hash value of the serial number corresponding to the second price information.

[0065] Furthermore, after determining the hash value of the second price information, the price publishing server constructs a hash binary tree in the price publishing server based on the hash value of the second price information, and uses the hash binary tree in the price publishing server to store the hash value of the second price information.

[0066] S203: The price publishing server sends second price information to the terminal.

[0067] The terminal includes a mobile phone, a computer, a tablet computer, and other devices that can be installed with banking software. For example, the banking software can be mobile banking.

[0068] S204: The terminal receives second price information from the price publishing server.

[0069] After receiving the second price information from the price issuing server, the terminal uses the second price information as the current price information (ie, the first price information) of the target service in the terminal.

[0070] Optionally, the terminal may display the first exchange rate information through banking software, so that the user may select a transaction to be performed according to the first exchange rate information.

[0071] Exemplarily, after receiving the second price information from the price publishing server, the terminal can display the second price information (ie, the first price information) on the mobile banking, so that the user can select the transaction to be conducted according to the second price information.

[0072] Since the second exchange rate information is exchange rate information between various currencies formulated by the exchange rate publishing server according to the market middle price of the currency and the international foreign exchange market situation, the second exchange rate information will change dynamically. When the second exchange rate information in the exchange rate publishing server changes, it takes a certain amount of time for the exchange rate publishing server to send the second exchange rate information to the terminal and for the terminal to determine the first exchange rate information according to the second exchange rate information. Therefore, the first exchange rate information and the second exchange rate information in the exchange rate publishing server may be different.

[0073] S205: The price publishing server sends the second price information to the processing server.

[0074] S206: The processing server receives the second price information from the price issuing server.

[0075] It should be noted that the above S203 may be performed before S205 or after S205, and S203 may also be performed simultaneously with S205. This application only takes the example that S203 may be performed before S205 for explanation.

[0076] After receiving the second price information from the price issuing server, the processing server uses the received second price information as the current price information (ie, the third price information) of the target service in the processing server.

[0077] The third price information can be one or more, and this application does not limit this. When the second price information is one, the corresponding third price information is one, and when the second price information is more than one, the corresponding third price information is more than one.

[0078] Optionally, the third price information may be a serial number of current price information of the target service in the processing server.

[0079] Since the second exchange rate information is the exchange rate information between various currencies formulated by the exchange rate issuing server according to the market middle price of the currency and the international foreign exchange market situation, the second exchange rate information will change dynamically. When the second exchange rate information in the exchange rate issuing server changes, it takes a certain amount of time for the exchange rate issuing server to send the second exchange rate information to the processing server and for the processing server to determine the third exchange rate information based on the second exchange rate information. Therefore, the third exchange rate information may be different from the second exchange rate information in the exchange rate issuing server.

[0080] Optionally, the processing server determines a characteristic value of the third quotation information based on the third quotation information.

[0081] The characteristic value of the third price information is used to characterize the third price information.

[0082] Optionally, the characteristic value of the third price information may be a hash value of the third price information. The processing server performs a hash operation on the third price information to obtain the hash value of the third price information.

[0083] Furthermore, after determining the hash value of the third price information, the processing server constructs a hash binary tree in the processing server based on the hash value of the third price information, and uses the hash binary tree in the processing server to store the hash value of the third price information.

[0084] S207: The terminal determines a data processing request for the account.

[0085] The terminal may include multiple accounts, and the users corresponding to each account may be the same or different.

[0086] A data processing request is a request initiated by the user corresponding to the account.

[0087] Optionally, before the terminal determines a data processing request for the account, the user may register an account on the terminal.

[0088] For example, after the user registers an account on the mobile banking software of the terminal, the mobile banking software can display the current price information of the target business in the terminal, so that the user can select the transaction to be conducted according to the current price information of the target business in the terminal.

[0089] The data processing request is used to request to change the resources of the target business in the account based on the first exchange rate information.

[0090] Exemplarily, the resource of the target business is the amount of the target business in the user's account.

[0091] The data processing request includes first price information, which is the current price information of the target service in the terminal.

[0092] Optionally, the first price information is a serial number of the first price.

[0093] Optionally, the data processing request also includes the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed.

[0094] S208. The terminal sends a data processing request for the account to the processing server.

[0095] S209: The processing server receives a data processing request for the account from the terminal.

[0096] After receiving the data processing request for the account from the terminal, the processing server may store the data processing request.

[0097] Optionally, the processing server may store the data processing request on different blockchains according to the target business in the data processing request.

[0098] Optionally, the processing server may generate different to-be-processed blockchains in advance according to different businesses. Furthermore, the to-be-processed blockchain is a private blockchain.

[0099] The processing server stores the data processing request on different pending blockchains according to the target business in the data processing request. When the pending blockchain is a private blockchain, since the write permission of the private blockchain is only in the hands of a certain person or organization, the access and writing of data are subject to very strict permissions. Therefore, storing the user's data processing request in the corresponding pending blockchain can determine the unprocessed user's data processing request and prevent the user's data processing request from being tampered with, thereby ensuring the interests of the bank or the user and reducing the risk of user transactions.

[0100] S210: The processing server determines a characteristic value of the first price information based on the first price information.

[0101] The characteristic value of the first price information is used to characterize the first price information.

[0102] Optionally, the characteristic value of the first price information may be a hash value of the first price information. For example, the processing server performs a hash operation on the first price information to obtain the hash value of the first price information, that is, the characteristic value of the first price information.

[0103] S211. The processing server compares the characteristic value of the first price information with the characteristic value of the third price information.

[0104] The processing server can determine whether the characteristic value of the first price information is the same as the characteristic value of the third price information by comparing the characteristic value of the first price information with the characteristic value of the third price information. If the characteristic value of the first price information is not the same as the characteristic value of the third price information, the processing server stops processing the user's data processing request.

[0105] Exemplarily, when the characteristic value of the first price information is the hash value of the first price information, and the hash binary tree in the processing server stores multiple hash values ​​of the third price information, the processing server determines whether the hash value of the third price information is the same as the hash value of the first price information through the hash binary tree. By means of the hash binary tree, it is possible to quickly and accurately determine whether the hash value of the third price information is the same as the hash value of the first price information, thereby improving the efficiency of price query and verification in the processing server and improving the processing capacity of the processing server.

[0106] S212: The processing server sends a price confirmation request to the price publishing server.

[0107] The price confirmation request includes the characteristic value of the first price information. For example, the price confirmation request includes the hash value of the first price information.

[0108] The price confirmation request is used to request whether the characteristic value of the first price information is the same as the characteristic value of the second price information in the price issuing server.

[0109] It should be noted that the above S211 may be performed before S212 or after S212, and S211 may be performed simultaneously with S212. This application only takes the example that S211 may be performed before S212 for explanation.

[0110] S213: The price issuing server receives the price confirmation request from the processing server.

[0111] S214: The price publishing server compares the characteristic value of the first price information with the characteristic value of the second price information.

[0112] The price issuing server determines whether the characteristic value of the first price information is the same as the characteristic value of the second price information by comparing the characteristic value of the first price information with the characteristic value of the second price information.

[0113] In the case where the characteristic value of the first price information is the same as the characteristic value of the second price information, the price issuing server generates price confirmation information indicating that the characteristic value of the first price information is the same as the characteristic value of the second price information. In the case where the characteristic value of the first price information is different from the characteristic value of the second price information, the price issuing server generates price confirmation information indicating that the characteristic value of the first price information is different from the characteristic value of the second price information.

[0114] Exemplarily, when the characteristic value of the first price information is the hash value of the first price information, and the hash binary tree in the price publishing server stores multiple hash values ​​of the second price information, the price publishing server determines whether the hash value of the second price information is the same as the hash value of the first price information through the hash binary tree. By means of the hash binary tree, it is possible to quickly and accurately determine whether the hash value of the second price information is the same as the hash value of the first price information, thereby improving the efficiency of price query and verification in the price publishing server and improving the processing capacity of the price publishing server.

[0115] S215. The price publishing server generates price confirmation information.

[0116] When the characteristic value of the first price information is the same as the characteristic value of the second price information, the price confirmation information indicates that the characteristic value of the first price information is the same as the characteristic value of the second price information. When the characteristic value of the first price information is different from the characteristic value of the second price information, the price confirmation information indicates that the characteristic value of the first price information is different from the characteristic value of the second price information.

[0117] S216. The price publishing server sends price confirmation information to the processing server.

[0118] S217. The processing server receives price confirmation information from the price publishing server.

[0119] S218: When the characteristic value of the first price information is the same as the characteristic value of the second price information and the characteristic value of the third price information, the processing server changes the resources of the target business in the account based on the first price information.

[0120] In the case where the characteristic value of the first price information is the same as the characteristic value of the second price information and the characteristic value of the third price information, that is, the processing server determines that the characteristic value of the first price information is the same as the characteristic value of the third price information, and the price confirmation information indicates that the characteristic value of the first price information is the same as the characteristic value of the second price information. In the case where the characteristic value of the first price information is different from at least one of the characteristic value of the second price information and the characteristic value of the third price information, the processing server stops processing the user's data processing request.

[0121] After the processing server changes the resources of the target business in the account, the processed data processing request can be stored.

[0122] Optionally, the processing server may store the data processing request on different blockchains according to the target business in the data processing request.

[0123] Optionally, the processing server may generate different processed blockchains in advance according to different businesses. Furthermore, the processed blockchain is a private blockchain.

[0124] The processing server stores the data processing request on different processed blockchains according to the target business in the data processing request. When the processed blockchain is a private blockchain, the write permission of the blockchain is only in the hands of a certain person or organization, and the access and writing of data are subject to very strict permissions. Therefore, storing the user's data processing request on the corresponding processed blockchain can determine the unprocessed user's data processing request and prevent the user's data processing request from being tampered with, thereby ensuring the interests of the bank or the user and reducing the risk of user transactions.

[0125] The data processing method provided by the present application changes the resources of the target business in the account based on the first exchange rate information when the first exchange rate information in the data processing request is the same as the current exchange rate information in the processing server and the current exchange rate information in the exchange rate issuing server. That is, the scheme of the present application performs a double verification on the first exchange rate information in the data processing request, and only changes the resources of the target business in the account when both double verifications are passed, thereby ensuring the interests of the bank or the user and reducing the risks of user transactions.

[0126] Optional, combined Figure 2 ,like Figure 3 As shown, the data processing method provided in the present application also includes S219-S221.

[0127] S219: The processing server generates status information of the data processing request.

[0128] The status information of the data processing request is used to indicate whether the status of the data processing request is pending or processed.

[0129] Optionally, the status information of the data processing request includes the time when the request is initiated, the target business requested to be changed, and the number of resources of the target business requested to be changed.

[0130] Optionally, after storing the user's data processing request in the pending blockchain, the processing server generates status information of the data processing request indicating that the status of the data processing request is a pending status.

[0131] After the processing server stores the user's data processing request in the processed blockchain, the processing server generates status information of the data processing request indicating that the status of the data processing request is a processed status.

[0132] Optionally, the status information of the data processing request is also used to instruct the processing server to stop processing the user's data processing request.

[0133] The processing server stops processing the user's data processing request including at least one of the following: the characteristic value of the first pricing information is different from the characteristic value of the third pricing information, or the pricing confirmation information indicates that the characteristic value of the first pricing information is different from the characteristic value of the second pricing information.

[0134] S220: The processing server sends status information of the data processing request to the terminal.

[0135] S221. The terminal receives status information of a data processing request from a processing server.

[0136] After the terminal receives the status information of the data processing request from the processing server, the terminal can display the status information of the data processing request through the banking software, so that the user can know the status of the data processing request.

[0137] Exemplarily, after receiving the status information of the data processing request from the processing server, the terminal may display the status information of the data processing request on the mobile banking.

[0138] It should be noted that when receiving a new data processing request from a user, the terminal can compare the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed in the new data processing request of the user with the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed in the status information of the data processing request, so as to determine whether the new data processing request of the user is repeated with the previous data processing request. When the new data processing request of the user is repeated with the previous data processing request, the user device can display a prompt message indicating that the data processing request is repeated, so as to allow the user to confirm. By comparing the new data processing request of the user with the status information of the data processing request, it is possible to avoid repeated transactions by the user.

[0139] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0140] like Figure 4 As shown, the embodiment of the present application provides a data processing device 400. The data processing device 400 may include at least one processor 401, a communication line 402, a memory 403, and a communication interface 404.

[0141] Specifically, the processor 401 is used to execute the computer-executable instructions stored in the memory 403, so as to implement the steps or actions of the terminal.

[0142] The processor 401 may be a chip. For example, it may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0143] The communication line 402 is used to transmit information between the processor 401 and the memory 403 .

[0144] The memory 403 is used to store and execute computer-executable instructions, and the execution is controlled by the processor 401 .

[0145] The memory 403 may be independent and connected to the processor via the communication line 402. The memory 403 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), and enhanced synchronous dynamic random access memory (ESDRAM). It should be noted that memory of the systems and devices described herein is intended to comprise, without being limited to, these and any other suitable types of memory.

[0146] The communication interface 404 is used to communicate with other devices or communication networks, where the communication network can be Ethernet, radio access network (RAN), or wireless local area network (WLAN).

[0147] It should be pointed out that Figure 4 The structure shown in the figure does not constitute a limitation on the data processing device. Figure 4 In addition to the components shown, the data processing device may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0148] like Figure 5 As shown, an embodiment of the present application provides a data processing device 50. The data processing device 50 is applied to a processing server. The data processing device 50 may include a receiving unit 51, a determining unit 52, and a changing unit 53.

[0149] The receiving unit 51 is used to receive a data processing request for an account from a terminal. Figure 2 , the receiving unit 51 can be used to execute S209.

[0150] The determining unit 52 is used to determine the characteristic value of the first price information received by the receiving unit. Figure 2 , the determination unit 52 can be used to execute step S210.

[0151] The changing unit 53 is used to change the resources of the target business in the account based on the first price information when the characteristic value of the first price information is the same as the characteristic value of the second price information and the characteristic value of the third price information. Figure 2 , the changing unit 53 can be used to execute step S218.

[0152] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0153] In actual implementation, the receiving unit 51, the determining unit 52 and the changing unit 53 may be composed of Figure 4 The processor 401 shown calls the program code in the memory 403 to implement. The specific execution process can be referred to Figure 2 , Figure 3 The description of the method part in the data processing method shown will not be repeated here.

[0154] like Figure 6 As shown, the embodiment of the present application provides a data processing device 60. The data processing device 60 is applied to a price publishing server. The data processing device 60 may include a determining unit 61, a receiving unit 62, and a sending unit 63.

[0155] The determination unit 61 is used to determine the second price information. Figure 2 , the determination unit 61 can be used to execute S201.

[0156] The determining unit 61 is further configured to determine a characteristic value of the second price information based on the second price information determined by the determining unit 61. Figure 2 , the determination unit 61 can be used to execute step S202.

[0157] The receiving unit 62 is used to receive a price confirmation request from a processing server. Figure 2 , the receiving unit 62 can be used to execute step S213.

[0158] The sending unit 63 is used to send the price confirmation information to the processing server. Figure 2 , the sending unit 63 can be used to execute step S216.

[0159] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0160] In actual implementation, the determining unit 61, the receiving unit 62 and the sending unit 63 may be composed of Figure 4 The processor 401 shown calls the program code in the memory 403 to implement. The specific execution process can be referred to Figure 2 , Figure 3 The description of the method part in the data processing method shown will not be repeated here.

[0161] Another embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a data processing device, the data processing device executes each step executed by the processing server in the method flow shown in the above method embodiment; or executes each step executed by the price publishing server in the method flow shown in the above method embodiment.

[0162] In another embodiment of the present application, a computer program product is also provided, which includes instructions. When the instructions are executed on a data processing device, the data processing device executes each step executed by the processing server in the method flow shown in the above method embodiment; or executes each step executed by the price publishing server in the method flow shown in the above method embodiment.

[0163] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0164] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0165] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0166] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0167] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0168] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A data processing method, It is characterized in that Applied to a processing server, the method comprises: receiving a data processing request for an account from a terminal; the data processing request includes first exchange rate information, and the data processing request is used to request to change resources of a target business in the account based on the first exchange rate information; Determining a characteristic value of the first price information; When the characteristic value of the first pricing information is the same as the characteristic value of the second pricing information and the characteristic value of the third pricing information, the resources of the target business in the account are changed based on the first pricing information; the second pricing information is the current pricing information of the target business in the pricing publishing server, and the third pricing information is the current pricing information of the target business in the processing server.

2. The method according to claim 1, It is characterized in that After determining the characteristic value of the first price information, the method further includes: Sending a price confirmation request to a price publishing server; the price confirmation request includes a characteristic value of the first price information; Receive price confirmation information from the price publishing server; the price confirmation information is used to indicate whether the characteristic value of the first price information is the same as the characteristic value of the second price information.

3. The method according to claim 1, It is characterized in that The data processing request also includes the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed; Before changing the resources of the target business in the account based on the first exchange rate information, the method further includes: Storing the data processing request in a blockchain to be processed; The blockchain to be processed is a private blockchain.

4. The method according to claim 1, It is characterized in that The data processing request also includes the time of initiating the request, the target business requested to be changed, and the number of resources of the target business requested to be changed; After changing the resources of the target business in the account based on the first exchange rate information, the method further includes: Storing the data processing request in a processed blockchain; The processed blockchain is a private blockchain.

5. The method according to any one of claims 1 to 4, It is characterized in that Before changing the resources of the target business in the account based on the first exchange rate information, the method further includes: Receiving the second price information from the price publishing server; Determining the third price information according to the second price information; Based on the third price information, a feature value of the third price information is determined.

6. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: generating status information of the data processing request; the status information of the data processing request is used to indicate whether the status of the data processing request is a pending status or a processed status; Sending status information of the data processing request to the terminal.

7. A data processing method, It is characterized in that Applied to a price publishing server, the method comprises: Determine second price information; the second price information is the current price information of the target business in the price publishing server; Based on the second price information, determining a characteristic value of the second price information; Receiving a price confirmation request from a processing server; the price confirmation request includes a characteristic value of first price information; the first price information is the price information in the data processing request of the terminal for the account; Sending price confirmation information to the processing server; the price confirmation information is used to indicate whether the characteristic value of the first price information is the same as the characteristic value of the second price information.

8. The method according to claim 7, It is characterized in that Before receiving the price confirmation request from the processing server, the method further includes: The second price information is sent to the processing server and the terminal.

9. A data processing device, It is characterized in that Applied to a processing server, the device comprises: A receiving unit, receiving a data processing request for an account from a terminal; the data processing request includes first exchange rate information, and the data processing request is used to request to change resources of a target business in the account based on the first exchange rate information; a determining unit, configured to determine a characteristic value of the first price information received by the receiving unit; A changing unit is used to change the resources of the target business in the account based on the first pricing information when the characteristic value of the first pricing information is the same as the characteristic value of the second pricing information and the characteristic value of the third pricing information; the second pricing information is the current pricing information of the target business in the pricing publishing server, and the third pricing information is the current pricing information of the target business in the processing server.

10. A data processing device, It is characterized in that Applied to a price publishing server, the device comprises: A determination unit, used to determine second price information; the second price information is the current price information of the target business in the price publishing server; The determining unit is further configured to determine a characteristic value of the second price information based on the second price information determined by the determining unit; A receiving unit, configured to receive a price confirmation request from a processing server; the price confirmation request includes a characteristic value of first price information; the first price information is the price information in a data processing request of a terminal for an account; The sending unit is used to send price confirmation information to the processing server; the price confirmation information is used to indicate whether the characteristic value of the first price information is the same as the characteristic value of the second price information.

11. A data processing device, It is characterized in that The data processing device includes a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the data processing device executes the data processing method as described in any one of claims 1 to 6; or executes the data processing method as described in claim 7 or 8.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the computer-readable storage medium runs on a data processing device, the data processing device executes the data processing method as described in any one of claims 1 to 6; or executes the data processing method as described in claim 7 or 8.

Citation Information

Patent Citations

  • Foreign-currency trade system

    CN101075336A

  • A block chain-based chain currency exchange method, device and equipment and a medium

    CN109670802A