Business processing method and device, computer equipment and storage medium thereof

By determining the target resource allocation scenario in the resource allocation policy and executing transactions based on the allocated resources and thresholds, the problem of excessive resource allocation is solved, ensuring the protection of platform interests and user experience.

CN119514932APending Publication Date: 2025-02-25BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411507003.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

When formulating resource allocation policies, it is easy to cause excessive resource allocation, which will affect the interests of the platform and user experience.

Method used

By receiving the user's transaction execution request, the target resource allocation scenario is determined, and the resource allocation module is called to execute transactions based on the allocated resource amount and resource amount threshold, ensuring that resource allocation is within the threshold range.

Benefits of technology

Effectively prevent excessive resource allocation, protect platform interests, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119514932A_ABST
    Figure CN119514932A_ABST
Patent Text Reader

Abstract

The invention relates to a business processing method and device, computer equipment and a storage medium thereof, and relates to the technical field of artificial intelligence. The method comprises the following steps: receiving a transaction execution request of a user, and determining a target resource allocation scene corresponding to the transaction execution request from candidate resource allocation scenes; calling a resource allocation module corresponding to the target resource allocation scene, and executing the transaction execution request according to the allocated resource quantity and the resource quantity threshold value of the target resource allocation scene to obtain a transaction execution response; and feeding back a transaction execution response to the user. When the transaction execution request is executed, the transaction execution response is not generated blindly, but the transaction execution response is obtained according to the allocated resource quantity without exceeding the resource quantity threshold value, so that the condition of excessive distribution of the resource allocation quantity is prevented, the benefit of a network platform is not influenced by the excessive distribution of the resource allocation quantity, and the user experience is improved. And the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a business processing method, apparatus, computer equipment and storage medium thereof. Background Art

[0002] With the continuous development of Internet technology, the scenarios in which users allocate resources through online platforms are increasing. In order to further increase the number of times users allocate resources on online platforms, online platforms promote users to allocate resources on online platforms by issuing different resource allocation policies.

[0003] However, in the process of formulating resource allocation policies, it is easy for resources to be over-allocated, which in turn affects the platform's interests and user experience. Summary of the invention

[0004] Based on this, it is necessary to provide a business processing method, device, computer equipment and storage medium thereof that can accurately control the resource allocation amount in response to the above technical problems.

[0005] In a first aspect, the present application provides a transaction processing method. The method comprises:

[0006] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0007] Calling the resource allocation module corresponding to the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0008] Feedback transaction execution response to the user.

[0009] In one embodiment, a resource allocation module corresponding to a target resource allocation scenario is called, and a transaction execution request is executed according to an allocated resource amount and a resource amount threshold of the target resource allocation scenario to obtain a transaction execution response, including:

[0010] Verify the accuracy of the allocated resources and resource thresholds for the target resource allocation scenario;

[0011] If the verification passes, the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain a transaction execution response.

[0012] In one embodiment, the transaction execution request carries the resource deduction range and the total payment resource amount; the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and a transaction execution response is obtained, including:

[0013] Call the resource allocation module corresponding to the target resource allocation scenario, and determine the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range;

[0014] Determine the actual payment resource amount based on the total payment resource amount and transaction deduction resource amount;

[0015] According to the actual payment resource amount, the transaction execution request is executed and the transaction execution response is obtained.

[0016] In one embodiment, the method further comprises:

[0017] Update the allocated resource amount of the target resource allocation scenario based on the transaction deduction resource amount.

[0018] In one embodiment, the method further comprises:

[0019] Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules;

[0020] A resource amount threshold of the candidate resource allocation scenario is determined from the resource sub-rules of the candidate resource allocation scenario.

[0021] In one embodiment, the method further comprises:

[0022] In response to the increase / decrease rule adjustment instruction, determining the resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from the candidate resource allocation scenarios, and determining the resource amount threshold adjustment amount;

[0023] According to the resource threshold adjustment amount, the resource threshold corresponding to the resource allocation scenario to be adjusted is adjusted.

[0024] In a second aspect, the present application also provides a transaction processing device. The device includes:

[0025] A first determination module is used to receive a transaction execution request from a user and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0026] An execution module is used to call a resource allocation module corresponding to a target resource allocation scenario, execute a transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtain a transaction execution response;

[0027] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0028] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0029] Calling the resource allocation module corresponding to the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0030] Feedback transaction execution response to the user.

[0031] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0032] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0033] Calling the resource allocation module corresponding to the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0034] Feedback transaction execution response to the user.

[0035] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0036] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0037] Calling the resource allocation module corresponding to the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0038] Feedback transaction execution response to the user.

[0039] The above-mentioned business processing method, device, computer equipment and storage medium thereof, by selecting the target resource allocation scenario corresponding to the transaction execution request, realizes the execution of the transaction execution request by calling the target resource allocation scenario, and feeds back the obtained transaction execution response to the user. Since in the above process, the resource allocation module executes the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, therefore, when executing the transaction execution request, the present application will not blindly generate a transaction execution response, but will obtain a transaction execution response according to the allocated resource amount without exceeding the resource amount threshold, thereby preventing the situation of over-issuance of resource allocation, ensuring that the network platform will not affect the interests due to over-issuance of resource allocation, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] FIG1 is an application environment diagram of a transaction processing method provided by an embodiment of the present application;

[0041] FIG2 is a flow chart of a transaction processing method provided in an embodiment of the present application;

[0042] FIG3 is a flowchart of steps for obtaining a transaction execution response according to an embodiment of the present application;

[0043] FIG4 is a flowchart of another step of obtaining a transaction execution response provided by an embodiment of the present application;

[0044] FIG5 is a flowchart of steps for determining a resource quantity threshold according to an embodiment of the present application;

[0045] FIG6 is a flowchart of steps for adjusting a resource amount threshold provided in an embodiment of the present application;

[0046] FIG7 is a flow chart of another transaction processing method provided in an embodiment of the present application;

[0047] FIG8 is a process flow chart of a resource allocation module provided in an embodiment of the present application;

[0048] FIG9 is a structural block diagram of a first transaction processing device provided in an embodiment of the present application;

[0049] FIG10 is a structural block diagram of a second transaction processing device provided in an embodiment of the present application;

[0050] FIG11 is a structural block diagram of a third transaction processing device provided in an embodiment of the present application;

[0051] FIG12 is a structural block diagram of a fourth transaction processing device provided in an embodiment of the present application;

[0052] FIG13 is a structural block diagram of a fifth transaction processing device provided in an embodiment of the present application;

[0053] FIG. 14 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In the description of the present application, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0056] Based on the above situation, the transaction processing method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. In one embodiment, a computer device is provided, which can be a server, and its internal structure diagram can be shown in Figure 1. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the acquisition data of the transaction processing method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a transaction processing method is implemented.

[0057] The present application discloses a business processing method, apparatus, computer equipment and storage medium thereof. The computer equipment determines a target resource allocation scenario corresponding to a transaction execution request, and then calls a resource allocation module corresponding to the target resource allocation scenario to execute the transaction execution request, obtain a transaction execution response, and feed back the transaction execution response to the user.

[0058] In one embodiment, as shown in FIG. 2 , FIG. 2 is a flow chart of a transaction processing method provided in an embodiment of the present application, which provides a transaction processing method. The transaction processing method executed by the computer device in FIG. 1 may include the following steps:

[0059] Step 201: Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios.

[0060] It should be noted that after receiving the user's transaction execution request, it is possible to verify whether the user is a trusted user based on the user's user ID. If the user is a trusted user, the target resource allocation scenario corresponding to the transaction execution request is determined from the candidate resource allocation scenarios. Otherwise, if the user is an untrusted user, subsequent operations are stopped.

[0061] To further illustrate, when verifying whether the user is a trusted user through the user identification of the user, the verification of whether the user is a trusted user may be based on a preset user trusted list and / or a user untrusted list.

[0062] The user trust list records the user IDs corresponding to all trusted users; the user untrust list records the user IDs corresponding to all untrusted users.

[0063] Among them, the user trust list and the user untrust list can be set, supplemented, deleted and modified according to the actual situation and the staff's pre-settings. The content of the user trust list and the user untrust list, as well as the setting method, are not limited here.

[0064] In one embodiment of the present application, when verifying whether the user is a trusted user based on the user trust list, the user identifier of the user corresponding to the transaction execution request can be obtained, and it can be determined whether the user identifier belongs to the user trust list. If so, the user is determined to be a trusted user; if not, the user is determined to be an untrusted user.

[0065] To further explain, if the user ID does not belong to the user trusted list, the user ID can be fed back to the staff's terminal device so that the staff can determine whether the user ID received by the terminal device is the user ID of an untrusted user, and feed back the judgment result to the computer device that executes the transaction processing method.

[0066] In one embodiment of the present application, when verifying whether the user is a trusted user based on the user untrust list, the user identifier of the user corresponding to the transaction execution request can be obtained, and it can be determined whether the user identifier belongs to the user untrust list. If so, the user is determined to be an untrusted user; if not, the user is determined to be a trusted user.

[0067] To further explain, if the user ID does not belong to the user untrusted list, the user ID can be fed back to the staff's terminal device so that the staff can determine whether the user ID received by the terminal device is the user ID of an untrusted user, and feed back the judgment result to the computer device that executes the transaction processing method.

[0068] It should be noted that the candidate resource allocation scenarios may include but are not limited to: fixed value resource increase / decrease scenarios, random value resource increase / decrease scenarios, and percentage resource increase / decrease scenarios. In addition, the transaction execution request may include the transaction content of this transaction. Therefore, when it is necessary to determine the target resource allocation scenario corresponding to the transaction execution request from the candidate resource allocation scenarios, the target resource allocation scenario may be determined based on the transaction content of this transaction.

[0069] As an implementation method, if the transaction content included in the transaction execution request specifies increasing or decreasing a certain value of resource amount, then the target resource allocation scenario corresponding to the transaction execution request can be determined as a fixed value resource increase or decrease scenario.

[0070] As another implementation method, if the transaction content included in the transaction execution request is to randomly increase or decrease the amount of resources by a certain value, then the target resource allocation scenario corresponding to the transaction execution request can be determined as a resource random value increase or decrease scenario.

[0071] As another implementation, if the transaction content included in the transaction execution request is to increase or decrease the resource amount by a certain percentage of the total payment resource amount, then the target resource allocation scenario corresponding to the transaction execution request can be determined as the resource percentage increase or decrease scenario.

[0072] In one embodiment of the present application, a transaction content recognition model can be pre-set, and the user's transaction execution request is fed back to the transaction content recognition model, and the output result of the transaction content recognition model is obtained. The output result is the transaction content included in the transaction execution request.

[0073] Among them, when the transaction content recognition model needs to be trained, a sample execution request and the sample transaction content corresponding to the sample execution request can be obtained, and then the transaction content recognition model is trained according to the sample execution request and the sample transaction content corresponding to the sample execution request to complete the training operation of the transaction content recognition model.

[0074] Step 202: calling a resource allocation module corresponding to the target resource allocation scenario, executing a transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining a transaction execution response.

[0075] Among them, the resource allocation module includes the following interfaces: registration task, fixed value increase interface, fixed value deduction interface, random value increase interface, random value deduction interface, percentage increase interface, percentage deduction interface, end task interface, activate task interface, etc., and the resource allocation module SPI (Software Process Improvement) layer also includes new interface, query interface, modification interface and deletion interface.

[0076] It should be noted that in order to ensure that the actual situation of the target resource allocation scenario is met when executing a transaction execution request, the target resource allocation scenario needs to be verified for accuracy before calling the resource allocation module corresponding to the target resource allocation scenario and executing the transaction execution request.

[0077] The accuracy check of the target resource allocation scenario includes the accuracy check of the amount of resources allocated for the target resource allocation scenario, that is, to verify whether the amount of resources allocated for the target resource allocation scenario is accurate.

[0078] Among them, when the accuracy check of the target resource allocation scenario is performed, it also includes the accuracy check of the resource amount threshold of the target resource allocation scenario, that is, to verify whether the resource amount threshold of the target resource allocation scenario is the set value of the staff.

[0079] It is further explained that the transaction execution request carries a resource deduction range and a total payment resource amount. If the accuracy verification of the target resource allocation scenario is passed, the transaction execution request is executed according to the resource deduction range and the total payment resource amount carried in the transaction execution request, as well as the allocated resource amount and resource amount threshold of the target resource allocation scenario, and a transaction execution response is obtained.

[0080] Specifically, the transaction deduction resource amount can be determined from the resource deduction range based on the allocated resource amount and resource amount threshold of the target resource allocation scenario; then, the total payment resource amount is added or subtracted according to the transaction deduction resource amount, and the obtained calculation result is the actual payment resource amount, and a transaction execution response is obtained based on the actual payment resource amount.

[0081] Among them, the sum of the transaction deduction resource volume and the allocated resource volume does not exceed the resource volume threshold, and the transaction deduction resource volume falls within the resource deduction range.

[0082] Among them, the transaction deduction resource amount is used to indicate the amount of resources that need to be increased or reduced from the total payment resource amount in the process of executing the transaction execution request.

[0083] It should be noted that when a transaction execution response is required, rhetorical words can be added to the actual payment resource amount according to the actual transaction scenario to give users a better user experience.

[0084] Among them, the modifying words may include but are not limited to: "Congratulations", "The transaction has been successfully completed", "Unfortunately", "What a pity" and the like.

[0085] The actual transaction scenarios may include successful transaction scenarios and unsuccessful transaction scenarios, and the modifiers corresponding to different actual transaction scenarios are also different. In order to provide users with a better user experience, it is necessary to add different rhetorical words in the transaction execution response according to different actual transaction scenarios.

[0086] In one embodiment of the present application, if the amount of allocated resources of the target resource allocation scenario corresponding to the transaction execution request at this time is greater than or equal to the resource amount threshold, then the user's actual transaction scenario is a transaction scenario of an unsuccessful transaction. At this time, appropriate words can be selected from the modifiers corresponding to the unsuccessful transaction, such as "unfortunately" and "what a pity", and added to the transaction execution response.

[0087] In one embodiment of the present application, if the amount of allocated resources of the target resource allocation scenario corresponding to the transaction execution request is less than the resource amount threshold, the user's actual transaction scenario is a transaction scenario of a successful transaction. At this time, appropriate words can be selected from the modifiers corresponding to successful transactions such as "Congratulations" and "The transaction has been successfully completed" to be added to the transaction execution response.

[0088] Step 203: Feedback the transaction execution response to the user.

[0089] It should be noted that when it is necessary to feedback the transaction execution response to the user, the transaction execution response can be fed back to the terminal device used by the user based on a pre-set information prompt method, where the pre-set information prompt method may include but is not limited to: application pop-up prompts, SMS prompts, and email prompts, etc.

[0090] In one embodiment of the present application, if the pre-set information prompt is an application pop-up prompt, when the user triggers the application corresponding to the transaction execution request in the terminal device, the transaction execution response is fed back to the user in the form of an information pop-up.

[0091] In another embodiment of the present application, if the preset information prompt is a text message prompt, the transaction execution response is fed back to the user's terminal device in the form of a text message based on the terminal device number reserved by the user.

[0092] In another embodiment of the present application, if the preset information prompt is an email prompt, the transaction execution response is fed back to the user's terminal device in the form of an email according to the email address reserved by the user.

[0093] The above-mentioned business processing method realizes the execution of the transaction execution request by calling the target resource allocation scenario by selecting the target resource allocation scenario corresponding to the transaction execution request, and feeds back the obtained transaction execution response to the user. Since in the above process, the resource allocation module executes the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, therefore, when executing the transaction execution request, the present application will not blindly generate a transaction execution response, but will obtain a transaction execution response based on the allocated resource amount without exceeding the resource amount threshold, thereby preventing the situation of over-issuance of resource allocation, ensuring that the network platform will not affect its interests due to over-issuance of resource allocation, and improving the user experience.

[0094] In order to increase the number of times that users perform resource allocation on the network platform and prevent the situation where the resource allocation amount is over-allocated, the computer device of this embodiment can call the resource allocation module corresponding to the target resource allocation scenario in the manner shown in FIG3, and execute the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain the transaction execution response, which specifically includes the following steps:

[0095] Step 301 : Verify the accuracy of the allocated resource amount and the resource amount threshold of the target resource allocation scenario.

[0096] It should be noted that in order to ensure that the resource allocation amount does not exceed the resource amount threshold during the subsequent execution of the transaction execution request, and to be able to successfully obtain the transaction execution response, it is necessary to verify the accuracy of the allocated resources and resource amount threshold of the target resource allocation scenario.

[0097] In one embodiment of the present application, when it is necessary to verify the accuracy of the allocated resource amount, the historical resource allocation record can be obtained, and then, the resource allocation amount corresponding to each historical resource allocation is added according to the historical resource allocation record. The result obtained is the actual allocation amount, and it is determined whether the actual allocation amount is the same as the allocated resource amount. If they are the same, it proves that the accuracy check of the allocated resource amount has passed. If they are not the same, it proves that the accuracy check of the allocated resource amount has failed, and the actual allocation amount is used as the new allocated resource amount.

[0098] The historical resource allocation record contains the resource allocation amount corresponding to each historical resource allocation.

[0099] In another embodiment of the present application, when it is necessary to verify the accuracy of the resource quantity threshold, the resource quantity threshold can be fed back to the staff's terminal device so that the staff can verify the accuracy of the resource quantity threshold, and receive the accuracy verification result fed back by the staff's terminal device. If the accuracy verification result is passed, no processing is performed. If the accuracy verification result is failed, a threshold acquisition instruction can be sent to the staff's terminal device, and a new resource quantity threshold fed back by the staff in response to the threshold acquisition instruction is received.

[0100] Step 302: If the verification is passed, the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain a transaction execution response.

[0101] It should be noted that if the verification passes, it means that the allocated resource amount and resource amount threshold of the target resource allocation scenario are correct. Therefore, the resource allocation module corresponding to the target resource allocation scenario can be called, and the transaction execution request can be executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, thereby obtaining a transaction execution response.

[0102] The above-mentioned business processing method, by verifying the accuracy of the allocated resource amount and resource amount threshold of the target resource allocation scenario, prevents the resource allocation module from executing the transaction execution request based on the wrong allocated resource amount and resource amount threshold, which may lead to the resource allocation amount exceeding the resource amount threshold in the process of executing the transaction execution request. This ensures that the network platform will not affect its interests due to excessive resource allocation, thereby improving the user experience.

[0103] In order to increase the number of times that users perform resource allocation on the network platform and prevent the situation where the resource allocation amount is over-allocated, the computer device of this embodiment can call the resource allocation module corresponding to the target resource allocation scenario in the manner shown in FIG4 , and execute the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtain the transaction execution response, which specifically includes the following steps:

[0104] It should be noted that the transaction execution request carries the resource deduction range and the total payment resource amount.

[0105] Among them, the resource deduction range is a closed interval consisting of the maximum value and the minimum value of the transaction deduction resource amount in the user's current transaction execution request; the value range of the resource deduction range changes according to different actual conditions, and the value range of the resource deduction range is not limited here.

[0106] The total amount of resources paid refers to the total amount of resources that the user needs to pay for this transaction execution request, which can be understood as the total amount of resources that have not been discounted.

[0107] Step 401, calling the resource allocation module corresponding to the target resource allocation scenario, and determining the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range.

[0108] It should be noted that before executing a transaction execution request, it is necessary to verify the accuracy of the allocated resource amount and resource amount threshold of the target resource allocation scenario. Specifically, it is necessary to verify whether the allocated resource amount of the target resource allocation scenario is accurate, and to verify whether the resource amount threshold of the target resource allocation scenario is the value set by the staff.

[0109] In one embodiment of the present application, the timestamp corresponding to the allocated resource amount can be recorded each time the allocated resource amount is updated. Therefore, when it is necessary to verify whether the allocated resource amount of the target resource allocation scenario is accurate, it can be verified whether the timestamp corresponding to the allocated resource amount is the timestamp closest to the current moment. If so, it is determined that the allocated resources of the target resource allocation scenario are accurate. If not, it is determined that the allocated resources of the target resource allocation scenario are inaccurate.

[0110] To further explain, since the allocated resource amount will be updated after the transaction execution request is completed, when it is necessary to verify whether the allocated resource amount of the target resource allocation scenario is accurate, it is also possible to verify whether the timestamp corresponding to the allocated resource amount is the same as the timestamp of the most recent transaction execution request. If they are the same, it is determined that the allocated resources of the target resource allocation scenario are accurate; if they are not the same, it is determined that the allocated resources of the target resource allocation scenario are inaccurate.

[0111] In one embodiment of the present application, the resource quantity threshold corresponding to the candidate resource allocation scenario in the resource increase and decrease rules can be determined according to the resource increase and decrease rules pre-set by the staff, and it can be judged whether the resource quantity threshold corresponding to the candidate resource allocation scenario in the resource increase and decrease rules is the same as the resource quantity threshold of the target resource allocation scenario. If they are the same, it is determined that the resource quantity threshold of the target resource allocation scenario is accurate; if they are not the same, it is determined that the resource quantity threshold of the target resource allocation scenario is inaccurate.

[0112] It should be noted that if the verification passes, the resource allocation module corresponding to the target resource allocation scenario can be called to determine the transaction deduction resource amount based on the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range. Specifically, the transaction deduction resource amount can be determined based on the resource amount difference between the allocated resource amount and the resource amount threshold, as well as the resource deduction range.

[0113] In one embodiment of the present application, if the target resource allocation scenario is a fixed-value resource increase or decrease scenario, since the fixed-value resource increase or decrease scenario is a situation where a certain value of resource quantity is specified to be increased or decreased, the resource deduction range in the transaction execution request is a fixed value. At this time, the available resource quantity threshold is subtracted from the allocated resource quantity to obtain the resource quantity difference, and it is determined whether the resource quantity difference is greater than the resource deduction range; if it is greater, the fixed value corresponding to the resource deduction range is determined, which is the transaction deduction resource quantity; if it is less, the transaction deduction resource quantity fails to be obtained, and it is determined that the actual transaction scenario of the transaction execution response is a transaction scenario of an unsuccessful transaction, and the transaction execution response is fed back to the user. At this time, the transaction execution response is a failure response.

[0114] In one embodiment of the present application, if the target resource allocation scenario is a resource random value increase or decrease scenario, wherein the resource random value increase or decrease scenario is a situation where the amount of resources is randomly increased or decreased by a certain value, then the available resource amount threshold is subtracted from the allocated resource amount to obtain the resource amount difference, and the difference from zero to the resource amount is used as the difference range, and the overlapping range of the difference range and the resource deduction range is determined. If there is an overlapping range, a value is randomly selected from the overlapping range as the transaction deduction resource amount. If there is no overlapping range, the transaction deduction resource amount fails to be obtained, and it is determined that the actual transaction scenario of the transaction execution response is a transaction scenario of an unsuccessful transaction, and the transaction execution response is fed back to the user. At this time, the transaction execution response is a failure response.

[0115] For example, if the allocated resource amount of the target resource allocation scenario is 800 and the resource amount threshold is 1000, the allocated resource amount is subtracted from the resource amount threshold, and the resource amount difference is 200, and 0 to 200 is used as the difference range. If the resource deduction range is 0 to 100, the overlapping range is determined to be 0 to 100; due to the existence of an overlapping range, a value is randomly selected from 0 to 100 as the transaction deduction resource amount.

[0116] In one embodiment of the present application, if the target resource allocation scenario is a resource percentage increase or decrease scenario, since the resource percentage increase or decrease scenario is a situation where the resource amount is increased or decreased by a certain percentage, the resource deduction range in the transaction execution request is a percentage value; the resource deduction range is multiplied by the total paid resource amount to obtain a calculation result; and the allocated resource amount is subtracted from the resource amount threshold to obtain a resource amount difference, and it is determined whether the resource amount difference is greater than the calculation result; if it is greater, it is determined that the calculation result is the transaction deduction resource amount; if it is less than, the transaction deduction resource amount fails to be obtained, and it is determined that the actual transaction scenario of the transaction execution response is a transaction scenario of an unsuccessful transaction, and the transaction execution response is fed back to the user. At this time, the transaction execution response is a failure response.

[0117] Step 402, determining the actual payment resource amount based on the total payment resource amount and the transaction deduction resource amount.

[0118] It should be noted that when it is necessary to determine the actual payment amount of resources, the type of transaction deduction amount of resources can be determined in advance, and then, according to the type of transaction deduction amount of resources, the total payment amount of resources and the transaction deduction amount of resources are calculated, and the result obtained is the actual payment amount of resources.

[0119] Among them, the types of transaction deduction resource amounts include: transaction deduction resource amounts that increase the total payment resource amount and transaction deduction resource amounts that decrease the total payment resource amount.

[0120] In one embodiment of the present application, if the type of transaction deduction resource amount is a transaction deduction resource amount increased by the total payment resource amount, the total payment resource amount and the transaction deduction resource amount are added, and the result obtained is the actual payment resource amount.

[0121] In one embodiment of the present application, if the type of transaction deduction resource amount is a transaction deduction resource amount that reduces the total payment resource amount, the total payment resource amount and the transaction deduction resource amount are reduced, and the result obtained is the actual payment resource amount.

[0122] It should be noted that after the actual payment resource amount is determined based on the total payment resource amount and the transaction deduction resource amount, the allocated resource amount of the target resource allocation scenario needs to be updated based on the transaction deduction resource amount.

[0123] For example, if the allocated resource amount is 300 and the resource amount threshold is 500, the transaction deduction resource amount is determined to be 50 based on the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range. Therefore, after determining the actual payment resource amount based on the total payment resource amount and the transaction deduction resource amount, it is necessary to add the allocated resource amount and the transaction deduction resource amount, and the resulting 350 is the updated allocated resource amount.

[0124] Step 403: Execute the transaction execution request according to the actual payment resource amount and obtain a transaction execution response.

[0125] It should be noted that after determining the actual payment resource amount, the actual payment resource amount can be used as the execution result corresponding to the transaction execution request, and the execution result corresponding to the transaction execution request can be modified by adding modifiers that conform to the actual transaction scenario, thereby obtaining a transaction execution response. The actual transaction scenario includes: a transaction scenario of a successful transaction and a transaction scenario of an unsuccessful transaction.

[0126] Among them, the modifying words may include but are not limited to: "Congratulations", "The transaction has been successfully completed", "Unfortunately", "What a pity", "Uncompleted transaction" and other words.

[0127] Further explanation: after determining the actual payment resource amount, if the actual transaction scenario is an unsuccessful transaction scenario, the reason for the unsuccessful transaction can be determined, and the reason for the unsuccessful transaction and the actual payment resource amount can be combined as a transaction execution response.

[0128] The above-mentioned business processing method determines the transaction deduction resource amount through the allocated resource amount, the resource amount threshold and the resource deduction range, and then determines the actual payment resource amount according to the total payment resource amount and the transaction deduction resource amount. Since in the process of determining the transaction deduction resource amount, not only the resource amount threshold but also the resource deduction range is referred to, the determination of the transaction deduction resource amount is in line with the resource deduction range in the transaction execution request and does not exceed the resource amount threshold; and, by determining the actual payment resource amount, a smooth transaction execution request is realized, ensuring that the transaction execution response can be fed back to the user later.

[0129] In one embodiment, when it is necessary to determine the resource amount threshold of the candidate resource allocation scenario, as shown in FIG5 , the following contents may be specifically included:

[0130] Step 501: Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules.

[0131] The candidate resource allocation scenarios include at least one of a resource fixed value increase or decrease scenario, a resource random value increase or decrease scenario, and a resource percentage increase or decrease scenario.

[0132] It should be noted that the resource increase / decrease rule contains at least one resource sub-rule corresponding to each candidate resource allocation scenario. Therefore, the resource increase / decrease rule can be split to further determine the resource sub-rule of each candidate resource allocation scenario in the resource increase / decrease rule.

[0133] To further illustrate, a keyword search can be performed on the resource increase and decrease rules. If a resource sub-rule in the resource increase and decrease rules contains a keyword corresponding to a resource fixed value increase and decrease scenario, then the resource sub-rule is determined as a resource sub-rule corresponding to the resource fixed value increase and decrease scenario; if a resource sub-rule contains a keyword corresponding to a resource random value increase and decrease scenario, then the resource sub-rule is determined as a resource sub-rule corresponding to the resource random value increase and decrease scenario; if a resource sub-rule contains a keyword corresponding to a resource percentage increase and decrease scenario, then the resource sub-rule is determined as a resource sub-rule corresponding to the resource percentage increase and decrease scenario.

[0134] Among them, the keywords corresponding to the scenario of increasing or decreasing the fixed value of resources may include but are not limited to: fixed value, increasing or decreasing the fixed value, etc. The keywords corresponding to the scenario of increasing or decreasing the random value of resources may include but are not limited to: random value, increasing or decreasing the random value, etc. The keywords corresponding to the scenario of increasing or decreasing the percentage of resources may include but are not limited to: percentage, increasing or decreasing the percentage, etc. Since there are many types of keywords corresponding to different candidate resource allocation scenarios, they are not listed here one by one. The keywords corresponding to different candidate resource allocation scenarios can be determined based on the work experience and historical data of the staff.

[0135] Step 502: Determine a resource amount threshold of the candidate resource allocation scenario from the resource sub-rules of the candidate resource allocation scenario.

[0136] It should be noted that the resource sub-rules of different candidate resource allocation scenarios all contain the resource quantity threshold of the candidate resource allocation scenario. Therefore, when it is necessary to determine the resource quantity threshold of the candidate resource allocation scenario, the resource sub-rule can be semantically identified to identify the description corresponding to the resource quantity threshold in the resource sub-rule, and then the resource quantity threshold of the candidate resource allocation scenario can be determined.

[0137] To further explain, after determining the resource quantity threshold of the candidate resource allocation scenario, the resource quantity threshold and the resource increase and decrease rules can be fed back to the staff's terminal device together, so that the staff can judge whether the resource quantity threshold is correct and receive the judgment result fed back by the staff terminal device; if the judgment result is correct, the resource quantity threshold is not processed; if the judgment result is incorrect, the operation of determining the resource sub-rule of the candidate resource allocation scenario from the resource increase and decrease rules is re-executed until the judgment result is correct.

[0138] The above-mentioned business processing method, by determining the resource sub-rules of the candidate resource allocation scenarios, realizes determining the resource quantity threshold of the candidate resource allocation scenarios according to the resource sub-rules of the candidate resource allocation scenarios, thereby ensuring that the transaction execution request can be executed according to the resource quantity threshold in the future, and preventing the occurrence of excessive resource allocation.

[0139] In an embodiment, when it is necessary to adjust the resource amount threshold corresponding to the resource allocation scenario to be adjusted, as shown in FIG6 , the following contents may be specifically included:

[0140] Step 601, in response to an increase / decrease rule adjustment instruction, determining a resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from candidate resource allocation scenarios, and determining a resource amount threshold adjustment amount.

[0141] It should be noted that if an increase or decrease rule adjustment instruction is received, the resource allocation scenario to be adjusted corresponding to the increase or decrease rule adjustment instruction is determined according to the content recorded in the increase or decrease rule adjustment instruction, that is, the candidate resource allocation scenario that needs to be processed for resource amount threshold adjustment. In addition, the resource amount threshold adjustment amount is determined according to the content recorded in the increase or decrease rule adjustment instruction.

[0142] For example, if the increase or decrease rule adjustment instruction contains the content "the resource quantity threshold of the resource random value increase or decrease scenario increases by one hundred", then the resource allocation scenario to be adjusted corresponding to the increase or decrease rule adjustment instruction is determined to be "resource random value increase or decrease scenario", and the resource quantity threshold adjustment amount is "one hundred".

[0143] Step 602: adjusting the resource threshold corresponding to the resource allocation scenario to be adjusted according to the resource threshold adjustment amount.

[0144] It should be noted that when it is necessary to adjust the resource amount threshold corresponding to the resource allocation scenario to be adjusted, the content recorded in the increase and decrease rule adjustment instruction can be used to determine whether the resource amount threshold corresponding to the resource allocation scenario to be adjusted needs to be increased or deleted, and then the resource amount threshold corresponding to the resource allocation scenario to be adjusted can be adjusted according to the increase or decrease situation.

[0145] As an implementation method, if the resource amount threshold corresponding to the resource allocation scenario to be adjusted needs to be increased, the resource amount threshold corresponding to the resource allocation scenario to be adjusted and the resource amount threshold adjustment amount are added together, and the result obtained is the adjusted resource amount threshold of the resource allocation scenario to be adjusted.

[0146] For example, if the increase or decrease rule adjustment instruction contains the content "the resource threshold of the resource random value increase or decrease scenario increases by 100" and the resource threshold corresponding to the resource allocation scenario to be adjusted is 200, according to the content recorded in the increase or decrease rule adjustment instruction, it is determined that the resource threshold corresponding to the resource allocation scenario to be adjusted needs to be increased. Therefore, the resource threshold and the resource threshold adjustment amount are added, and the resulting 300 is the adjusted resource threshold of the resource allocation scenario to be adjusted.

[0147] As another implementation method, if the resource amount threshold corresponding to the resource allocation scenario to be adjusted needs to be deleted, the resource amount threshold corresponding to the resource allocation scenario to be adjusted and the resource amount threshold adjustment amount are differenced, and the result obtained is the adjusted resource amount threshold of the resource allocation scenario to be adjusted.

[0148] For example, if the increase or decrease rule adjustment instruction contains the content "the resource amount threshold of the resource random value increase or decrease scenario is reduced by 50" and the resource amount threshold corresponding to the resource allocation scenario to be adjusted is 200, according to the content recorded in the increase or decrease rule adjustment instruction, it is determined that the resource amount threshold corresponding to the resource allocation scenario to be adjusted needs to be deleted. Therefore, the resource amount threshold and the resource amount threshold adjustment amount are used for difference calculation, and the obtained 150 is the resource amount threshold after adjustment of the resource allocation scenario to be adjusted.

[0149] The above-mentioned business processing method determines the resource quantity threshold adjustment amount of the resource allocation scenario to be adjusted by adding or subtracting rule adjustment instructions, and then adjusts the resource quantity threshold corresponding to the resource allocation scenario to be adjusted according to the resource quantity threshold adjustment amount, thereby realizing real-time adjustment of the resource quantity threshold.

[0150] In one embodiment, when a transaction execution request needs to be executed, as shown in FIG7 , the following contents may be specifically included:

[0151] Step 701: Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules.

[0152] Step 702: Determine a resource amount threshold of the candidate resource allocation scenario from the resource sub-rules of the candidate resource allocation scenario.

[0153] Step 703: Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios.

[0154] Step 704: Verify the accuracy of the allocated resource amount and the resource amount threshold of the target resource allocation scenario.

[0155] Step 705: If the verification passes, the resource allocation module corresponding to the target resource allocation scenario is called to determine the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario and the resource deduction range.

[0156] Step 706, determining the actual payment resource amount based on the total payment resource amount and the transaction deduction resource amount.

[0157] Step 707: Execute the transaction execution request according to the actual payment resource amount and obtain a transaction execution response.

[0158] Step 708: Feedback the transaction execution response to the user.

[0159] In one embodiment of the present application, a resource allocation module corresponding to the target resource allocation scenario can be implemented based on springboot (an open source application framework) + Redis (remote dictionary service) + lua (scripting language); the interaction method of springboot, Redis and Lua can be shown in Figure 8. Specifically, the Redis client sends a Lua script to the Redis server, and the Lua script implements the deduction / increase action for the transaction execution request. The Redis server will parse and execute the Lua script atomically in a single thread, ensuring that the script will not be interrupted by any other request during the processing process. Then, the Redis server executes the transaction execution request, obtains the transaction execution response, and feeds back the transaction execution response to the Redis client.

[0160] The above-mentioned business processing method realizes the execution of the transaction execution request by calling the target resource allocation scenario by selecting the target resource allocation scenario corresponding to the transaction execution request, and feeds back the obtained transaction execution response to the user. Since in the above process, the resource allocation module executes the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, therefore, when executing the transaction execution request, the present application will not blindly generate a transaction execution response, but will obtain a transaction execution response based on the allocated resource amount without exceeding the resource amount threshold, thereby preventing the situation of over-issuance of resource allocation, ensuring that the network platform will not affect its interests due to over-issuance of resource allocation, and improving the user experience.

[0161] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0162] Based on the same inventive concept, the embodiment of the present application also provides a transaction processing device for implementing the transaction processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more transaction processing device embodiments provided below can refer to the limitations on the transaction processing method above, and will not be repeated here.

[0163] In one embodiment, as shown in FIG9 , a transaction processing device is provided, including: a first determination module 10, an execution module 20 and a feedback module 30, wherein:

[0164] The first determination module 10 is used to receive a transaction execution request from a user and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios.

[0165] The execution module 20 is used to call the resource allocation module corresponding to the target resource allocation scenario, execute the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtain the transaction execution response.

[0166] The feedback module 30 is used to feed back the transaction execution response to the user.

[0167] The above-mentioned business processing device, by selecting the target resource allocation scenario corresponding to the transaction execution request, realizes the execution of the transaction execution request by calling the target resource allocation scenario, and feeds back the obtained transaction execution response to the user. Since in the above process, the resource allocation module executes the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, therefore, when executing the transaction execution request, the present application will not blindly generate a transaction execution response, but will obtain a transaction execution response according to the allocated resource amount without exceeding the resource amount threshold, thereby preventing the situation of over-issuance of resource allocation, ensuring that the network platform will not affect the interests due to over-issuance of resource allocation, and improving the user experience.

[0168] In one embodiment, as shown in FIG. 10 , a transaction processing device is provided, in which an execution module 20 includes: a verification unit 21 and a first execution unit 22, wherein:

[0169] The verification unit 21 is used to verify the accuracy of the allocated resource amount and the resource amount threshold of the target resource allocation scenario.

[0170] The first execution unit 22 is used to call the resource allocation module corresponding to the target resource allocation scenario if the verification is passed, execute the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtain a transaction execution response.

[0171] In one embodiment, as shown in FIG. 11 , a transaction processing device is provided, in which the execution module 20 further includes: a calling unit 23, a determining unit 24, and a second execution unit 25, wherein:

[0172] The calling unit 23 is used to call the resource allocation module corresponding to the target resource allocation scenario, and determine the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range.

[0173] The calling unit is specifically used to update the allocated resource amount of the target resource allocation scenario according to the transaction deduction resource amount.

[0174] The determination unit 24 is used to determine the actual payment resource amount according to the total payment resource amount and the transaction deduction resource amount.

[0175] The second execution unit 25 is used to execute the transaction execution request according to the actual payment resource amount and obtain the transaction execution response.

[0176] In one embodiment, as shown in FIG. 12 , a transaction processing device is provided, the transaction processing device further comprising: a second determination module 40 and a third determination module 50, wherein:

[0177] The second determining module 40 is used to determine resource sub-rules of candidate resource allocation scenarios from resource increase and decrease rules.

[0178] The third determination module 50 is configured to determine a resource amount threshold of a candidate resource allocation scenario from the resource sub-rules of the candidate resource allocation scenario.

[0179] In one embodiment, as shown in FIG. 13 , a transaction processing device is provided, the transaction processing device further comprising: a fourth determination module 60 and an adjustment module 70, wherein:

[0180] The fourth determination module 60 is used to determine the resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from the candidate resource allocation scenarios in response to the increase / decrease rule adjustment instruction, and determine the resource amount threshold adjustment amount.

[0181] The adjustment module 70 is used to adjust the resource amount threshold corresponding to the resource allocation scenario to be adjusted according to the resource amount threshold adjustment amount.

[0182] Each module in the above transaction processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0183] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG14. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a transaction processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0184] Those skilled in the art will understand that the structure shown in FIG. 14 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0185] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0186] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0187] Calling the resource allocation module of the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0188] Feedback transaction execution response to the user.

[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0190] Verify the accuracy of the allocated resources and resource thresholds for the target resource allocation scenario;

[0191] If the verification passes, the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain a transaction execution response.

[0192] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0193] Call the resource allocation module corresponding to the target resource allocation scenario, and determine the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range;

[0194] Determine the actual payment resource amount based on the total payment resource amount and transaction deduction resource amount;

[0195] According to the actual payment resource amount, the transaction execution request is executed and the transaction execution response is obtained.

[0196] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0197] Update the allocated resource amount of the target resource allocation scenario based on the transaction deduction resource amount.

[0198] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0199] Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules;

[0200] A resource amount threshold of the candidate resource allocation scenario is determined from the resource sub-rules of the candidate resource allocation scenario.

[0201] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0202] In response to the increase / decrease rule adjustment instruction, determining the resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from the candidate resource allocation scenarios, and determining the resource amount threshold adjustment amount;

[0203] According to the resource threshold adjustment amount, the resource threshold corresponding to the resource allocation scenario to be adjusted is adjusted.

[0204] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0205] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0206] Calling the resource allocation module of the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0207] Feedback transaction execution response to the user.

[0208] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0209] Verify the accuracy of the allocated resources and resource thresholds for the target resource allocation scenario;

[0210] If the verification passes, the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain a transaction execution response.

[0211] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0212] Call the resource allocation module corresponding to the target resource allocation scenario, and determine the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range;

[0213] Determine the actual payment resource amount based on the total payment resource amount and transaction deduction resource amount;

[0214] According to the actual payment resource amount, the transaction execution request is executed and the transaction execution response is obtained.

[0215] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0216] Update the allocated resource amount of the target resource allocation scenario based on the transaction deduction resource amount.

[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0218] Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules;

[0219] A resource amount threshold of the candidate resource allocation scenario is determined from the resource sub-rules of the candidate resource allocation scenario.

[0220] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0221] In response to the increase / decrease rule adjustment instruction, determining the resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from the candidate resource allocation scenarios, and determining the resource amount threshold adjustment amount;

[0222] According to the resource threshold adjustment amount, the resource threshold corresponding to the resource allocation scenario to be adjusted is adjusted.

[0223] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0224] Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios;

[0225] Calling the resource allocation module of the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining the transaction execution response;

[0226] Feedback transaction execution response to the user.

[0227] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0228] Verify the accuracy of the allocated resources and resource thresholds for the target resource allocation scenario;

[0229] If the verification passes, the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain a transaction execution response.

[0230] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0231] Call the resource allocation module corresponding to the target resource allocation scenario, and determine the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, as well as the resource deduction range;

[0232] Determine the actual payment resource amount based on the total payment resource amount and transaction deduction resource amount;

[0233] According to the actual payment resource amount, the transaction execution request is executed and the transaction execution response is obtained.

[0234] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0235] Update the allocated resource amount of the target resource allocation scenario based on the transaction deduction resource amount.

[0236] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0237] Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules;

[0238] A resource amount threshold of the candidate resource allocation scenario is determined from the resource sub-rules of the candidate resource allocation scenario.

[0239] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0240] In response to the increase / decrease rule adjustment instruction, determining the resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from the candidate resource allocation scenarios, and determining the resource amount threshold adjustment amount;

[0241] According to the resource threshold adjustment amount, the resource threshold corresponding to the resource allocation scenario to be adjusted is adjusted.

[0242] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0243] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0244] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A transaction processing method, characterized in that: The method comprises: Receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios; Calling a target resource allocation scenario resource allocation module, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining a transaction execution response; The transaction execution response is fed back to the user.

2. The method according to claim 1, characterized in that The calling of the resource allocation module corresponding to the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and the resource amount threshold of the target resource allocation scenario, and obtaining a transaction execution response, includes: Performing accuracy verification on the allocated resource amount and the resource amount threshold of the target resource allocation scenario; If the verification passes, the resource allocation module corresponding to the target resource allocation scenario is called, and the transaction execution request is executed according to the allocated resource amount and resource amount threshold of the target resource allocation scenario to obtain a transaction execution response.

3. The method according to claim 1 or 2, characterized in that: The transaction execution request carries the resource deduction range and the total payment resource amount; calling the resource allocation module corresponding to the target resource allocation scenario, executing the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtaining a transaction execution response, including: Calling a resource allocation module corresponding to the target resource allocation scenario, and determining the transaction deduction resource amount according to the allocated resource amount and resource amount threshold of the target resource allocation scenario and the resource deduction range; Determine the actual payment resource amount according to the total payment resource amount and the transaction deduction resource amount; According to the actual payment resource amount, the transaction execution request is executed to obtain a transaction execution response.

4. The method according to claim 3, characterized in that The method further comprises: Update the allocated resource amount of the target resource allocation scenario based on the transaction deduction resource amount.

5. The method according to claim 1, characterized in that The method further comprises: Determine resource sub-rules for candidate resource allocation scenarios from resource increase / decrease rules; A resource amount threshold of the candidate resource allocation scenario is determined from the resource sub-rules of the candidate resource allocation scenario.

6. The method according to claim 1, characterized in that The method further comprises: In response to the increase / decrease rule adjustment instruction, determining the resource allocation scenario to be adjusted corresponding to the increase / decrease rule adjustment instruction from candidate resource allocation scenarios, and determining the resource amount threshold adjustment amount; The resource amount threshold corresponding to the resource allocation scenario to be adjusted is adjusted according to the resource amount threshold adjustment amount.

7. A transaction processing device, characterized in that: The device comprises: A first determination module, configured to receive a transaction execution request from a user, and determine a target resource allocation scenario corresponding to the transaction execution request from candidate resource allocation scenarios; An execution module, configured to call a resource allocation module corresponding to a target resource allocation scenario, execute the transaction execution request according to the allocated resource amount and resource amount threshold of the target resource allocation scenario, and obtain a transaction execution response; The feedback module is used to feed back the transaction execution response to the user.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.