Transaction processing method and device, computer equipment and storage medium
By automatically selecting and processing available rights in the financial system, the problem of slow return of equity quotas under high concurrent requests is solved, and a convenient experience for users to use without actively collecting rights is achieved.
Patent Information
- Application Number
- CN202411014198.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-26
AI Technical Summary
In the high concurrent request scenario in the financial industry, the existing system cannot quickly and accurately return the user's equity quota, and the user needs to actively collect the rights before using it, resulting in the user forgetting to collect and unable to use it.
By obtaining the transaction request of the target user, when the available equity is detected, the target equity will be automatically selected from the available equity, and processed according to the value of the equity type and the user's identity level, and the transaction request will be directly processed without the user's active collection. rights and interests.
It improves the system's response speed under high concurrent requests, so users can use it without actively collecting rights, improving user experience and satisfaction.
Smart Images

Figure CN119027234A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a transaction processing method, apparatus, computer equipment and storage medium, which can be applied to the field of financial technology and other technical fields. Background Art
[0002] With the booming development of the financial industry, competition among financial institutions is also intensifying. Promotions or incentives in the financial industry are aimed at improving the sales performance and competitiveness of financial institutions by attracting new users and increasing the loyalty of existing users.
[0003] The existing promotional or reward activities issue benefits to users in the following way: the amount of benefits that users can enjoy is calculated each time they make a transaction, and users need to actively claim the benefits before they can use them. However, when the number of concurrent requests is too large, the module for calculating the amount of benefits will become a system bottleneck, and the amount of benefits cannot be returned quickly and accurately. In addition, there are cases where users forget to claim their benefits and cannot use them. Summary of the invention
[0004] Based on this, it is necessary to provide a transaction processing method, device, computer equipment and storage medium to address the above technical problems, which can improve the speed at which the system responds to user requests in high-concurrency request scenarios, and can be used without the user actively claiming the rights and interests.
[0005] In a first aspect, the present application provides a transaction processing method, comprising:
[0006] Obtain the target user's transaction request;
[0007] In the case of detecting that there are available interests, selecting a target interest from the available interests;
[0008] The transaction request is processed according to the target equity.
[0009] In one embodiment, selecting a target equity from the available equity includes:
[0010] Determine the equity value of each equity type based on the equity quantity available under each equity type;
[0011] Selecting a target equity type from each equity type according to the equity value and equity usage rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user;
[0012] A target equity is selected from the available equity corresponding to the target equity type.
[0013] In one embodiment, selecting a target equity type from each equity type according to the equity value and equity usage rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user includes:
[0014] Determine a backup equity type from each equity type according to the equity use rules of each equity type and the transaction resource value corresponding to the transaction request;
[0015] According to the identity level of the target user and the equity value of the backup equity type, a target equity type is determined from the backup equity types.
[0016] In one embodiment, determining the equity value of each equity type based on the equity quantity of the available equity under each equity type includes:
[0017] The sum of the equity quantities of available equity under each equity type is taken as the total equity quantity;
[0018] The equity value of each equity type is determined based on the ratio of the equity quantity of the available equity under each equity type to the total equity quantity.
[0019] In one embodiment, selecting a target equity from the available equity includes:
[0020] Determining whether the target user has rights to use the rights and interests according to the transaction resource value corresponding to the transaction request;
[0021] If the target user has the right to use the rights, the target rights are selected from the available rights.
[0022] In one embodiment, processing the transaction request according to the target equity includes:
[0023] The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value;
[0024] The target resource value is deducted from the payment account of the target user.
[0025] In a second aspect, the present application further provides a transaction processing device, including:
[0026] A request acquisition module is used to obtain the transaction request of the target user;
[0027] A selection module, configured to select a target equity from the available equity when detecting that there is available equity;
[0028] The transaction processing module is used to process the transaction request according to the target equity.
[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0030] Obtain the target user's transaction request;
[0031] In the case of detecting that there are available interests, selecting a target interest from the available interests;
[0032] The transaction request is processed according to the target equity.
[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0034] Obtain the target user's transaction request;
[0035] In the case of detecting that there are available interests, selecting a target interest from the available interests;
[0036] The transaction request is processed according to the target equity.
[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0038] Obtain the target user's transaction request;
[0039] In the case of detecting that there are available interests, selecting a target interest from the available interests;
[0040] The transaction request is processed according to the target equity.
[0041] The transaction processing method, device, computer equipment and storage medium obtain the transaction request of the target user, and select the target equity from the available equity if there is available equity, and further process the transaction request according to the target equity. The above scheme makes available equity in advance, and directly retrieves the target equity from the available equity for the user when available equity is detected, and can quickly and accurately return the equity amount without calculation, thereby improving the speed of the system responding to user requests; further, the transaction request is directly processed according to the target equity, and the user can use it directly without actively claiming the equity, thereby improving the user experience and satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 An application environment diagram of a transaction processing method in an embodiment;
[0044] Figure 2 A flowchart of a transaction processing method in one embodiment;
[0045] Figure 3 A schematic diagram of a process for determining a target equity type in an embodiment;
[0046] Figure 4 A schematic diagram of a process of selecting a target equity in an embodiment;
[0047] Figure 5 A schematic diagram of a process for processing a transaction request in one embodiment;
[0048] Figure 6 A flowchart of a transaction processing method in another embodiment;
[0049] Figure 7 is a structural block diagram of a transaction processing device in one embodiment;
[0050] Figure 8 is a structural block diagram of a transaction processing device in another embodiment;
[0051] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] 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.
[0053] The transaction processing method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 101 communicates with the server 102 through the network. The data storage system can store the data that the server 102 needs to process. The data storage system can be integrated on the server 102, or it can be placed on the cloud or other network servers. The terminal 102 is installed with a client of a financial institution (such as a bank) or an application that can be used for payment; the server 102 is generally a server used by a financial institution to process transaction requests. Optionally, after the server 102 obtains a transaction request from the terminal 102 held by the target user, if it detects that there is an available equity, it selects the target equity from the available equity, and further, according to the target equity, processes the transaction request. Among them, the terminal 101 can be but is not limited to various personal computers, laptops, smart phones, tablet computers, etc. The server 102 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0054] In an exemplary embodiment, Figure 2 As shown, a transaction processing method is provided, which is applied to Figure 1 Taking the server 102 in the example as an example, the following steps are included:
[0055] S201, obtaining a transaction request from a target user.
[0056] The target user refers to any user who has registered an account with a financial institution.
[0057] The transaction request may be a request for a target user to conduct a transaction, and the transaction request may carry transaction information, including but not limited to transaction resource value, transaction item, etc. Optionally, the transaction request may be initiated through a client under a financial institution, or through a third-party payment software based on a physical card (such as a bank card) of a financial institution.
[0058] Optionally, when the target user uses a bank card of a financial institution to conduct a transaction through a client or third-party payment software, a transaction request containing transaction information is sent to the server; and then the server can obtain the transaction request of the target user. The client or third-party payment software is installed in the terminal held by the target user.
[0059] S202: When it is detected that there is available equity, select a target equity from the available equity.
[0060] Among them, rights and interests refer to the benefits that users of financial institutions can enjoy when they conduct transactions through payment accounts under financial institutions, such as coupons, red envelopes or points, etc. The payment account can be a bank card account. Optionally, before the financial institution creates a rights and interests activity in the embodiment of the present application, a certain number of rights and interests will be generated in advance and stored in the rights and interests library of the financial institution system as available rights and interests. Rights and interests activities can be random rights and interests reduction activities, full-amount rights and interests reduction activities, etc.
[0061] For example, for a full amount instant discount equity activity, the financial institution will set the total equity value of the equity activity (such as the total discount amount) according to the duration of the equity activity, and randomly generate a certain number of equity according to the total equity value and the equity usage rules. For example, the total equity value of the full amount instant discount equity activity is 10,000, and the equity usage rules are that if the transaction resource value is over 100, a random discount of 5-10 can be obtained, and if it is over 200, a random discount of 10-20 can be obtained. Then the system randomly generates a certain number of equity with a face value of 5-10 and 10-20, such as coupons or red envelopes, etc. The sum of the equity values of all equity is the total equity value, that is, 10,000, and all equity is stored in the equity library as available equity. It should be noted that the number of available equity is variable, and it continues to decrease with the increase in the number of transactions until the number of available equity in the equity library is 0. Among them, resources can be funds, points, etc.
[0062] Target rights and interests refer to the rights and interests that the target user can use in this transaction.
[0063] Optionally, after obtaining the transaction request of the target user, check whether there is available equity in the equity library. If so, the target equity can be selected from the available equity according to the transaction resource value contained in the transaction request information and the equity usage rules of each available equity. For example, for an equity activity of instant discount upon full payment, and the transaction resource is funds, if the transaction resource value is 150 yuan, then according to the equity usage rules, available equity with an equity value of 5-10 can be randomly retrieved for the target user from the available equity as the target equity, such as a coupon or red envelope with a face value of 5-10 yuan.
[0064] S203, processing the transaction request according to the target equity.
[0065] Optionally, after determining the target equity, the target equity can be used directly to process the transaction request in combination with the transaction resource value corresponding to the transaction request, that is, there is no need to feed back the target equity to the user, thereby improving the convenience of equity use and the user experience.
[0066] In the above transaction processing method, the transaction request of the target user is obtained, and the target equity is selected from the available equity if there is available equity, and further, the transaction request is processed according to the target equity. The above scheme makes available equity in advance, and when available equity is detected, the target equity is directly retrieved from the available equity for the user, and the equity amount can be quickly and accurately returned without calculation, thereby improving the speed of the system responding to user requests; further, the transaction request is directly processed according to the target equity, and the user can use it directly without actively claiming the equity, thereby improving the user experience and satisfaction.
[0067] Optionally, when the number of available rights of a certain right type is small, in order to better maximize the value of each available right of the right type, in one embodiment, Figure 3 As shown, an optional method for determining the target equity type is provided, which specifically includes the following steps:
[0068] S301, determining the equity value of each equity type according to the equity quantity of the available equity under each equity type.
[0069] Among them, all available rights and interests can be divided into different types according to the rights and interests usage rules. For example, for the random immediate rights and interests reduction activity, the rights and interests usage rules are: a random reduction of 5-10 when the transaction resource value is over 100, a random reduction of 10-20 when the transaction resource value is over 200, and a random reduction of 20-30 when the transaction resource value is over 300; the available rights and interests can be divided into 5-10 types, 10-20 types and 20-30 types.
[0070] The so-called equity value is to measure the value of the available equity corresponding to the equity type. The equity value of each equity type can be specifically determined by the number of available equity corresponding to each equity type. The equity type with a relatively large number of available equity has a relatively small equity value; the equity type with a relatively small number of available equity has a relatively high equity value.
[0071] Optionally, in order to better measure the equity value of each equity type, the sum of the equity quantities of available equity under each equity type can be used as the total equity amount; the equity value of each equity type is determined based on the ratio of the equity quantity of available equity under each equity type to the total equity amount.
[0072] Specifically, all available rights under each type of rights are added together to obtain the total number of rights; further, for each type of rights, the ratio of the number of available rights under the type of rights to the total number of rights is used as the proportion of the type of rights; then, the value of each type of rights can be determined based on the proportion of each type of rights. Optionally, the proportion of a type of rights is inversely proportional to its value of rights, that is, the smaller the proportion of a type of rights, the higher the value of the type of rights. For example, for the above-mentioned random rights reduction activity, the proportion of the 5-10 type is 50%, the proportion of the 10-20 type is 40%, and the proportion of the 20-30 type is 10%, then the value of the 20-30 type rights is the highest.
[0073] It can be understood that determining the equity value of each equity type by the ratio of the equity quantity of available equity under each equity type to the total equity quantity provides a simple and quick calculation method for determining the equity value of the equity type.
[0074] S302 , selecting a target equity type from various equity types according to the equity value and equity use rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user.
[0075] Among them, the identity level of the target user refers to the identity level of the target user under the financial institution. For example, the identity level can be a membership level, or it can be limited based on the total amount of consumption of the user based on the bank card of the financial institution. The larger the total amount of consumption, the higher the identity level.
[0076] Optionally, the backup equity type can be determined from each equity type according to the equity usage rules of each equity type and the transaction resource value corresponding to the transaction request; the target equity type can be determined from the backup equity type according to the identity level of the target user and the equity value of the backup equity type. Specifically, according to the transaction resource value corresponding to the transaction request, the equity type that complies with the equity usage rules is used as the backup equity type; further, when there is more than one backup equity type, the target equity type can be determined according to the equity value of each backup equity type and the identity level of the target user. For example, when the identity level of the target user is high, the equity type with a high equity value can be used as the target equity type; if there is only one backup equity type, the backup type can be directly used as the target equity type. It can be understood that by determining the target equity type more reasonably according to the equity value of the equity type and the identity level of the target user.
[0077] For example, for the above-mentioned random instant equity reduction activity, and the transaction resource is funds, if the transaction resource value corresponding to the transaction request is 220 yuan, then according to the equity usage rules of each equity type, the backup equity types can be determined as 5-10 yuan type and 10-20 yuan type; further, the equity value of each backup equity type is determined, for example, the 5-10 yuan type accounts for 60%, and the 10-20 yuan type accounts for 5%, then the equity value of the 10-20 yuan type is high, and then according to the identity level of the target user, if the target user identity level is high, the 10-20 yuan type is used as the target equity type; if the target user identity level is low, the 5-10 yuan type is used as the target equity type.
[0078] It should be noted that when the proportion of a certain equity type is lower than a certain value, such as 5%, it means that the equity value of this equity type is higher. At this time, the identity level of the target users who can use the available equity corresponding to this equity type can be set for this equity type. For example, target users with a member identity level can give priority to using the available equity corresponding to this equity type.
[0079] S303, selecting a target equity from available equity corresponding to the target equity type.
[0080] Optionally, an available equity is randomly selected from the available equity corresponding to the target equity class as the target equity.
[0081] In this embodiment, by introducing the equity value, when the available equity corresponding to a certain equity type is small, the available equity corresponding to the equity type can be reasonably allocated according to the identity level of the target user, thereby better leveraging the value of the available equity corresponding to the equity type.
[0082] In order to manage the available rights and interests in a more standardized manner and maximize the value of the available rights and interests, it is optional to determine whether the user can use the available rights and interests before selecting the target rights and interests for the target user. Figure 4 As shown, a method for selecting a target equity is provided, which specifically includes the following steps:
[0083] S401, determining whether the target user has the rights to use the rights and interests according to the transaction resource value corresponding to the transaction request.
[0084] Optionally, determine whether the transaction resource value in the transaction information is greater than the minimum equity value of the available equity corresponding to the equity activity. If so, determine that the target user has the right to use the equity; if not, determine that the target user does not have the right to use the equity.
[0085] S402: If the target user has the right to use the rights, select the target rights from the available rights.
[0086] Optionally, if the target user has the right to use the rights, the target rights can be selected from the available rights according to the method in the above embodiment. If the target user does not have the right to use the rights, a prompt message indicating that there is no right is returned to the target user.
[0087] In this embodiment, by introducing a process for determining whether a user has the right to use rights and interests, the management of rights and interests can be more standardized, and the maximum value of available rights and interests can be better utilized.
[0088] Optionally, based on the above embodiment, in order to better explain S203, in one embodiment, as Figure 5 As shown, the process of processing a transaction request includes the following steps:
[0089] S501, taking the difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request as the target resource value.
[0090] Among them, the equity value refers to the face value of the equity. After determining the target equity, the transaction resource value corresponding to the transaction request is subtracted from the equity value corresponding to the target equity to obtain the target resource value, that is, the resource value that the target user of the transaction needs to pay.
[0091] For example, if the transaction resource value corresponding to the transaction request is 120 and the equity value corresponding to the target equity is 7, then the target resource value is 113.
[0092] S502, deducting the target resource value from the payment account of the target user.
[0093] The target user's payment account refers to an account registered by the target user at a financial institution for payment, such as a bank card account.
[0094] Optionally, the target resource value is deducted from the target user's bank card account.
[0095] In this embodiment, after the target rights and interests are determined, the target rights and interests are directly used for the target user without the need for the target user to actively claim them, thereby improving the transaction success rate and user experience and satisfaction.
[0096] Figure 6 FIG. 2 is a flow chart of a transaction processing method in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a transaction processing method. Figure 6 The specific implementation process is as follows:
[0097] S601, obtaining a transaction request from a target user.
[0098] S602: When it is detected that there is available equity, determine whether the target user has the right to use the equity according to the transaction resource value corresponding to the transaction request.
[0099] S603: If the target user has the right to use the rights, the sum of the rights and interests of the available rights and interests under each right and interest type is taken as the total number of rights and interests.
[0100] S604, determining the equity value of each equity type according to the ratio of the equity quantity of the available equity under each equity type to the total equity quantity.
[0101] S605 , determining a backup equity type from each equity type according to the equity use rules of each equity type and the transaction resource value corresponding to the transaction request.
[0102] S606: Determine a target benefit type from the backup benefit types according to the identity level of the target user and the benefit value of the backup benefit type.
[0103] S607, selecting a target equity from the available equity corresponding to the target equity type.
[0104] S608: The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value.
[0105] S609, deduct the target resource value from the payment account of the target user.
[0106] The specific process of the above 601-S609 can be found in the description of the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0107] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned 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-mentioned embodiments can 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.
[0108] 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.
[0109] In one embodiment, Figure 7 As shown, a transaction processing device 1 is provided, comprising: a request acquisition module 10, a selection module 20 and a transaction processing module 30, wherein:
[0110] A request acquisition module 10 is used to acquire a transaction request from a target user;
[0111] A selection module 20, configured to select a target equity from the available equity when available equity is detected;
[0112] The transaction processing module 30 is used to process the transaction request according to the target equity.
[0113] The transaction processing device obtains the transaction request of the target user, and selects the target equity from the available equity if there is available equity, and further processes the transaction request according to the target equity. The above scheme makes available equity in advance, and directly retrieves the target equity from the available equity for the user when available equity is detected, and can quickly and accurately return the equity amount without calculation, thereby improving the speed of the system responding to user requests; further, the transaction request is directly processed according to the target equity, and the user can use it directly without actively claiming the equity, thereby improving the user experience and satisfaction.
[0114] In one embodiment, Figure 7 On the basis of Figure 8 As shown, the selection module 20 includes:
[0115] A determination unit 21, for determining the equity value of each equity type according to the equity quantity of the available equity under each equity type;
[0116] A first selection unit 22, configured to select a target equity type from each equity type according to the equity value and equity use rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user;
[0117] The second selection unit 23 is used to select a target equity from available equity corresponding to the target equity type.
[0118] In one embodiment, the first selection unit 22 is specifically configured to:
[0119] According to the rights and interests usage rules of each rights and interests type and the transaction resource value corresponding to the transaction request, the backup rights and interests type is determined from each rights and interests type; according to the identity level of the target user and the rights and interests value of the backup rights and interests type, the target rights and interests type is determined from the backup rights and interests type.
[0120] In one embodiment, the determining unit 21 is specifically configured to:
[0121] The sum of the equity quantities of available equity under each equity type is taken as the total equity quantity; the equity value of each equity type is determined based on the ratio of the equity quantities of available equity under each equity type to the total equity quantity.
[0122] In one embodiment, the selection module 20 may also be used to:
[0123] According to the transaction resource value corresponding to the transaction request, determine whether the target user has the right to use the rights; if the target user has the right to use the rights, select the target rights from the available rights.
[0124] In one embodiment, the transaction processing module 30 is specifically used to:
[0125] The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value; and the target resource value is deducted from the payment account of the target user.
[0126] 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.
[0127] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. 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 data such as available rights and user identity levels. 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 through a network connection. When the computer program is executed by the processor, a transaction processing method is implemented.
[0128] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0129] In an exemplary 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:
[0130] Obtain the target user's transaction request;
[0131] In the case where available interests are detected, a target interest is selected from the available interests;
[0132] The transaction request is processed according to the target equity.
[0133] In one embodiment, when the processor executes the computer program to select the target equity from the available equity, the processor further implements the following steps:
[0134] Determine the equity value of each equity type according to the equity quantity of available equity under each equity type; select a target equity type from each equity type according to the equity value and equity usage rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user; and select a target equity from the available equity corresponding to the target equity type.
[0135] In one embodiment, when the processor executes the computer program to select the target equity type from each equity type according to the equity value and equity usage rules of each equity type, the transaction resource value corresponding to the transaction request and the identity level of the target user, the following steps are also implemented:
[0136] According to the rights and interests usage rules of each rights and interests type and the transaction resource value corresponding to the transaction request, the backup rights and interests type is determined from each rights and interests type; according to the identity level of the target user and the rights and interests value of the backup rights and interests type, the target rights and interests type is determined from the backup rights and interests type.
[0137] In one embodiment, when the processor executes the computer program to determine the equity value of each equity type based on the equity quantity of the available equity under each equity type, the processor further implements the following steps:
[0138] The sum of the equity quantities of available equity under each equity type is taken as the total equity quantity; the equity value of each equity type is determined based on the ratio of the equity quantities of available equity under each equity type to the total equity quantity.
[0139] In one embodiment, when the processor executes the computer program to select the target equity from the available equity, the processor further implements the following steps:
[0140] According to the transaction resource value corresponding to the transaction request, determine whether the target user has the right to use the rights; if the target user has the right to use the rights, select the target rights from the available rights.
[0141] In one embodiment, when the processor executes the computer program to process the transaction request according to the target equity, the processor further implements the following steps:
[0142] The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value;
[0143] The target resource value is deducted from the target user's payment account.
[0144] 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:
[0145] Obtain the target user's transaction request;
[0146] In the case where available interests are detected, a target interest is selected from the available interests;
[0147] The transaction request is processed according to the target equity.
[0148] In one embodiment, when the computer program selects a target equity from available equity and is executed by a processor, the following steps are further implemented:
[0149] Determine the equity value of each equity type according to the equity quantity of available equity under each equity type; select a target equity type from each equity type according to the equity value and equity usage rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user; and select a target equity from the available equity corresponding to the target equity type.
[0150] In one embodiment, the computer program selects a target equity type from each equity type according to the equity value and equity usage rules of each equity type, the transaction resource value corresponding to the transaction request, and the identity level of the target user, and when executed by the processor, further implements the following steps:
[0151] According to the rights and interests usage rules of each rights and interests type and the transaction resource value corresponding to the transaction request, the backup rights and interests type is determined from each rights and interests type; according to the identity level of the target user and the rights and interests value of the backup rights and interests type, the target rights and interests type is determined from the backup rights and interests type.
[0152] In one embodiment, when the computer program is executed by a processor to determine the equity value of each equity type based on the equity quantity of the available equity under each equity type, the following steps are also implemented:
[0153] The sum of the equity quantities of available equity under each equity type is taken as the total equity quantity; the equity value of each equity type is determined based on the ratio of the equity quantities of available equity under each equity type to the total equity quantity.
[0154] In one embodiment, when the computer program selects a target equity from available equity and is executed by a processor, the following steps are further implemented:
[0155] According to the transaction resource value corresponding to the transaction request, determine whether the target user has the right to use the rights; if the target user has the right to use the rights, select the target rights from the available rights.
[0156] In one embodiment, the computer program processes the transaction request according to the target equity and when executed by the processor, further implements the following steps:
[0157] The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value;
[0158] The target resource value is deducted from the target user's payment account.
[0159] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0160] Obtain the target user's transaction request;
[0161] In the case where available interests are detected, a target interest is selected from the available interests;
[0162] The transaction request is processed according to the target equity.
[0163] In one embodiment, when the computer program selects a target equity from available equity and is executed by a processor, the following steps are further implemented:
[0164] Determine the equity value of each equity type according to the equity quantity of available equity under each equity type; select a target equity type from each equity type according to the equity value and equity usage rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user; and select a target equity from the available equity corresponding to the target equity type.
[0165] In one embodiment, the computer program selects a target equity type from each equity type according to the equity value and equity usage rules of each equity type, the transaction resource value corresponding to the transaction request, and the identity level of the target user, and when executed by the processor, further implements the following steps:
[0166] According to the rights and interests usage rules of each rights and interests type and the transaction resource value corresponding to the transaction request, the backup rights and interests type is determined from each rights and interests type; according to the identity level of the target user and the rights and interests value of the backup rights and interests type, the target rights and interests type is determined from the backup rights and interests type.
[0167] In one embodiment, when the computer program is executed by a processor to determine the equity value of each equity type based on the equity quantity of the available equity under each equity type, the following steps are also implemented:
[0168] The sum of the equity quantities of available equity under each equity type is taken as the total equity quantity; the equity value of each equity type is determined based on the ratio of the equity quantities of available equity under each equity type to the total equity quantity.
[0169] In one embodiment, when the computer program selects a target equity from available equity and is executed by a processor, the following steps are further implemented:
[0170] According to the transaction resource value corresponding to the transaction request, determine whether the target user has the right to use the rights; if the target user has the right to use the rights, select the target rights from the available rights.
[0171] In one embodiment, the computer program processes the transaction request according to the target equity and when executed by the processor, further implements the following steps:
[0172] The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value;
[0173] The target resource value is deducted from the target user's payment account.
[0174] It should be noted that the user information involved in this application (including but not limited to user identity level information, etc.) is all information authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant information must comply with relevant regulations.
[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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.
[0176] 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.
[0177] The above-described 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, It is characterized in that The method comprises: Obtain the target user's transaction request; In the case of detecting that there are available interests, selecting a target interest from the available interests; The transaction request is processed according to the target equity.
2. The method according to claim 1, It is characterized in that The selecting a target equity from the available equity comprises: Determine the equity value of each equity type based on the equity quantity available under each equity type; Selecting a target equity type from each equity type according to the equity value and equity usage rules of each equity type, as well as the transaction resource value corresponding to the transaction request and the identity level of the target user; A target equity is selected from the available equity corresponding to the target equity type.
3. The method according to claim 2, It is characterized in that The selecting a target equity type from each equity type according to the equity value and equity use rules of each equity type, the transaction resource value corresponding to the transaction request and the identity level of the target user, includes: Determine a backup equity type from each equity type according to the equity use rules of each equity type and the transaction resource value corresponding to the transaction request; According to the identity level of the target user and the equity value of the backup equity type, a target equity type is determined from the backup equity types.
4. The method according to claim 2, It is characterized in that The equity value of each equity type is determined according to the equity quantity of the available equity under each equity type, including: The sum of the equity quantities of available equity under each equity type is taken as the total equity quantity; The equity value of each equity type is determined based on the ratio of the equity quantity of the available equity under each equity type to the total equity quantity.
5. The method according to claim 1, It is characterized in that The selecting a target equity from the available equity comprises: Determining whether the target user has rights to use the rights and interests according to the transaction resource value corresponding to the transaction request; If the target user has the right to use the rights, the target rights are selected from the available rights.
6. The method according to claim 1, It is characterized in that The processing of the transaction request according to the target equity includes: The difference between the equity value corresponding to the target equity and the transaction resource value corresponding to the transaction request is used as the target resource value; The target resource value is deducted from the payment account of the target user.
7. A transaction processing device, It is characterized in that The device comprises: A request acquisition module is used to obtain the transaction request of the target user; A selection module, configured to select a target equity from the available equity when detecting that there is available equity; The transaction processing module is used to process the transaction request according to the target equity.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that 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, It is 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, It is 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.
