Resource processing method and device and storage medium

By splitting the target resource objects in the account system, generating sub-resource objects that correspond to transaction requests one by one, and executing transactions on them, the problem of low concurrency in single accounts in the existing technology is solved, and the transaction concurrency execution capability and system stability are improved.

CN119722303APending Publication Date: 2025-03-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311291545.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

When the existing account system handles multiple transaction requests, there is a problem of low concurrency in a single account, which can easily lead to timeout requests and affect business operations.

Method used

By receiving multiple transaction requests for the target account, split the target resource object according to the transaction type and number of requests, multiple sub-resource objects are obtained, and corresponding transactions are performed on these sub-resource objects.

Benefits of technology

It improves the concurrent execution capabilities of single accounts, reduces the risks of account system business operation, and realizes the parallel execution of multiple transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119722303A_ABST
    Figure CN119722303A_ABST
Patent Text Reader

Abstract

The invention discloses a resource processing method and device and a storage medium, and the method comprises the steps: obtaining a transaction type of each first transaction request when a plurality of first transaction requests for a target account are received, splitting a target resource object in the target account according to the transaction types and the number of the first transaction requests, and storing the split target resource object in the target account; obtaining a plurality of sub-resource objects in one-to-one correspondence with the first transaction requests, and then executing transactions corresponding to the first transaction requests on the sub-resource objects. According to the embodiment of the invention, the transaction concurrent execution capability for a single account can be improved, so that the risk of influencing the business operation of an account system can be reduced. The embodiment of the invention can be widely applied to transaction processing technologies in various account systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] An account system is a system used to manage account balances and transaction records. For example, in the financial field, an account system can be used to manage bank accounts, credit card accounts, payment accounts, etc. An account system can record account balances, transaction records, account holder information, etc. It can also open, close, freeze, and unfreeze accounts.

[0003] In the current account system, when multiple transaction requests are received for a certain account, the transactions corresponding to each transaction request need to be executed in sequence for the account, wherein the execution of the transaction corresponding to the latter transaction request needs to be based on the execution result of the transaction corresponding to the previous transaction request. Therefore, the current account system has the problem of low concurrency of a single account, which easily leads to the risk of affecting the business operation of the account system due to a large number of timeout requests. Summary of the invention

[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0005] The embodiments of the present application provide a resource processing method, device, and storage medium, which can improve the concurrent execution capability of transactions for a single account, thereby reducing the risk of affecting the business operation of the account system.

[0006] On the one hand, an embodiment of the present application provides a resource processing method, comprising the following steps:

[0007] receiving a plurality of first transaction requests for a target account, and obtaining a transaction type of each of the first transaction requests;

[0008] Splitting the target resource object in the target account according to the transaction type and the number of the first transaction request to obtain a plurality of sub-resource objects, wherein the sub-resource objects correspond to the first transaction request one by one;

[0009] The transaction corresponding to each of the first transaction requests is executed on each of the sub-resource objects.

[0010] On the other hand, an embodiment of the present application further provides a resource processing device, including:

[0011] A request receiving unit, configured to receive a plurality of first transaction requests for a target account, and obtain a transaction type of each of the first transaction requests;

[0012] a resource splitting unit, configured to split the target resource object in the target account according to the transaction type and the number of the first transaction request to obtain a plurality of sub-resource objects, wherein the sub-resource objects correspond to the first transaction request one by one;

[0013] The transaction execution unit is configured to execute the transaction corresponding to each of the first transaction requests on each of the sub-resource objects.

[0014] Optionally, the transaction type includes an expenditure type, and the sub-resource object has a resource value; and the resource splitting unit is further used for:

[0015] Determine, among all the first transaction requests, a second transaction request whose transaction type is the expenditure type;

[0016] Obtaining the quantity of transaction resources of each of the second transaction requests;

[0017] According to the transaction resource quantity of each second transaction request and the quantity of the first transaction request, the target resource object in the target account is split to obtain a plurality of sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the transaction resource quantity of the corresponding second transaction request.

[0018] Optionally, the resource splitting unit is further used for:

[0019] Determine the target transaction resource quantity with the largest value among the transaction resource quantities of all the second transaction requests;

[0020] Determine a resource quantity threshold value according to the target transaction resource quantity;

[0021] According to the resource quantity threshold and the quantity of the first transaction request, the target resource object in the target account is split to obtain a plurality of the sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the resource quantity threshold.

[0022] Optionally, the target account has a plurality of sub-resource objects, each of which has a resource value; and the resource processing device further includes:

[0023] A payment request receiving unit, configured to receive a transaction payment request for the target account;

[0024] An expenditure amount obtaining unit, used to obtain the resource expenditure amount of the transaction expenditure request;

[0025] The expenditure transaction execution unit is used to execute the transaction corresponding to the transaction expenditure request according to the resource expenditure amount and the resource value of each sub-resource object.

[0026] Optionally, the expenditure transaction execution unit is further used for:

[0027] When the resource expenditure amount is greater than the resource value of each sub-resource object, but less than or equal to the sum of the resource values ​​of all the sub-resource objects, all the sub-resource objects are merged to obtain a resource merged object;

[0028] The transaction corresponding to the transaction expenditure request is executed on the resource merging object.

[0029] Optionally, the resource processing device further includes:

[0030] A transaction frequency acquisition unit, used to acquire the transaction frequency for the target account;

[0031] The sub-resource splitting unit is used to split at least one of the multiple sub-resource objects according to a preset number when the transaction frequency is greater than a preset frequency threshold.

[0032] Optionally, the resource processing device further includes:

[0033] A function requirement receiving unit, used for receiving business function requirements of transaction business;

[0034] A function interface determination unit, configured to determine a plurality of corresponding candidate operation function interfaces from a plurality of preset resource object operation function interfaces according to the business function requirements;

[0035] A function script generating unit is used to generate a business function script of the transaction business according to a plurality of the candidate operation function interfaces.

[0036] Optionally, the resource processing device further includes:

[0037] A functional requirement determination unit, configured to determine, when the business functional requirement is updated, a target functional requirement after the update in the business functional requirement;

[0038] A function interface updating unit, configured to update the plurality of candidate operation function interfaces according to the target function requirements;

[0039] A function script regeneration unit is used to regenerate the business function script of the transaction business according to the updated multiple candidate operation function interfaces.

[0040] Optionally, the functional interface updating unit is further used for:

[0041] Determine the functional requirement before updating corresponding to the target functional requirement;

[0042] Determine a corresponding target operation function interface among the plurality of candidate operation function interfaces according to the function requirement before the update;

[0043] The target operation function interface is updated according to the target function requirement.

[0044] Optionally, the resource processing device further includes:

[0045] A resource object acquisition unit, configured to acquire a plurality of candidate resource objects in the target account, wherein different candidate resource objects have different validity period information;

[0046] The resource object determining unit is used to determine the target resource object from among the plurality of candidate resource objects according to the validity period information.

[0047] Optionally, the resource object determining unit is further used to:

[0048] Determine a plurality of candidate resource objects that have not expired from the plurality of candidate resource objects according to the validity period information;

[0049] Among the multiple candidate resource objects, the one with the shortest remaining validity period is determined as the target resource object.

[0050] On the other hand, an embodiment of the present application further provides a resource processing device, including:

[0051] at least one processor;

[0052] at least one memory for storing at least one program;

[0053] When at least one of the programs is executed by at least one of the processors, the resource processing method as described above is implemented.

[0054] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program executable by a processor, and the computer program executable by the processor is used to implement the resource processing method as described above when executed by the processor.

[0055] On the other hand, an embodiment of the present application also provides a computer program product, including a computer program or computer instructions, wherein the computer program or the computer instructions are stored in a computer-readable storage medium, and a processor of a resource processing device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the resource processing device performs the resource processing method as described above.

[0056] The embodiment of the present application includes at least the following beneficial effects: when multiple first transaction requests for a target account are received, the transaction type of each first transaction request is first obtained, and then the target resource object in the target account is split according to the transaction type and the number of the first transaction requests to obtain multiple sub-resource objects, wherein the sub-resource objects correspond to the first transaction requests one by one. By splitting the target resource object in the target account according to the transaction type and the number of the first transaction requests, the target resource object in the target account, which was originally a whole, can be split into multiple independent sub-resource objects, so that these sub-resource objects can not only be consistent with the number of these first transaction requests, but also be consistent with the transaction type of these first transaction requests. The sub-resource objects are adapted to the type and can correspond one-to-one with these first transaction requests. Then, the transactions corresponding to the first transaction requests are executed for the sub-resource objects. Since the number of sub-resource objects is consistent with the number of first transaction requests, and the sub-resource objects correspond one-to-one with the first transaction requests and are adapted to the transaction type of the first transaction requests, each sub-resource object can be used as a transaction execution object at the same time, and the transactions corresponding to the first transaction requests are executed at the same time, so that the original serial execution of multiple transactions for the target account becomes the parallel execution of multiple transactions for multiple sub-resource objects, thereby improving the concurrent execution capability of transactions for a single account, and further effectively reducing the risk of affecting the business operation of the account system.

[0057] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0059] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0060] Figure 2 is a schematic diagram of another implementation environment provided by an embodiment of the present application;

[0061] Figure 3 is a flow chart of a resource processing method provided by an embodiment of the present application;

[0062] Figure 4 It is a schematic diagram of splitting a target resource object provided by an embodiment of the present application;

[0063] Figure 5 is a schematic diagram of splitting a target resource object provided by another embodiment of the present application;

[0064] Figure 6 It is a schematic diagram of a process of executing a transaction corresponding to a transaction expenditure request according to a resource expenditure amount and resource values ​​of each sub-resource object provided by an embodiment of the present application;

[0065] Figure 7 It is a schematic diagram of a process of updating multiple candidate operation function interfaces according to target function requirements provided by an embodiment of the present application;

[0066] Figure 8 It is a schematic diagram of a specific process of the point transaction service accessing the account system and the account system executing the point transaction provided by the embodiment of the present application;

[0067] Fig. 9 It is a specific flow chart of a resource processing method provided by a specific example of this application;

[0068] Fig.10 is a schematic diagram of a resource processing device provided in an embodiment of the present application;

[0069] Fig.11 It is a schematic diagram of another resource processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0071] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will 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.

[0072] 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.

[0073] 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.

[0074] 1) Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to achieve data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0075] 2) Cloud computing is a computing model that distributes computing tasks on a resource pool consisting of a large number of computers, allowing various application systems to obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use. As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices. According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. SaaS can also be deployed directly on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.

[0076] In the current account system, the underlying database operation can be simply understood as adding and subtracting the balance of a certain account. For example, when performing a transaction operation for income, the balance in the account will be increased, and when performing a transaction operation for expenditure, the balance in the account will be reduced. However, in the current account system, when multiple transaction requests are received for a certain account (such as a frequently operated hot account), due to the performance of the underlying database, it is impossible to perform concurrent transactions on the account. Instead, it is necessary to execute the transactions corresponding to each transaction request for the account in sequence, and the execution of the transaction corresponding to the latter transaction request needs to be based on the execution result of the transaction corresponding to the previous transaction request. For example, suppose that there is an account A in the current account system that is a hot account. During a holiday promotion, because multiple transactions need to be executed in a short period of time, the balance of account A (assuming it is 1,000 yuan) needs to be frequently modified in a short period of time. Assume that 1,000 transactions need to be modified within 1 second, and the content of each transaction is to reduce the balance of account A by 1. Since these 1,000 balance modifications are all for account A, and the balance of account A is a piece of data in the database, the balance data of account A in the database needs to be modified 1,000 times, and the 1,000 modifications are executed serially, that is, the modification of the balance by the latter transaction needs to wait until the modification of the balance by the previous transaction is completed before it can be executed. In this case, if the database takes a long time to modify the balance data, or the number of transactions waiting to be executed is large, it will cause a large number of timeout requests, which will affect the normal operation of the account system. Therefore, the current account system has the problem of low concurrency of a single account, which easily leads to the risk of affecting the business operation of the account system due to a large number of timeout requests.

[0077] In order to improve the concurrent execution capability of transactions for a single account and reduce the risk of affecting the business operation of an account system, an embodiment of the present application provides a resource processing method, a resource processing device, a computer-readable storage medium, and a computer program product. When multiple first transaction requests for a target account are received, the transaction type of each first transaction request is first obtained, and then the target resource object in the target account is split according to the transaction type and the number of first transaction requests to obtain multiple sub-resource objects, wherein the sub-resource objects correspond to the first transaction requests one by one. By splitting the target resource object in the target account according to the transaction type and the number of first transaction requests, the target resource object in the target account, which was originally a whole, can be split into multiple independent sub-resource objects, so that these sub-resource objects are not It can only be consistent with the number of these first transaction requests, and can also be adapted to the transaction types of these first transaction requests, and can correspond one-to-one with these first transaction requests. Then, the transactions corresponding to the first transaction requests are executed for each sub-resource object. Since the number of sub-resource objects is consistent with the number of first transaction requests, and the sub-resource objects correspond one-to-one with the first transaction requests and are adapted to the transaction types of the first transaction requests, each sub-resource object can be used as a transaction execution object at the same time, and the transactions corresponding to the first transaction requests are executed at the same time, so that the original serial execution of multiple transactions for the target account becomes the parallel execution of multiple transactions for multiple sub-resource objects, thereby improving the concurrent execution capability of transactions for a single account, and then effectively reducing the risk of affecting the business operation of the account system.

[0078] Figure 1 Schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 The implementation environment includes multiple user terminals 101 and a transaction server 102. Each user terminal 101 is directly or indirectly connected to the transaction server 102 through wired or wireless communication, wherein the user terminal 101 and the transaction server 102 can both be nodes in the blockchain, which is not specifically limited in this embodiment.

[0079] The user terminal 101 may include but is not limited to a smart phone, a computer, a tablet computer, an intelligent voice interaction device, a smart watch, a smart home appliance, a vehicle-mounted terminal, etc. Optionally, the user terminal 101 may be installed with a transaction client, and the user may initiate a transaction request for a target account to the transaction server 102 through the transaction client.

[0080] The transaction server 102 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. The transaction server 102 is deployed with an account system based on programmable resource objects, which can not only execute corresponding transactions according to the transaction requests sent by the user terminal 101, but also manage account balances and transaction records.

[0081] In one embodiment, the account system deployed in the transaction server 102 may include an access layer, a core logic layer, and a database. The access layer is responsible for user authentication, authorization, and user request routing; the core logic layer is used to implement the core processing logic of the programmable account system with resource objects as the smallest processing unit; the database is responsible for storing the data generated by the core logic layer and providing corresponding data reading and writing services for the core logic layer. Among them, the core logic layer may include a script publishing service module, a virtual machine module, a resource object screening service module, a script execution engine module, and a flow and account information management module. The script publishing service module can be used to check, compile, and publish script codes written by the business end, and can save the resource object screening strategy defined by the business end to the database. The virtual machine module can be used as an execution environment for the script language, so that the bytecode obtained after compiling the script language can be executed in the virtual machine module. The resource object screening service module can screen out resource objects suitable for the current transaction in the target account according to the resource object screening strategy defined by the business end to execute this transaction. The script execution engine module can connect the virtual machine in the virtual machine module to the current system, and can input the resource objects screened by the resource object screening service module as script input parameters into the virtual machine, and then call the corresponding script to execute the transaction logic. The transaction flow and account information management module can be used to generate and maintain account information and transaction flow information in the current system.

[0082] Reference Figure 1As shown, in an application scenario, it is assumed that multiple user terminals 101 initiate transaction operations for a target account within a short time (for example, 1 second) and send multiple first transaction requests to the transaction server 102. After receiving multiple first transaction requests for the target account, the transaction server 102 determines the target account for the transaction to be executed according to the first transaction request, and determines the target resource object for the transaction to be executed in the target account. Then, the transaction server 102 obtains the transaction type of each first transaction request, and splits the target resource object in the target account according to the transaction type and the number of first transaction requests, and splits the target resource object in the target account, which was originally a whole, into multiple independent sub-resource objects, so that these sub-resource objects can not only be consistent with the number of these first transaction requests, but also can correspond to these first transaction requests one by one. Then, the transaction server 102 executes the transaction corresponding to each first transaction request on each sub-resource object, and completes the concurrent execution of the transactions corresponding to these first transaction requests. After the transaction server 102 completes the concurrent execution of these first transaction requests and obtains the transaction results, the transaction server 102 updates the resource data of the target account in the database according to the transaction results.

[0083] In addition, if the transaction server 102 does not have sufficient data computing power to implement concurrent execution of a large number of transaction requests, cloud computing technology in cloud technology can be used to implement concurrent execution of a large number of transaction requests. Figure 2 As shown, the implementation environment may include a cloud computing server 103 in addition to multiple user terminals 101 and a transaction server 102. The transaction server 102 and the cloud computing server 103 are directly or indirectly connected via wired or wireless communications. The cloud computing server 103 may also be a node in the blockchain, which is not specifically limited in this embodiment.

[0084] Reference Figure 2As shown, in another application scenario, it is assumed that multiple user terminals 101 initiate transaction operations for a target account within a short period of time (for example, 1 second) and send multiple first transaction requests to the transaction server 102. After receiving the multiple first transaction requests for the target account, the transaction server 102 determines whether it has sufficient data computing power to implement concurrent execution of all the first transaction requests based on the number of the first transaction requests and the corresponding transaction content. When the transaction server 102 determines that it does not have sufficient data computing power to implement concurrent execution of all the first transaction requests, the transaction server 102 determines the target account for the transaction to be executed based on the first transaction request, and determines the target resource object for the transaction to be executed in the target account, and then After that, the transaction server 102 sends these first transaction requests and target resource objects to the cloud computing server 103; in response to receiving these first transaction requests and target resource objects, the cloud computing server 103 obtains the transaction type of each first transaction request, and splits the target resource object according to the transaction type and the number of first transaction requests, splitting the target resource object that was originally a whole into multiple independent sub-resource objects, so that these sub-resource objects can not only be consistent with the number of these first transaction requests, but also can correspond to these first transaction requests one by one. Then, the cloud computing server 103 executes the transaction corresponding to each first transaction request on each sub-resource object, and completes the concurrent execution of these first transaction requests. After the cloud computing server 103 completes the concurrent execution of these first transaction requests and obtains the transaction result, the cloud computing server 103 sends the transaction result to the transaction server 102; in response to receiving the transaction result, the transaction server 102 updates the resource data of the target account in the database according to the transaction result.

[0085] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on the attribute information or attribute information set of the target object (such as a user, etc.) and other data related to the characteristics of the target object, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiment of the present application needs to obtain the attribute information of the target object, the separate permission or separate consent of the target object will be obtained through a pop-up window or jump to a confirmation page. After clearly obtaining the separate permission or separate consent of the target object, the relevant data of the target object necessary for the normal operation of the embodiment of the present application is obtained.

[0086] The embodiments of the present application can be applied to transaction processing in various account systems, including but not limited to transaction scenarios for consumption vouchers, points, discount coupons, etc.

[0087] Figure 31 is a flowchart of a resource processing method provided in an embodiment of the present application. The resource processing method can be executed by a terminal or a server, or by both a terminal and a server. In the embodiment of the present application, the method is described by taking the method executed by a server as an example. Figure 3 , the resource processing method includes but is not limited to steps 310 to 330.

[0088] Step 310: Receive multiple first transaction requests for the target account, and obtain the transaction type of each first transaction request.

[0089] In one embodiment, the target account may be an account of the target object in the fields of finance or education, for example, the target account may be a bank account, a credit card account, or a points account, etc., which is not specifically limited here.

[0090] In one embodiment, the transaction type of the first transaction request for the target account may be an expenditure type or an income type. Therefore, multiple first transaction requests for the target account may all be transaction expenditure requests, or may all be transaction income requests, or may some be transaction expenditure requests and some be transaction income requests, which is not specifically limited here.

[0091] In one embodiment, the server may receive multiple first transaction requests for the target account in a short time, for example, multiple first transaction requests for the target account may be received within 1 second, or multiple first transaction requests for the target account may be received within 2 seconds, etc., which is not specifically limited here.

[0092] Step 320: split the target resource object in the target account according to the transaction type and the number of the first transaction request to obtain a plurality of sub-resource objects, wherein the sub-resource objects correspond to the first transaction requests one by one.

[0093] In one embodiment, since the target account may be a bank fund account, a credit card account, or a points account, etc., the target resource object in the target account may be a fund balance, a credit balance, or a points balance, etc., which is not specifically limited here. In addition, since the sub-resource object is obtained by splitting the target resource object, the sub-resource object may also be a fund balance, a credit balance, or a points balance, etc., which is not specifically limited here.

[0094] In one embodiment, after receiving multiple first transaction requests for a target account, the server may split the target resource object in the target account according to the number of the first transaction requests to obtain multiple sub-resource objects corresponding one-to-one to the first transaction requests. By splitting the target resource object in the target account according to the number of the first transaction requests, the target resource object in the target account, which was originally a whole, may be split into multiple independent sub-resource objects, so that these sub-resource objects can not only be consistent with the number of these first transaction requests, but also can correspond one-to-one to these first transaction requests, thereby facilitating the subsequent concurrent execution of transactions, and further improving the concurrent execution capability of transactions for the target account.

[0095] In one embodiment, since the first transaction request can be a transaction expenditure request of an expenditure type or a transaction income request of an income type, and for first transaction requests of different transaction types, the target resource object needs to be split differently, therefore, in order to be able to split the target resource object appropriately, in the process of splitting the target resource object in the target account according to the number of first transaction requests to obtain multiple sub-resource objects, the transaction type of each first transaction request can be first obtained, and then the target resource object in the target account can be split according to the transaction type and the number of first transaction requests to obtain multiple sub-resource objects. Among them, when splitting the target resource object in the target account according to the transaction type and the number of first transaction requests, the corresponding resource object screening strategy can be first obtained from the database according to the transaction type of all first transaction requests, and then the target resource object in the target account can be split according to the resource object screening strategy and the number of first transaction requests to obtain multiple sub-resource objects. For example Figure 4 As shown, assuming that multiple first transaction requests for the target account are received, including a first transaction request A1, a first transaction request A2, and a first transaction request A3, then the transaction type B1 of the first transaction request A1, the transaction type B2 of the first transaction request A2, and the transaction type B3 of the first transaction request A3 can be obtained first, and then according to the transaction type B1, the transaction type B2, and the transaction type B3, the corresponding target resource object screening strategy 430 is obtained from the database 410 in which multiple resource object screening strategies 420 are pre-stored, and then according to the target resource object screening strategy 430 and the number of first transaction requests (the number is 3), the target resource object 440 in the target account is split to obtain three sub-resource objects 450. For example, taking the target resource object 440 in the target account as the fund balance, assuming that the fund balance is 15 yuan (that is, the resource value of the target resource object 440 is 15), then after splitting the target resource object 440, three sub-resource objects 450 of 5 yuan can be obtained, that is, the resource values ​​of the three sub-resource objects 450 obtained after the split are all 5.

[0096] In one embodiment, for different transaction types, the resource object screening strategy obtained from the database will be different. For example, if the transaction type of all first transaction requests is the income type, then the resource object screening strategy screened out may be to split the target resource object with a random value, that is, not to limit the upper limit of the resource value of the sub-resource object; for another example, if the transaction type of all first transaction requests is the expenditure type, then the resource object screening strategy screened out may be to split the target resource object, and require that the resource value of each sub-resource object after the split is greater than or equal to the number of transaction resources of the corresponding first transaction request, for example, the number of first transaction requests is 3, the number of transaction resources of the first first transaction request is 5, the number of transaction resources of the second first transaction request is 8, and the number of transaction resources of the third first transaction request is 10, then after the target resource object is split to obtain multiple sub-resource objects, the resource value of the first sub-resource object needs to be greater than or equal to 5, the resource value of the second sub-resource object needs to be greater than or equal to 8, and the resource value of the third sub-resource object needs to be greater than or equal to 10. Therefore, after obtaining the corresponding resource object screening strategy according to the transaction type of all first transaction requests, the target resource object in the target account is split accordingly according to the obtained resource object screening strategy and the number of first transaction requests, so that the multiple sub-resource objects after the split can support the execution of the transactions corresponding to the corresponding first transaction requests. For example, taking the target resource object in the target account as the fund balance as an example, assuming that the fund balance is 23 yuan (that is, the resource value of the target resource object is 23), the first first transaction request requires an expenditure of 5 yuan (that is, the transaction resource quantity of the first first transaction request is 5), the second first transaction request requires an expenditure of 8 yuan (that is, the transaction resource quantity of the second first transaction request is 8), and the third first transaction request requires an expenditure of 10 yuan (that is, the transaction resource quantity of the third first transaction request is 10). Then, the target resource object (that is, the fund balance) can be split to obtain three sub-resource objects, among which the resource value of the first sub-resource object is 5 (that is, 5 yuan), the resource value of the second sub-resource object is 8 (that is, 8 yuan), and the resource value of the third sub-resource object is 10 (that is, 10 yuan). In other words, the overall target resource object of 23 yuan can be split to obtain three sub-resource objects of 5 yuan, 8 yuan and 10 yuan.

[0097] In one embodiment, when the transaction type includes an expenditure type and the sub-resource object has a resource value, in the process of splitting the target resource object in the target account according to the transaction type and the number of first transaction requests to obtain multiple sub-resource objects, a second transaction request whose transaction type is an expenditure type can be first determined among all first transaction requests, and then the transaction resource quantity of each second transaction request is obtained, and then the target resource object in the target account is split according to the transaction resource quantity of each second transaction request and the number of the first transaction request to obtain multiple sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the transaction resource quantity of the corresponding second transaction request. Since the splitting process of the target resource object corresponding to the first transaction request of the expenditure type is different from the splitting process of the target resource object corresponding to the first transaction request of the income type, when the transaction type includes the expenditure type, by first determining the second transaction request whose transaction type is the expenditure type in all the first transaction requests, and obtaining the transaction resource quantity of each second transaction request, and then splitting the target resource object in the target account according to the transaction resource quantity of each second transaction request and the quantity of the first transaction request, not only can the split sub-resource objects correspond to the first transaction requests of different transaction types, but also the sub-resource objects corresponding to the second transaction request can support the transaction resource quantity of the second transaction request. For example Figure 5As shown, assuming that multiple first transaction requests for the target account are received, including a first transaction request A1, a first transaction request A2, a first transaction request A3 and a first transaction request A4, wherein the transaction types of the first transaction request A2 and the first transaction request A4 are both expenditure types, then when the target resource object in the target account is split according to the transaction type and the number of the first transaction requests, the second transaction request B2 (i.e., the first transaction request A2) and the second transaction request B4 (i.e., the first transaction request A4) whose transaction types are expenditure types are first determined from the four first transaction requests, and then the transaction resource quantities of the second transaction request B2 and the second transaction request B4 are obtained, wherein the transaction resource quantity of the second transaction request B2 is C2, and the transaction resource quantity of the second transaction request B4 is C4, and then according to the transaction resource quantity C2, the transaction resource quantity C4 and the number of the first transaction requests (the quantity is 4), the target resource object 510 in the target account is split to obtain four sub-resource objects 520. Among them, the first sub-resource object 520 corresponds to the first transaction request A1; the second sub-resource object 520 corresponds to the second transaction request B2 (i.e., the first transaction request A2), and the resource value of the second sub-resource object 520 is greater than or equal to the transaction resource quantity C2; the third sub-resource object 520 corresponds to the first transaction request A3; the fourth sub-resource object 520 corresponds to the second transaction request B4 (i.e., the first transaction request A4), and the resource value of the fourth sub-resource object 520 is greater than or equal to the transaction resource quantity C4.For example, taking the target resource object in the target account as the fund balance as an example, assuming that the fund balance is 20 yuan (i.e., the resource value of the target resource object 510 is 20), the first transaction request A1 requires a transfer of 5 yuan, the first transaction request A2 requires an expenditure of 3 yuan (i.e., the transaction resource quantity of the first transaction request A2 is 5), the first transaction request A3 requires a transfer of 5 yuan, and the first transaction request A4 requires an expenditure of 10 yuan (i.e., the transaction resource quantity of the first transaction request A4 is 10), then the target resource object 510 (i.e., the fund balance) can be split to obtain 4 sub-resource objects 520, wherein the resource value of the first sub-resource object 520 is 2 (i.e., 2 yuan), the resource value of the second sub-resource object 520 is 5 (i.e., 5 yuan), the resource value of the third sub-resource object 520 is 3 (i.e., 3 yuan), and the resource value of the fourth sub-resource object 520 is 10 (i.e., 10 yuan). In other words, the 2 sub-resource objects 520 can be split. The overall target resource object 510 of 0 yuan is split into four sub-resource objects 520 of 2 yuan, 5 yuan, 3 yuan and 10 yuan. In this way, when the first transaction request A1 is executed, 5 yuan will be transferred on the basis of the first sub-resource object 520, so that the first sub-resource object 520 after the execution of the first transaction request A1 is 7 yuan; when the first transaction request A2 is executed, 3 yuan will be spent on the basis of the second sub-resource object 520, so that the second sub-resource object 520 after the execution of the first transaction request A2 is 2 yuan; when the first transaction request A3 is executed, 5 yuan will be transferred on the basis of the third sub-resource object 520, so that the third sub-resource object 520 after the execution of the first transaction request A3 is 8 yuan; when the first transaction request A4 is executed, 10 yuan will be spent on the basis of the fourth sub-resource object 520, so that the fourth sub-resource object 520 after the execution of the first transaction request A4 is 0 yuan.

[0098] In one embodiment, in the process of splitting the target resource object in the target account to obtain multiple sub-resource objects according to the transaction resource quantity of each second transaction request and the quantity of the first transaction request, the target transaction resource quantity with the largest value can be determined first among the transaction resource quantities of all the second transaction requests, and then the resource quantity threshold can be determined according to the target transaction resource quantity, and then the target resource object in the target account can be split according to the resource quantity threshold and the quantity of the first transaction request to obtain multiple sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the resource quantity threshold. By first determining the target transaction resource quantity with the largest value among the transaction resource quantities of all the second transaction requests, and then determining the resource quantity threshold according to the target transaction resource quantity with the largest value, when splitting the target resource object in the target account, the target transaction resource quantity with the largest value can be used as the lower limit of the resource value of the sub-resource object corresponding to the second transaction request, and the target resource object is split according to the quantity of the first transaction request, so that among the multiple sub-resource objects obtained by splitting, the resource value of the sub-resource object corresponding to the second transaction request can be greater than or equal to the resource quantity threshold, so that these sub-resource objects can support the execution of the transaction corresponding to the corresponding second transaction request.

[0099] In one embodiment, the resource quantity threshold may be greater than or equal to the target transaction resource quantity, which is not specifically limited herein. For example, when determining the resource quantity threshold according to the target transaction resource quantity, when the resource quantity threshold is equal to the target transaction resource quantity, the target transaction resource quantity may be directly used as the resource quantity threshold; when the resource quantity threshold is greater than the target transaction resource quantity, the target transaction resource quantity may be added with a resource increment value, or the target transaction resource quantity may be multiplied by an increment ratio greater than 1 to obtain the resource quantity threshold.

[0100] In one embodiment, when a resource object has validity period information, since different resource objects will become invalid at different times, in order not to affect the user's right to use the resource object, before splitting the target resource object in the target account according to the number of the first transaction request, multiple candidate resource objects in the target account can be obtained first, wherein different candidate resource objects have different validity period information, and then the target resource object is determined from the multiple candidate resource objects according to the validity period information. Among them, when determining the target resource object from the multiple candidate resource objects according to the validity period information, multiple candidate resource objects that have not expired can be determined from the multiple candidate resource objects according to the validity period information, and then one of the multiple candidate resource objects with the shortest remaining validity period is determined as the target resource object. By selecting the candidate resource object with the shortest remaining validity period as the target resource object, the candidate resource object with the shortest remaining validity period can be consumed preferentially, thereby effectively protecting the user's right to use the resource object.

[0101] Step 330: Execute transactions corresponding to the first transaction requests on the sub-resource objects.

[0102] In one embodiment, after the target resource object in the target account is split to obtain multiple sub-resource objects corresponding to the first transaction request one by one, the transaction corresponding to each first transaction request can be executed on each sub-resource object. For example, assuming that the multiple first transaction requests received include a first transaction request N1, a first transaction request N2, and a first transaction request N3, and the multiple sub-resource objects obtained by splitting include a sub-resource object M1, a sub-resource object M2, and a sub-resource object M3, then when the transaction corresponding to each first transaction request is executed on each sub-resource object, the transaction corresponding to the first transaction request N1 will be executed based on the sub-resource object M1, the transaction corresponding to the first transaction request N2 will be executed based on the sub-resource object M2, and the transaction corresponding to the first transaction request N3 will be executed based on the sub-resource object M3. Since the number of sub-resource objects is consistent with the number of first transaction requests, and the sub-resource objects correspond to the first transaction requests one by one, each sub-resource object can be used as a transaction execution object at the same time, and the transactions corresponding to each first transaction request can be executed at the same time, so that the original serial execution of multiple transactions for the target account is transformed into the parallel execution of multiple transactions for multiple sub-resource objects, thereby improving the concurrent execution capability of transactions for a single account, and further effectively reducing the risk of affecting the business operation of the account system.

[0103] In this embodiment, through the resource processing method including the above steps 310 to 330, when multiple first transaction requests for the target account are received, the transaction type of each first transaction request is first obtained, and then the target resource object in the target account is split according to the transaction type and the number of the first transaction requests to obtain multiple sub-resource objects, wherein the sub-resource objects correspond to the first transaction requests one by one. By splitting the target resource object in the target account according to the transaction type and the number of the first transaction requests, the target resource object in the target account, which was originally a whole, can be split into multiple independent sub-resource objects, so that these sub-resource objects can not only be consistent with the number of these first transaction requests, but also be consistent with these first transaction requests. Then, the transactions corresponding to the first transaction requests are executed for the sub-resource objects. Since the number of sub-resource objects is consistent with the number of first transaction requests, and the sub-resource objects correspond to the first transaction requests one-to-one and are adapted to the transaction types of the first transaction requests, the sub-resource objects can be used as transaction execution objects at the same time, and the transactions corresponding to the first transaction requests are executed at the same time, so that the serial execution of multiple transactions originally for the target account becomes the parallel execution of multiple transactions for multiple sub-resource objects, thereby improving the concurrent execution capability of transactions for a single account, and further effectively reducing the risk of affecting the business operation of the account system.

[0104] In one embodiment, when a target account already has multiple sub-resource objects, when a transaction expenditure request for the target account is received, the server may first obtain the resource expenditure amount of the transaction expenditure request, and then execute the transaction corresponding to the transaction expenditure request according to the resource expenditure amount and the resource values ​​of each sub-resource object. Since multiple sub-resource objects are independent of each other, when executing the transaction corresponding to the transaction expenditure request, it is necessary to determine whether there is a sub-resource object among the sub-resource objects whose resource value satisfies the resource expenditure amount of the transaction expenditure request.

[0105] In one embodiment, in the process of executing the transaction corresponding to the transaction expenditure request according to the resource expenditure amount and the resource value of each sub-resource object, the resource expenditure amount and the resource value of each sub-resource object can be first judged. If among these sub-resource objects, there is at least one sub-resource object whose resource value is greater than or equal to the resource expenditure amount, then the transaction corresponding to the transaction expenditure request can be executed on any one of the at least one sub-resource object; if the resource expenditure amount is greater than the resource value of each sub-resource object, but less than or equal to the sum of the resource values ​​of all sub-resource objects, then all sub-resource objects can be merged to obtain a resource merged object, and then the transaction corresponding to the transaction expenditure request can be executed on the resource merged object. Figure 6As shown, Figure 6 The process of executing a transaction corresponding to a transaction expenditure request according to the resource expenditure amount and the resource value of each sub-resource object is given as an example. Figure 6 In the example, it is assumed that these sub-resource objects include sub-resource object C1, sub-resource object C2 and sub-resource object C3, wherein sub-resource object C1 has resource value D1, sub-resource object C2 has resource value D2, and sub-resource object C3 has resource value D3. Then, when executing the transaction corresponding to the transaction expenditure request according to the resource expenditure quantity and the resource values ​​of each sub-resource object, the resource expenditure quantity is first compared with the resource value D1, resource value D2 and resource value D3 respectively. Among them, it is assumed that the resource value D2 and resource value D3 are both greater than the resource expenditure quantity, then the transaction corresponding to the transaction expenditure request can be executed on sub-resource object C2 or sub-resource object C3; in addition, it is assumed that the resource value D1, resource value D2 and resource value D3 are all less than the resource expenditure quantity, but the sum of the resource value D1, resource value D2 and resource value D3 is greater than the resource expenditure quantity, then the sub-resource object C1, sub-resource object C2 and sub-resource object C3 can be merged to obtain the resource merged object 610, and then the transaction corresponding to the transaction expenditure request is executed on the resource merged object 610. For example, taking the sub-resource object in the target account as the fund balance as an example, assuming that the resource value D1 of the sub-resource object C1 is 3 (i.e., 3 yuan), the resource value D2 of the sub-resource object C2 is 5 (i.e., 5 yuan), and the resource value D3 of the sub-resource object C3 is 7 (i.e., 7 yuan). When the resource expenditure amount is 4 (i.e., 4 yuan needs to be spent), it can be compared that the resource value D2 and the resource value D3 are both greater than the resource expenditure amount. Therefore, the transaction corresponding to the transaction expenditure request can be executed on the sub-resource object C2 or the sub-resource object C3. If the transaction corresponding to the transaction expenditure request is executed on the sub-resource object C2, then the remaining resource value D2 of the sub-resource object C2 is 1 (i.e., 1 yuan); if the transaction corresponding to the transaction expenditure request is executed on the sub-resource object C3, then the remaining resource value D3 of the sub-resource object C3 is 3 (i.e., 3 yuan). In addition, when the resource expenditure amount is 13 (that is, 13 yuan needs to be spent), it can be compared that the resource value D1, the resource value D2 and the resource value D3 are all less than the resource expenditure amount, but the sum of the resource value D1, the resource value D2 and the resource value D3 is greater than the resource expenditure amount. Therefore, the sub-resource object C1, the sub-resource object C2 and the sub-resource object C3 can be merged to obtain the resource value of the resource merge object 610 is 15 (that is, 15 yuan), and then the transaction corresponding to the transaction expenditure request is executed on the resource merge object 610. After the transaction corresponding to the transaction expenditure request is executed on the resource merge object 610, it can be obtained that the remaining resource value of the resource merge object 610 is 2 (that is, 2 yuan).

[0106] In one embodiment, when the target account already includes multiple sub-resource objects, the resource processing method may further include the following steps: first, obtain the transaction frequency for the target account, and when the transaction frequency is greater than the preset frequency threshold, split at least one of the multiple sub-resource objects according to the preset number. Wherein, when the transaction frequency for the target account is greater than the preset frequency threshold, it means that the number of transaction requests for the target account may increase. In order to adapt in advance to the number of transaction requests that may increase in the future, and to improve the execution efficiency of the transaction when multiple new transaction requests for the target account are received later, at least one of the multiple sub-resource objects may be split in advance, so that the number of all sub-resource objects obtained after the split can reach the preset number. In this way, when multiple new transaction requests for the target account are received later, since multiple sub-resource objects that meet the preset number have been split in advance, multiple sub-resource objects that are consistent with the number of newly received transaction requests can be selected from these sub-resource objects for parallel execution of transactions, so that no additional splitting is required, thereby improving the execution efficiency of transactions. For example, taking the sub-resource object in the target account as the fund balance as an example, assuming that the target account already includes 3 sub-resource objects, wherein the resource value of the first sub-resource object is 10 (i.e., 10 yuan), the resource value of the second sub-resource object is 2 (i.e., 2 yuan), and the resource value of the third sub-resource object is 20 (i.e., 20 yuan), and the preset number is 10, then, when it is detected that the transaction frequency for the target account is greater than the preset frequency threshold, at least one of these sub-resource objects can be split, for example, the first sub-resource object and the third sub-resource object can be split, wherein the first sub-resource object can be split into 4, each with a resource value of 2.5 (i.e., 2.5 yuan), and the third sub-resource object can be split into 5, each with a resource value of 4 (i.e., 4 yuan), so that 10 sub-resource objects that meet the preset number can be obtained. When 10 new transaction requests for the target account are subsequently received, the transactions corresponding to the corresponding transaction requests can be directly executed on these 10 sub-resource objects, respectively, so that no additional splitting is required, thereby improving the execution efficiency of the transaction. It should be noted that the values ​​of the preset frequency threshold and the preset number can be appropriately selected according to the actual application situation, and are not specifically limited here. For example, the value of the preset frequency threshold can be 10 per second or 20 per second, etc., and the value of the preset number can be 10 or 20, etc.

[0107] In one embodiment, in the process of obtaining the transaction frequency for the target account, the executed transaction volume within the preset time period to the current moment can be first obtained, and then the transaction frequency can be calculated based on the executed transaction volume within the preset time period. The value of the preset time period can be appropriately selected according to the actual application situation, and is not specifically limited here. For example, the value of the preset time period can be 1 second, 3 seconds or 5 seconds. For example, assuming that the value of the preset time period is 2 seconds, then the executed transaction volume within 2 seconds to the current moment (assuming 30 transactions) is first obtained, and then the transaction frequency can be calculated to be 15 transactions per second.

[0108] In one embodiment, before receiving multiple first transaction requests or transaction expenditure requests for the target account, the server may also first receive the business function requirements of the transaction business, and then determine the corresponding multiple candidate operation function interfaces in the preset multiple resource object operation function interfaces according to the business function requirements, and then generate the business function script of the transaction business according to the multiple candidate operation function interfaces, so that after receiving the multiple first transaction requests or transaction expenditure requests for the target account, the server can call the corresponding business function script of the transaction business and run the transaction logic of the business function script, thereby realizing the transaction process corresponding to these first transaction requests or transaction expenditure requests. By providing multiple preset resource object operation function interfaces, the business end can call the corresponding resource object operation function interface when setting the business function requirements of the transaction business, without the need to re-develop the functions of the entire account system and compile the code, so as to realize the account system based on programmable resource objects. In addition, the business end can write the corresponding business function script according to its actual business scenario through the script language of the account system provided by the server, and combine the relevant basic account operation functions to realize the account logic corresponding to the business. Different business function scripts can be set up to execute business logic for different business scenarios. When new business functions are added to the account system, the business end can reuse the existing business function scripts in the account system according to its own needs, or develop new business function scripts according to its own customized needs. The account system can be responsible only for providing resource object models for the business end to use. When writing business function scripts, the business end does not need to care about the specific implementation of the underlying logic of the resource object. It only needs to call the resource object operation function interface provided by the account system to implement its own business logic, so that the account system and specific business logic can be decoupled from each other, so that the account system can more flexibly respond to the needs of various business scenarios.

[0109] In one embodiment, after the server generates the corresponding business function script according to the business function requirements of the transaction business, when the business function requirements are updated, the server can first determine the updated target function requirements in the business function requirements, and then update multiple candidate operation function interfaces according to the target function requirements, and then regenerate the business function script of the transaction business according to the updated multiple candidate operation function interfaces. In the case of an update to the business function requirements, by determining the updated target function requirements, and then updating these candidate operation function interfaces according to the updated target function requirements and regenerating the business function script of the transaction business, only the operation function interfaces corresponding to the updated function requirements can be updated without changing the operation function interfaces corresponding to other function requirements that have not been updated, which can not only reduce the complexity of generating the business function script, but also improve the convenience of modifying the business function script.

[0110] In one embodiment, in the process of updating multiple candidate operation function interfaces according to the target function requirement, the function requirement before the update corresponding to the target function requirement may be determined first, and then the corresponding target operation function interface is determined from the multiple candidate operation function interfaces according to the function requirement before the update, and then the target operation function interface is updated according to the target function requirement. Figure 7 As shown, Figure 7 The process of updating multiple candidate operation function interfaces according to the target function requirements is given as an example. Figure 7 In the example, it is assumed that the business function requirements of the transaction business include function requirements E1, E2, and E3, the candidate operation function interface corresponding to function requirement E1 is operation function interface G1, the candidate operation function interface corresponding to function requirement E2 is operation function interface G2, and the candidate operation function interface corresponding to function requirement E3 is operation function interface G3, wherein function requirement E2 is updated and updated to a new function requirement F2, that is, function requirement F2 is the target function requirement after the update. At this time, the server will first determine the function requirement before the update corresponding to function requirement F2, that is, determine that the function requirement before the update corresponding to function requirement F2 is function requirement E2, and then determine the corresponding target operation function interface among these candidate operation function interfaces according to function requirement E2 as operation function interface G2, and then update operation function interface G2 according to function requirement F2, so that operation function interface G2 is updated to H2 corresponding to function requirement F2.

[0111] The resource processing method provided in the embodiment of the present application is described in detail below with specific examples.

[0112] Reference Figure 8 As shown, Figure 8Taking the target account as a points account and the target resource object as a points object as an example, the specific process of the points transaction business accessing the account system and the account system executing the points transaction is given as an example. Figure 8 In the example, the account system 800 based on programmable resource objects includes an access layer 810, a core logic layer 820 and a database 830. The core logic layer 820 includes a script publishing service module 821, a virtual machine module 822, a resource object screening service module 823, a script execution engine module 824 and a flow and account information management module 825. Figure 8 The specific process of the points transaction business accessing the account system and the account system executing the points transaction can include the following 12 steps.

[0113] In step ①, the business end 840 first defines the attribute information of the points object according to the usage requirements of the points account, wherein the attribute information of the points object includes the balance attribute and the validity period attribute, and then implements the script code of basic functions such as points payment, points recharge and points payment rollback according to the resource object operation function interface provided by the account system 800, and then implements the script code of the operation logic such as clearing all points by period, clearing part of points by period and clearing all points by specific date according to the validity period attribute of the points object, and then determines the points screening strategy, such as screening points according to the length of the validity period, giving priority to points that are about to expire, etc., and finally generates a script release request including these script codes and points screening strategies, and sends the script release request to the account system 800 through the access layer 810 of the account system 800.

[0114] In step ②, after the access layer 810 of the account system 800 receives the script publishing request, the access layer 810 forwards the script publishing request to the script publishing service module 821 in the core logic layer 820; after the script publishing service module 821 receives the script publishing request, the script publishing service module 821 first performs a syntax check on the script code in the script publishing request to determine whether there is a syntax error in the script code. When the check result is that there is no syntax error, the script publishing service module 821 compiles the script code into script bytecode.

[0115] In step ③, since the script publishing service module 821 has compiled the script code into script bytecode, the script publishing service module 821 will save the script bytecode and the points screening strategy into the database 830.

[0116] In step ④, after the script code is successfully published in the account system 800, when the business end 840 initiates a transaction request to the account system 800, such as a transaction request to transfer 10 points from account A to account B, after the access layer 810 of the account system 800 receives the transaction request, the access layer 810 sends the transaction request to the resource object screening service module 823 in the core logic layer 820.

[0117] In step ⑤, after receiving the transaction request sent by the access layer 810, the resource object screening service module 823 first obtains the corresponding point screening strategy and all point objects of account A from the database 830 according to the 10 points required to be transferred in the transaction request, and then sorts all point objects owned by account A according to the validity period from short to long according to the point screening strategy, and screens out one or more point objects with a total balance greater than or equal to 10 (for example, a point object with a value of 15 or 5 point objects with a value of 2, etc.) from the unexpired point objects, and then sends these screened point objects to the script execution engine module 824.

[0118] In step ⑥, after receiving the points objects sent by the resource object screening service module 823, the script execution engine module 824 checks whether the types of these points objects are correct according to the script function to be called (i.e., the payment function), and after confirmation, generates a script function call request including the name of the script function to be called and these points objects, and then sends the script function call request to the virtual machine module 822 to call the script function, thereby executing the transaction logic.

[0119] In step 7, after receiving the script function call request sent by the script execution engine module 824, the virtual machine module 822 obtains the corresponding script bytecode from the database 830 according to the name of the script function to be called in the script function call request.

[0120] In step ⑧, after obtaining the script bytecode corresponding to the script function to be called from the database 830, the virtual machine module 822 takes the points object in the script function call request as an input parameter and executes the contract logic corresponding to the script bytecode, that is, transferring the 10 points of account A to account B. When the execution is completed, the virtual machine module 822 will obtain the read-write set formed by executing the contract logic corresponding to the script bytecode. The read-write set records the execution result of this contract logic (for example, the content of the current read-write set is: account A reduces 10 points, and account B increases 10 points). Then, the virtual machine module 822 sends the read-write set to the script execution engine module 824.

[0121] In step ⑨, after receiving the read-write set sent by the virtual machine module 822, the script execution engine module 824 passes the read-write set to the transaction and account information management module 825.

[0122] In step ⑩, after receiving the read-write set sent by the script execution engine module 824, the transaction flow information and account information management module information 825 generates the transaction flow information between account A and account B involved in this transaction based on the read-write set, and then converts the change information of account A and account B recorded in the read-write set (for example, account A reduces 10 points and account B increases 10 points) into the corresponding account data update set, and then writes the transaction flow information and account data update set into the database 830.

[0123] In step In the example, after the transaction flow information and the account data update set are written into the database 830 , the transaction flow and account information management module 825 sends the corresponding transaction execution result to the access layer 810 .

[0124] In step In the example, after receiving the transaction execution result sent by the transaction flow and account information management module 825, the access layer 810 sends the transaction execution result to the business end 840 to complete the points transaction between account A and account B.

[0125] According to the above steps ① to step It can be seen from the specific process of the point transaction business accessing the account system and the account system executing the point transaction that the solution provided by the embodiment of the present application has the following beneficial effects:

[0126] 1. Provides flexible programmable resource objects. The solution provided by the embodiment of the present application uses programmable resource objects as the smallest processing unit of the account system. Different business ends can customize the attribute values ​​of their own resource objects, and can customize their own resource object screening strategies based on these attribute values, so that they can consume resource objects according to different priorities based on their own resource object screening strategies. At the same time, the account system of the embodiment of the present application can provide a set of operation function interfaces for resource objects, through which the flow of resource objects between different accounts can be realized.

[0127] 2. Ability to perform highly concurrent transactions based on resource objects. Since the embodiment of the present application uses resource objects as the smallest processing unit of the account system, different resource objects under the same account can be executed in parallel in different transactions without affecting each other. For example, assuming that the transaction content of the first transaction is the resource object A1 of consumer account A, and the transaction content of the second transaction is the resource object B1 of consumer account A, then these two transactions can be executed completely in parallel, thereby overcoming the problem that the traditional account system cannot perform concurrent transactions for the resource objects of a single account. In the scenario of common hot accounts, the embodiment of the present application can further split the resource objects of hot accounts according to the actual transaction volume, thereby greatly improving the transaction concurrency capability of hot accounts, and further solving the bottleneck problem that a single account cannot perform concurrent transactions.

[0128] 3. It is possible to decouple the underlying logic of the account from the business logic. In the embodiment of the present application, when the transaction business is connected to the account system, it is only necessary to generate the corresponding script code of the operation logic through the scripting language and the resource object operation function interface provided by the account system, and set the corresponding resource screening strategy according to the attribute information of the resource object. The business end does not need to care about the implementation principle of the underlying logic of the resource object operation function interface. The logical processing such as the generation, splitting, merging and storage of resource objects is all implemented by the account system. Therefore, the underlying logic of the account can be decoupled from the business logic, thereby improving the generation efficiency of the script code of the transaction business.

[0129] Reference Fig. 9 As shown, Fig. 9 This is a specific example of a resource processing method. Fig. 9 In the method for processing resources, the method may include the following steps 901 to 914.

[0130] Step 901: Determine whether multiple first transaction requests for the target account are received within a preset time period, or whether one transaction expenditure request for the target account is received within the preset time period. When the judgment result is that multiple first transaction requests for the target account are received within the preset time period, execute step 902; when the judgment result is that one transaction expenditure request for the target account is received within the preset time period, execute step 910.

[0131] In this step, the preset time period may be within a time period of 1 second, or within a time period of 2 seconds, or within a time period of other values, and may be appropriately selected according to actual application conditions, and is not specifically limited here. In addition, the multiple first transaction requests for the target account may all be transaction expenditure requests for the target account, or may all be transaction income requests for the target account, or may be partly transaction expenditure requests for the target account and partly transaction income requests for the target account, and is not specifically limited here.

[0132] In addition, before executing step 901, the business function requirements of the transaction business can be received first, and then the corresponding multiple candidate operation function interfaces can be determined from the preset multiple resource object operation function interfaces according to the business function requirements, and then the business function script of the transaction business can be generated according to the multiple candidate operation function interfaces.

[0133] In addition, when the business function requirements are updated, the target function requirements after the update in the business function requirements can be determined first, and then the function requirements before the update corresponding to the target function requirements can be determined, and the corresponding target operation function interface can be determined from multiple candidate operation function interfaces based on the function requirements before the update, and then the target operation function interface can be updated based on the target function requirements, and then the business function script of the transaction business can be regenerated based on the updated multiple candidate operation function interfaces.

[0134] Step 902: Obtain the transaction type of each first transaction request.

[0135] Step 903: Determine whether the transaction types of all first transaction requests include expenditure types; if not, execute step 904; if yes, execute step 906.

[0136] Step 904: split the target resource object in the target account according to the number of the first transaction request to obtain a plurality of sub-resource objects corresponding to the first transaction request one by one.

[0137] In this step, when the transaction types of all first transaction requests do not include the expenditure type, it means that the transaction types of all first transaction requests are income types. In this case, when splitting the target resource object in the target account, there is no need to limit the upper limit of the resource value of each sub-resource object.

[0138] In addition, before the target resource objects in the target account are split according to the number of the first transaction request, multiple candidate resource objects in the target account can be obtained first, wherein different candidate resource objects have different validity period information, and then multiple candidate resource objects that have not expired are determined from the multiple candidate resource objects based on the validity period information, and then one of the multiple candidate resource objects with the shortest remaining validity period is determined as the target resource object.

[0139] Step 905: Execute the transactions corresponding to the first transaction requests on the sub-resource objects, and then execute step 901.

[0140] Step 906: Determine the second transaction requests whose transaction type is the expenditure type among all the first transaction requests, and obtain the transaction resource quantity of each second transaction request.

[0141] Step 907: Determine the target transaction resource quantity with the largest value among the transaction resource quantities of all second transaction requests, and determine the resource quantity threshold according to the target transaction resource quantity.

[0142] In this step, the resource quantity threshold may be greater than or equal to the target transaction resource quantity, which is not specifically limited here. When the resource quantity threshold is equal to the target transaction resource quantity, the target transaction resource quantity may be directly used as the resource quantity threshold; when the resource quantity threshold is greater than the target transaction resource quantity, the target transaction resource quantity may be added with a resource increment value, or the target transaction resource quantity may be multiplied by an increment ratio greater than 1 to obtain the resource quantity threshold.

[0143] Step 908: split the target resource object in the target account according to the resource quantity threshold and the quantity of the first transaction request to obtain multiple sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the resource quantity threshold.

[0144] In this step, when the transaction types of all first transaction requests include expenditure types, when the target resource objects in the target account are split, it is necessary to ensure that the resource values ​​of each sub-resource object after the split are greater than or equal to the transaction resource quantity of the corresponding second transaction request, so that each sub-resource object can spend the corresponding transaction resource quantity in its resource value.

[0145] In addition, before the target resource objects in the target account are split according to the resource quantity threshold and the quantity of the first transaction request, multiple candidate resource objects in the target account can be obtained first, wherein different candidate resource objects have different validity period information, and then multiple candidate resource objects that have not expired are determined from the multiple candidate resource objects according to the validity period information, and then one of the multiple candidate resource objects with the shortest remaining validity period is determined as the target resource object.

[0146] Step 909: Execute the transactions corresponding to the first transaction requests on the sub-resource objects, and then execute step 901.

[0147] Step 910: Obtain the resource expenditure amount of the transaction expenditure request.

[0148] Step 911: Determine whether the resource expenditure amount is greater than the resource value of each sub-resource object, but less than or equal to the sum of the resource values ​​of all sub-resource objects. If not, execute step 912; if so, execute step 913.

[0149] Step 912: Execute the transaction corresponding to the transaction expenditure request for the sub-resource object whose resource value is greater than the resource expenditure amount, and then execute step 901.

[0150] Step 913: merge all sub-resource objects to obtain a resource merge object.

[0151] Step 914: Execute the transaction corresponding to the transaction expenditure request on the resource merging object, and then execute step 901.

[0152] In this embodiment, through the resource processing method of the above steps 901 to 914, when multiple first transaction requests for the target account are received, the target resource object in the target account is split according to the number of the first transaction requests to obtain multiple sub-resource objects, wherein the sub-resource objects correspond to the first transaction requests one by one. By splitting the target resource objects in the target account according to the number of the first transaction requests, the target resource object in the target account, which was originally a whole, can be split into multiple independent sub-resource objects, so that these sub-resource objects can not only be consistent with the number of the first transaction requests, but also correspond to the first transaction requests one by one. Then, the transactions corresponding to the first transaction requests are executed for each sub-resource object. Since the number of sub-resource objects is consistent with the number of the first transaction requests, and the sub-resource objects correspond to the first transaction requests one by one, each sub-resource object can be used as a transaction execution object at the same time, and the transactions corresponding to the first transaction requests are executed at the same time, so that the serial execution of multiple transactions originally for the target account becomes the parallel execution of multiple transactions for multiple sub-resource objects, thereby improving the transaction concurrent execution capability for a single account, and further effectively reducing the risk of affecting the business operation of the account system.

[0153] The following are some practical examples to illustrate the application scenarios of the embodiments of the present application.

[0154] It should be noted that the resource processing method provided in the embodiment of the present application can be applied to different application scenarios such as point transactions or consumer voucher transactions. The following is an explanation using point transaction scenarios and consumer voucher transaction scenarios as examples.

[0155] Scene 1

[0156] The resource processing method provided in the embodiment of the present application can be applied to the point transaction scenario. For example, assuming that a merchant issues points to multiple consumers within a short period of time, the transaction server will receive multiple point transaction requests for the merchant's account (i.e., multiple point payment requests for the merchant's account). At this time, the transaction server first determines the target merchant account for the transaction to be executed in the database according to the point transaction request, and determines the target point object for the transaction to be executed in the target merchant account. Then, the transaction server splits the target point object in the target merchant account according to the number of point transaction requests, and splits the target point object in the target merchant account, which was originally a whole, into multiple independent point sub-objects (i.e., sub-resource objects), so that these point sub-objects can not only be consistent with the number of these point transaction requests, but also can correspond one-to-one with these point transaction requests. Then, the transaction server executes the transaction corresponding to each point transaction request on each point sub-object, completes the concurrent execution of these point transaction requests, and thus can issue points to multiple consumers within a short period of time.

[0157] Scene 2

[0158] The resource processing method provided in the embodiment of the present application can also be applied to the consumption voucher transaction scenario. For example, assuming that a merchant issues consumption vouchers to multiple consumers within a short period of time, the transaction server will receive multiple consumption voucher transaction requests for the merchant's account (i.e., multiple consumption voucher payment requests for the merchant's account). At this time, the transaction server first determines the target merchant account for the transaction to be executed in the database according to the consumption voucher transaction request, and determines the target consumption voucher object for the transaction to be executed in the target merchant account. Then, the transaction server splits the target consumption voucher object in the target merchant account according to the number of consumption voucher transaction requests, and splits the target consumption voucher object in the target merchant account, which was originally a whole, into multiple independent consumption voucher sub-objects (i.e., sub-resource objects), so that these consumption voucher sub-objects can not only be consistent with the number of these consumption voucher transaction requests, but also can correspond one-to-one with these consumption voucher transaction requests. Then, the transaction server executes the transactions corresponding to each consumption voucher transaction request on each consumption voucher sub-object, completes the concurrent execution of these consumption voucher transaction requests, and thus consumption vouchers can be issued to multiple consumers within a short period of time.

[0159] It is to be understood that, although the steps in the above-mentioned various flow charts are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow charts can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.

[0160] Reference Fig.10 The embodiment of the present application further discloses a resource processing device. The resource processing device 1000 can implement the resource processing method in the previous embodiment. The resource processing device 1000 includes:

[0161] The request receiving unit 1010 is configured to receive a plurality of first transaction requests for a target account and obtain a transaction type of each first transaction request;

[0162] The resource splitting unit 1020 is used to split the target resource object in the target account according to the transaction type and the number of the first transaction request to obtain multiple sub-resource objects, wherein the sub-resource objects correspond to the first transaction requests one by one;

[0163] The transaction execution unit 1030 is configured to execute transactions corresponding to each first transaction request on each sub-resource object.

[0164] In one embodiment, the transaction type includes an expenditure type, and the sub-resource object has a resource value; the resource splitting unit 1020 is further used to:

[0165] Determine, among all first transaction requests, a second transaction request whose transaction type is a spending type;

[0166] Obtaining the quantity of transaction resources of each second transaction request;

[0167] According to the transaction resource quantity of each second transaction request and the quantity of the first transaction request, the target resource object in the target account is split to obtain multiple sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the transaction resource quantity of the corresponding second transaction request.

[0168] In one embodiment, the resource splitting unit 1020 is further configured to:

[0169] Determine the target transaction resource quantity with the largest value among all transaction resource quantities of the second transaction requests;

[0170] Determine the resource quantity threshold according to the target transaction resource quantity;

[0171] According to the resource quantity threshold and the quantity of the first transaction request, the target resource object in the target account is split to obtain multiple sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the resource quantity threshold.

[0172] In one embodiment, the target account has multiple sub-resource objects, each of which has a resource value; the resource processing device 1000 further includes:

[0173] A payment request receiving unit, used for receiving a transaction payment request for a target account;

[0174] An expenditure amount obtaining unit, used for obtaining the resource expenditure amount of a transaction expenditure request;

[0175] The expenditure transaction execution unit is used to execute the transaction corresponding to the transaction expenditure request according to the resource expenditure amount and the resource value of each sub-resource object.

[0176] In one embodiment, the expenditure transaction execution unit is further configured to:

[0177] When the resource expenditure amount is greater than the resource value of each sub-resource object, but less than or equal to the sum of the resource values ​​of all sub-resource objects, all sub-resource objects are merged to obtain a resource merged object;

[0178] Execute the transaction corresponding to the transaction expenditure request on the resource merge object.

[0179] In one embodiment, the resource processing device 1000 further includes:

[0180] A transaction frequency acquisition unit, used to acquire the transaction frequency for a target account;

[0181] The sub-resource splitting unit is used to split at least one of the multiple sub-resource objects according to a preset number when the transaction frequency is greater than a preset frequency threshold.

[0182] In one embodiment, the resource processing device 1000 further includes:

[0183] A function requirement receiving unit, used for receiving business function requirements of transaction business;

[0184] A function interface determination unit, used to determine a corresponding plurality of candidate operation function interfaces from a plurality of preset resource object operation function interfaces according to business function requirements;

[0185] The function script generating unit is used to generate a business function script of a transaction business according to a plurality of candidate operation function interfaces.

[0186] In one embodiment, the resource processing device 1000 further includes:

[0187] The functional requirement determination unit is used to determine the target functional requirement after the business functional requirement is updated when the business functional requirement is updated;

[0188] A function interface updating unit, used for updating a plurality of candidate operation function interfaces according to target function requirements;

[0189] The function script regeneration unit is used to regenerate the business function script of the transaction business according to the updated multiple candidate operation function interfaces.

[0190] In one embodiment, the functional interface updating unit is further used for:

[0191] Determine the functional requirements before the update corresponding to the target functional requirements;

[0192] Determine a corresponding target operation function interface from among multiple candidate operation function interfaces according to the functional requirements before the update;

[0193] Update the target operation function interface according to the target function requirements.

[0194] In one embodiment, the resource processing device 1000 further includes:

[0195] A resource object acquisition unit, used to acquire multiple candidate resource objects in a target account, where different candidate resource objects have different validity period information;

[0196] The resource object determination unit is used to determine a target resource object from a plurality of candidate resource objects according to validity period information.

[0197] In one embodiment, the resource object determination unit is further configured to:

[0198] Determine, according to the validity period information, a plurality of candidate resource objects that have not expired from the plurality of candidate resource objects;

[0199] Among multiple candidate resource objects, the one with the shortest remaining validity period is determined as the target resource object.

[0200] It should be noted that since the resource processing device 1000 of this embodiment can implement the resource processing method of the previous embodiment, the resource processing device 1000 of this embodiment and the resource processing method of the previous embodiment have the same technical principles and the same beneficial effects. In order to avoid repetition, they will not be repeated here.

[0201] Reference Fig.11 The embodiment of the present application further discloses a resource processing device, the resource processing device 1100 comprising:

[0202] at least one processor 1101;

[0203] At least one memory 1102, used to store at least one program;

[0204] When at least one program is executed by at least one processor 1101 , the resource processing method as described above is implemented.

[0205] The embodiment of the present application further discloses a computer-readable storage medium, which stores a computer program executable by a processor. When the computer program executable by the processor is executed by the processor, it is used to implement the resource processing method as described above.

[0206] An embodiment of the present application also discloses a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, and a processor of a resource processing device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the resource processing device executes the resource processing method as described above.

[0207] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0208] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

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

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

[0211] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0212] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0213] The step numbers in the above method embodiment are only provided for the convenience of explanation and description, and no limitation is imposed on the order of the steps. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

Claims

1. A resource processing method, characterized in that: The following steps are involved: receiving a plurality of first transaction requests for a target account, and obtaining a transaction type of each of the first transaction requests; Splitting the target resource object in the target account according to the transaction type and the number of the first transaction request to obtain a plurality of sub-resource objects, wherein the sub-resource objects correspond to the first transaction request one by one; The transaction corresponding to each of the first transaction requests is executed on each of the sub-resource objects.

2. The method according to claim 1, characterized in that The transaction type includes an expenditure type, and the sub-resource object has a resource value; The target resource object in the target account is split according to the transaction type and the number of the first transaction request to obtain multiple sub-resource objects, including: Determine, among all the first transaction requests, a second transaction request whose transaction type is the expenditure type; Obtaining the quantity of transaction resources of each of the second transaction requests; According to the transaction resource quantity of each second transaction request and the quantity of the first transaction request, the target resource object in the target account is split to obtain a plurality of sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the transaction resource quantity of the corresponding second transaction request.

3. The method according to claim 2, characterized in that The step of splitting the target resource object in the target account according to the transaction resource quantity of each of the second transaction requests and the quantity of the first transaction request to obtain a plurality of the sub-resource objects includes: Determine the target transaction resource quantity with the largest value among the transaction resource quantities of all the second transaction requests; Determine a resource quantity threshold value according to the target transaction resource quantity; According to the resource quantity threshold and the quantity of the first transaction request, the target resource object in the target account is split to obtain a plurality of the sub-resource objects, wherein the resource value of the sub-resource object corresponding to the second transaction request is greater than or equal to the resource quantity threshold.

4. The method according to claim 1, characterized in that: The sub-resource object has a resource value; The resource processing method further includes: receiving a transaction expenditure request for the target account; Obtaining the resource expenditure amount of the transaction expenditure request; The transaction corresponding to the transaction expenditure request is executed according to the resource expenditure amount and the resource value of each of the sub-resource objects.

5. The method according to claim 4, characterized in that The executing the transaction corresponding to the transaction expenditure request according to the resource expenditure amount and the resource value of each of the sub-resource objects includes: When the resource expenditure amount is greater than the resource value of each sub-resource object, but less than or equal to the sum of the resource values ​​of all the sub-resource objects, all the sub-resource objects are merged to obtain a resource merged object; The transaction corresponding to the transaction expenditure request is executed on the resource merging object.

6. The method according to claim 1, characterized in that The resource processing method further includes: Obtaining the transaction frequency for the target account; When the transaction frequency is greater than a preset frequency threshold, at least one of the plurality of sub-resource objects is split according to a preset number.

7. The method according to claim 1, characterized in that Before receiving a plurality of first transaction requests for the target account, the resource processing method further includes: Receive business function requirements for transaction business; Determine a corresponding plurality of candidate operation function interfaces from a plurality of preset resource object operation function interfaces according to the business function requirements; Generate a business function script for the transaction business based on the multiple candidate operation function interfaces.

8. The method according to claim 7, characterized in that The resource processing method further includes: When the business function requirement is updated, determining the updated target function requirement in the business function requirement; Updating the plurality of candidate operation function interfaces according to the target function requirements; The business function script of the transaction business is regenerated according to the updated multiple candidate operation function interfaces.

9. The method according to claim 8, characterized in that The updating of the plurality of candidate operation function interfaces according to the target function requirement includes: Determine the functional requirement before updating corresponding to the target functional requirement; Determine a corresponding target operation function interface among the plurality of candidate operation function interfaces according to the function requirement before the update; The target operation function interface is updated according to the target function requirement.

10. The method according to claim 1, characterized in that Before splitting the target resource objects in the target account according to the quantity of the first transaction request, the resource processing method further includes: Acquire multiple candidate resource objects in the target account, where different candidate resource objects have different validity period information; The target resource object is determined from among the plurality of candidate resource objects according to the validity period information.

11. The method according to claim 10, characterized in that The step of determining the target resource object from among the plurality of candidate resource objects according to the validity period information includes: Determine a plurality of candidate resource objects that have not expired from the plurality of candidate resource objects according to the validity period information; Among the multiple candidate resource objects, the one with the shortest remaining validity period is determined as the target resource object.

12. A resource processing device, characterized in that: include: A request receiving unit, configured to receive a plurality of first transaction requests for a target account, and obtain a transaction type of each of the first transaction requests; a resource splitting unit, configured to split the target resource object in the target account according to the transaction type and the number of the first transaction request to obtain a plurality of sub-resource objects, wherein the sub-resource objects correspond to the first transaction request one by one; The transaction execution unit is configured to execute the transaction corresponding to each of the first transaction requests on each of the sub-resource objects.

13. A resource processing device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the resource processing method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium, characterized in that: A computer program executable by a processor is stored therein, and when the computer program executable by the processor is executed by the processor, it is used to implement the resource processing method as described in any one of claims 1 to 11.

15. A computer program product comprising a computer program or computer instructions, characterized in that The computer program or the computer instructions are stored in a computer-readable storage medium, the processor of the resource processing device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the resource processing device executes the resource processing method as described in any one of claims 1 to 11.