Resource transfer data processing method, device, electronic device and medium
By generating and verifying resource transfer notes, combining the fault-tolerant time prediction model, the resource transfer information verification process is optimized, and the problem of low information verification efficiency in the existing technology is solved, and efficient abnormal detection and fund risk management of resource transfer services are realized.
Patent Information
- Application Number
- CN202110716183.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-25
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2041-06-25
AI Technical Summary
The information verification efficiency of the existing technology in resource transfer services is inefficient, and it is difficult to detect and resolve abnormalities in a timely manner, resulting in an increase in the risk of transaction funds.
When detecting resource transfer instructions initiated by third-party payment clients, resource transfer requests and notes are generated, sent to third-party payment servers, obtain and verify resource transfer records, use resource transfer notes to determine whether they are abnormal, and optimize through fault-tolerant time prediction model Information checking process.
It improves the accuracy and efficiency of resource transfer information verification, promptly detects and resolves abnormalities, and reduces the risk of transaction funds.
Smart Images

Figure CN113450096B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology, and in particular to a method, device, electronic device and medium for processing resource transfer data. Background Art
[0002] At present, after processing the resource transfer business, it is necessary to check the resource transfer record information in order to promptly discover and handle resource transfer anomalies. For example, after recharging a third-party payment client, it is necessary to check the generated recharge record in order to promptly know and resolve abnormal recharge transactions, thereby reducing transaction capital risks.
[0003] The existing information verification method is usually to manually verify the information in the resource transfer record step by step. However, since the processing flow of the resource transfer business will go through multiple nodes, the information to be verified is relatively complex and may be tampered with. Even if anomalies are found, it is difficult to solve them, resulting in low information verification efficiency. Therefore, how to improve the efficiency of information verification for resource transfer business has become an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and medium for processing resource transfer data, which can improve the efficiency of information verification.
[0005] On the one hand, an embodiment of the present application provides a method for processing resource transfer data, the method comprising:
[0006] When a resource transfer instruction initiated by a third-party payment client is detected, resource transfer information carried in the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation;
[0007] Sending the resource transfer note and the resource transfer request to a third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data;
[0008] Invoking the third-party payment client to obtain a first number of resource transfer records from the third-party payment server;
[0009] Get the target resource transfer notes;
[0010] According to the target resource transfer remark, query whether the first number of resource transfer records includes the target resource transfer record, and obtain a first query result; the target resource transfer record includes the target resource transfer remark and the target resource transfer result data;
[0011] Information indicating whether the resource transfer is abnormal is generated according to the first query result.
[0012] In a possible implementation manner, generating information indicating whether resource transfer is abnormal according to the first query result includes:
[0013] If the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, information indicating resource transfer abnormality is generated.
[0014] In a possible implementation manner, if the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, after generating information indicating resource transfer abnormality, the method further includes:
[0015] Acquire the time when the target resource transfer request is issued; the target resource transfer record is obtained after executing the resource transfer operation according to the target resource transfer request;
[0016] Determine the resource transfer fault tolerance time period according to the sending time and the resource transfer fault tolerance time length;
[0017] Determine whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period, and if so, call the third-party payment client to obtain a second number of resource transfer records from the third-party payment server;
[0018] querying whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, to obtain a second query result;
[0019] Information indicating whether the resource transfer is abnormal is generated according to the second query result.
[0020] In a possible implementation, the method further includes:
[0021] Inputting the sending time into a fault-tolerant duration prediction model;
[0022] The fault-tolerant duration prediction model is used to predict the fault-tolerant duration according to the sending time to obtain the resource transfer fault-tolerant duration.
[0023] In a possible implementation manner, after generating the resource transfer request and the resource transfer note according to the resource transfer information, the method further includes:
[0024] Update the mapping relationship between the resource transfer note and the resource transfer information into a mapping relationship table;
[0025] The generating, according to the first query result, information indicating whether the resource transfer is abnormal includes:
[0026] If the first query result indicates that the first number of resource transfer records includes the target resource transfer record, the target resource transfer information corresponding to the target resource transfer note is queried according to the mapping relationship table, and the target resource information is matched with the target resource transfer result data to see if they are consistent. If they are consistent, information indicating that the resource transfer is normal is generated.
[0027] In a possible implementation manner, generating information indicating whether resource transfer is abnormal according to the first query result includes:
[0028] If the first query result indicates that the first number of resource transfer records includes the target resource transfer record, information indicating that the resource transfer is not abnormal is generated.
[0029] In a possible implementation, the method further includes:
[0030] generating resource transfer verification information according to the resource transfer note and the resource transfer request;
[0031] The sending of the resource transfer note and the resource transfer request to the third-party payment server so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains the resource transfer record includes:
[0032] The resource transfer remarks, the resource transfer request and the resource transfer verification information are sent to the third-party payment server, so that the third-party payment server executes the resource transfer operation according to the resource transfer request after verifying the resource transfer verification information, and obtains the resource transfer record.
[0033] On the one hand, an embodiment of the present application provides a device for processing resource transfer data, the device comprising:
[0034] An acquisition module, configured to, when detecting a resource transfer instruction initiated by a third-party payment client, acquire resource transfer information carried in the resource transfer instruction, and generate a resource transfer request and a resource transfer note according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation;
[0035] A sending module, used to send the resource transfer note and the resource transfer request to a third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data;
[0036] The acquisition module is further used to call the third-party payment client to acquire a first number of resource transfer records from the third-party payment server;
[0037] The acquisition module is also used to acquire the target resource transfer notes;
[0038] A query module, configured to query whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, and obtain a first query result; the target resource transfer record includes the target resource transfer remark and the target resource transfer result data;
[0039] A generating module is used to generate information indicating whether the resource transfer is abnormal according to the first query result.
[0040] On the one hand, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps: when a resource transfer instruction initiated by a third-party payment client is detected, resource transfer information carried by the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation; the resource transfer note and the resource transfer request are sent to a third-party payment server, so that the third-party payment server performs this resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data; calling the third-party payment client to obtain a first number of resource transfer records from the third-party payment server; obtaining a target resource transfer note; querying whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer note, and obtaining a first query result; the target resource transfer record includes the target resource transfer note and the target resource transfer result data; generating information indicating whether the resource transfer is abnormal according to the first query result.
[0041] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions, which, when executed by a processor, are used to execute some or all of the steps in the above method.
[0042] In an embodiment of the present application, when a resource transfer instruction initiated by a third-party payment client is detected, the resource transfer information carried by the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information, and the resource transfer note and the resource transfer request are sent to the third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request, and obtains a resource transfer record, calls the third-party payment client to obtain a first number of resource transfer records from the third-party payment server, obtains a target resource transfer note, and queries whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer note, obtains a first query result, and generates information indicating whether the resource transfer is abnormal according to the first query result. By implementing the above-mentioned method, it is possible to judge whether the resource transfer is abnormal through the generated resource transfer note, improve the accuracy of the information verification of the resource transfer, and improve the efficiency of the information verification of the resource transfer. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of 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 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.
[0044] Figure 1 A schematic diagram of an application architecture provided for an embodiment of the present application;
[0045] Figure 2 A flowchart of a method for processing resource transfer data provided in an embodiment of the present application;
[0046] Figure 3 A flowchart of a method for processing resource transfer data provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of a fault-tolerant duration prediction model provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the structure of a device for processing resource transfer data provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0051] The method for processing resource transfer data proposed in the embodiment of the present application is implemented in an electronic device, which may be a terminal device or a server. Among them, the terminal device may be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc. The server may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server, etc., but is not limited thereto. The present application relates to blockchain technology, and the electronic device may write the involved data such as resource transfer notes or resource transfer records into the blockchain, so that the electronic device can obtain the required information on the blockchain, such as the target resource transfer notes.
[0052] See also Figure 1 , Figure 1 A schematic diagram of an application architecture provided in an embodiment of the present application is provided, and the resource transfer data processing method proposed in the present application can be executed through the application architecture. Specifically, Figure 1 It may include an electronic device, a third-party payment client, and a third-party payment server. Among them, the third-party payment client may be deployed in the electronic device or may be independent of the electronic device. Here, the third-party payment client is deployed in the electronic device as an example for explanation. The electronic device may implement the following by executing the technical solution of the present application: when a resource transfer instruction is detected, a resource transfer request and a resource transfer note are generated according to the resource transfer information carried by the resource transfer instruction, and the resource transfer note and the resource transfer note are sent to the third-party payment server. After executing this resource transfer operation, the third-party payment server obtains a resource transfer record. The electronic device may perform a resource transfer information verification operation on the obtained target resource transfer note according to the resource transfer record, and then determine whether the resource transfer is abnormal, thereby improving the accuracy and efficiency of information verification.
[0053] Understandably, Figure 1 The application architecture proposed by the technical solution of the present application is merely exemplified and does not limit the specific architecture of the technical solution of the present application. That is, the technical solution of the present application can also provide other forms of application architecture.
[0054] In some embodiments, the electronic device can execute the resource transfer data processing method according to actual business needs to improve the efficiency of information verification. The technical solution of the present application can be applied to any scenario of resource transfer business, that is, the electronic device can generate a resource transfer note for identifying the resource transfer operation corresponding to this resource transfer business through the technical solution of the present application, and after executing this resource transfer operation, use the resource transfer note to achieve rapid verification. For example, the technical solution of the present application can be used in the recharge business for a third-party payment client. After performing a recharge transaction on the third-party payment client, the electronic device can use the recharge note corresponding to the generated recharge transaction to perform a rapid and accurate information verification operation on the generated recharge record.
[0055] It is understandable that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0056] Based on the above description, the embodiment of the present application proposes a method for processing resource transfer data, which can be executed by the electronic device mentioned above. Figure 2 As shown, the process of the method for processing resource transfer data in the embodiment of the present application may include the following:
[0057] S201. When a resource transfer instruction initiated by a third-party payment client is detected, resource transfer information carried in the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information.
[0058] The third-party payment client may be an application client, a web client, or a terminal client; when the third-party payment client is an application client or a web client, the third-party payment client may be deployed in an electronic device, or may be deployed in other electronic devices that have a communication relationship with the electronic device; when the third-party payment client is a terminal client, the third-party payment client may be other electronic devices that have a communication relationship with the electronic device. The following is an example of a third-party payment client being deployed in an electronic device.
[0059] And, a first account number for resource transfer and storage of resource transfer funds is opened in the third-party payment client, and the first account number has a corresponding relationship with the electronic device. The third-party payment client can provide a resource transfer service, and the resource transfer service can be a first recharge service, and the first recharge service can be expressed as instructing the electronic device to recharge the amount specified by the first recharge service (i.e., the resource transfer amount) to the first account number in the third-party payment client. The resource transfer service can also be a second recharge service, and the second recharge service can be expressed as instructing the electronic device to recharge the amount specified by the second recharge service to other account numbers in the third-party payment client through the account number in the third-party payment client, that is, the business processing flow (method) of the first recharge service and the second recharge service can be different. And the third-party payment servers involved in the first recharge service and the second recharge service can be the same or different. Unless otherwise specified, the resource transfer service mentioned later is explained as an example of the first recharge service.
[0060] In one possible implementation, when a third-party payment client is required to provide a resource transfer service, the user can input resource transfer information in the third-party payment client so that the third-party payment client generates a resource transfer instruction; therefore, the electronic device can detect the resource transfer instruction initiated based on the third-party payment client, and can obtain the resource transfer information carried by the resource transfer instruction. In one embodiment, the resource transfer information may include a resource transfer amount, such as a resource transfer amount, a first account number, and an identifier for the resource transfer service. The electronic device can generate a resource transfer request and a resource transfer note based on the resource transfer information. Among them, the resource transfer note can be used to identify this resource transfer operation, that is, to identify the resource transfer service of this application. Therefore, multiple resource transfer operations will have multiple different and unique resource transfer notes, and one resource transfer note corresponds to one resource transfer operation, that is, one resource transfer service.
[0061] Optionally, generating a resource transfer note based on resource transfer information may specifically include determining a business scenario identifier corresponding to the resource transfer service based on the identifier of the resource transfer service contained in the resource transfer information, and generating a resource transfer note according to the business scenario identifier and a preset generation rule. The preset rule may be "business scenario identifier + time information (such as year, month, day, hour, minute, and second information) + the number of resource transfer notes generated on the day plus one + a random number", the business scenario identifier may be a string of special character codes, and the time information may refer to the generation time of the resource transfer instruction, or the generation time of the resource transfer note, etc. For example, when the resource transfer service is the first recharge service, the corresponding identifier is 01, and when the resource transfer service is the second recharge service, the corresponding identifier is 02. When the identifier carried in the resource transfer information is 01, it means that the electronic device has received the first recharge service of the service indicated in the resource transfer instruction (that is, the business scenario is the first recharge service), and obtains the pre-set business scenario identifier corresponding to the first recharge service. Optionally, when generating a resource transfer note, the electronic device sets read-only permissions for the resource transfer note to ensure that the resource transfer note is prevented from being modified during the processing flow of the resource transfer business, thereby improving the accuracy of subsequent information verification based on the resource transfer note.
[0062] S202: Send the resource transfer note and the resource transfer request to the third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains the resource transfer record.
[0063] In one possible implementation, the electronic device sends the resource transfer note and resource transfer request to the third-party payment server, and the third-party payment server is used to process the resource transfer business, that is, the third-party payment server will perform the resource transfer operation according to the resource transfer request, and generate resource transfer result data corresponding to the resource transfer operation. Among them, the third-party payment server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server, etc. The third-party payment server is provided with a second account number for resource transfer and storage of resource transfer funds, and the second account number has a corresponding relationship with the electronic device. The third-party payment server performs this resource transfer operation specifically by transferring the resource transfer amount carried in the resource transfer request from the resource transfer funds stored in the second account number to the first account number in the third-party payment client.
[0064] In some embodiments, after executing this resource transfer operation, the third-party payment server can obtain a resource transfer record, which may include a resource transfer note and generated resource transfer result data. The resource transfer record may also include the generation time of the resource transfer result data, and the resource transfer result data may include the resource transfer amount and resource transfer account involved in executing this resource transfer operation. It is understandable that when the resource transfer is normal, the resource transfer amount involved in the third-party payment server when executing the operation should be the same as the resource transfer amount in the resource transfer information recorded by the electronic device, and the resource transfer account involved should be the account number in the third-party payment client that has a corresponding relationship with the electronic device. Optionally, the resource transfer result data may also include a serial number generated after the execution of this resource transfer operation is completed, and the serial number is used to identify that this resource transfer operation is successfully executed, that is, the serial number is different from the resource transfer note.
[0065] And, after the electronic device sends the resource transfer note and the resource transfer request to the third-party payment server, it will record the mapping relationship between the resource transfer note and the resource transfer information, and update the mapping relationship between the resource transfer note and the resource transfer information into the mapping relationship table. Subsequently, the electronic device can query the resource transfer information corresponding to the resource transfer note according to the mapping relationship table. In addition, when recording the mapping relationship between the resource transfer note and the resource transfer information, the electronic device will also record the issuance time of the resource transfer note and the resource transfer request.
[0066] S203: Call the third-party payment client to obtain a first number of resource transfer records from the third-party payment server.
[0067] In one possible implementation, after the third-party payment server completes the resource transfer operation, the electronic device may perform information verification processing on the resource transfer records previously stored. That is, the electronic device may call the record acquisition interface in the third-party payment client to obtain the first number of resource transfer records from the third-party payment server. In addition, the information verification processing of the resource transfer records can also be called the reconciliation processing of the resource transfer records, that is, after the electronic device performs the resource transfer business, it needs to perform information verification (also known as account verification) on the generated resource transfer records to ensure that the abnormality of resource transfer is discovered and resolved in a timely manner.
[0068] Optionally, the electronic device obtains the first number of resource transfer records by specifying a specific value of the first number, such as if the first number is 10, and therefore each time the electronic device calls a third-party payment client, it can obtain 10 resource transfer records from the third-party payment server, and the number of resource transfer records obtained each time is the same; or, the first number of resource transfer records can be obtained by specifying a time period, such as if the time period is 10 minutes, and therefore each time the electronic device calls a third-party payment client, it can periodically obtain resource transfer records within 10 minutes from the third-party payment server, that is, it can obtain a resource transfer record every 10 minutes based on the generation time of the resource transfer result data in the resource transfer record, and the number of resource transfer records obtained each time may be the same or different.
[0069] S204: Obtain target resource transfer notes.
[0070] Among them, the electronic device can obtain one or more target resource transfer notes; the acquisition method can be based on a specified quantity, or it can also be a timed acquisition, for example, the electronic device obtains the target resource transfer notes every 10 minutes based on the recorded resource transfer notes and the issuance time of the resource transfer request.
[0071] S205: Query whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, and obtain a first query result.
[0072] In one possible implementation, the target resource transfer record includes a target resource transfer note and a target resource transfer result data. The first number of resource transfer records corresponds to the first number of resource transfer notes. When the electronic device obtains the target resource transfer notes and the first number of resource transfer records, it can query whether the first number of resource transfer notes includes the target resource transfer notes based on the target resource transfer notes, and then determine whether the first number of resource transfer records includes the target resource transfer record, and after the query, obtain the first query result.
[0073] S206: Generate information indicating whether resource transfer is abnormal according to the first query result.
[0074] In one possible implementation, if the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, information indicating that the resource transfer is abnormal is generated and sent to relevant business personnel for processing; if the first query result indicates that the first number of resource transfer records includes the target resource transfer record, information indicating that the resource transfer is not abnormal is generated, indicating that the information verification of this resource transfer business is normal. Among them, if there are multiple target resource transfer notes, and only some of the target resource transfer notes cannot find the target resource transfer record in the first number of resource transfer records, then the electronic device only generates information indicating that the resource transfer is abnormal for the part of the target resource transfer notes that have not been found, and the information indicating that the resource transfer operation is abnormal can be indicated in the information indicating that the specific target resource transfer notes that have not been found are abnormal, and the electronic device generates information indicating that the resource transfer is not abnormal for the target resource transfer notes that can be found.
[0075] In one embodiment, the electronic device generates information indicating whether the resource transfer is abnormal based on the first query result. Specifically, if the first query result indicates that the first number of resource transfer records includes the target resource transfer record, the target resource transfer information corresponding to the target resource transfer note is queried according to the mapping relationship table, and the target resource information is matched with the target resource transfer result quantity to see if they are consistent. If they are consistent, information indicating that the resource transfer is not abnormal is generated. In other words, when the electronic device queries the target resource transfer record including the target resource transfer note, it can further check the abnormality of the resource transfer, that is, the electronic device will obtain the target resource transfer information and the target resource transfer result data in the target resource transfer record according to the mapping relationship table, and match the target resource transfer information and the target resource transfer result data to see if they are consistent. If they are consistent, it means that the resource transfer is not abnormal. If they are inconsistent, it means that the resource transfer is abnormal, such as matching the resource transfer amount in the target resource transfer information and the resource transfer amount in the target resource transfer result data to see if they are consistent, so as to avoid the occurrence of abnormalities of long and short payments.
[0076] In the embodiment of the present application, when a resource transfer instruction initiated by a third-party payment client is detected, the electronic device can obtain the resource transfer information carried by the resource transfer instruction, and generate a resource transfer request and a resource transfer note according to the resource transfer information, and send the resource transfer note and the resource transfer request to the third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request, and obtains the resource transfer record, calls the third-party payment client to obtain the first number of resource transfer records from the third-party payment server, and obtains the target resource transfer note, and queries whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer note, obtains the first query result, and generates information indicating whether the resource transfer is abnormal according to the first query result. By implementing the method proposed in the embodiment of the present application, it is possible to judge whether the resource transfer is abnormal by the generated resource transfer note. Since the processing flow of the resource transfer business will pass through multiple nodes, in this process, the data may be lost or intercepted and tampered when it is transmitted between nodes. Therefore, the resource transfer note can be used to prevent modification to improve the security of information verification and timely discover resource transfer abnormalities and find problems, so that the accuracy of information verification of resource transfer can be improved, and the efficiency of information verification of resource transfer can be improved.
[0077] See also Figure 3 , Figure 3 The present invention provides a flowchart of a method for processing resource transfer data, which can be executed by the electronic device mentioned above. Figure 3 As shown, the process of the method for processing resource transfer data in the embodiment of the present application may include the following:
[0078] S301: When a resource transfer instruction initiated by a third-party payment client is detected, resource transfer information carried in the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information.
[0079] The specific implementation of step S301 can refer to the relevant description of the above step S201, which will not be repeated here.
[0080] S302: Send the resource transfer note and the resource transfer request to the third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains the resource transfer record.
[0081] In one possible implementation, in order to prevent data from being intercepted and tampered with during the transmission process (such as the process in which the resource transfer notes and resource transfer requests involve quantities from the electronic device to the third-party payment server), the electronic device can generate resource transfer verification information based on the resource transfer notes and resource transfer requests, and send the resource transfer verification information together with the resource transfer notes and resource transfer requests when sending the resource transfer notes and resource transfer requests to the third-party payment server. Only after the third-party payment server verifies the resource transfer verification information, it will execute the resource transfer operation according to the resource transfer request and obtain the resource transfer record.
[0082] In some embodiments, the electronic device generates resource transfer verification information based on the resource transfer notes and the resource transfer request by, specifically, taking the resource transfer notes and the resource transfer request as resource verification content, hashing the resource transfer content using a data summary algorithm, and obtaining resource transfer verification information of a fixed length and in ciphertext; the third-party payment server verifies the resource transfer verification information by, specifically, hashing the received resource transfer notes and the resource transfer request in the same way to obtain information to be verified, and comparing the information to be verified with the resource transfer verification information; if the comparison result is consistent, it indicates that the verification is successful, that is, the received data is safe.
[0083] S303: Call the third-party payment client to obtain the first amount of resource transfer records from the third-party payment server. The specific implementation of step S303 can refer to the relevant description of the above step S203, which will not be repeated here.
[0084] S304: Obtain target resource transfer notes.
[0085] The electronic device may obtain one or more target resource transfer notes, which may include resource transfer notes that have been previously queried and are in resource transfer abnormality, or resource transfer notes that have not been queried. If the resource transfer notes that have not been queried are obtained, the acquisition method can refer to the relevant description of the above step S204, which will not be repeated here.
[0086] S305: Query whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, and obtain a first query result.
[0087] S306: If the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, information indicating resource transfer anomaly is generated. The specific implementation of steps S305-S306 can refer to the relevant description of steps S205-S206 above, which will not be repeated here.
[0088] S307: Obtain the issuing time of the target resource transfer request, and determine the resource transfer fault tolerance time period according to the issuing time and the resource transfer fault tolerance time length.
[0089] In one possible implementation, the information verification operation of resource transfer can be realized by querying the target resource transfer notes and the target resource transfer record. If the electronic device generates information indicating abnormal resource transfer, indicating that the resource transfer of the target resource transfer operation identified by the target resource transfer notes in the query result is abnormal, the electronic device can determine whether to continue to query the abnormal target resource transfer notes and target resource transfer records in the next resource transfer information verification operation based on the time information related to the target resource transfer notes. Specifically, the electronic device obtains the issuance time of the pre-recorded target resource transfer request, which is generated based on the target resource transfer information, and can determine the resource transfer fault tolerance time period corresponding to the target resource transfer notes based on the issuance time and the resource transfer fault tolerance time period corresponding to the target resource transfer notes. For example, the issuance time is 12:51, and the resource transfer fault tolerance time period is 3 hours, so the resource transfer fault tolerance time period can be 12:51-15:51.
[0090] It can be understood that the resource transfer fault tolerance time is the time that the target resource transfer operation identified by the target resource transfer remark is allowed to be in a state of resource transfer abnormality. If the target resource transfer record is queried within the resource transfer fault tolerance time period, it means that the resource transfer abnormality of the target resource transfer operation identified by the target resource transfer remark is resolved, that is, the resource transfer is in a normal (non-abnormal) state. Among them, due to the delay caused by excessive data transmission between nodes in the processing flow of the resource transfer business, or the time delay caused by the third-party payment server processing multiple resource transfer requests at the same time during the peak period of receiving resource transfer requests, it may appear that the first number of resource transfer records in this query does not contain the target resource transfer record, and the target resource transfer record corresponding to the target resource transfer remark is queried in the next query, thereby making the target resource transfer operation identified by the target resource transfer remark in a state of resource transfer abnormality after this query. Therefore, the resource transfer fault tolerance time period of the target resource transfer remark can be determined, and within the resource transfer fault tolerance time period (including one query cycle or multiple query cycles), if the target resource transfer record corresponding to the target resource transfer remark can be queried, then the resource transfer can be considered normal, thereby improving the accuracy of information verification. The target resource transfer record is obtained after executing a resource transfer operation according to the target resource transfer request.
[0091] In one possible implementation, due to the different issuance times of resource transfer requests, the corresponding resource transfer fault tolerance time may be different. Therefore, the specific method for the electronic device to determine the resource transfer fault tolerance time corresponding to the target resource transfer note may be that the electronic device inputs the issuance time into the fault tolerance time prediction model, and uses the fault tolerance time prediction model to predict the fault tolerance time according to the issuance time to obtain the resource transfer fault tolerance time; or, the electronic device may pre-construct a relationship table including the corresponding relationship between the issuance time of the resource transfer request and the resource transfer fault tolerance time, and the electronic device may determine the resource transfer fault tolerance time corresponding to the target resource transfer note in the relationship table according to the recorded issuance time of the target resource transfer request, wherein the relationship table may be customized and stored by relevant business personnel according to actual business needs, or may be automatically generated by the electronic device using machine learning technology and learning the corresponding relationship between the initiation time and the resource transfer fault tolerance time.
[0092] In some embodiments, the above-mentioned fault-tolerant time prediction model may be a trained gradient boosting tree model, and the electronic device uses the fault-tolerant time prediction model to predict the fault-tolerant time according to the issuance time. The specific process of obtaining the resource transfer fault-tolerant time may be that the electronic device uses the issuance time of the target resource transfer request as the input data of the gradient boosting tree model, and each decision tree contained in the model performs feature division on the issuance time to determine the leaf node where the issuance time is located in each decision tree, and determines the corresponding resource transfer fault-tolerant time according to the numerical value corresponding to each leaf node. Specifically, the electronic device determines the corresponding resource transfer fault-tolerant time according to the numerical value corresponding to each leaf node, and the electronic device adds the numerical values corresponding to each leaf node to obtain the total value as the resource transfer fault-tolerant time. For example, Figure 4 As shown, Figure 4 A schematic diagram of a fault-tolerant duration prediction model provided in an embodiment of the present application, wherein the fault-tolerant duration prediction model is a trained gradient boosting tree model and includes two decision trees tree1 and tree2. In tree1, according to feature division, the issuance time 1 of the target resource transfer request 1 is divided into the a1 node, and the value corresponding to the a1 node is A1. The issuance time 2 of the target resource transfer request 2 is divided into the a2 node, and the value corresponding to the a2 node is A2; in tree2, the issuance time of the target resource transfer request 1 and the issuance time of the target resource transfer request 2 are divided into the b1 node, and the value corresponding to the b1 node is B1, that is, the resource transfer fault-tolerant duration 1 corresponding to the target resource transfer remark 1 (target resource transfer request 1): Resource transfer fault tolerance duration 2 corresponding to target resource transfer remark 2 (target resource transfer request 2):
[0093] Optionally, the specific method of training the above-mentioned gradient boosting tree model may be: obtaining a training sample set, which may include multiple training samples, and the training sample may be the issuance time of historical resource transfer requests. That is, assuming that the training sample set is {(x1, y1), (x2, y2)…(x n ,y n )},x i represents the training sample, y i Indicates the actual (expected) resource transfer fault tolerance time corresponding to the training sample. Construct a loss function for the gradient boosting tree model, and use the training sample set to train the model to minimize the loss function. Therefore, the electronic device can use the training sample set to construct K decision trees of the gradient boosting model, and use the gradient boosting model including the K decision trees generated when the loss function is minimized as the trained gradient boosting model.
[0094] S308: Determine whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period; if so, call the third-party payment client to obtain the second number of resource transfer records from the third-party payment server.
[0095] In a possible implementation, when the electronic device determines that the target resource transfer operation identified by the target resource transfer remark is in a resource transfer exception, it will determine whether to query the target resource transfer remark again in the next query. Specifically, it can be determined whether the acquisition time of the first number of resource transfer records (the acquisition time can be the generation time of the resource transfer result data included) is within the resource transfer fault tolerance time period. If not, it indicates that the target resource transfer record has not been queried within the resource transfer fault tolerance time period, and the next query will not be performed, and information indicating resource transfer exception is generated, indicating that the target resource transfer record where the target resource transfer remark is located has not been queried, which may be due to abnormal reasons such as order loss, and is sent to relevant business personnel for processing; if it is, the third-party payment client is called to obtain the second number of resource transfer records from the third-party payment server; wherein, the specific method of obtaining the second number of resource transfer records can be the same as the method of obtaining the first number of resource transfer records, which will not be repeated here.
[0096] It can be understood that the electronic device can adopt a rolling query method, that is, when the i-th query is made, the target resource transfer notes and the first number of resource transfer records will be obtained, and when the (i+1)-th query is made, new target resource transfer notes and the second number of resource transfer records will be obtained, wherein the new target resource transfer notes may include the target resource transfer notes for which the corresponding target resource transfer records were not queried during the i-th query and the information indicating the resource transfer abnormality was generated, as well as the newly obtained target resource transfer notes, so as to realize information verification of fast resource transfer through rolling query.
[0097] For example, during the i-th query, the electronic device obtains the target resource transfer notes (note 1, note 2, note 3) according to the issuance time, and obtains the first number of resource transfer records (record 1, record 2, record 3) according to the generation time of the resource transfer result data, and queries the first number of resource transfer records according to the target resource transfer notes. If the corresponding target resource transfer records are not found for notes 1 and 2, the information of the resource transfer exception corresponding to notes 1 and 2 is indicated, and the resource transfer fault tolerance time periods corresponding to notes 1 and 2 are obtained. If the acquisition time of the first number of resource transfer records is not within the resource transfer fault tolerance time period of note 1, the query is not continued. The target resource transfer record 1 corresponding to remark 1 is queried. If the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period of remark 2, the target resource transfer record 2 corresponding to remark 2 is continued to be queried; then during the (i+1)th query, the electronic device obtains the target resource transfer notes (note 2, note 4, note 5) according to the issuance time. The target resource transfer notes include the notes of the previous query exception and the newly obtained notes this time, and obtains the second number of resource transfer records (record 4, record 5, record 6) according to the generation time of the resource transfer result data. The specific method of the (i+)th query processing is the same as the specific process of the (i)th query processing.
[0098] S309: Query whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer remark to obtain a second query result.
[0099] Among them, the specific method for the electronic device to query whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer note can be the same as the specific method for querying whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer note in the above step S305, which will not be repeated here.
[0100] S310. Generate information indicating whether resource transfer is abnormal according to the second query result.
[0101] In one possible implementation, if the second query result indicates that the second number of resource transfer records still does not include the target resource transfer record, information indicating that the resource transfer is abnormal is generated and sent to relevant business personnel for processing; if the second query result indicates that the second number of resource transfer records includes the target resource transfer record, information indicating that the resource transfer is not abnormal is generated, indicating that the information verification of this resource transfer business is normal. In addition, according to the target resource transfer remark obtained from the second query result that the target resource transfer record is not queried, it can be determined whether to continue to perform the query operation of the target resource transfer record by referring to the relevant description of steps S307-S310.
[0102] In an embodiment of the present application, when a resource transfer instruction initiated by a third-party payment client is detected, the electronic device can obtain the resource transfer information carried by the resource transfer instruction, and generate a resource transfer request and a resource transfer note according to the resource transfer information, and send the resource transfer note and the resource transfer request to the third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request, and obtains a resource transfer record, calls the third-party payment client to obtain a first number of resource transfer records from the third-party payment server, and obtains a target resource transfer note, and queries whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer note, and obtains a first query result. If the first query result is If the query result indicates that the first number of resource transfer records does not include the target resource transfer record, information indicating resource transfer anomaly is generated, the issuance time of the target resource transfer request generated according to the target resource transfer information is obtained, and the resource transfer fault tolerance time period is determined according to the issuance time and the resource transfer fault tolerance time period, and it is determined whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period. If it is, the third-party payment client is called to obtain the second number of resource transfer records from the third-party payment server, and the second number of resource transfer records are queried according to the target resource transfer notes to determine whether the target resource transfer record is included, and the second query result is obtained, and information indicating whether the resource transfer is abnormal is generated according to the second query result. By implementing the method proposed in the embodiment of the present application, it is possible to determine whether the resource transfer is abnormal through the generated resource transfer notes, and the resource transfer notes can be used to prevent modification to improve the security of information verification and find problems in the resource transfer process. The resource transfer fault tolerance time period can realize rolling query due to data delay and timely query of resource transfer anomalies, thereby improving the accuracy of resource transfer information verification and improving the efficiency of resource transfer information verification.
[0103] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a resource transfer data processing device provided by this application. It should be noted that: Figure 5 The resource transfer data processing device shown is used to execute the present application Figure 2 and Figure 3 For the convenience of explanation, only the part related to the embodiment of the present application is shown, and the specific technical details are not disclosed. Figure 2 and Figure 3 The resource transfer data processing device 500 may include: an acquisition module 501, a sending module 502, a query module 503, and a generation module 504. Among them:
[0104] The acquisition module 501 is used to, when detecting a resource transfer instruction initiated by a third-party payment client, acquire the resource transfer information carried in the resource transfer instruction, and generate a resource transfer request and a resource transfer note according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation;
[0105] A sending module 502 is used to send the resource transfer note and the resource transfer request to a third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data;
[0106] The acquisition module 501 is further used to call the third-party payment client to acquire a first number of resource transfer records from the third-party payment server;
[0107] The acquisition module 501 is also used to acquire the target resource transfer notes;
[0108] A query module 503 is used to query whether the first number of resource transfer records includes the target resource transfer record according to the target resource transfer note, and obtain a first query result; the target resource transfer record includes the target resource transfer note and the target resource transfer result data;
[0109] The generating module 504 is used to generate information indicating whether the resource transfer is abnormal according to the first query result.
[0110] In a possible implementation manner, when the generating module 504 is used to generate information indicating whether the resource transfer is abnormal according to the first query result, it is specifically used to:
[0111] If the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, information indicating resource transfer abnormality is generated.
[0112] In a possible implementation manner, after being configured to generate information indicating resource transfer abnormality if the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, the generating module 504 is further configured to:
[0113] Acquire the time when the target resource transfer request is issued; the target resource transfer record is obtained after executing the resource transfer operation according to the target resource transfer request;
[0114] Determine the resource transfer fault tolerance time period according to the sending time and the resource transfer fault tolerance time length;
[0115] Determine whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period, and if so, call the third-party payment client to obtain a second number of resource transfer records from the third-party payment server;
[0116] querying whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, to obtain a second query result;
[0117] Information indicating whether the resource transfer is abnormal is generated according to the second query result.
[0118] In a possible implementation, the generating module 504 is further configured to:
[0119] Inputting the sending time into a fault-tolerant duration prediction model;
[0120] The fault-tolerant duration prediction model is used to predict the fault-tolerant duration according to the sending time to obtain the resource transfer fault-tolerant duration.
[0121] In a possible implementation manner, after being used to generate a resource transfer request and a resource transfer note according to the resource transfer information, the acquisition module 501 is further used to:
[0122] Update the mapping relationship between the resource transfer note and the resource transfer information into a mapping relationship table;
[0123] When the generating module 504 is used to generate information indicating whether the resource transfer is abnormal according to the first query result, it is specifically used to:
[0124] If the first query result indicates that the first number of resource transfer records includes the target resource transfer record, the target resource transfer information corresponding to the target resource transfer note is queried according to the mapping relationship table, and the target resource information is matched with the target resource transfer result data to see if they are consistent. If they are consistent, information indicating that the resource transfer is normal is generated.
[0125] In a possible implementation manner, when the generating module 504 is used to generate information indicating whether the resource transfer is abnormal according to the first query result, it is specifically used to:
[0126] If the first query result indicates that the first number of resource transfer records includes the target resource transfer record, information indicating that the resource transfer is not abnormal is generated.
[0127] In a possible implementation manner, the sending module 502 is further configured to:
[0128] generating resource transfer verification information according to the resource transfer note and the resource transfer request;
[0129] The sending module 502 is used to send the resource transfer note and the resource transfer request to the third-party payment server so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains the resource transfer record, specifically for:
[0130] The resource transfer remarks, the resource transfer request and the resource transfer verification information are sent to the third-party payment server, so that the third-party payment server executes the resource transfer operation according to the resource transfer request after verifying the resource transfer verification information, and obtains the resource transfer record.
[0131] In an embodiment of the present application, when the acquisition module detects a resource transfer instruction initiated by a third-party payment client, it acquires the resource transfer information carried by the resource transfer instruction, and generates a resource transfer request and a resource transfer note based on the resource transfer information, the resource transfer note is used to identify this resource transfer operation, the sending module sends the resource transfer note and the resource transfer request to the third-party payment server, so that the third-party payment server performs this resource transfer operation according to the resource transfer request, and obtains a resource transfer record, the resource transfer record includes the resource transfer note and the resource transfer result data, the acquisition module calls the third-party payment client to obtain a first number of resource transfer records from the third-party payment server, the acquisition module acquires the target resource transfer note, the query module queries whether the first number of resource transfer records includes the target resource transfer record based on the target resource transfer note, and obtains a first query result, the target resource transfer record includes the target resource transfer note and the target resource transfer result data, and the generation module generates information indicating whether the resource transfer is abnormal based on the first query result. By implementing the device proposed above, it is possible to determine whether a resource transfer is abnormal through the generated resource transfer notes, and the resource transfer notes can be prevented from being modified to improve the security of information verification and timely discover resource transfer anomalies and find problems, thereby improving the accuracy of information verification of resource transfers and improving the efficiency of information verification of resource transfers.
[0132] Each functional module in each embodiment of the present application can be integrated into one module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules, which is not limited in the present application.
[0133] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6As shown, the electronic device 600 includes: at least one processor 601 and a memory 602. Optionally, the electronic device may further include a network interface 603. The processor 601, the memory 602 and the network interface 603 may exchange data, the network interface 603 is controlled by the processor 601 to send and receive messages, the memory 602 is used to store a computer program, the computer program includes program instructions, and the processor 601 is used to execute the program instructions stored in the memory 602. The processor 601 is configured to call the program instructions to execute the above method.
[0134] The memory 602 may include a volatile memory, such as a random-access memory (RAM); the memory 602 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the memory 602 may also include a combination of the above-mentioned types of memory.
[0135] The processor 601 may be a central processing unit (CPU). In one embodiment, the processor 601 may also be a graphics processing unit (GPU). The processor 601 may also be a combination of a CPU and a GPU.
[0136] In a possible implementation, the memory 602 is used to store program instructions. The processor 601 may call the program instructions to perform the following steps:
[0137] When a resource transfer instruction initiated by a third-party payment client is detected, resource transfer information carried in the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation;
[0138] Sending the resource transfer note and the resource transfer request to a third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data;
[0139] Invoking the third-party payment client to obtain a first number of resource transfer records from the third-party payment server;
[0140] Get the target resource transfer notes;
[0141] According to the target resource transfer remark, query whether the first number of resource transfer records includes the target resource transfer record, and obtain a first query result; the target resource transfer record includes the target resource transfer remark and the target resource transfer result data;
[0142] Information indicating whether the resource transfer is abnormal is generated according to the first query result.
[0143] In a possible implementation manner, when the processor 601 is used to generate information indicating whether the resource transfer is abnormal according to the first query result, it is specifically used to:
[0144] If the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, information indicating resource transfer abnormality is generated.
[0145] In a possible implementation manner, after being configured to generate information indicating resource transfer abnormality if the first query result indicates that the first number of resource transfer records does not include the target resource transfer record, the processor 601 is further configured to:
[0146] The time when the target resource transfer request is issued; the target resource transfer record is obtained after executing the resource transfer operation according to the target resource transfer request;
[0147] Determine the resource transfer fault tolerance time period according to the sending time and the resource transfer fault tolerance time length;
[0148] Determine whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period, and if so, call the third-party payment client to obtain a second number of resource transfer records from the third-party payment server;
[0149] querying whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, to obtain a second query result;
[0150] Information indicating whether the resource transfer is abnormal is generated according to the second query result.
[0151] In a possible implementation, the processor 601 is further configured to:
[0152] Inputting the sending time into a fault-tolerant duration prediction model;
[0153] The fault-tolerant duration prediction model is used to predict the fault-tolerant duration according to the sending time to obtain the resource transfer fault-tolerant duration.
[0154] In a possible implementation manner, after being configured to generate a resource transfer request and a resource transfer note according to the resource transfer information, the processor 601 is further configured to:
[0155] Update the mapping relationship between the resource transfer note and the resource transfer information into a mapping relationship table;
[0156] When the processor 601 is used to generate information indicating whether the resource transfer is abnormal according to the first query result, it is specifically used to:
[0157] If the first query result indicates that the first number of resource transfer records includes the target resource transfer record, the target resource transfer information corresponding to the target resource transfer note is queried according to the mapping relationship table, and the target resource information is matched with the target resource transfer result data to see if they are consistent. If they are consistent, information indicating that the resource transfer is normal is generated.
[0158] In a possible implementation manner, when the processor 601 is used to generate information indicating whether the resource transfer is abnormal according to the first query result, it is specifically used to:
[0159] If the first query result indicates that the first number of resource transfer records includes the target resource transfer record, information indicating that the resource transfer is not abnormal is generated.
[0160] In a possible implementation, the processor 601 is further configured to:
[0161] generating resource transfer verification information according to the resource transfer note and the resource transfer request;
[0162] When the processor 601 is used to send the resource transfer note and the resource transfer request to the third-party payment server so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains the resource transfer record, it is specifically used to:
[0163] The resource transfer remarks, the resource transfer request and the resource transfer verification information are sent to the third-party payment server, so that the third-party payment server executes the resource transfer operation according to the resource transfer request after verifying the resource transfer verification information, and obtains the resource transfer record.
[0164] In a specific implementation, the device, processor 601, memory 602, etc. described in the embodiments of the present application can execute the implementation described in the above method embodiments, and can also execute the implementation described in the embodiments of the present application, which will not be repeated here.
[0165] A computer (readable) storage medium is also provided in an embodiment of the present application, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor can execute some or all of the steps performed in the above method embodiment. Optionally, the computer storage medium may be volatile or non-volatile. The computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of blockchain nodes, etc.
[0166] Among them, the blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0167] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0168] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer storage medium, which can be a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0169] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for processing resource transfer data, characterized in that: The method comprises: When a resource transfer instruction initiated by a third-party payment client is detected, resource transfer information carried in the resource transfer instruction is obtained, and a resource transfer request and a resource transfer note are generated according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation; Sending the resource transfer note and the resource transfer request to a third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data; Invoking the third-party payment client to obtain a first number of resource transfer records from the third-party payment server; Get the target resource transfer notes; According to the target resource transfer remark, query whether the first number of resource transfer records includes the target resource transfer record to obtain a first query result; the target resource transfer record includes the target resource transfer remark and the target resource transfer result data; generating information indicating whether the resource transfer is abnormal according to the first query result, and generating information indicating whether the resource transfer is abnormal if the first query result indicates that the first number of resource transfer records does not include the target resource transfer record; Acquire the time when the target resource transfer request is issued; the target resource transfer record is obtained after executing the resource transfer operation according to the target resource transfer request; Determine the resource transfer fault tolerance time period according to the sending time and the resource transfer fault tolerance time length; Inputting the sending time into a fault-tolerant duration prediction model, and using the fault-tolerant duration prediction model to predict the fault-tolerant duration according to the sending time to obtain the resource transfer fault-tolerant duration; the fault-tolerant duration prediction model is a trained gradient boosting tree model; Determine whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period, and if so, call the third-party payment client to obtain a second number of resource transfer records from the third-party payment server; querying whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, to obtain a second query result; Information indicating whether the resource transfer is abnormal is generated according to the second query result.
2. The method according to claim 1, characterized in that After generating the resource transfer request and the resource transfer note according to the resource transfer information, the method further includes: updating the mapping relationship between the resource transfer note and the resource transfer information into a mapping relationship table; generating information indicating whether the resource transfer is abnormal according to the first query result, including: if the first query result indicates that the first number of resource transfer records includes the target resource transfer record, querying the target resource transfer information corresponding to the target resource transfer note according to the mapping relationship table, and matching the target resource transfer information with the target resource transfer result data to see if they are consistent, and if they are consistent, generating information indicating that the resource transfer is not abnormal.
3. The method according to claim 1, characterized in that The generating information indicating whether the resource transfer is abnormal according to the first query result includes: if the first query result indicates that the first number of resource transfer records includes the target resource transfer record, generating information indicating that the resource transfer is not abnormal.
4. The method according to claim 1, characterized in that: The method also includes: generating resource transfer verification information according to the resource transfer note and the resource transfer request; sending the resource transfer note and the resource transfer request to the third-party payment server so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains the resource transfer record, including: sending the resource transfer note, the resource transfer request and the resource transfer verification information to the third-party payment server so that the third-party payment server performs the resource transfer operation according to the resource transfer request after verifying the resource transfer verification information and obtains the resource transfer record.
5. A device for processing resource transfer data, characterized in that: The device comprises: An acquisition module, configured to, when detecting a resource transfer instruction initiated by a third-party payment client, acquire resource transfer information carried in the resource transfer instruction, and generate a resource transfer request and a resource transfer note according to the resource transfer information; the resource transfer note is used to identify this resource transfer operation; The sending module is used to send the resource transfer note and the resource transfer request to the third-party payment server, so that the third-party payment server performs the resource transfer operation according to the resource transfer request and obtains a resource transfer record; the resource transfer record includes the resource transfer note and resource transfer result data; the acquisition module is also used to call the third-party payment client to obtain a first number of resource transfer records from the third-party payment server; The acquisition module is also used to acquire the target resource transfer notes; A query module, configured to query whether the first number of resource transfer records includes a target resource transfer record according to the target resource transfer remark, and obtain a first query result; the target resource transfer record includes the target resource transfer remark and the target resource transfer result data; a generating module, configured to generate information indicating whether the resource transfer is abnormal according to the first query result, and to generate information indicating whether the resource transfer is abnormal if the first query result indicates that the first number of resource transfer records does not include the target resource transfer record; Acquire the time when the target resource transfer request is issued; the target resource transfer record is obtained after executing the resource transfer operation according to the target resource transfer request; Determine the resource transfer fault tolerance time period according to the sending time and the resource transfer fault tolerance time length; Inputting the sending time into a fault-tolerant duration prediction model, and using the fault-tolerant duration prediction model to predict the fault-tolerant duration according to the sending time to obtain the resource transfer fault-tolerant duration; the fault-tolerant duration prediction model is a trained gradient boosting tree model; Determine whether the acquisition time of the first number of resource transfer records is within the resource transfer fault tolerance time period, and if so, call the third-party payment client to obtain a second number of resource transfer records from the third-party payment server; querying whether the second number of resource transfer records includes the target resource transfer record according to the target resource transfer remark, to obtain a second query result; Information indicating whether the resource transfer is abnormal is generated according to the second query result.
6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 4.