Virtual resource value determination method and device, equipment, storage medium and program product
By determining the target virtual resource calculation strategy based on the merchant type and calculating the virtual resource value of the product order, the problem of insufficient flexibility in the calculation method of virtual resource value in traditional technology is solved, and flexible and efficient commission calculation is achieved.
Patent Information
- Application Number
- CN202411180755.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In traditional technology, the virtual resource value calculation method is poor in flexibility and it is difficult to adapt to the commission calculation needs of different merchant types.
Determine the merchant type identification based on the merchant information of the product order, select the corresponding target virtual resource calculation strategy, and calculate the virtual resource value through transaction parameters and strategies, supporting diversified computing strategies to improve flexibility.
It has achieved flexibility in the calculation method of virtual resource value, and can quickly and accurately determine the commission amount according to different merchant types, simplified the reconciliation process between e-commerce platforms and merchants, and improved transaction efficiency.
Smart Images

Figure CN119006115A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of commission settlement, and in particular to a method, apparatus, computer equipment, computer-readable storage medium and computer program product for determining a virtual resource value. Background Art
[0002] In the field of online shopping, e-commerce platforms provide commodity trading services for merchants and users. Generally, merchants on e-commerce platforms can be divided into self-operated merchants and matchmaking merchants. Self-operated merchants refer to merchants whose commodity trading process is monitored and managed by the e-commerce platform, and matchmaking merchants refer to merchants whose e-commerce platforms only provide trading services and do not participate in the commodity trading process.
[0003] In traditional technology, the e-commerce platform calculates the virtual resource value that merchants need to pay based on a fixed virtual resource value ratio. However, there is a problem in the flexibility of the virtual resource value calculation method in traditional technology. Summary of the invention
[0004] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium and computer program product for determining virtual resource values that can improve the flexibility of the virtual resource value calculation method in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for determining a virtual resource value. The method comprises:
[0006] Determine, according to the merchant information corresponding to the product order, a merchant type identifier corresponding to the merchant information;
[0007] Determining, according to the merchant type identifier, a target virtual resource calculation strategy corresponding to the merchant type identifier;
[0008] The virtual resource value corresponding to the commodity order is determined according to the transaction parameters of the commodity order and the target virtual resource calculation strategy.
[0009] In one embodiment, determining the virtual resource value corresponding to the commodity order according to the transaction parameters of the commodity order and the target virtual resource calculation strategy includes:
[0010] Multiplying the actual paid resource value included in the commodity order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result;
[0011] The virtual resource value is determined according to the multiplication result.
[0012] In one embodiment, determining the virtual resource value according to the multiplication result includes:
[0013] In a case where the merchant type represented by the merchant type identifier is the first type, the multiplication result is determined as the virtual resource value.
[0014] In one embodiment, determining the virtual resource value according to the multiplication result includes:
[0015] When the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and the resource conversion ratio of the commodity order, and the first type and the second type are different;
[0016] Calculating the service resource value corresponding to the commodity order according to the actual paid resource value, the purchased resource value and the resource conversion ratio;
[0017] The virtual resource value is determined according to the service resource value and the multiplication result.
[0018] In one embodiment, determining the virtual resource value according to the service resource value and the multiplication result includes:
[0019] According to the merchant information, obtaining a virtual resource weight corresponding to the merchant information;
[0020] The virtual resource weight is used to perform statistical processing on the service resource value and the multiplication result to obtain the virtual resource value.
[0021] In one embodiment, the method further comprises:
[0022] At the end of a transaction cycle, a bill corresponding to the merchant information in the transaction cycle is generated according to at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
[0023] In one of the embodiments, determining the target virtual resource calculation strategy corresponding to the merchant type identifier according to the merchant type identifier includes:
[0024] According to the merchant type identifier, determining whether there is a virtual resource computing policy associated with the merchant type identifier in the cache;
[0025] If the virtual resource computing policy exists in the cache, determining the virtual resource computing policy as the target virtual resource computing policy;
[0026] If the virtual resource calculation strategy does not exist in the cache, the target virtual resource calculation strategy is obtained from a database according to the merchant type identifier.
[0027] In a second aspect, the present application also provides a device for determining a virtual resource value. The device comprises:
[0028] A first determination module, configured to determine a merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order;
[0029] A second determination module, configured to determine, according to the merchant type identifier, a target virtual resource calculation strategy corresponding to the merchant type identifier;
[0030] The third determination module is used to determine the virtual resource value corresponding to the commodity order according to the transaction parameters of the commodity order and the target virtual resource calculation strategy.
[0031] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0033] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0034] The above-mentioned method, apparatus, computer device, computer-readable storage medium and computer program product for determining virtual resource values, the terminal determines the merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the commodity order, then, according to the merchant type identifier, determines the target virtual resource calculation strategy corresponding to the merchant type identifier, and then, according to the transaction parameters of the commodity order and the target virtual resource calculation strategy, determines the virtual resource value corresponding to the commodity order. Since the corresponding target virtual resource calculation strategy is determined according to the determined merchant type identifier, the virtual resource value corresponding to the commodity order can be determined according to the target virtual resource calculation strategy, so that the terminal can adopt a variety of virtual resource calculation strategies to determine the virtual resource values corresponding to various merchant types, thereby improving the flexibility of the virtual resource value calculation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 is a flow chart of a method for determining a virtual resource value in one embodiment;
[0037] Figure 2 is a schematic diagram of the process of S103 in one embodiment;
[0038] Figure 3 is a schematic diagram of the process of S202 in one embodiment;
[0039] Figure 4 is a schematic diagram of the process of S303 in one embodiment;
[0040] Figure 5 is a schematic diagram of the process of S102 in one embodiment;
[0041] Figure 6 is a structural block diagram of a device for determining a virtual resource value in one embodiment;
[0042] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0043] 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.
[0044] In one embodiment, Figure 1 As shown, a method for determining a virtual resource value is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0045] S101, determining a merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order.
[0046] It should be noted that during the e-commerce transaction process, the terminal can receive a product order triggered by a user through a computer device or a smart phone, and then calculate the commission amount that the merchant corresponding to the product order needs to pay to the e-commerce platform based on the product order. Since different types of merchants correspond to different commission calculation methods, the terminal can determine the corresponding merchant type based on the product order, and then calculate the commission amount based on the commission calculation method corresponding to the merchant type.
[0047] Among them, a product order refers to the order information generated after a user completes a product transaction on an e-commerce platform. The product order may include the selling price, selling quantity, name or number of the merchant where the product comes from, and other information of each product in the product order. Optionally, a product order may include products from one merchant, and one product order corresponds to one merchant information; or, a product order may include products from multiple merchants, and one product order corresponds to multiple merchant information.
[0048] In this embodiment, when receiving a product order, the terminal can perform text processing on the product order to identify which merchant the products in the product order come from, and then obtain the merchant information corresponding to the product order, and then determine the merchant type identifier corresponding to the merchant information according to the preset merchant type identifier. Exemplarily, if the merchant information indicates that the merchant is a self-operated merchant, the corresponding merchant type identifier can be a self-operated identifier; or, if the merchant information indicates that the merchant is a matchmaking merchant, the corresponding merchant type identifier can be a matchmaking identifier.
[0049] S102: Determine a target virtual resource calculation strategy corresponding to the merchant type identifier according to the merchant type identifier.
[0050] Among them, the virtual resource calculation strategy refers to the method of calculating the commission amount. Different merchant types correspond to different virtual resource calculation strategies. Therefore, it is necessary to determine the virtual resource calculation strategy corresponding to the product order according to the merchant type identifier, and determine the virtual resource calculation strategy corresponding to each merchant type identifier as the target virtual resource calculation strategy.
[0051] In this embodiment, the terminal may determine the target virtual resource calculation strategy corresponding to the merchant type identifier from the mapping relationship between a plurality of preset virtual resource calculation strategies and the corresponding merchant type identifiers according to the merchant type identifier.
[0052] S103, determining the virtual resource value corresponding to the commodity order according to the transaction parameters of the commodity order and the target virtual resource calculation strategy.
[0053] Among them, the order transaction parameters of the commodity order refer to the actual transaction information of each commodity order, such as the sales amount, sales quantity, purchase unit price, purchase quantity, commodity tax rate, etc., and the virtual resource value refers to the commission amount that the merchant needs to pay to the e-commerce platform.
[0054] In this embodiment, the terminal can calculate the commission amount corresponding to the transaction parameters of the commodity order according to the calculation method of the commission amount corresponding to the target virtual resource calculation strategy, thereby determining the virtual resource value corresponding to the commodity order. It can be understood that one commodity order corresponds to one virtual resource value, and multiple commodity orders correspond to multiple virtual resource values.
[0055] In the above-mentioned method for determining the virtual resource value, the terminal determines the merchant type identifier corresponding to the merchant information based on the merchant information corresponding to the product order, and then determines the target virtual resource calculation strategy corresponding to the merchant type identifier based on the merchant type identifier. Then, the virtual resource value corresponding to the product order is determined based on the transaction parameters of the product order and the target virtual resource calculation strategy. Since the corresponding target virtual resource calculation strategy is determined based on the determined merchant type identifier, the virtual resource value corresponding to the product order can be determined based on the target virtual resource calculation strategy, so that the terminal can adopt a variety of virtual resource calculation strategies to determine the virtual resource values corresponding to various merchant types, thereby improving the flexibility of the virtual resource value calculation method.
[0056] In the above scenario where the virtual resource value corresponding to the commodity order is determined based on the transaction parameters of the commodity order and the target virtual resource calculation strategy, the virtual resource value can be calculated based on the ratio of the transaction parameters to the virtual resource value in the target virtual resource calculation strategy. Figure 2 As shown, the above S103 may include:
[0057] S201, multiplying the actual paid resource value included in the product order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result.
[0058] Among them, the actual paid resource value refers to the amount actually paid by the user. It should be noted that in commodity transactions, merchants or e-commerce platforms can set different preferential strategies to reduce part of the amount to be paid, so that the actual paid resource value corresponding to the commodity order is less than the payable resource value. Therefore, the virtual resource value paid by the merchant to the e-commerce platform can be calculated based on the actual paid resource value corresponding to the commodity order.
[0059] The virtual resource value ratio refers to the percentage of the commission amount paid by the merchant to the e-commerce platform in the commodity transaction to the total transaction amount. For example, if the virtual resource value ratio is 60%, the merchant needs to pay 60% of the total transaction amount to the e-commerce platform as the virtual resource value. The multiplication result can represent the commission amount that the merchant needs to pay to the e-commerce platform based on the actual paid resource value corresponding to the commodity order.
[0060] In this embodiment, the terminal can obtain the actual paid resource value from the product order and the virtual resource value ratio in the target virtual resource calculation strategy, and then multiply the actual paid resource value and the virtual resource value ratio to obtain the multiplication result.
[0061] S202: Determine the virtual resource value according to the multiplication result.
[0062] It is understandable that the calculation method of the virtual resource value corresponding to each virtual resource calculation strategy is different. After obtaining the multiplication result between the actual paid resource value and the virtual resource value ratio, the terminal can further determine the virtual resource value based on the multiplication result and the corresponding virtual resource value calculation method.
[0063] In this embodiment, the terminal may further determine the virtual resource value corresponding to the commodity order according to the multiplication result and the determined merchant type corresponding to the commodity order.
[0064] In an embodiment of the present application, the terminal can obtain a multiplication result by multiplying the actual paid resource value included in the product order and the ratio of the virtual resource value in the target virtual resource calculation strategy, and then determine the virtual resource value based on the multiplication result. Since the process of obtaining the multiplication result is relatively simple, the multiplication result can be obtained quickly, so that the virtual resource value can be quickly determined based on the multiplication result, thereby improving the efficiency of determining the virtual resource value.
[0065] It is understandable that for different merchant types, the target virtual resource calculation strategy has different corresponding calculation methods, and the terminal can determine the virtual resource value corresponding to the product order according to different calculation methods and multiplication results.
[0066] In a possible implementation, the above S202 may include: when the merchant type represented by the merchant type identifier is the first type, determining the multiplication result as the virtual resource value.
[0067] The first type may be a self-operated merchant type. In this implementation, the terminal may directly determine the multiplication result as the virtual resource value when the merchant type represented by the merchant type identifier is the first type.
[0068] In this implementation, when the merchant type is the first type, the multiplication result can be directly determined as the virtual resource value, so that the virtual resource value can be quickly determined.
[0069] In another possible implementation, Figure 3 As shown, the above S202 may include:
[0070] S301, when the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and resource conversion ratio of the commodity order, and the first type and the second type are different.
[0071] Among them, the second type can be matchmaking merchants. For matchmaking merchants, the e-commerce platform can calculate the service resource value based on the multiplication result of the ratio of actual paid resource value and virtual resource value, and further consider the purchase price of the goods, commodity tax rate and other information to calculate the additional addition or reduction of the commission amount.
[0072] Among them, the purchase resource value refers to the purchase unit price corresponding to the goods included in the commodity order, and the resource conversion ratio refers to the commodity tax rate corresponding to the goods included in the commodity order. Optionally, if the commodity order includes multiple commodities, it is necessary to obtain the purchase resource value and resource conversion ratio corresponding to each commodity. In this embodiment, when the merchant type represented by the merchant type identifier is the second type, the terminal can obtain the purchase resource value and resource conversion ratio pre-stored in the merchant information corresponding to the commodity order, and then filter out the purchase resource value and resource conversion ratio corresponding to the commodities in the commodity order.
[0073] S302, calculating the service resource value corresponding to the commodity order according to the actual paid resource value, the purchased resource value and the resource conversion ratio.
[0074] The service resource value refers to the service fee corresponding to the transaction platform and transaction service provided by the e-commerce platform to the matching merchants. In this embodiment, the terminal can input the actual paid resource value, the purchased resource value and the resource conversion ratio into the preset service resource value calculation formula to obtain the service resource value, and the calculation formula of the service resource value can be:
[0075]
[0076] Here, a refers to the calculation ratio of the service resource value set by the e-commerce platform according to the business type corresponding to the second type of merchant. For example, the business type can be electrical appliances, clothing, and food. Different calculation ratios can be set for different business types.
[0077] S303: Determine the virtual resource value according to the service resource value and the multiplication result.
[0078] Optionally, in this embodiment, the sum of the service resource value and the multiplication result may be determined as the virtual resource value; or, in a possible implementation manner, as Figure 4 As shown, the above S303 may include:
[0079] S401, obtaining a virtual resource weight corresponding to the merchant information according to the merchant information.
[0080] It should be noted that, for different second-type merchants, in the calculation method of the virtual resource value, the e-commerce platform can set different virtual resource weights for each merchant, wherein the virtual resource weight is used to calculate the virtual resource value.
[0081] In this embodiment, the terminal may obtain the virtual resource weight corresponding to the merchant information from a plurality of preset virtual resource weights according to the merchant information.
[0082] S402, using the virtual resource weight, statistically process the service resource value and the multiplication result to obtain the virtual resource value.
[0083] In this embodiment, the first virtual resource weight corresponding to the service resource value can be determined according to the obtained virtual resource weight, and the first product of the service resource value and the first virtual resource weight and the second virtual resource weight corresponding to the multiplication result can be calculated, and the second product of the multiplication result and the second virtual resource weight can be calculated, and then the sum of the first product and the second product is used as the virtual resource value.
[0084] The terminal obtains the virtual resource weight corresponding to the merchant information based on the merchant information, and then uses the virtual resource weight to perform statistical processing on the service resource value and the multiplication result to obtain the virtual resource value, so that different virtual resource weights can be set for different merchants, further enriching the calculation method of the virtual resource value, thereby improving the flexibility of the calculation method of the virtual resource value.
[0085] In this embodiment, when the merchant type is the second type, the terminal can obtain the purchasing resource value and resource conversion ratio of the commodity order, and then calculate the service resource value corresponding to the commodity order based on the actual resource value, the purchasing resource value and the resource conversion ratio. Then, the virtual resource value is determined based on the service resource value and the multiplication result. On the basis of the multiplication result, the multiplication result can be further added or subtracted based on the service resource value, thereby enriching the calculation method of the virtual resource value corresponding to the second type of merchant, thereby improving the flexibility of the virtual resource value calculation method.
[0086] In an exemplary embodiment, the method further includes: at the end of a transaction cycle, generating a bill corresponding to the merchant information within the transaction cycle based on at least one commodity order corresponding to the merchant information within the transaction cycle and the virtual resource value corresponding to the commodity order.
[0087] The transaction cycle refers to the time period from the start to the end of a transaction. Different transaction cycles correspond to different transaction strategies. For example, 30 days can be used as a transaction cycle, or 40 days can be used as a transaction cycle. In this embodiment, a bill corresponding to the merchant information can be generated according to the transaction cycle. It is understandable that within a transaction cycle, one merchant information can correspond to multiple product orders.
[0088] In this embodiment, at the end of a transaction cycle, the terminal can count multiple product orders corresponding to each merchant information and the virtual resource value corresponding to each product order within the transaction cycle, and determine the statistical result as a bill corresponding to each merchant information.
[0089] In an embodiment of the present application, at the end of a transaction cycle, the terminal generates a bill for the merchant information within the transaction cycle based on at least one product order corresponding to the merchant information within the transaction cycle and the virtual resource value corresponding to the product order, thereby simplifying the reconciliation process between the e-commerce platform and each merchant and improving transaction efficiency.
[0090] In the above scenario of determining the target virtual resource calculation strategy corresponding to the merchant type identifier according to the merchant type identifier, the target virtual resource calculation strategy can be obtained from the cache of the server, or the target virtual resource calculation strategy can be obtained from the database. Figure 5 As shown, the above S102 may include:
[0091] S501: Determine, according to the merchant type identifier, whether there is a virtual resource computing policy associated with the merchant type identifier in the cache.
[0092] It is understandable that in the process of determining the merchant type identifier corresponding to the merchant information,
[0093] In this embodiment, the terminal can compare the merchant type identifier with the merchant type identifier already in the cache, determine whether the same merchant type identifier exists in the cache based on the comparison result, and then, if the same merchant type identifier exists in the cache, further determine whether there is a virtual resource computing policy associated with the merchant type identifier in the cache.
[0094] S502: If the virtual resource computing policy exists in the cache, the virtual resource computing policy is determined as the target virtual resource computing policy.
[0095] In this embodiment, if a virtual resource calculation policy associated with the merchant type identifier exists in the cache, the virtual resource calculation policy can be directly obtained from the cache, and the virtual resource calculation policy is determined as the target virtual resource calculation policy.
[0096] S503: If the virtual resource calculation strategy does not exist in the cache, obtain the target virtual resource calculation strategy from the database according to the merchant type identifier.
[0097] In this embodiment, if the virtual resource calculation policy associated with the merchant type identifier does not exist in the cache, it is necessary to search the virtual resource calculation policy associated with the merchant type identifier from the database, and then, if a virtual resource calculation policy identical to the virtual resource calculation policy associated with the merchant type identifier is found, the virtual resource policy is determined as the target virtual resource calculation policy.
[0098] In an embodiment of the present application, the terminal determines whether there is a virtual resource calculation policy associated with the merchant type identifier in the cache based on the merchant type identifier. If the virtual resource calculation policy exists in the cache, the terminal can determine the virtual resource calculation policy as the target virtual resource calculation policy, thereby quickly determining the target virtual resource calculation policy, improving the efficiency of determining the target virtual resource calculation policy, and further optimizing the time for generating the bill corresponding to the merchant based on the target virtual resource calculation policy; or, if the virtual resource calculation policy does not exist in the cache, the target virtual resource calculation policy is obtained from the database based on the merchant type identifier to obtain the target virtual resource calculation policy.
[0099] To facilitate understanding by those skilled in the art, the following is a detailed introduction to the method for determining the virtual resource value provided by the present application. The method may include:
[0100] S1. Determine a merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order.
[0101] S2: Determine, according to the merchant type identifier, whether there is a virtual resource computing policy associated with the merchant type identifier in the cache.
[0102] S3: If the virtual resource computing policy exists in the cache, the virtual resource computing policy is determined as the target virtual resource computing policy.
[0103] S4: If the virtual resource calculation strategy does not exist in the cache, the target virtual resource calculation strategy is obtained from the database according to the merchant type identifier.
[0104] S5, multiplying the actual paid resource value included in the commodity order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result.
[0105] S6. When the merchant type represented by the merchant type identifier is the first type, determine the multiplication result as the virtual resource value.
[0106] S7, when the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and the resource conversion ratio of the commodity order, and the first type and the second type are different.
[0107] S8, calculating the service resource value corresponding to the commodity order according to the actual paid resource value, the purchased resource value and the resource conversion ratio.
[0108] S9, obtaining a virtual resource weight corresponding to the merchant information according to the merchant information.
[0109] S10, using the virtual resource weight, statistically processing the service resource value and the multiplication result to obtain the virtual resource value.
[0110] S11, at the end of a transaction cycle, generating a bill corresponding to the merchant information in the transaction cycle according to at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
[0111] It should be noted that for the descriptions in the above S1-S11, reference may be made to the relevant descriptions in the above embodiments, and the effects are similar, so this embodiment will not be repeated here.
[0112] 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.
[0113] Based on the same inventive concept, the embodiment of the present application also provides a device for determining a virtual resource value for implementing the method for determining a virtual resource value involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for determining one or more virtual resource values provided below can refer to the limitations of the method for determining a virtual resource value above, and will not be repeated here.
[0114] In one embodiment, Figure 6As shown, a device for determining a virtual resource value is provided, comprising: a first determining module 601, a second determining module 602 and a third determining module 603, wherein:
[0115] The first determining module 601 is used to determine the merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order.
[0116] The second determination module 602 is used to determine the target virtual resource calculation strategy corresponding to the merchant type identifier according to the merchant type identifier.
[0117] The third determination module 603 is used to determine the virtual resource value corresponding to the commodity order according to the transaction parameters of the commodity order and the target virtual resource calculation strategy.
[0118] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0119] In one embodiment, the third determination module 603 includes: a first acquisition unit and a first determination unit, wherein:
[0120] The first acquisition unit is used to multiply the actual paid resource value included in the commodity order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result.
[0121] The first determining unit is used to determine the virtual resource value according to the multiplication result.
[0122] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0123] In one embodiment, the determination unit is specifically configured to determine the multiplication result as the virtual resource value when the merchant type represented by the merchant type identifier is the first type.
[0124] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0125] In one embodiment, the above-mentioned determination unit is specifically used to obtain the purchasing resource value and the resource conversion ratio of the commodity order when the merchant type represented by the merchant type identifier is the second type, and the first type and the second type are different; calculate the service resource value corresponding to the commodity order according to the actual paid resource value, the purchasing resource value and the resource conversion ratio; determine the virtual resource value according to the service resource value and the multiplication result.
[0126] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0127] In one embodiment, the determination unit is specifically used to obtain the virtual resource weight corresponding to the merchant information according to the merchant information; and perform statistical processing on the service resource value and the multiplication result using the virtual resource weight to obtain the virtual resource value.
[0128] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0129] In one embodiment, the above device further includes: a generating module, wherein:
[0130] The generation module is used to generate a bill corresponding to the merchant information in the transaction cycle at the end of a transaction cycle based on at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
[0131] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0132] In one embodiment, the second determination module 602 includes: a second determination unit, a third determination unit, and a second acquisition unit, wherein:
[0133] The second determining unit is used to determine whether there is a virtual resource computing strategy associated with the merchant type identifier in the cache according to the merchant type identifier.
[0134] The third determining unit is configured to determine the virtual resource computing policy as the target virtual resource computing policy if the virtual resource computing policy exists in the cache.
[0135] The second acquisition unit is configured to acquire the target virtual resource calculation strategy from the database according to the merchant type identifier if the virtual resource calculation strategy does not exist in the cache.
[0136] The device for determining the virtual resource value provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0137] Each module in the above-mentioned device for determining the virtual resource value can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules 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 operations corresponding to each of the above modules.
[0138] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. 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 through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through 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 the 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 can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for determining a virtual resource value is implemented. The display unit of the computer device is used to form a visually visible picture, which can 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.
[0139] Those skilled in the art will understand that Figure 7 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.
[0140] 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:
[0141] Determine the merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order;
[0142] According to the merchant type identifier, determine the target virtual resource calculation strategy corresponding to the merchant type identifier;
[0143] According to the transaction parameters of the commodity order and the target virtual resource calculation strategy, the virtual resource value corresponding to the commodity order is determined.
[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0145] Multiplying the actual paid resource value included in the product order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result;
[0146] The virtual resource value is determined according to the multiplication result.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] When the merchant type represented by the merchant type identifier is the first type, the multiplication result is determined as the virtual resource value.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] When the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and the resource conversion ratio of the commodity order, the first type and the second type are different;
[0151] Calculate the service resource value corresponding to the product order based on the actual paid resource value, the purchased resource value and the resource conversion ratio;
[0152] The virtual resource value is determined according to the service resource value and the multiplication result.
[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0154] According to the merchant information, obtain the virtual resource weight corresponding to the merchant information;
[0155] The virtual resource weight is used to perform statistical processing on the service resource value and the multiplication result to obtain the virtual resource value.
[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0157] At the end of a transaction cycle, a bill corresponding to the merchant information in the transaction cycle is generated according to at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] According to the merchant type identifier, determining whether there is a virtual resource computing policy associated with the merchant type identifier in the cache;
[0160] If the virtual resource computing policy exists in the cache, the virtual resource computing policy is determined as the target virtual resource computing policy;
[0161] If the virtual resource calculation strategy does not exist in the cache, the target virtual resource calculation strategy is obtained from the database according to the merchant type identifier.
[0162] 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:
[0163] Determine the merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order;
[0164] According to the merchant type identifier, determine the target virtual resource calculation strategy corresponding to the merchant type identifier;
[0165] According to the transaction parameters of the commodity order and the target virtual resource calculation strategy, the virtual resource value corresponding to the commodity order is determined.
[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0167] Multiplying the actual paid resource value included in the product order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result;
[0168] The virtual resource value is determined according to the multiplication result.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] When the merchant type represented by the merchant type identifier is the first type, the multiplication result is determined as the virtual resource value.
[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0172] When the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and the resource conversion ratio of the commodity order, the first type and the second type are different;
[0173] Calculate the service resource value corresponding to the product order based on the actual paid resource value, the purchased resource value and the resource conversion ratio;
[0174] The virtual resource value is determined according to the service resource value and the multiplication result.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] According to the merchant information, obtain the virtual resource weight corresponding to the merchant information;
[0177] The virtual resource weight is used to perform statistical processing on the service resource value and the multiplication result to obtain the virtual resource value.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] At the end of a transaction cycle, a bill corresponding to the merchant information in the transaction cycle is generated according to at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0181] According to the merchant type identifier, determining whether there is a virtual resource computing policy associated with the merchant type identifier in the cache;
[0182] If the virtual resource computing policy exists in the cache, the virtual resource computing policy is determined as the target virtual resource computing policy;
[0183] If the virtual resource calculation strategy does not exist in the cache, the target virtual resource calculation strategy is obtained from the database according to the merchant type identifier.
[0184] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0185] Determine the merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order;
[0186] According to the merchant type identifier, determine the target virtual resource calculation strategy corresponding to the merchant type identifier;
[0187] According to the transaction parameters of the commodity order and the target virtual resource calculation strategy, the virtual resource value corresponding to the commodity order is determined.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] Multiplying the actual paid resource value included in the product order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result;
[0190] The virtual resource value is determined according to the multiplication result.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] When the merchant type represented by the merchant type identifier is the first type, the multiplication result is determined as the virtual resource value.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0194] When the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and the resource conversion ratio of the commodity order, the first type and the second type are different;
[0195] Calculate the service resource value corresponding to the product order based on the actual paid resource value, the purchased resource value and the resource conversion ratio;
[0196] The virtual resource value is determined according to the service resource value and the multiplication result.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] According to the merchant information, obtain the virtual resource weight corresponding to the merchant information;
[0199] The virtual resource weight is used to perform statistical processing on the service resource value and the multiplication result to obtain the virtual resource value.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] At the end of a transaction cycle, a bill corresponding to the merchant information in the transaction cycle is generated according to at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
[0202] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0203] According to the merchant type identifier, determining whether there is a virtual resource computing policy associated with the merchant type identifier in the cache;
[0204] If the virtual resource computing policy exists in the cache, the virtual resource computing policy is determined as the target virtual resource computing policy;
[0205] If the virtual resource calculation strategy does not exist in the cache, the target virtual resource calculation strategy is obtained from the database according to the merchant type identifier.
[0206] 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.
[0207] 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.
[0208] 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 method for determining a virtual resource value, characterized in that: The method comprises: Determine, according to the merchant information corresponding to the product order, a merchant type identifier corresponding to the merchant information; Determining, according to the merchant type identifier, a target virtual resource calculation strategy corresponding to the merchant type identifier; The virtual resource value corresponding to the commodity order is determined according to the transaction parameters of the commodity order and the target virtual resource calculation strategy.
2. The method according to claim 1, characterized in that The step of determining the virtual resource value corresponding to the commodity order according to the transaction parameters of the commodity order and the target virtual resource calculation strategy includes: Multiplying the actual paid resource value included in the commodity order and the virtual resource value ratio in the target virtual resource calculation strategy to obtain a multiplication result; The virtual resource value is determined according to the multiplication result.
3. The method according to claim 2, characterized in that The determining the virtual resource value according to the multiplication result includes: In a case where the merchant type represented by the merchant type identifier is the first type, the multiplication result is determined as the virtual resource value.
4. The method according to claim 2, characterized in that: The determining the virtual resource value according to the multiplication result includes: When the merchant type represented by the merchant type identifier is the second type, obtaining the purchase resource value and the resource conversion ratio of the commodity order, and the first type and the second type are different; Calculating the service resource value corresponding to the commodity order according to the actual paid resource value, the purchased resource value and the resource conversion ratio; The virtual resource value is determined according to the service resource value and the multiplication result.
5. The method according to claim 4, characterized in that The determining the virtual resource value according to the service resource value and the multiplication result includes: According to the merchant information, obtaining a virtual resource weight corresponding to the merchant information; The virtual resource weight is used to perform statistical processing on the service resource value and the multiplication result to obtain the virtual resource value.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: At the end of a transaction cycle, a bill corresponding to the merchant information in the transaction cycle is generated according to at least one commodity order corresponding to the merchant information in the transaction cycle and the virtual resource value corresponding to the commodity order.
7. The method according to claim 1, characterized in that The step of determining, according to the merchant type identifier, a target virtual resource calculation strategy corresponding to the merchant type identifier includes: According to the merchant type identifier, determining whether there is a virtual resource computing policy associated with the merchant type identifier in the cache; If the virtual resource computing policy exists in the cache, determining the virtual resource computing policy as the target virtual resource computing policy; If the virtual resource calculation strategy does not exist in the cache, the target virtual resource calculation strategy is obtained from a database according to the merchant type identifier.
8. A device for determining a virtual resource value, characterized in that: The device comprises: A first determination module, configured to determine a merchant type identifier corresponding to the merchant information according to the merchant information corresponding to the product order; A second determination module, configured to determine, according to the merchant type identifier, a target virtual resource calculation strategy corresponding to the merchant type identifier; The third determination module is used to determine the virtual resource value corresponding to the commodity order according to the transaction parameters of the commodity order and the target virtual resource calculation strategy.
9. 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 7 are implemented.
10. 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 7 are implemented.
11. 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 7 are implemented.
Citation Information
Patent Citations
Sub-account management method and device
CN111833169A
Payment service processing method and device, and machine readable storage medium
CN112465489A
Online payment account division method and device, server and storage medium
CN113469672A
Method, device and equipment based on proportional account division and storage medium
CN114549115A
