Virtual resource processing method, device, equipment and computer readable storage medium

By using the settlement client and verification client to calculate and match the settlement amount and obtain the transfer key during the virtual resource transfer process, the problem of low security in virtual resource transfer is solved and higher settlement accuracy and security are achieved.

CN113011941BActive Publication Date: 2024-09-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110251515.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-08
Publication Date
2024-09-27
Estimated Expiration
2041-03-08

AI Technical Summary

Technical Problem

The existing technology has the problem of low security during the virtual resource transfer process. This is mainly due to the aggregation logic error on the business side, which leads to inaccurate settlement amounts, thereby affecting the security of the virtual resource transfer.

Method used

By obtaining the order record to be settled, using the settlement client and the verification client to calculate the settlement amount respectively, and obtaining the transfer key by matching the settlement amount and the settlement amount to be compared, it is ensured that the transfer processing of virtual resources is based on the accurate settlement amount.

Benefits of technology

It improves the security and settlement accuracy of virtual resource transfer, ensures the accuracy of the settlement amount of the settlement account, and improves the overall security of virtual resource transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113011941B
    Figure CN113011941B
Patent Text Reader

Abstract

The present application provides a method, device, equipment and computer-readable storage medium for processing virtual resources; the method includes: obtaining a pending order record, each pending order in the pending order record includes a virtual resource quota and a pending account; settling the pending order record through a settlement client to obtain the settlement quota of each settlement account, wherein each settlement account is any settlement account in a settlement account set consisting of the pending account of each pending order; settling the pending order record through a verification client to obtain the pending settlement quota of each settlement account; when the settlement quota matches the pending settlement quota, obtaining the transfer key corresponding to the settlement quota of each settlement account through the verification client; the transfer client performs the transfer processing of virtual resources based on the verification result of the settlement quota of each settlement account with the transfer key. Through the present application, the security of virtual resource transfer can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a virtual resource processing technology in the field of computer applications, and in particular to a virtual resource processing method, device, equipment and computer-readable storage medium. Background Art

[0002] With the rapid development of e-commerce, more and more applications involve the processing of virtual resources; the processing of virtual resources can improve the convenience of life; for example, the settlement efficiency of assets can be improved through the settlement of virtual resources, and the transfer efficiency of assets can be improved through the transfer of virtual resources.

[0003] Generally speaking, in order to realize the transfer of virtual resources, the business side usually aggregates order records to aggregate the settlement amount of the settlement account, and then transfers the virtual resources to the settlement account based on the settlement amount. However, in the process of transferring the above virtual resources, the aggregation logic of the business side may be wrong, so that when transferring virtual resources to the settlement account based on the settlement amount, the security is low. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, device and computer-readable storage medium for processing virtual resources, which can improve the security of virtual resource transfer.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a method for processing virtual resources, including:

[0007] Obtaining a to-be-settled order record, wherein each to-be-settled order in the to-be-settled order record includes a virtual resource quota and an to-be-settled account number;

[0008] The settlement client performs settlement on the to-be-settled order record to obtain a settlement amount of each settlement account, wherein each settlement account is any settlement account in a settlement account set consisting of the to-be-settled accounts of each to-be-settled order, and the settlement amount is a settlement result obtained by the settlement client for each virtual resource amount associated with each settlement account;

[0009] The verification client performs settlement on the pending order record to obtain the pending settlement amount of each settlement account;

[0010] When the settlement amount matches the settlement amount to be compared, obtaining a transfer key corresponding to the settlement amount of each settlement account through the verification client;

[0011] The transfer client performs transfer processing of virtual resources based on the verification result of the settlement amount of each settlement account using the transfer key.

[0012] The present application provides a virtual resource processing device, including:

[0013] An order acquisition module, used for acquiring a to-be-settled order record, wherein each to-be-settled order in the to-be-settled order record includes a virtual resource quota and an to-be-settled account number;

[0014] A first settlement module, configured to settle the to-be-settled order records through a settlement client, and obtain a settlement amount of each settlement account, wherein each settlement account is any settlement account in a settlement account set consisting of the to-be-settled accounts of each to-be-settled order, and the settlement amount is a settlement result obtained by the settlement client for each virtual resource amount associated with each settlement account;

[0015] A second settlement module, configured to settle the to-be-settled order record through a verification client, and obtain the to-be-compared settlement amount of each settlement account;

[0016] a resource transfer module, configured to obtain, through the verification client, a transfer key corresponding to the settlement amount of each settlement account when the settlement amount matches the settlement amount to be compared;

[0017] The resource transfer module is further used to call the transfer client to perform transfer processing of virtual resources based on the verification result of the settlement amount of each settlement account by the transfer key.

[0018] In an embodiment of the present application, each of the orders to be settled further includes an order key; the virtual resource processing device further includes an order verification module, which is used to obtain the order key to be compared corresponding to each order to be settled through the verification client.

[0019] In the embodiment of the present application, the first settlement module is further configured to settle the order record to be settled through the settlement client when the order key matches the order key to be compared.

[0020] In an embodiment of the present application, the processing device of the virtual resource also includes an order key module, which is used to extract order key data from each to-be-settled order through a transaction client, wherein the order key data includes one or more of the virtual resource amount, the to-be-settled account, the settlement ratio, the order identifier and the payment account; and the hash value of the order key data is determined as the order key through the verification client.

[0021] In the embodiment of the present application, the order verification module is further used to end the settlement process when the order key does not match the order key to be compared.

[0022] In an embodiment of the present application, the virtual resource processing device also includes an order reconciliation module, which is used to obtain the order record to be compared corresponding to the order record to be settled through a reconciliation client, wherein the order record to be settled and the order record to be compared correspond to a common transaction.

[0023] In the embodiment of the present application, the first settlement module is further configured to settle the order record to be settled through the settlement client when the order record to be settled matches the order record to be compared.

[0024] In the embodiment of the present application, the first settlement module is further configured to terminate the settlement process when the order record to be settled does not match the order record to be compared.

[0025] In the embodiment of the present application, the resource transfer module is further used to end the transfer process of the virtual resources when the settlement amount does not match the settlement amount to be compared.

[0026] In an embodiment of the present application, the processing device of the virtual resource also includes a transfer verification module, which is used to decrypt the transfer key through the transfer client; when the decrypted amount corresponding to the decrypted account matches the settlement amount of each settlement account obtained by the transfer client, the verification result is determined to be a passed verification; when the decrypted amount corresponding to the decrypted account does not match the settlement amount of each settlement account obtained by the transfer client, the verification result is determined to be a failed verification.

[0027] In an embodiment of the present application, the resource transfer module is also used to, when the verification result is passed, the transfer client performs the transfer processing of virtual resources for the settlement amount of each settlement account based on the verification result of the settlement amount of each settlement account using the transfer key; when the verification result is failed, the transfer client ends the transfer process of virtual resources based on the verification result of the settlement amount of each settlement account using the transfer key.

[0028] In an embodiment of the present application, the transfer verification module is further used to determine the hash value of the transfer key as a transfer identifier through the verification client, wherein the transfer identifier is used to determine the transfer result of the settlement amount of each settlement account.

[0029] In an embodiment of the present application, the transfer verification module is also used to perform the transfer processing of virtual resources for the settlement amount of each settlement account when the transfer identifier is a non-transfer identifier, wherein the non-transfer identifier means that the transfer processing of virtual resources is not performed for the settlement amount of each settlement account.

[0030] In an embodiment of the present application, the transfer verification module is further used to set the virtual resource transfer flag to a transferred flag, wherein the transferred flag means that the transfer processing of the virtual resource has been executed for the settlement amount of each settlement account.

[0031] In an embodiment of the present application, the first settlement module is further used to obtain the to-be-settled account number of each to-be-settled order in the to-be-settled order record to obtain the settlement account set; obtain the associated order record corresponding to each settlement account in the settlement account set from the to-be-settled order record; determine the set consisting of the virtual resource quotas corresponding to each associated order in the associated order record as the individual virtual resource quotas; and combine the individual virtual resource quotas to obtain the settlement quota of each settlement account.

[0032] The present application provides a virtual resource processing device, including:

[0033] A memory for storing executable instructions;

[0034] The processor is used to implement the virtual resource processing method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0035] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement a method for processing virtual resources provided in an embodiment of the present application.

[0036] The embodiments of the present application have at least the following beneficial effects: through the settlement client and the verification client, an order settlement result is calculated for each order record to be settled, so that the settlement result of the order record to be settled is determined by matching the two order settlement results (settlement amount and settlement amount to be compared); here, since the settlement result is determined based on the matching result corresponding to the order settlement results obtained in different ways, that is, the settlement result is obtained through verification, so the accuracy of the settlement result is relatively high; and because when the virtual resources are transferred for the settlement amount of the settlement account through the transfer key, the validity of the settlement amount of the settlement account can be ensured; therefore, the accuracy of the settlement amount of the settlement account used when transferring virtual resources is relatively high, which can improve the security of the virtual resource transfer. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is an optional architecture diagram of a virtual resource processing system provided in an embodiment of the present application;

[0038] Figure 2 The embodiment of this application provides Figure 1 A schematic diagram of a composition structure of a server in;

[0039] Figure 3 It is an optional flowchart of the method for processing virtual resources provided in the embodiment of the present application;

[0040] Figure 4 is another optional flowchart of the method for processing virtual resources provided in an embodiment of the present application;

[0041] Figure 5 It is another optional flow chart of the method for processing virtual resources provided in the embodiment of the present application;

[0042] Figure 6 This is an exemplary application diagram of a blockchain network provided in an embodiment of the present application;

[0043] Figure 7 This is a schematic diagram of an exemplary process of reconciliation processing of virtual resources provided in an embodiment of the present application;

[0044] Figure 8 This is a schematic diagram of an exemplary process of performing settlement processing on virtual resources provided in an embodiment of the present application;

[0045] Fig. 9 It is a flowchart of an exemplary transfer process of virtual resources provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0047] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0048] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0050] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0051] 1) Reconciliation refers to a method of checking the business's own transaction records and transaction records obtained from a third party or other means, that is, the process of checking and verifying the relevant data in the account book.

[0052] 2) Settlement refers to the process of aggregating the transaction records after reconciliation and calculating the corresponding share amount of each share account according to the share ratio.

[0053] 3) Transfer refers to the process of transferring virtual resources.

[0054] 4) MD algorithm (Message-Digest Algorithm), a cryptographic hash function, is used to determine a hash value of a fixed number of bits to ensure the integrity and consistency of information. In addition, for information of any length, the length of the output obtained by the MD algorithm is fixed, and the ciphertext obtained by the MD algorithm is the same only when the plaintext is the same, and the calculation process of the MD algorithm is irreversible, that is, the ciphertext obtained by the MD algorithm cannot be obtained by the decryption algorithm to obtain the corresponding plaintext. For example, the MD5 algorithm.

[0055] 5) SHA (Secure Hash Algorithm), similar to the MD algorithm, is used to determine a fixed-bit hash value. For example, SHA256.

[0056] 6) Blockchain: It is an encrypted, chained transaction storage structure formed by blocks.

[0057] 7) Block Chain Network: A collection of nodes that incorporate new blocks into the blockchain through consensus.

[0058] Generally speaking, in order to realize the settlement of virtual resources, the business side usually aggregates the order records to aggregate the settlement amount of the settlement account. However, in the process of obtaining the settlement amount of the settlement account, since the settlement is implemented separately by the business side, the aggregation logic of the business side may be wrong, such as multiple settlements for the same settlement account, or more quotas are allocated to the account, etc., resulting in an incorrect settlement amount. As a result, the settlement amount of the settled settlement account is less accurate, and then the security is lower when transferring virtual resources to the settlement account based on the settlement amount.

[0059] In addition, when the transfer of virtual resources is performed directly based on the settlement quota aggregated from the business side, the settlement quota may be wrong and the settlement result cannot be guaranteed to be unmodified data. Therefore, the accuracy of the settlement result is low, which will lead to low security of virtual resource transfer.

[0060] Based on this, the embodiments of the present application provide a method, apparatus, device and computer-readable storage medium for processing virtual resources, which can improve the settlement accuracy of virtual resources and the security of virtual resource transfer. The following describes an exemplary application of a virtual resource processing device (hereinafter referred to as a processing device) provided by an embodiment of the present application. The processing device provided by an embodiment of the present application can be implemented as various types of user terminals such as a laptop computer, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device), and can also be implemented as a server. Below, an exemplary application when the device is implemented as a server will be described.

[0061] It should be noted that the embodiments of the present application can also be implemented in combination with blockchain technology. Blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains a batch of network transaction information for verifying the validity of its information (anti-counterfeiting) and generating the next block. Blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. For the processing method of virtual resources combined with blockchain technology provided in the embodiments of the present application, please refer to the subsequent description.

[0062] See also Figure 1 , Figure 1 is an optional architecture diagram of a virtual resource processing system provided in an embodiment of the present application; Figure 1As shown, to support a processing application of a virtual resource, in a processing system 100 of a virtual resource, a terminal 400 (exemplarily showing a terminal 400-1 and a terminal 400-2) is connected to a server 200 via a network 300, and the network 300 can be a wide area network or a local area network, or a combination of the two. In addition, the processing system 100 of the virtual resource also includes a database 501 and a virtual resource receiving device 502 corresponding to a settlement account, wherein the database 501 is used to provide data support to the server 200.

[0063] Terminal 400 is used to display resource information (e.g., video) on a graphical interface. When a user executes a payment transaction for the displayed resource information (e.g., by clicking a "pay" button or a "reward" control to execute payment), an order to be settled is sent to server 200 via network 300.

[0064] The server 200 is used to receive the pending settlement orders sent by the terminal 400 through the network 300, thereby obtaining the pending order records, wherein each pending settlement order in the pending settlement order records includes a virtual resource quota and a pending settlement account; the pending settlement order records are settled by the settlement client to obtain the settlement quota of each settlement account, wherein each settlement account is any settlement account in the settlement account set consisting of the pending settlement accounts of each pending settlement order, and the settlement quota is the settlement result obtained by the settlement client for each virtual resource quota associated with each settlement account; the pending settlement order records are settled by the verification client to obtain the pending comparison settlement quota of each settlement account; when the settlement quota matches the pending comparison settlement quota, the verification client obtains the transfer key corresponding to the settlement quota of each settlement account; based on the transfer key and the settlement quota, the virtual resources are transferred to the virtual resource receiving device 502 corresponding to each settlement account.

[0065] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Terminal 400 may be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0066] See also Figure 2 , Figure 2 The embodiment of this application provides Figure 1A schematic diagram of a composition structure of a server in; Figure 2 The server 200 shown includes: at least one processor 210, a memory 250, at least one network interface 220 and a user interface 230. The various components in the server 200 are coupled together via a bus system 240. It is understood that the bus system 240 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 240 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 240 is not described in detail. Figure 2 Various buses are labeled as bus system 240 .

[0067] The processor 210 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0068] The user interface 230 includes one or more output devices 231 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 230 also includes one or more input devices 232, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0069] The memory 250 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 250 may optionally include one or more storage devices that are physically remote from the processor 210.

[0070] The memory 250 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 250 described in the embodiments of the present application is intended to include any suitable type of memory.

[0071] In some embodiments, memory 250 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0072] Operating system 251, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0073] A network communication module 252, used to reach other computing devices via one or more (wired or wireless) network interfaces 220, exemplary network interfaces 220 include: Bluetooth, Wireless Fidelity (Wi-Fi), and Universal Serial Bus (USB);

[0074] a presentation module 253 for enabling presentation of information via one or more output devices 231 (e.g., display screen, speaker, etc.) associated with the user interface 230 (e.g., a user interface for operating peripherals and displaying content and information);

[0075] The input processing module 254 is used to detect one or more user inputs or interactions from one of the one or more input devices 232 and translate the detected inputs or interactions.

[0076] In some embodiments, the virtual resource processing device provided in the embodiments of the present application may be implemented in a software manner. Figure 2 The processing device 255 of the virtual resources stored in the memory 250 is shown, which can be software in the form of programs and plug-ins, etc., including the following software modules: order acquisition module 2551, first settlement module 2552, second settlement module 2553, resource transfer module 2554, order verification module 2555, order key module 2556, order reconciliation module 2557 and transfer verification module 2558. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0077] In other embodiments, the processing device of the virtual resources provided in the embodiments of the present application can be implemented in hardware. As an example, the processing device of the virtual resources provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the processing method of the virtual resources provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0078] Below, the method for processing virtual resources provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the server provided in the embodiment of the present application.

[0079] See also Figure 3 , Figure 3 is an optional flow chart of a method for processing virtual resources provided in an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0080] S301, obtaining order records to be settled.

[0081] In an embodiment of the present application, the processing device obtains a batch of orders after they are recorded, and thus obtains records of orders to be settled; for example, a batch of orders are obtained from a transaction table; here, the data in the transaction table are the orders recorded after reconciliation.

[0082] It should be noted that the pending order record can be at least one order after reconciliation; and each pending order in the pending order record includes a virtual resource quota and a pending account, wherein the virtual resource quota refers to the transaction volume of virtual resources, such as payment amount, pending share amount, pending share points, pending share virtual currency, etc.; the pending account is the pending share account corresponding to each pending order, such as the video host, article providing account, etc. In addition, virtual resources refer to assets traded on the network, such as digital assets such as amount, points, virtual currency, etc.

[0083] It should also be noted that the processing device may obtain the to-be-settled order record through a settlement client; wherein the settlement client is a client running on the processing device and is used to implement the settlement of virtual resources.

[0084] S302: Settle the order records to be settled through the settlement client to obtain the settlement amount of each settlement account.

[0085] In an embodiment of the present application, the processing device settles the settlement order records through the settlement client to settle the share amount of each account; here, the share amount of each account settled by the settlement client is the settlement amount of each settlement account.

[0086] It should be noted that the accounts to be settled for different settlement orders may be the same or different. The processing device combines all the different accounts to be settled in the records of the settlement orders to obtain a settlement account set; that is, the settlement account set is a set of accounts to be settled for each order to be settled, and each settlement account is any settlement account in the settlement account set. The settlement amount is the settlement result obtained by the settlement client for each virtual resource amount associated with each settlement account, and each virtual resource amount is the total virtual resource amount corresponding to each settlement order whose account to be settled is the settlement account.

[0087] S303: The client performs settlement on the order record to be settled by verifying the client, and obtains the settlement amount to be compared of each settlement account.

[0088] In an embodiment of the present application, since the settlement logic of the settlement client may be erroneous, the processing device not only uses the settlement client to settle the order records to be settled, but also uses the verification client to settle the order records to be settled, thereby obtaining the settlement amount to be compared of each settlement account, and verifying the settlement amount through the settlement amount to be compared.

[0089] It should be noted that the verification client is a client running on a processing device, used to verify the settlement of virtual resources, and is a client different from the settlement client; and the settlement process of the verification client is verified, and the accuracy of the settlement logic is high.

[0090] S304: When the settlement amount matches the settlement amount to be compared, the transfer key corresponding to the settlement amount of each settlement account is obtained through the verification client.

[0091] In an embodiment of the present application, after the processing device obtains two credit limits for each settlement account, the two credit limits are compared, that is, the settlement credit limit is compared with the settlement credit limit to be compared, so as to verify the settlement credit limit obtained by the settlement client with the settlement credit limit to be compared obtained by the verification client, so as to determine the correctness of the settlement credit limit.

[0092] It should be noted that when the settlement amount is consistent with the settlement amount to be compared, it indicates that the settlement amount matches the settlement amount to be compared, so that the correctness of the settlement result of the settlement record can be determined; at this time, the processing device encrypts the settlement amount of each settlement account through the verification client, and obtains the transfer key; here, the encryption algorithm used for encryption is not specifically limited in the embodiment of the present application. Here, the transfer key is used to verify the correctness of the settlement amount of each settlement account, that is, whether the settlement amount has been verified by the verification client.

[0093] S305: The transfer client performs transfer processing of virtual resources based on the verification result of the settlement amount of each settlement account using the transfer key.

[0094] In the embodiment of the present application, after the processing device determines the correctness of the settlement amount based on the settlement amount to be compared of the verification client, the settlement amount and transfer key of each settlement account settled by the settlement client are sent to the transfer client; or the settlement amount and transfer key of each settlement account settled by the settlement client are stored in the transfer table, so that the transfer client transfers the virtual resources to each settlement account based on the transfer key and the settlement amount. The transfer client is a client for transferring virtual resources.

[0095] It should be noted that the verification result refers to whether the settlement amount of each settlement account is the amount after the settlement verification, and then the transfer processing of virtual resources adapted to the determined verification result is executed; for example, if it is, the transfer processing is executed, otherwise the transfer processing is not executed.

[0096] It is understandable that by settling settlement order records through a variety of different clients, it is possible to verify the amount settled by the settlement client, avoid settlement loopholes, and no longer be a unilateral settlement process, thereby improving the settlement accuracy of virtual resources; and then when transferring virtual resources to the settlement account based on the settlement amount, the security is higher.

[0097] See also Figure 4 , Figure 4 is another optional flow chart of the method for processing virtual resources provided in the embodiment of the present application; Figure 4As shown, in an embodiment of the present application, each order to be settled also includes an order key, and the order key is used to verify the validity of each order to be settled, for example, to verify whether each order to be settled is an initial order that has not been modified; in addition, it should be noted that the order key to be compared is irreversible, that is, based on the order key to be compared, the corresponding order to be settled cannot be decrypted to improve the accuracy of the verification; and, the lengths of the order keys corresponding to different orders to be settled may be the same or different; and, the order keys corresponding to the same orders to be settled are the same.

[0098] In the embodiment of the present application, S306 is included before S302, that is, before the processing device settles the order record to be settled through the settlement client, the method for processing virtual resources also includes S306, and this step is explained below.

[0099] S306: Obtain the order key to be compared corresponding to each order to be settled through the verification client.

[0100] In the embodiment of the present application, before the processing device settles the order records to be settled, each order to be settled that has completed the reconciliation and is ready to be recorded is encrypted through the verification client, thereby obtaining the corresponding order key to be compared.

[0101] It should be noted that the method for obtaining the order key to be compared is the same as the method for obtaining the order key.

[0102] Accordingly, see Figure 4 In the embodiment of the present application, S302 can be implemented through S3021; ​​that is, the processing device settles the order records to be settled through the settlement client and obtains the settlement amount of each settlement account, including S3021. This step is explained below.

[0103] S3021. When the order key matches the order key to be compared, the order record to be settled is settled through the settlement client to obtain the settlement amount of each settlement account.

[0104] It should be noted that before the processing device settles the order record to be settled, it must first determine the validity of the order record to be settled; here, the processing device determines the validity of the order record to be settled by comparing whether the order key matches the order key to be compared; and, when the processing device determines that the order key matches the order key to be compared, it determines that the order record to be settled is valid, and then settles the order record to be settled.

[0105] Continue to see Figure 4In the embodiment of the present application, S307 and S308 are also included before S301; that is, before the processing device obtains the order record to be settled, the processing method of the virtual resource also includes S307 and S308, and each step is explained below.

[0106] S307. Extract key order data from each order to be settled through the transaction client.

[0107] In an embodiment of the present application, before the processing device obtains the record of the order to be settled, it also includes a process of obtaining the order key corresponding to each order to be settled; wherein the order key is obtained by encrypting each order to be settled by the verification client running on the processing device.

[0108] It should be noted that the trading client refers to the client used to make account entries and thus generate records of pending order entries. Before completing the account entry, the trading client obtains the order key corresponding to each pending order through the verification client, and carries the order key in each pending order for account entry.

[0109] Here, the verification client can directly encrypt each order to be settled to obtain an order key, and can also extract key order data from each order to be settled through the transaction client, and encrypt the key order data through the verification client to obtain the order key, etc., which is not specifically limited in the embodiment of the present application. Among them, the key order data is the data that affects the settlement in each order to be settled, including one or more of the virtual resource quota, the account to be settled, the settlement ratio, the order identifier and the payment account.

[0110] S308. Determine the hash value of the key order data as the order key by verifying the client.

[0111] It should be noted that when the verification client encrypts the order key data to obtain the order key, the hash value of the order key attribute can be used as the order key; for example, the verification client uses MD5 to obtain the order key of the order key data, or uses SHA256 to obtain the order key of the order key data.

[0112] In an embodiment of the present application, the process of obtaining the key of the order to be compared can be: extracting key data from each order to be settled through the transaction client, and determining the hash value of the extracted key data as the key of the order to be compared by verifying the client.

[0113] Continue to see Figure 4 In the embodiment of the present application, S306 also includes S309; ​​that is, after the processing device obtains the order key to be compared corresponding to each order to be settled by verifying the client, the virtual resource processing method also includes S309, and this step is explained below.

[0114] S309: When the order key does not match the order key to be compared, the settlement process ends.

[0115] It should be noted that when the processing device determines that the order key does not match the order key to be compared, it determines that the order record to be settled is invalid and ends the settlement process. In addition, when the order key does not match the order key to be compared, it can be determined that the reason why the order record to be settled is invalid may be a program vulnerability or malicious insertion.

[0116] It is understandable that before settling the order records to be settled, by judging the validity of the order records to be settled and performing settlement when the order records to be settled are valid; and ending the settlement process when the order records to be settled are invalid, settlement consumption can be reduced and settlement accuracy can be improved.

[0117] In the embodiment of the present application, S310 is also included before S302; that is, before the processing device settles the order record to be settled through the settlement client, the method for processing virtual resources also includes S310, and this step is explained below.

[0118] S310. Obtain, through the reconciliation client, the order record to be compared corresponding to the order record to be settled.

[0119] In the embodiment of the present application, before the processing device settles the order record to be settled, it also includes a reconciliation process, that is, determining whether the information in the order record to be settled is accurate (for example, whether the virtual resource quota is too much or too little). Since each party to the order corresponding to each transaction stores the corresponding transaction flow, the processing device can obtain the order record to be compared from other parties.

[0120] It should be noted that the order records to be settled and the order records to be compared correspond to the same transaction; the order records to be compared may be orders obtained from a third party or other transaction platform (e.g., a payment platform corresponding to a payment channel). Here, the reconciliation client is a client running on a processing device that reconciles the order records to be settled.

[0121] Accordingly, in the embodiment of the present application, the settlement of the to-be-settled order record by the settlement client in S302 can also be implemented by S3022, and this step is described below.

[0122] S3022. When the order record to be settled matches the order record to be compared, the order record to be settled is settled through the settlement client.

[0123] It should be noted that the reconciliation client determines whether the reconciliation is successful by comparing the order record to be settled with the order record to be compared; when the order record to be settled and the order record to be compared match, the reconciliation is determined to be successful. At this time, the order record to be settled is settled through the settlement client.

[0124] In the embodiment of the present application, S3021 also includes S3023; that is, after the processing device obtains the order record to be compared corresponding to the order record to be settled through the reconciliation client, the processing method of the virtual resource also includes S3023, and this step is explained below.

[0125] S3023. When the order record to be settled does not match the order record to be compared, the settlement process ends.

[0126] It should be noted that when the order record to be settled does not match the order record to be compared, it is determined that the reconciliation has failed. At this time, the settlement process is terminated and the order record to be settled is no longer settled through the settlement client.

[0127] In the embodiment of the present application, the reconciliation process can also be performed before the validity of the order key is verified.

[0128] See also Figure 5 , Figure 5 It is another optional flow chart of the method for processing virtual resources provided in the embodiment of the present application; Figure 5 As shown, in the embodiment of the present application, S303 also includes S311; that is, after the processing device settles the order record to be settled by verifying the client and obtains the settlement amount to be compared of each settlement account, the method also includes S311, and this step is explained below.

[0129] S311. When the settlement amount does not match the settlement amount to be compared, the virtual resource transfer process is terminated.

[0130] It should be noted that when the processing device determines that the settlement amount does not match the settlement amount to be compared, it determines that the settlement of the settlement client has failed, thereby determining that there is a settlement loophole in the settlement of the settlement client and the settlement result is abnormal; then, the transfer processing of virtual resources is no longer executed.

[0131] In the embodiment of the present application, S305 also includes S312 to S314; that is, before the processing device verifies the settlement amount of each settlement account based on the transfer key through the transfer client, and executes the transfer processing of the virtual resources, the virtual resource transfer method also includes S312 to S314, and each step is explained below.

[0132] S312. Decrypt the transfer key through the transfer client.

[0133] It should be noted that the transfer key and the settlement amount of each settlement account are stored together in the transfer table; so that when the processing device calls the transfer client to transfer the data in the transfer table, the transfer client decrypts the transfer key to obtain the decrypted account number and the decrypted amount corresponding to the decrypted account number.

[0134] S313: When the decrypted amount corresponding to the decrypted account number matches the settlement amount of each settlement account obtained by the transfer client, it is determined that the verification result is passed.

[0135] It should be noted that the transfer client matches the decrypted amount corresponding to the decrypted account with the settlement amount of the settlement account corresponding to the transfer key obtained by the transfer client; verification passed means that the decrypted amount corresponding to the decrypted account matches the settlement amount of each settlement account obtained by the transfer client.

[0136] S314: When the decrypted amount corresponding to the decrypted account does not match the settlement amount of each settlement account obtained by the transfer client, it is determined that the verification result is a verification failure.

[0137] It should be noted that verification failure means that the decrypted amount corresponding to the decrypted account does not match the settlement amount of each settlement account obtained by the transfer client.

[0138] Accordingly, in an embodiment of the present application, S305 can be implemented through S3051 and S3052; that is, the transfer client performs the transfer processing of virtual resources based on the verification result of the settlement amount of each settlement account based on the transfer key, including S3051 and S3052, and each step is explained below.

[0139] S3051. When the verification result is passed, the transfer client performs transfer processing of virtual resources for the settlement amount of each settlement account based on the verification result of the settlement amount of each settlement account with the transfer key.

[0140] It should be noted that when the verification result is verification passed, the transfer client transfers the virtual resources to each receiving account based on the settlement amount.

[0141] S3052, when the verification result is a verification failure, the transfer client verifies the settlement amount of each settlement account based on the transfer key, and ends the virtual resource transfer process.

[0142] It should be noted that when the verification result is a verification failure, the transfer client no longer transfers virtual resources to each receiving account based on the settlement amount.

[0143] In an embodiment of the present application, when the transfer key is irreversible, the transfer client can obtain the transfer key to be compared corresponding to the settlement amount of each settlement account; and when the transfer key matches the transfer key to be compared, the transfer of virtual resources is executed; and when the transfer key does not match the transfer key to be compared, the transfer process of virtual resources is terminated.

[0144] In the embodiment of the present application, when the transfer key and the settlement amount of each settlement account are stored together in the transfer table, the presence or absence of the transfer key can be judged to determine whether the stored data has been verified by the verification client.

[0145] Here, when the decrypted amount corresponding to the decrypted account matches the settlement amount of each settlement account obtained by the transfer client (for example, obtained from the transfer table), it is determined that the settlement amount of each settlement account obtained by the transfer client is valid; thus, the transfer client performs a transfer process of virtual resources for the settlement amount of each settlement account to transfer the virtual resources of the settlement amount to each settlement account. When the decrypted amount corresponding to the decrypted account does not match the settlement amount of each settlement account obtained by the transfer client, it is determined that the settlement amount of each settlement account obtained by the transfer client is invalid, and the transfer process ends.

[0146] It is understandable that before transferring virtual resources, the transfer client first verifies the settlement amount of each settlement account, and only transfers virtual resources when the settlement amount of each settlement account is valid, and does not transfer virtual resources when the settlement amount of each settlement account is invalid; thereby, the transfer security of virtual resources can be improved and the transfer consumption of virtual resources can be reduced.

[0147] In the embodiment of the present application, S305 also includes S315; that is, after the processing device obtains the transfer key corresponding to the settlement amount of each settlement account by verifying the client, the virtual resource processing method also includes S315, and this step is explained below.

[0148] S315: Determine the hash value of the transfer key as the transfer identifier.

[0149] It should be noted that the transfer identifier is used to determine the transfer status of the settlement amount of each settlement account.

[0150] Accordingly, in the embodiment of the present application, the transfer client in S3051 performs transfer processing of virtual resources for the settlement amount of each settlement account, including S30511, which is described below.

[0151] S30511. When the transfer flag is a non-transfer flag, the transfer process of virtual resources is performed for the settlement amount of each settlement account.

[0152] It should be noted that the non-transfer mark means that the transfer process of virtual resources has not been executed for the settlement amount of each settlement account.

[0153] In the embodiment of the present application, S30511 also includes S30512; that is, after the transfer client performs the transfer processing of virtual resources for the settlement amount of each settlement account, the virtual resource processing method also includes S30512, and this step is explained below.

[0154] S30512. Set the virtual resource transfer flag to the transferred flag.

[0155] It should be noted that the transferred flag means that the transfer processing of virtual resources has been executed for the settlement quota of each settlement account; when the transfer flag is the untransferred flag, the transfer processing of virtual resources will no longer be executed for the settlement quota of each settlement account to achieve the idempotence of virtual resource transfer.

[0156] In the embodiment of the present application, in S302, the settlement client settles the order record to be settled and obtains the settlement amount of each settlement account, including S3024 to S3027, and each step is described below.

[0157] S3024. Obtain the settlement account number of each order to be settled in the order to be settled record, and obtain a settlement account set.

[0158] It should be noted that the settlement account set is a set consisting of all different accounts to be settled in the order records to be settled; it is easy to know that the number of settlement accounts included in the settlement account set is less than or equal to the number of orders to be settled included in the order records to be settled.

[0159] S3025. Obtain, from the to-be-settled order records, the associated order records corresponding to each settlement account in the settlement account set.

[0160] It should be noted that the associated order records are all pending orders whose pending settlement account is the settlement account in the pending settlement order records.

[0161] S3026. Determine a set consisting of virtual resource quotas corresponding to each associated order in the associated order record as each virtual resource quota.

[0162] It should be noted that each virtual resource quota corresponds to an associated order record, that is, one virtual resource quota in each virtual resource quota corresponds to one to-be-settled order in the associated order record.

[0163] S3027. Combine the virtual resource quotas to obtain the settlement quota of each settlement account.

[0164] In an embodiment of the present application, the settlement client can determine the cumulative sum of each virtual resource quota as the settlement quota of each settlement account; here, each pending settlement order also includes a settlement ratio (for example, a share ratio), at this time, the settlement client can perform a weighted summation of each virtual resource quota and the corresponding settlement ratio to obtain the settlement quota of each settlement account; the embodiment of the present application does not specifically limit this. Among them, when each pending settlement order also includes a settlement ratio, if the settlement result is a settlement failure of the settlement client, it may be due to an error in the combination of the settlement ratio and the virtual resource quota.

[0165] It should be noted that when the verification client settles the order records to be settled and obtains the settlement amount to be compared for each settlement account, it is similar to S3024 to S3027, and the embodiment of the present application does not make specific limitations on this.

[0166] In the embodiment of the present application, when the order record to be settled matches the order record to be compared, the processing device fills the order record to be settled into a new block through the reconciliation client, and when the consensus on the new block is reached, the new block is appended to the end of the blockchain to complete the chaining. Here, the reconciliation client puts the order record to be settled on the chain to ensure that it cannot be tampered with.

[0167] In the embodiment of the present application, the processing device can also encrypt the associated order record and the settlement amount of each settlement account through the verification client (for example, encrypting using MD5), obtain a signature, and implement the idempotence of the virtual resource transfer based on the signature. At this time, the transfer key can be obtained by encrypting the signature and the settlement amount of each settlement account.

[0168] The following example uses the reconciliation client uploading the pending settlement order record to the blockchain network for storage to illustrate the exemplary application of the blockchain network. Figure 6 , the client node 810 may be Figure 2 The reconciliation client in the server 200. Among them, the business subject 800 and the business subject 900 have been registered in the authentication center 700.

[0169] First, the logic of uploading the pending settlement order record to the chain is set on the client node 810. For example, when it is determined that the pending settlement order record is reconciled successfully, the client node 810 generates a corresponding transaction when sending the pending settlement order record to the blockchain network 600. The transaction includes: the smart contract that needs to be called to upload the pending settlement order record to the chain, and the parameters passed to the smart contract; the transaction also includes the digital certificate of the client node 810, the signed digital signature, and the transaction is broadcast to the consensus node 610 in the blockchain network 600.

[0170] Then, when the consensus node 610 in the blockchain network 600 receives the transaction, it verifies the digital certificate and digital signature carried in the transaction. After successful verification, it confirms whether the business subject 800 has transaction authority based on the identity of the business subject 800 carried in the transaction. Any verification judgment in the digital signature and authority verification will cause the transaction to fail. After successful verification, the consensus node 610 signs its own digital signature (for example, using the private key of the consensus node 610 to encrypt the summary of the transaction) and continues to broadcast in the blockchain network 600.

[0171] Finally, after receiving the successfully verified transaction, the consensus node 610 in the blockchain network 600 fills the transaction into a new block and broadcasts it. When the consensus node 610 in the blockchain network 600 broadcasts a new block, it verifies the new block, for example, verifies whether the digital signature of the transaction in the new block is valid. If the verification is successful, the new block is appended to the end of the blockchain stored by itself, and the state database is updated according to the result of the transaction, and the transaction in the new block is executed: for the submitted transaction storing the pending settlement order record, the key-value pair including the pending settlement order record is added to the state database.

[0172] Taking the example of a server querying pending order records in the blockchain network 600, an exemplary application of the blockchain network is described. Figure 6 , the client node 910 can be a settlement client in the server 200.

[0173] In some embodiments, the type of data that the client node 910 can query in the blockchain network 600 can be achieved by the consensus node 610 by restricting the authority of transactions that can be initiated by the client stage of the business entity. When the client node 910 has the authority to initiate a query for pending settlement order records, the client node 910 can generate a transaction for querying pending settlement order records and submit it to the blockchain network 600. The transaction is executed from the consensus node 610 to query the corresponding pending settlement order records from the status database and return to the client node 910.

[0174] Here, the settlement client uploads the settlement amount of each settlement account to the chain, which is similar to the chain upload process of the order record to be settled, and the embodiment of the present application will not be repeated here.

[0175] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0176] See also Figure 7 , Figure 7 is a schematic diagram of an exemplary process of reconciliation processing of virtual resources provided in an embodiment of the present application; Figure 7 As shown, the exemplary process of reconciling virtual resources includes:

[0177] S701. Start.

[0178] S702. The transaction service module (transaction client) on the business side obtains its own order record (order record to be settled).

[0179] Here, the order record itself includes the order number (order ID), order amount (virtual resource quota), payment account, transaction time, payee list (account to be settled) and profit sharing information (settlement ratio), etc.

[0180] S703. The business side calls the transaction SDK (verification client) to obtain the order token (order key) corresponding to its own order record.

[0181] Here, you can use MD5 or SHA256 to calculate the order token of your own order record.

[0182] S704. The transaction service module on the business side stores its own order record and order token in the transaction table.

[0183] S705, the reconciliation module (reconciliation client) on the business side calls the transaction SDK to verify whether the order token in the transaction table is valid based on its own order record in the transaction table. If yes, execute S707, otherwise execute S706.

[0184] It should be noted that the transaction SDK uses MD5 to obtain the order token corresponding to its own order record in the transaction table. When the order token (order key to be compared) calculated by the transaction SDK matches the order token in the transaction table, it indicates that the order token in the transaction table is valid, thereby indicating that the order record itself in the transaction table is valid; when the order token calculated by the transaction SDK does not match the order token in the transaction table, it indicates that the order token is invalid, thereby indicating that the order record itself in the transaction table is invalid.

[0185] S706: The abnormal module on the business side manually checks its own order records in the transaction table. Execute S711.

[0186] It should be noted that manual inspection is used to determine whether the order record itself is a program loophole or a malicious insertion.

[0187] S707. The reconciliation module on the business side obtains other order records (order records to be compared) through a third party or other data sources.

[0188] It should be noted that other order records correspond to one's own order records through the merchant number; among which, the merchant number corresponds to the payment account, and the third party or other data source is, for example, the payment channel or the payment flow of the payment channel.

[0189] S708. The reconciliation module on the business side reconciles its own order records with other order records.

[0190] Here, the reconciliation process is, for example, checking whether the common order attributes of the same order number are consistent, for example, whether the order amounts are consistent.

[0191] S709: The reconciliation module on the business side determines whether the reconciliation result indicates that the order record has passed the reconciliation. If yes, S710 is executed; otherwise, S706 is executed.

[0192] S710. The reconciliation module on the business side writes its own order records into the settlement table.

[0193] S711, end.

[0194] It is understandable that by verifying the order token, the validity of the data in the settlement table can be guaranteed, thereby improving the accuracy of the settlement.

[0195] See also Figure 8 , Figure 8 is a schematic diagram of an exemplary flow chart of settlement processing of virtual resources provided in an embodiment of the present application; Figure 8 As shown, the exemplary process of settling virtual resources includes:

[0196] S801. Start.

[0197] S802. The settlement module (settlement client) on the business side settles its own order records in the settlement table to obtain the share amount of the share account.

[0198] S803, the settlement module on the business side calls the transaction SDK based on the share amount of the share account obtained by the settlement module and its own order record in the settlement table, so that the transaction SDK settles its own order record in the settlement table, obtains the share amount of the share account, and determines whether the share amount of the share account obtained by the settlement module (the settlement amount of each settlement account) matches the share amount of the share account obtained by the transaction SDK (the settlement amount to be compared for each settlement account). If yes, execute S805, if not, execute S804.

[0199] S804: The abnormal module on the business side manually checks its own order records in the settlement table. Execute S808.

[0200] S805. The settlement module on the business side obtains, from its own order records, order records associated with the profit-sharing account obtained by the settlement module.

[0201] S806. The settlement module on the business side calls the transaction SDK to obtain a transfer token (transfer key) and a transfer ID (transfer identifier) ​​corresponding to the transfer token based on the sorted associated order records, the profit-sharing account number and the profit-sharing amount.

[0202] Here, the transfer token is obtained by encrypting the associated order record, profit-sharing account number and profit-sharing amount using an encryption algorithm; the transfer ID can be obtained by processing the transfer token using MD5 or SHA256.

[0203] S807. The settlement module on the business side writes the share amount, transfer token and transfer ID of the share account obtained by the settlement module into the share table.

[0204] S808, end.

[0205] See also Fig. 9 , Fig. 9 is a schematic diagram of an exemplary process of transferring virtual resources provided in an embodiment of the present application; Fig. 9 As shown, the exemplary process of transferring virtual resources includes:

[0206] S901. Start.

[0207] S902. The transfer module (transfer client) on the business side decrypts the transfer token in the sharing table, and decrypts the sharing amount of the sharing account (the decrypted amount corresponding to the decrypted account).

[0208] S903, the transfer module on the business side determines whether the decrypted share amount of the share account matches the share amount of the share account in the share table. If yes, execute S905, if not, execute S904.

[0209] S904: The abnormal module on the business side manually checks the share amount of the share account in the share table. Execute S910.

[0210] S905. The transfer module on the business side writes the share account number, share amount and transfer ID in the share table into the transfer table.

[0211] S906: The transfer module on the business side triggers the transfer process based on the transfer ID in the transfer table.

[0212] S907. The transfer module on the business side determines whether the usage identifier corresponding to the transfer ID has been used; if yes, execute S909; if not, execute S908.

[0213] S908. The transfer module on the business side transfers the assets of the share quota to the share account. Execute S910.

[0214] S909. The transfer module on the business side stops transferring money to the profit-sharing account.

[0215] S910, end.

[0216] It can be understood that the transfer token ensures that the data in the transfer table has been verified by the transaction SDK, and is not simply calculated and inserted arbitrarily by the business; and the transfer token corresponds to the transfer ID. Through the transfer token and the transfer ID, it can be determined that only one transfer is performed for the same batch of orders for a split account; in summary, the security of the transfer is improved.

[0217] The following is a description of an exemplary structure of a virtual resource processing device 255 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the virtual resource processing device 255 of the memory 250 may include:

[0218] The order acquisition module 2551 is used to acquire a to-be-settled order record, wherein each to-be-settled order in the to-be-settled order record includes a virtual resource quota and an to-be-settled account number;

[0219] A first settlement module 2552 is used to settle the to-be-settled order record through a settlement client to obtain a settlement amount of each settlement account, wherein each settlement account is any settlement account in a settlement account set consisting of the to-be-settled accounts of each to-be-settled order, and the settlement amount is a settlement result obtained by the settlement client for each virtual resource amount associated with each settlement account;

[0220] The second settlement module 2553 is used to settle the to-be-settled order record through the verification client to obtain the to-be-compared settlement amount of each settlement account;

[0221] The resource transfer module 2554 is configured to obtain, through the verification client, a transfer key corresponding to the settlement amount of each settlement account when the settlement amount matches the settlement amount to be compared;

[0222] The resource transfer module 2554 is further used to perform transfer processing of virtual resources through the transfer client based on the verification result of the settlement amount of each settlement account by the transfer key.

[0223] In the embodiment of the present application, each order to be settled also includes an order key; the virtual resource processing device 255 also includes an order verification module 2555, which is used to obtain the order key to be compared corresponding to each order to be settled through the verification client.

[0224] In the embodiment of the present application, the first settlement module 2552 is further configured to settle the order record to be settled through the settlement client when the order key matches the order key to be compared.

[0225] In an embodiment of the present application, the virtual resource processing device 255 also includes an order key module 2556, which is used to extract order key data from each to-be-settled order through a transaction client, wherein the order key data includes one or more of the virtual resource amount, the to-be-settled account, the settlement ratio, the order identifier and the payment account; and the hash value of the order key data is determined as the order key through the verification client.

[0226] In the embodiment of the present application, the order verification module 2555 is also used to end the settlement process when the order key does not match the order key to be compared.

[0227] In an embodiment of the present application, the virtual resource processing device 255 also includes an order reconciliation module 2557, which is used to obtain the order record to be compared corresponding to the order record to be settled through a reconciliation client, wherein the order record to be settled and the order record to be compared correspond to a common transaction.

[0228] In the embodiment of the present application, the first settlement module 2552 is further configured to settle the order record to be settled through the settlement client when the order record to be settled matches the order record to be compared.

[0229] In the embodiment of the present application, the first settlement module 2552 is further configured to terminate the settlement process when the order record to be settled does not match the order record to be compared.

[0230] In the embodiment of the present application, the resource transfer module 2554 is further used to end the transfer process of the virtual resources when the settlement amount does not match the settlement amount to be compared.

[0231] In an embodiment of the present application, the virtual resource processing device 255 also includes a transfer verification module 2558, which is used to decrypt the transfer key through the transfer client; when the decrypted amount corresponding to the decrypted account matches the settlement amount of each settlement account obtained by the transfer client, the verification result is determined to be a passed verification; when the decrypted amount corresponding to the decrypted account does not match the settlement amount of each settlement account obtained by the transfer client, the verification result is determined to be a failed verification.

[0232] In an embodiment of the present application, the resource transfer module 2554 is also used to, when the verification result is passed, the transfer client verifies the settlement amount of each settlement account based on the transfer key, and performs the transfer processing of virtual resources for the settlement amount of each settlement account; when the verification result is failed, the transfer client verifies the settlement amount of each settlement account based on the transfer key, and ends the transfer process of virtual resources.

[0233] In an embodiment of the present application, the transfer verification module 2558 is further used to determine the hash value of the transfer key as a transfer identifier through the verification client, wherein the transfer identifier is used to determine the transfer result of the settlement amount of each settlement account.

[0234] In an embodiment of the present application, the transfer verification module 2558 is also used to perform the transfer processing of virtual resources for the settlement amount of each settlement account when the transfer identifier is a non-transfer identifier, wherein the non-transfer identifier means that the transfer processing of virtual resources is not performed for the settlement amount of each settlement account.

[0235] In an embodiment of the present application, the transfer verification module 2558 is further used to set the virtual resource transfer flag to a transferred flag, wherein the transferred flag means that the transfer processing of the virtual resources has been executed for the settlement amount of each settlement account.

[0236] In an embodiment of the present application, the first settlement module 2552 is further used to obtain the to-be-settled account of each to-be-settled order in the to-be-settled order record to obtain the settlement account set; obtain the associated order record corresponding to each settlement account in the settlement account set from the to-be-settled order record; determine the set consisting of the virtual resource quotas corresponding to each associated order in the associated order record as the individual virtual resource quotas; and combine the individual virtual resource quotas to obtain the settlement quota of each settlement account.

[0237] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the virtual resource processing method described in the embodiment of the present application.

[0238] The embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the virtual resource processing method provided by the embodiment of the present application, for example, Figure 3 A method for processing virtual resources is shown.

[0239] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0240] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0241] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0242] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0243] In summary, the embodiment of the present application calculates an order settlement result for the order record to be settled through the settlement client and the verification client, and then determines the settlement result of the order record to be settled by matching the two order settlement results (settlement amount and settlement amount to be compared); here, since the settlement result is determined based on the matching result corresponding to the order settlement result obtained in different ways, that is, the settlement result is obtained through verification, thereby improving the accuracy of the settlement result. In addition, by transferring the key and the transfer identifier, the security of the virtual resource transfer can also be improved.

[0244] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for processing virtual resources, characterized in that: include: Acquire a to-be-settled order record, wherein the to-be-settled order record includes at least one to-be-settled order after reconciliation, and each to-be-settled order in the to-be-settled order record includes a virtual resource quota and an to-be-settled account number; The settlement client performs settlement on the to-be-settled order record to obtain a settlement amount of each settlement account, wherein each settlement account is any settlement account in a settlement account set consisting of the to-be-settled accounts of each to-be-settled order, and the settlement amount is a settlement result obtained by the settlement client for each virtual resource amount associated with each settlement account; The verification client performs settlement on the pending order record to obtain the pending settlement amount of each settlement account; When the settlement amount matches the settlement amount to be compared, obtaining a transfer key corresponding to the settlement amount of each settlement account through the verification client; decrypting the transfer key by the transfer client; When the decrypted amount corresponding to the decrypted account number matches the settlement amount of each settlement account number obtained by the transfer client, determining that the verification result is verification passed; When the decrypted amount corresponding to the decrypted account does not match the settlement amount of each settlement account obtained by the transfer client, determining that the verification result is a verification failure; The transfer client performs transfer processing of the virtual resources based on the verification result and the verification result of the settlement amount of each settlement account by the transfer key.

2. The method according to claim 1, characterized in that Each of the pending settlement orders also includes an order key; Before settling the to-be-settled order record through the settlement client, the method further includes: Obtaining, through the verification client, a to-be-compared order key corresponding to each to-be-settled order; The settling of the to-be-settled order record by the settlement client includes: When the order key matches the order key to be compared, the order record to be settled is settled through the settlement client.

3. The method according to claim 2, characterized in that Before obtaining the to-be-settled order record, the method further includes: Extracting key order data from each of the to-be-settled orders through a transaction client, wherein the key order data includes one or more of the virtual resource quota, the to-be-settled account, the settlement ratio, the order identifier, and the payment account; The hash value of the key order data is determined as the order key by the verification client.

4. The method according to claim 2, characterized in that: After obtaining the order key to be compared corresponding to each order to be settled through the verification client, the method further includes: When the order key does not match the order key to be compared, the settlement process ends.

5. The method according to any one of claims 1 to 4, characterized in that: Before settling the to-be-settled order record through the settlement client, the method further includes: Acquiring, through the reconciliation client, an order record to be compared corresponding to the order record to be settled, wherein the order record to be settled and the order record to be compared correspond to a common transaction; The settling of the to-be-settled order record by the settlement client includes: When the order record to be settled matches the order record to be compared, the order record to be settled is settled through the settlement client.

6. The method according to claim 5, characterized in that After obtaining the order record to be compared corresponding to the order record to be settled through the reconciliation client, the method further includes: When the order record to be settled does not match the order record to be compared, the settlement process is terminated.

7. The method according to any one of claims 1 to 4, characterized in that: After settling the to-be-settled order records through the verification client and obtaining the to-be-compared settlement amount of each settlement account, the method further includes: When the settlement amount does not match the settlement amount to be compared, the transfer process of the virtual resources is terminated.

8. The method according to any one of claims 1 to 4, characterized in that: The transfer client performs transfer processing of virtual resources based on the verification result and the verification result of the settlement amount of each settlement account by the transfer key, including: When the verification result is that the verification is passed, the transfer client performs transfer processing of virtual resources for the settlement amount of each settlement account based on the verification result of the transfer key on the settlement amount of each settlement account; When the verification result is a verification failure, the transfer client ends the transfer process of the virtual resource based on the verification result of the settlement amount of each settlement account by the transfer key.

9. The method according to claim 8, characterized in that After obtaining the transfer key corresponding to the settlement amount of each settlement account through the verification client, the method further includes: Determining the hash value of the transfer key as a transfer identifier through the verification client, wherein the transfer identifier is used to determine the transfer result of the settlement amount of each settlement account; The performing of the transfer process of virtual resources for the settlement amount of each settlement account includes: When the transfer flag is a non-transfer flag, a transfer process of virtual resources is performed for the settlement amount of each settlement account, wherein the non-transfer flag means that a transfer process of virtual resources is not performed for the settlement amount of each settlement account.

10. The method according to claim 9, characterized in that After performing the transfer process of virtual resources for the settlement amount of each settlement account, the method further includes: The virtual resource transfer flag is set as a transferred flag, wherein the transferred flag indicates that the transfer process of the virtual resource has been executed for the settlement amount of each settlement account.

11. The method according to any one of claims 1 to 4, characterized in that: The settling of the to-be-settled order records to obtain the settlement amount of each settlement account includes: Obtaining the to-be-settled account number of each to-be-settled order in the to-be-settled order record, and obtaining the settlement account number set; Obtaining, from the to-be-settled order records, an associated order record corresponding to each settlement account in the settlement account set; Determine a set consisting of virtual resource quotas corresponding to each associated order in the associated order record as the respective virtual resource quotas; The virtual resource quotas are combined to obtain the settlement quota of each settlement account.

12. A virtual resource processing device, characterized in that: include: An order acquisition module, used to acquire a to-be-settled order record, wherein the to-be-settled order record includes at least one to-be-settled order after reconciliation, and each to-be-settled order in the to-be-settled order record includes a virtual resource quota and an to-be-settled account number; A first settlement module, configured to settle the to-be-settled order records through a settlement client, and obtain a settlement amount of each settlement account, wherein each settlement account is any settlement account in a settlement account set consisting of the to-be-settled accounts of each to-be-settled order, and the settlement amount is a settlement result obtained by the settlement client for each virtual resource amount associated with each settlement account; A second settlement module, configured to settle the to-be-settled order record through a verification client, and obtain the to-be-compared settlement amount of each settlement account; a resource transfer module, configured to obtain, through the verification client, a transfer key corresponding to the settlement amount of each settlement account when the settlement amount matches the settlement amount to be compared; A transfer verification module, configured to decrypt the transfer key through a transfer client; when the decrypted amount corresponding to the decrypted account number matches the settlement amount of each settlement account number obtained by the transfer client, determine that the verification result is a verification pass; when the decrypted amount corresponding to the decrypted account number does not match the settlement amount of each settlement account number obtained by the transfer client, determine that the verification result is a verification failure; The resource transfer module is further used to perform transfer processing of virtual resources through the transfer client based on the verification result and the transfer key of the settlement amount of each settlement account.

13. A virtual resource processing device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 11 when executing the executable instructions stored in the memory.

14. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when executed by a processor, the method described in any one of claims 1 to 11 is implemented.