Resource Processing Method, Apparatus, Device, and Storage Medium
By automatically determining and transferring resources to the business provider account, the cumbersome resource process problems in the existing technology are solved, and resource processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202110303083.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2041-03-22
AI Technical Summary
In the prior art, the process of determining and collecting resources matching the services provided by the business provider is cumbersome, resulting in poor user experience and low applicability.
By responding to the business provider's resource quantity confirmation request, the target account is determined, and the corresponding resource quantity is automatically transferred to the business provider's account based on the business quantity, reducing the resource processing process of the business provider.
Improve resource processing efficiency, improve user experience and applicability, and simplify the resource acquisition process of business providers.
Smart Images

Figure CN115105837B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a resource processing method, apparatus, device, and storage medium. Background Art
[0002] With the continuous progress of computer technology, handling business online or choosing online services has become an indispensable part of the public's daily life. The public can obtain corresponding services by paying a certain amount of resources. For example, the public can exchange points for gifts and consume virtual consumption points to exchange for game time, etc.
[0003] However, in the existing mode, service providers (such as game service providers, APP operators, etc.) often need to determine and charge users for resources matching the provided services each time, which is a cumbersome process and will cause a poor user experience for both service providers and users, with poor applicability. Summary of the Invention
[0004] Embodiments of this application provide a resource processing method, apparatus, device, and storage medium, which can improve resource processing efficiency and have high applicability.
[0005] On the one hand, embodiments of this application provide a resource processing method, which includes:
[0006] In response to a resource quantity confirmation request sent by a service provider, determine a target account corresponding to the resource quantity confirmation request, where the resource quantity confirmation request includes the service quantity of a target service provided by the service provider to a user;
[0007] Based on the service quantity, determine a first resource quantity, and transfer the resource of the first resource quantity from the target account to the account corresponding to the service provider.
[0008] On the other hand, embodiments of this application provide a resource processing apparatus, which includes:
[0009] An account determination module, configured to determine a target account corresponding to the resource quantity confirmation request in response to the resource quantity confirmation request sent by the service provider, where the resource quantity confirmation request includes the service quantity of a target service provided by the service provider to a user;
[0010] A first resource transfer module, configured to determine a first resource quantity based on the service quantity, and transfer the resource of the first resource quantity from the target account to the account corresponding to the service provider.
[0011] On the other hand, embodiments of this application provide an electronic device, including a processor and a memory, and the processor and the memory are connected to each other;
[0012] The memory is used to store a computer program;
[0013] The above-mentioned processor is configured to execute the resource processing method provided in the embodiment of the present application when calling the above-mentioned computer program.
[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the resource processing method provided by the embodiment of the present application.
[0015] In another aspect, embodiments of the present application provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the resource processing method provided in embodiments of the present application.
[0016] In an embodiment of the present application, by obtaining the business volume of the target business sent by the business provider, the amount of resources that need to be transferred from the user account can be determined based on the business volume, so that the corresponding resources are transferred to the corresponding account of the business provider, so that the business provider does not need to determine the resources it needs to obtain, reducing the resource processing process of the business provider, and thus improving resource processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments 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 drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a flow chart of a resource processing method provided in an embodiment of the present application;
[0019] Figure 2a This is a schematic diagram of the relationship between a service provider and an account provided in an embodiment of the present application;
[0020] Figure 2b This is another schematic diagram of the relationship between the service provider and the account provided in the embodiment of the present application;
[0021] Figure 3 This is a schematic diagram of a resource transfer process provided by an embodiment of the present application;
[0022] Figure 4 This is another flowchart of the resource processing method provided in an embodiment of the present application;
[0023] Figure 5aIt is a schematic diagram of a scenario for service display provided by an embodiment of the present application;
[0024] Figure 5b It is another schematic diagram of a scenario for service display provided by an embodiment of the present application;
[0025] Figure 6 It is another schematic diagram of a process for transferring resources provided by an embodiment of the present application;
[0026] Figure 7 It is a schematic diagram of the architecture of a resource processing system provided by an embodiment of the present application;
[0027] Figure 8 It is a schematic diagram of a charging process provided by an embodiment of the present application;
[0028] Figure 9 It is a schematic diagram of a recharge process provided by an embodiment of the present application;
[0029] Figure 10 It is a schematic diagram of the structure of a resource processing device provided by an embodiment of the present application;
[0030] Figure 11 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0031] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0032] Refer to Figure 1 , Figure 1 It is a schematic diagram of a process of a resource processing method provided by an embodiment of the present application. As Figure 1 shown, the resource processing method provided by the embodiment of the present application may include the following steps:
[0033] Step S11, in response to a resource quantity confirmation request sent by a service provider, determine a target account corresponding to the resource quantity confirmation request, where the resource quantity confirmation request includes the service quantity of a target service provided by the service provider to the user.
[0034] In some feasible implementation manners, the above service provider may provide a service with a certain service quantity to the user. When the service provider provides a service with a certain service quantity to the user, it needs to obtain a certain resource quantity of resources. In other words, the user needs to pay a certain resource quantity of resources to exchange for using the service provided by the service provider.
[0035] For example, the service provider is a game operator. The game operator provides a certain amount of game time service to players, and this time duration needs to be exchanged with a certain amount of virtual assets by users.
[0036] For another example, the service provider is an APP operator. The APP operator provides a points redemption service for users to exchange points for good gifts, and users need to pay a certain amount of points to participate in the points redemption service.
[0037] In some feasible implementation manners, the business volume of the above target service is the provided duration or provided quantity corresponding to the target service, that is, the service provider provides the continuous duration or supply quantity of the target service to users. For example, if the above target service is to provide game time to players, the business volume of the above target service can be the game time actually provided by the game operator to players. If the above target service is points redemption for good gifts, the business volume of the above target service can be the actual redemption times of users.
[0038] It should be particularly noted that the specific business content of the service provided by the above service provider can be determined based on the actual application scenario requirements, and no limitation is made here.
[0039] In some feasible implementation manners, after the resource quantity confirmation request is used to determine the business volume of the target service provided by the service provider to users, the resource quantity (hereinafter referred to as the first resource quantity for convenience of description) of the obtained resources can be obtained. For example, if the above target service is to provide game time to players, the resource quantity confirmation request is used to confirm the virtual assets obtained corresponding to providing game time to players. If the above target service is points redemption for good gifts, the resource quantity confirmation request is used to confirm the points obtained corresponding to providing the points redemption for good gifts service to players.
[0040] Specifically, when the service provider provides the target service to users, a resource quantity confirmation request can be sent based on a preset time interval. The resource quantity confirmation request includes the business volume of the target service provided by the service provider to users in the corresponding time interval, so as to determine the first resource quantity corresponding to the business volume in each time interval.
[0041] Based on this, when the preset time interval is small enough, it is possible to send the resource quantity confirmation request in real time to determine the first resource quantity corresponding to the business volume of the target service included in the resource quantity confirmation request in real time.
[0042] Optionally, after the service provider provides the target service to users, it can determine the total business volume of the target service provided to users and send a resource quantity confirmation request including this business volume to determine the corresponding first resource quantity.
[0043] In some feasible implementation manners, after receiving the resource quantity confirmation request, the target account corresponding to the resource quantity confirmation request can be determined.
[0044] Among them, the target account corresponding to the resource quantity confirmation request is the account of the user corresponding to the service volume included in the resource quantity confirmation request. That is, if the resource quantity confirmation request includes the service volume of the target service provided by the service provider to the user, the account corresponding to the resource quantity confirmation request is the account corresponding to the user.
[0045] Specifically, in the case where there are multiple service providers, for any user, each service provider can share the same user account. That is, different service providers can provide services to the same user. When different service providers send resource quantity confirmation requests, the resource quantity confirmation requests of different service providers correspond to the same account of the user.
[0046] See Figure 2a , Figure 2a is a schematic diagram of the relationship between the service provider and the account provided by an embodiment of the present application. In Figure 2a , the accounts corresponding to user a, user b, and user c are account a, account b, and account c respectively. Service provider 1, service provider 2, and service provider 3 can respectively provide different services to the user, and service provider 1, service provider 2, and service provider 3 all correspond to one account of one user.
[0047] Furthermore, for any service provider, when the service provider sends a resource quantity confirmation request including the service volume of the target service provided to the user, the resource quantity confirmation request may include the user identifier of the user. Furthermore, when determining the target account corresponding to the resource quantity confirmation request sent by the service provider, the target account corresponding to the user can be determined according to the user identifier of the user, that is, the target account corresponding to the resource quantity confirmation request is determined.
[0048] Specifically, under the requests of multiple service providers, for any user, each service provider corresponds to one account of the user. For example, different game duration suppliers all correspond to their respective player groups (users). A certain player can be a user of different game duration suppliers. Therefore, different game duration suppliers can respectively correspond to one account of the player.
[0049] See Figure 2b , Figure 2b is another schematic diagram of the relationship between the service provider and the account provided by an embodiment of the present application. In Figure 2bIn the example, users A, B, and C each have an account with each service provider. Service provider 1 has accounts A1 for user A, B1 for user B, and C1 for user C. Service provider 2 has accounts A2 for user A, B2 for user B, and C2 for user C. Service provider 3 has accounts A3 for user A, B3 for user B, and C3 for user C.
[0050] Furthermore, for any service provider, when the service provider sends a resource quantity confirmation request including the service quantity of the target service provided to the user, the resource quantity confirmation request may include the provider identifier of the service provider and the user identifier of the user. Furthermore, when determining the target account corresponding to the resource quantity confirmation request sent by the service provider, the account set corresponding to the service provider may be first determined based on the provider identifier included in the resource quantity confirmation request. Then, the target account corresponding to the user may be determined from the account set based on the user identifier, thereby determining the target account corresponding to the resource quantity confirmation request.
[0051] Step S12: Determine a first resource amount based on the business volume, and transfer resources of the first resource amount from the target account to an account corresponding to the business provider.
[0052] In some feasible implementations, the first resource amount is the amount of resources available after the service provider provides the target service volume to the user. When determining the first resource amount based on the volume of the service, a resource amount confirmation parameter corresponding to the target service may be determined, and then the first resource amount may be determined based on the resource amount confirmation parameter and the volume of the target service.
[0053] The resource quantity confirmation parameter is used to represent the unit resource quantity corresponding to the unit business volume of the target business. In addition, the granularity corresponding to the unit business volume of the target business can be based on the actual application scenario requirements and is not displayed here. For example, if the target business is a duration business, the unit business volume of the target business can be one second, one minute, one hour, etc. If the target business is a game drug purchase business, the unit business volume can be a group of game drugs or a game drug, etc.
[0054] Among them, the above unit resource quantity refers to the resource quantity that the service provider can obtain after providing the user with a unit of service volume for each service. For example, if the above target service is an Internet access service and the unit service volume of the target service is one minute, the unit resource quantity corresponding to the unit service volume of the target service can be 20 points. That is, the resource quantity confirmation parameter corresponding to the target service can be used to represent that the service provider can obtain 20 points when providing the user with one minute of Internet access service. If the above target service is a game medicine purchase service, the unit service volume of the target service can be a set of game medicines, and the unit resource quantity corresponding to the unit service volume of the target service can be 10 game coins. That is, the resource quantity confirmation parameter corresponding to the target service can be used to represent that the game operator can obtain 10 game coins when providing a player with a set of game medicines.
[0055] Further, if the above target service is an Internet access service, the corresponding resource quantity confirmation parameter is used to represent that the service provider can obtain 20 points when providing the user with one minute of Internet access service. If the service volume included in the resource quantity confirmation request is 20 minutes, the first resource quantity can be determined to be 400 points based on the resource quantity confirmation parameter and the service volume.
[0056] If the above target service is a game medicine purchase service, the resource quantity confirmation parameter corresponding to the target service is used to represent that the game operator can obtain 10 game coins when providing a player with a set of game medicines. If the service volume included in the resource quantity confirmation request is 20 sets, the first resource quantity can be determined to be 200 game coins based on the resource quantity confirmation parameter and the service volume.
[0057] Optionally, the resource quantity confirmation request sent by the above service provider further includes the service identifier of the target service. After receiving the resource quantity confirmation request sent by the service provider, the resource quantity confirmation parameter corresponding to the target service can be determined based on the service identifier.
[0058] Optionally, to avoid the situation where the service identifiers of each service of different service providers are the same, resulting in incorrect confirmation of the resource quantity confirmation parameter, the resource quantity confirmation request sent by the above service provider includes, in addition to the service identifier of the target service, the provider identifier of the service provider. Furthermore, after receiving the resource quantity confirmation request, the set of resource quantity confirmation parameters corresponding to each service of the service provider can be determined first based on the provider identifier, and then the resource quantity confirmation parameter corresponding to the target service can be determined from the set of resource quantity confirmation parameters corresponding to the service provider based on the service identifier of the target service.
[0059] In some feasible embodiments, in actual application scenarios, the volume of the target service provided by the service provider to the user is often not an integer multiple of the unit service volume of the target service. Therefore, based on the resource volume confirmation parameter and the service volume, the corresponding first resource volume cannot be accurately determined. Therefore, when determining the first resource volume, the first resource volume can be determined based on a preset resource granularity, a resource volume confirmation parameter, and the service volume of the target service.
[0060] Wherein, the above preset resource granularity is used to represent the minimum resource volume corresponding to the resources in the target account, that is, the minimum measurement unit corresponding to the resources in the target account.
[0061] For example, for a game player, in normal circumstances, the resources (game coins) of the game player in the game are measured in units of number. If the resource volume confirmation parameter corresponding to the game duration service provided by the game operator to the game player is used to represent 0.1 gold coins (unit resource volume) per second (unit service volume), when the game operator actually provides 18 seconds of game duration to the game player, the game operator cannot obtain 1.8 gold coins.
[0062] Therefore, the first resource volume corresponding to the target service volume can be determined based on a preset resource granularity smaller than the unit resource volume corresponding to the target service.
[0063] Specifically, the service volume of the target service can be divided into a first sub-service volume and a second sub-service volume, where the first sub-service volume is an integer multiple of the unit service volume corresponding to the resource volume confirmation parameter, and the second sub-service volume is the part of the target service volume other than the first sub-service volume, that is, the service volume part that is not an integer multiple of the above unit service volume.
[0064] For example, assume that the target service is to provide game duration to a game player, and the resource volume confirmation parameter corresponding to the target service is used to represent that the game operator can obtain 1 gold coin (unit resource volume) for each second (unit service volume) of game duration provided to the player. If the service volume included in the resource volume confirmation request sent by the game operator is 1.2 seconds, then the service volume of 1.2 seconds can be split into a first sub-service volume of 1 second and a second sub-service volume of 0.2 seconds.
[0065] Furthermore, for the first sub-service volume, the corresponding resource volume can be determined based on the first sub-service volume and the resource volume confirmation parameter. For example, if the first sub-service volume is 1s, the resource volume that can be determined based on the above resource volume confirmation parameter is 1 gold coin.
[0066] For the second sub - traffic volume, a new resource volume confirmation parameter can be determined based on the resource volume confirmation parameter and the preset resource granularity. Among them, the unit resource volume corresponding to the new resource volume confirmation parameter is the minimum measurement unit corresponding to the preset resource granularity. For example, the above - mentioned resource volume confirmation parameter indicates that the game operator can obtain 1 gold coin for every second of game time provided to the player. If the minimum resource granularity is 1 millisecond, the new resource volume confirmation parameter is used to represent that the game operator can obtain 0.001 gold coins for every 1 millisecond of game time provided to the player. Based on this, the resource volume corresponding to the second sub - traffic volume can be determined to be 0.2 gold coins based on the new resource volume confirmation parameter and the second sub - traffic volume.
[0067] Furthermore, since the resource volume corresponding to the second sub - traffic volume is less than the unit resource volume represented by the resource volume confirmation parameter of the target service, the resource volume corresponding to the first sub - traffic volume determined based on the first sub - traffic volume and the resource volume confirmation parameter can be determined as the first resource volume determined for the traffic volume provided by the traffic volume provider this time.
[0068] For the resource volume corresponding to the second sub - traffic volume, when the sum of the resource volume corresponding to the second sub - traffic volume determined by any traffic volume sent by the traffic volume provider and the previously determined resource volume corresponding to the second sub - traffic volume is the unit resource volume represented by the above - mentioned resource volume confirmation parameter, a new resource volume can be determined based on the sum of the resource volumes corresponding to multiple second sub - traffic volumes, and the sum of this new resource volume and the resource volume determined based on the first sub - traffic volume this time can be used as the first resource volume determined for the traffic volume sent by the traffic volume provider this time.
[0069] In some feasible implementation manners, after determining the first resource volume based on the traffic volume included in the resource volume confirmation request sent by the traffic volume provider, transfer the resource of the first resource volume from the target account corresponding to the user to the account corresponding to the traffic volume provider.
[0070] Among them, the resource volume confirmation request sent by the traffic volume provider also includes the provider identifier of the traffic volume provider. Furthermore, after determining the first resource volume based on the traffic volume, the account of the traffic volume provider can be determined based on the provider identifier, and then transfer the resource of the first resource volume from the account corresponding to the user to the account corresponding to the traffic volume provider.
[0071] For example, the above - mentioned target service is that the traffic volume provider provides Internet access duration service for the user. The traffic volume included in the resource volume confirmation request is the Internet access duration provided for the user. The first resource volume determined based on the Internet access duration is 200 yuan. At this time, 200 yuan can be deducted from the user's target account and the deducted 200 yuan can be transferred to the account corresponding to the traffic volume provider. That is, the traffic volume provider obtains 200 yuan paid by the user by providing Internet access duration for the user.
[0072] The following combines with Figure 3right Figure 1 The resource processing method shown in the following is further explained. Figure 3 , Figure 3 This is a schematic diagram of a process for transferring resources provided by an embodiment of the present application. Figure 3 As shown, when a user uses the target service provided by the service provider, the service provider can report the traffic volume of the target service provided to the user. The service provider can then convert the reported traffic volume into a resource volume and deduct the resources corresponding to the determined resource volume from the user's corresponding account to transfer the resources to the service provider's corresponding account. At this point, the service provider completes providing the target service to the user, and the user no longer uses the target service provided by the service provider. Alternatively, if the service provider reports the traffic volume of the target service provided to the user in real time, the corresponding resources can be deducted from the user's account in real time.
[0073] In some feasible implementations, the specific implementation process of determining the first resource amount based on the business amount included in the resource amount confirmation request, determining the first resource amount based on the resource amount confirmation parameters and the business amount of the target business, and determining the first resource amount based on the preset resource granularity, resource amount confirmation parameters and the business amount of the target business in the embodiments of the present application can be implemented based on cloud computing, etc.
[0074] Among them, cloud computing is the product of the integration of the development of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing. Cloud computing can improve the computing efficiency of determining the first resource amount, thereby improving the efficiency of resource processing.
[0075] In some feasible implementations, the service provider sending the resource quantity confirmation request, sending the resource transfer request, and the interaction process involved in the service provider can be implemented based on the Internet of Things (IOT).
[0076] The Internet of Things (IoT) refers to the ubiquitous connectivity between objects and people through all possible network accesses, enabling the intelligent perception, identification, and management of objects and processes. The IoT is an information carrier based on the internet, traditional telecommunications networks, and other technologies, enabling all independently addressable, common physical objects to form an interconnected network.
[0077] Cloud IoT aims to connect the information sensed and instructions received by sensor devices in traditional IoT to the Internet, truly realizing networking and enabling massive data storage and computing through cloud computing technology. Since the characteristic of IoT is that things are connected to each other and the current operating status of each "object" is perceived in real time, a large amount of data information will be generated in this process. How to aggregate this information and how to filter useful information from the massive amount of information to support subsequent decision-making have become key issues affecting the development of IoT. Therefore, IoT Cloud based on cloud computing and cloud storage technology has become a strong support for IoT technology and applications.
[0078] In an embodiment of the present application, by obtaining the target service volume sent by the service provider, the amount of resources to be transferred from the user's account can be determined based on the volume, thereby transferring the corresponding resources to the service provider's corresponding account. This eliminates the need for the service provider to determine the resources it needs to obtain, reduces the service provider's resource processing process, and thus improves resource processing efficiency. Furthermore, by using resource volume confirmation parameters and presetting resource granularity, the efficiency and accuracy of determining the amount of resources to be transferred from the user's account can be improved, thereby better improving the user experience of both users and service providers, and having high applicability.
[0079] See also Figure 4 , Figure 4 This is another flow chart of the resource processing method provided in the embodiment of the present application. Figure 4 As shown, the resource processing method provided in the embodiment of the present application may include the following steps:
[0080] Step S41: In response to a resource transfer request sent by a service provider, the resource transfer request includes a second resource amount corresponding to the resources to be transferred by the user, and transferring the resources of the second resource amount to the target account.
[0081] In some feasible implementations, the resources to be transferred by a user are resources added to their account. For example, if a player needs to ensure that their account has sufficient game coins to continue using the game time service provided by the game operator, the player may choose to top up their account with game coins. In this case, the game coins that the player needs to top up are the resources to be transferred.
[0082] In some feasible implementations, the service provider may display a resource transfer interface to the user, allowing the user to select the resources to be transferred. After the user selects the resources to be transferred, the resource transfer interface triggers the service provider to send a resource transfer request. The resource transfer request sent by the service provider includes the second resource amount corresponding to the resources to be transferred by the user.
[0083] As an example, see Figure 5a ,Figure 5a This is a schematic diagram of a scenario for business presentation provided in an embodiment of the present application. Figure 5a A service provider displays a resource transfer interface to users. In this interface, the service provider offers fixed top-up amounts (amounts of resources that can be transferred), such as 20 yuan, 50 yuan, and 100 yuan. The service provider also offers custom amounts, allowing users to enter their desired top-up amount.
[0084] Furthermore, after the user selects the amount to be recharged and clicks the touch button to confirm the recharge, the service provider may be triggered to send a resource transfer request, i.e., a recharge request, to further complete the recharge. At this time, the amount selected by the user to be recharged is the second resource amount corresponding to the resource to be transferred by the user.
[0085] As an example, see Figure 5b , Figure 5b This is another scenario diagram of the business presentation provided by an embodiment of the present application. Figure 5b This is the resource transfer interface presented by the game operator to players. In this interface, the game operator shows players different ways to top up their game coins: for example, to top up 20 taels of game coins, the player needs to transfer 1 yuan; to top up 50 taels of game coins, the player needs to transfer 2 yuan; and to top up 90 taels of game coins, the player needs to transfer 3 yuan. The player can then select the amount of game coins they wish to top up, i.e., the amount of resources (resource quantity) they wish to consume (transfer). In response to the player confirming the transfer operation on the resource transfer interface, the game operator can send a resource transfer request. The resource transfer request includes the second resource quantity corresponding to the player's desired resource, which is the amount corresponding to the player's confirmed transfer operation.
[0086] In some feasible implementations, after receiving the resource transfer request sent by the service provider, the second resource amount included in the resource transfer request may be determined, and resources corresponding to the second resource amount may be transferred to the target account corresponding to the user.
[0087] The resource transfer request may further include a user identifier of the user, and after receiving the resource transfer request sent by the service provider, the target account corresponding to the user is determined based on the user identifier.
[0088] Optionally, the resource transfer request may include a provider identifier of the service provider and a user identifier of the user. Upon receiving the resource transfer request from the service provider, the account set corresponding to the service provider may be determined based on the provider identifier. Furthermore, the target account corresponding to the user may be determined from the account set corresponding to the service provider based on the user identifier.
[0089] In some feasible implementations, after receiving the resource transfer request sent by the service provider, a resource transfer parameter may be sent to the service provider, wherein the resource transfer parameter is used by the resource provider to allow the user to transfer the second amount of resources through the resource provider based on the resource transfer parameter.
[0090] The resource transfer parameters may be parameters used to establish a connection between a service provider and a resource provider, thereby enabling a user to select a resource provider for resource transfer. These parameters may include, but are not limited to, parameters related to payment methods, resource transfer plug-ins, and other resource transfer interactions. The resource transfer parameters may be determined based on the actual resource transfer tool, plug-in, and application scenario requirements, and are not limited here.
[0091] Furthermore, the service provider may present a resource provider selection interface to the user based on the resource transfer parameters, allowing the user to send the second amount of resources through the selected resource provider. For example, the service provider may present a selection interface for different payment channels to the user based on the payment parameters corresponding to the payment SDK, allowing the user to select different payment channels for recharging.
[0092] Furthermore, after the user receives the resources corresponding to the second resource amount from the resource provider, the user can obtain the resources corresponding to the second resource amount and transfer the resources corresponding to the second resource amount to the user's corresponding target account. For example, if a user tops up 100 yuan through Bank A, the 100 yuan received from the bank can be topped up to the user's target account, thereby completing the resource transfer operation corresponding to the resource transfer request.
[0093] In some feasible implementations, since the business volume sent by the service provider is often not an integer multiple of the unit business volume corresponding to the resource volume confirmation parameter, in order to facilitate the determination of the resource volume corresponding to the second sub-business volume in the business volume sent by the service provider, except for the first sub-business volume that is an integer multiple of the unit business volume, when the resources of the second resource volume are transferred to the target account corresponding to the user, the resources of the second resource volume can be transferred and stored according to the preset resource granularity, so as to facilitate the determination of the resource volume corresponding to the above-mentioned second sub-business volume.
[0094] For example, the above-mentioned resource quantity confirmation parameter indicates that the game operator can obtain 1 gold coin for every second of game time provided to the player, and the gold coin corresponding to each millisecond is 0.001 gold coin. At this time, the preset resource granularity can be determined as 0.001 gold coin, that is, the minimum measurement unit of the gold coins in the player's account can be 0.001 gold coin, so that when the second sub-business volume is not an integer multiple of the resource quantity confirmation parameter, the resource quantity corresponding to the second sub-business volume is determined.
[0095] In some feasible embodiments, the above resource transfer request may further include a first resource transfer identifier, which is used to identify a resource transfer operation of transferring a second resource amount to a target account in response to the resource transfer request sent by the service provider.
[0096] Among them, the above first resource transfer identifier may be order number identification information, which can be specifically determined based on the requirements of the actual application scenario and is not limited herein.
[0097] After transferring the resource of the second resource amount to the target account, the first resource transfer identifier can be obtained and the first resource transfer is stored in the resource transfer identifier set, such as storing the order number included in the resource transfer request sent by the service provider in the order center.
[0098] Further, when receiving a new resource transfer request sent by the service provider, the second resource transfer identifier included in the new resource transfer request can be obtained, and it is determined whether the second resource transfer identifier is stored in the above resource transfer identifier set.
[0099] If the second resource transfer identifier is stored in the above resource transfer identifier set, it can be determined that the resource transfer operation corresponding to the second resource transfer identifier has been completed. At this time, an indication message (hereinafter referred to as the second indication message for convenience of description) can be sent to the service provider, so that the service provider can prompt the corresponding user that the above new resource transfer request is an invalid request.
[0100] If the second resource transfer identifier is not stored in the above resource transfer identifier set, it means that the resource transfer operation corresponding to the new resource transfer request has not been executed before. At this time, the corresponding resource transfer can be performed based on the above new resource transfer request.
[0101] In some feasible embodiments, the above resource transfer identifier set and the account set corresponding to the service provider can be stored in a database, the storage space corresponding to cloud storage, and a blockchain, so as to uniformly manage the resource transfer identifier set and the account set, which is convenient for finding and determining the resource transfer identifier and the target account corresponding to the user identifier.
[0102] Among them, the blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Essentially, the blockchain is a decentralized database, which is a string of data blocks generated by using cryptographic methods, and each data block can store the resource transfer identifier set and the account set in the embodiments of the present application.
[0103] Among them, cloud storage is a new concept extended and developed from the concept of cloud computing. The distributed cloud storage system (hereinafter referred to as the storage system) can store the resource transfer identifier set and the account set in the embodiments of the present application through functions such as cluster applications, grid technologies, and distributed storage file systems.
[0104] In some feasible implementation manners, if the resource amount in the target account corresponding to the user is less than the unit resource amount corresponding to the resource amount confirmation parameter of the above-mentioned target service, it can be explained that the resources in the target account corresponding to the user at this time no longer support the user to use the target service with the unit service amount.
[0105] In this case, an indication message (hereinafter referred to as the first indication message for convenience of description) can be sent to the service provider, so that after receiving the first indication message, the service provider stops providing the target service to the user. And the service provider can remind the user to increase a certain amount of resources in the corresponding target account to continue using the service provided by the service provider, that is, provide the user to re-trigger the service provider to send a new resource transfer request to transfer new resources to the target account corresponding to the user.
[0106] Step S42: Responding to the resource amount confirmation request sent by the service provider, determine the target account corresponding to the resource amount confirmation request, where the resource amount confirmation request includes the service amount of the target service provided by the service provider to the user.
[0107] Step S43: Based on the service amount, determine the first resource amount, and transfer the resources with the first resource amount from the target account to the account corresponding to the service provider.
[0108] In some feasible implementation manners, the specific implementation manners of the above step S42 and step S43 can refer to Figure 1 the implementation manners of step S11 and step S12 in, which will not be elaborated here.
[0109] In some feasible implementation manners, the resource processing method provided in the embodiments of the present application can also provide the resource amount of the remaining resources in the accounts corresponding to each user to the resource provider. Specifically, it can respond to the resource amount query request sent by the service provider for the target account, and then determine the third resource amount of the remaining resources in the target account based on the resource amount query request.
[0110] Among them, the above resource amount query request can include the corresponding user identifier, so that the corresponding target account can be determined based on the user identifier of the user.
[0111] Further, after determining the third resource amount of the remaining resources in the target account, an indication message (hereinafter referred to as the third indication message for convenience of description) may be sent to the service provider. After receiving the third indication message, the service provider may display the resource amount of the remaining resources in the user's account to the user.
[0112] The following further describes Figure 6 the relevant processes of resource transfer based on the resource transfer request. Refer to Figure 6 , Figure 6 which is another schematic diagram of the process of transferring resources provided by an embodiment of the present application. As Figure 6 shown, when the user needs to transfer resources, the user can trigger the service provider to send a resource transfer request. At this time, the payment parameters (resource transfer parameters) can be sent to the service provider in response to the resource transfer request. The service provider can enable the user to select the corresponding resource provider to send a certain amount of resources based on the payment parameters. At this time, the resources sent by the user through the resource provider can be transferred to the user's corresponding account to complete the resource transfer.
[0113] In some feasible embodiments, the resource processing method provided by the embodiments of the present application can be applied to a payment system associated with users and merchants. The payment system can complete processes such as recharge and deduction originally performed by merchants based on the resource processing method provided by the embodiments of the present application.
[0114] Refer to Figure 7 , Figure 7 which is a schematic diagram of the architecture of the resource processing system provided by the embodiments of the present application. As Figure 7 shown, in the payment system provided by the embodiments of the present application, when the user 710 needs to recharge the alignment account or needs to charge the account of the user 710, the payment system can execute Figure 1 and / or Figure 4 the relevant steps in to complete operations such as recharging and / or charging the account of the user 710.
[0115] Among them, the process of the payment system charging the user (resource transfer based on the resource amount confirmation request) can be further described in combination with Figure 8 . Refer to Figure 8 , Figure 8 which is a schematic diagram of the charging process provided by the embodiments of the present application. In Figure 8 the shown charging process, when the user uses the service provided by the merchant, the merchant is responsible for regularly reporting the duration or usage amount (business volume) used by the user to the metering platform. The merchant then queries the charging result through the metering platform. If the deduction fails, the merchant can stop providing services to the user and prompt the user to recharge to continue using the services.
[0116] Merchants regularly report the business volume of users' product usage to the metering platform. The metering platform will save the data and, based on the product pricing characteristics (resource quantity confirmation parameters), convert the business volume into the amount that the user needs to pay. It will then call the transaction engine to initiate billing and save the billing results for merchants to query. If an exception occurs when calling the transaction engine, the metering platform needs to be able to initiate billing again regularly.
[0117] The transaction engine receives the billing request sent by the metering platform, obtains the amount passed in by the metering platform, and calls the account for deduction. It returns the deduction result of the account to the metering platform. The billing order information and the deduction result are recorded in the order center.
[0118] Among them, the specific process of the payment system for user recharge (resource transfer based on the resource transfer request) can be combined with Figure 9 for further explanation. See Figure 9 , Figure 9 which is the schematic diagram of the recharge process provided by the embodiment of this application. In the Figure 9 shown recharge process, the merchant side does not need to pay attention to the details of payment access. It only needs to interact with the payment gateway and the payment SDK, input the recharge amount (the second resource quantity of the resource to be transferred) and the order number (resource transfer identifier), wait for the payment gateway to issue the required payment parameters, and then launch the payment SDK to complete the recharge.
[0119] The payment gateway can provide a recharge background order placement interface. After the merchant passes in the recharge amount and the order number, the payment gateway will save the order number in the order center and then return relevant payment parameters to the merchant so that the merchant can pass the payment parameters to the payment SDK.
[0120] According to the payment parameters returned by the order placement, the merchant directly launches the payment by calling the front-end SDK without caring about other processes. The user selects the payment channel within the payment SDK to complete the payment process.
[0121] The transaction engine can uniformly allocate all requests entering the payment system from the payment SDK. The transaction engine is responsible for sorting out the order numbers, entering them into the order center, and can, through the payment channel proxy system, call the external channel payment order placement interface to guide the user to complete the payment.
[0122] The channel proxy can convert the internal protocol of the payment system and the external channel protocol, and encapsulate the external channel interface for the transaction engine to call.
[0123] The order center maintains the status of each order number throughout the user's payment process, preventing duplicate payments or shipments without payment. After the user completes payment, the external channel notifies the channel agent of the payment amount, which in turn notifies the transaction engine. The transaction engine then converts the payment into a corresponding amount based on the pre-set resource granularity.
[0124] In the embodiments of the present application, the payment system can be operated through a terminal device or a server. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0125] The above-mentioned terminal devices can be smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, etc., but are not limited to these.
[0126] In an embodiment of the present application, by obtaining the target service volume sent by the service provider, the amount of resources to be transferred from the user's account can be determined based on the volume of the target service, thereby transferring the corresponding resources to the corresponding account of the service provider. This eliminates the need for the service provider to determine the resources it needs to obtain, reduces the service provider's resource processing process, and thus improves resource processing efficiency. Furthermore, by using resource volume confirmation parameters and presetting resource granularity, the efficiency and accuracy of determining the amount of resources to be transferred from the user's account can be improved, thereby better improving the user experience of both the user and the service provider.
[0127] At the same time, based on the method provided in the embodiment of the present application, resources can be transferred to the user's target account, further improving the diversity of resource processing, further saving the resource processing time of users and service providers, and having high applicability.
[0128] See also Figure 10 , Figure 10 Schematic diagram of the structure of the resource processing device provided in the embodiment of the present application. The resource processing device 1 provided in the embodiment of the present application includes:
[0129] An account determination module 11 is configured to determine a target account corresponding to a resource quantity confirmation request sent by a service provider, wherein the resource quantity confirmation request includes a service quantity of a target service provided by the service provider to the user;
[0130] The first resource transfer module 12 is configured to determine a first resource amount based on the above-mentioned traffic volume, and transfer resources of the first resource amount from the above-mentioned target account to the account corresponding to the above-mentioned service provider.
[0131] In some feasible embodiments, the above-mentioned resource processing device 1 further includes a second resource transfer module 13, and the second resource transfer module 13 is further configured to:
[0132] In response to a resource transfer request sent by the above-mentioned service provider, the resource transfer request includes a second resource amount corresponding to the resource to be transferred by the above-mentioned user, transfer resources of the second resource amount to the above-mentioned target account.
[0133] In some feasible embodiments, the above-mentioned resource amount confirmation request further includes a provider identifier of the above-mentioned service provider and a user identifier of the above-mentioned user; the account determination module 11 is configured to:
[0134] Determine an account set corresponding to the above-mentioned service provider based on the above-mentioned provider identifier;
[0135] Determine the target account corresponding to the above-mentioned user from the above-mentioned account set based on the above-mentioned user identifier.
[0136] In some feasible embodiments, the above-mentioned first resource transfer module 12 is configured to:
[0137] Determine a resource amount confirmation parameter for the above-mentioned target service, and the resource amount confirmation parameter is used to represent the unit resource amount corresponding to the unit traffic volume of the above-mentioned target service;
[0138] Determine a first resource amount based on the above-mentioned resource amount confirmation parameter and the traffic volume of the above-mentioned target service.
[0139] In some feasible embodiments, the above-mentioned first resource transfer module 12 is configured to:
[0140] Determine a first resource amount based on a preset resource granularity, the above-mentioned resource amount confirmation parameter, and the traffic volume of the above-mentioned target service;
[0141] Wherein, the above-mentioned preset resource granularity is used to represent the minimum resource amount corresponding to the resources in the above-mentioned target account.
[0142] In some feasible embodiments, the above-mentioned first resource transfer module 12 is further configured to:
[0143] If the resource amount of the resources in the above-mentioned target account is less than the above-mentioned unit resource amount, send a first indication message to the above-mentioned service provider to enable the above-mentioned service provider to stop providing the above-mentioned target service to the above-mentioned user.
[0144] In some feasible embodiments, the above-mentioned second resource transfer module 13 is configured to:
[0145] In response to the resource transfer request sent by the above-mentioned service provider, send resource transfer parameters to the above-mentioned service provider, where the resource transfer parameters are used by the above-mentioned service provider to enable the above-mentioned user to transfer the above-mentioned second resource volume through the resource provider;
[0146] Obtain the resource of the above-mentioned second resource volume and transfer the resource of the above-mentioned second resource volume to the above-mentioned target account.
[0147] In some feasible embodiments, the above-mentioned second resource transfer module 13 is configured to:
[0148] Transfer the resource of the above-mentioned second resource volume to the above-mentioned target account based on a preset resource granularity;
[0149] Wherein, the above-mentioned preset resource granularity is used to represent the minimum resource volume corresponding to the resource in the above-mentioned target account.
[0150] In some feasible embodiments, the above-mentioned second resource transfer module 13 is configured to:
[0151] Obtain a first resource transfer identifier corresponding to the above-mentioned resource transfer request and store the first resource transfer identifier in a resource transfer identifier set;
[0152] In response to a new resource transfer request sent by the above-mentioned service provider, obtain a second resource transfer identifier corresponding to the new resource transfer request sent by the above-mentioned service provider;
[0153] If the above-mentioned second resource transfer identifier is stored in the above-mentioned resource transfer identifier set, send second indication information to the above-mentioned service provider so that the above-mentioned service provider can prompt the corresponding user that the above-mentioned new resource transfer request is an invalid request;
[0154] If the above-mentioned second resource transfer identifier is not stored in the above-mentioned resource transfer identifier set, perform resource transfer based on the above-mentioned new resource transfer request.
[0155] In some feasible embodiments, the above-mentioned resource processing device 1 further includes a resource display module 14, and the above-mentioned resource display module 14 is configured to:
[0156] In response to a resource volume query request sent by the above-mentioned service provider for the above-mentioned target account, determine a third resource volume of the remaining resources in the above-mentioned target account;
[0157] Send third indication information to the above-mentioned service provider so that the above-mentioned service provider can display the third resource volume of the above-mentioned remaining resources to the above-mentioned user.
[0158] In some feasible embodiments, the volume of the target service is the provided duration or the provided quantity corresponding to the target service.
[0159] The above resource processing device may be a computer program (including program code) running on a computer device. For example, the resource processing device is an application software. The device may execute the implementation manners provided in each of the steps as described above Figure 1 and / or Figure 4 through each of its built-in functional modules. Specifically, reference may be made to the implementation manners provided in each of the above steps, which will not be elaborated herein.
[0160] In some feasible embodiments, the resource processing device provided in the embodiments of the present application may be implemented in a combination of software and hardware. As an example, the resource processing device provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the resource processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may adopt one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0161] In some feasible embodiments, the resource processing device provided in the embodiments of the present application may be implemented in a software manner. It may be software in the form of a program and a plug-in, etc., and includes a series of modules, including an account determination module 11, a first resource transfer module 12, a second resource transfer module 13, and a resource display module 14. Among them, the account determination module 11, the first resource transfer module 12, the second resource transfer module 13, and the resource display module 14 are used to implement the resource processing method provided in the embodiments of the present application.
[0162] In the embodiments of the present application, based on the resource processing device provided by the embodiments of the present application, the traffic volume of the target service sent by the service provider can be obtained, and the resource volume of the resources that need to be transferred from the user account can be determined based on the traffic volume, so as to transfer the corresponding resources to the account corresponding to the service provider, so that the service provider does not need to determine the resources it needs to obtain, reducing the resource processing process of the service provider, and then improving the resource processing efficiency. On the other hand, through the resource volume confirmation parameter and the preset resource granularity, the determination efficiency and accuracy of the resource volume of the resources that need to be transferred from the user account can be improved, and the user experience of both the user and the service provider can be better improved.
[0163] At the same time, based on the resource processing device provided by the embodiments of the present application, resources can be transferred to the target account of the user, further improving the diversity of resource processing, further saving the resource processing time of the user and the service provider, and having high applicability.
[0164] See Figure 11 , Figure 11 is a schematic structural diagram of an electronic device provided by the embodiments of the present application. As Figure 11 shown, the electronic device 1000 in this embodiment may include: a processor 1001, a network interface 1004, and a memory 1005. In addition, the above-mentioned electronic device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection communication between these components. Among them, the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1005 may also be at least one storage device located far from the aforementioned processor 1001. As Figure 11 shown, the memory 1005, as a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
[0165] In Figure 11 the electronic device 1000 shown, the network interface 1004 can provide network communication functions; while the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to implement:
[0166] In response to a resource quantity confirmation request sent by a service provider, determine a target account corresponding to the resource quantity confirmation request, where the resource quantity confirmation request includes the service volume of a target service provided by the service provider to the user.
[0167] Based on the service volume, determine a first resource quantity, and transfer resources of the first resource quantity from the target account to an account corresponding to the service provider.
[0168] In some feasible implementation manners, the processor 1001 is further configured to:
[0169] In response to a resource transfer request sent by the service provider, where the resource transfer request includes a second resource quantity corresponding to the resources to be transferred by the user, transfer resources of the second resource quantity to the target account.
[0170] In some feasible implementation manners, the resource quantity confirmation request further includes a provider identifier of the service provider and a user identifier of the user; the processor 1001 is further configured to:
[0171] Based on the provider identifier, determine an account set corresponding to the service provider;
[0172] Based on the user identifier, determine the target account corresponding to the user from the account set.
[0173] In some feasible implementation manners, the processor 1001 is configured to:
[0174] Determine a resource quantity confirmation parameter corresponding to the target service, where the resource quantity confirmation parameter is used to represent the unit resource quantity corresponding to the unit service volume of the target service;
[0175] Based on the resource quantity confirmation parameter and the service volume of the target service, determine a first resource quantity.
[0176] In some feasible implementation manners, the processor 1001 is configured to:
[0177] Based on a preset resource granularity, the resource quantity confirmation parameter, and the service volume of the target service, determine a first resource quantity;
[0178] Wherein, the preset resource granularity is used to represent the minimum resource quantity corresponding to the resources in the target account.
[0179] In some feasible implementation manners, the processor 1001 is further configured to:
[0180] If the resource quantity of the resources in the target account is less than the unit resource quantity, send a first indication message to the service provider to cause the service provider to stop providing the target service to the user.
[0181] In some feasible embodiments, the above-mentioned processor 1001 is configured to:
[0182] In response to a resource transfer request sent by the above-mentioned service provider, send resource transfer parameters to the above-mentioned service provider, where the resource transfer parameters are used by the above-mentioned service provider to enable the above-mentioned user to transfer the above-mentioned second resource volume of resources through the resource provider;
[0183] Obtain the resources of the above-mentioned second resource volume and transfer the resources of the above-mentioned second resource volume to the above-mentioned target account.
[0184] In some feasible embodiments, the above-mentioned processor 1001 is configured to:
[0185] Transfer the resources of the above-mentioned second resource volume to the above-mentioned target account based on a preset resource granularity;
[0186] Wherein, the above-mentioned preset resource granularity is used to represent the minimum resource volume corresponding to the resources in the above-mentioned target account.
[0187] In some feasible embodiments, the above-mentioned processor 1001 is further configured to:
[0188] Obtain a first resource transfer identifier corresponding to the above-mentioned resource transfer request and store the first resource transfer identifier in a resource transfer identifier set;
[0189] In response to a new resource transfer request sent by the above-mentioned service provider, obtain a second resource transfer identifier corresponding to the new resource transfer request sent by the above-mentioned service provider;
[0190] If the above-mentioned second resource transfer identifier is stored in the above-mentioned resource transfer identifier set, send second indication information to the above-mentioned service provider so that the above-mentioned service provider can prompt the corresponding user that the above-mentioned new resource transfer request is an invalid request;
[0191] If the above-mentioned second resource transfer identifier is not stored in the above-mentioned resource transfer identifier set, perform resource transfer based on the above-mentioned new resource transfer request.
[0192] In some feasible embodiments, the above-mentioned processor 1001 is further configured to:
[0193] In response to a resource volume query request sent by the above-mentioned service provider for the above-mentioned target account, determine a third resource volume of the remaining resources in the above-mentioned target account;
[0194] Send third indication information to the above-mentioned service provider so that the above-mentioned service provider can display the third resource volume of the above-mentioned remaining resources to the above-mentioned user.
[0195] In some feasible embodiments, the volume of the target service is the provided duration or the provided quantity corresponding to the target service.
[0196] It should be understood that in some feasible embodiments, the above-mentioned processor 1001 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A part of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0197] In specific implementation, the above-mentioned electronic device 1000 may execute the implementation manners provided in the above Figure 1 and / or Figure 4 through each of its built-in functional modules. For specific details, reference may be made to the implementation manners provided in the above respective steps, which will not be elaborated herein.
[0198] In the embodiments of the present application, based on the electronic device provided in the embodiments of the present application, by obtaining the volume of the target service sent by the service provider, the volume of the resources that need to be transferred from the user account can be determined based on the volume, so as to transfer the corresponding resources to the account corresponding to the service provider, enabling the service provider to not need to determine the resources it needs to obtain, reducing the resource processing process of the service provider, and further improving the resource processing efficiency. On the other hand, through the resource volume confirmation parameter and the preset resource granularity, the determination efficiency and accuracy of the volume of the resources that need to be transferred from the user account can be improved, and the user experience of both the user and the service provider can be better improved.
[0199] At the same time, based on the electronic device provided in the embodiments of the present application, resources can be transferred to the target account of the user, further enhancing the diversity of resource processing, further saving the resource processing time of both the user and the service provider, and having high applicability.
[0200] The embodiments of the present application also provide a computer-readable storage medium storing a computer program, which is executed by a processor to implement Figure 1 and / orFigure 4 For the methods provided in each step, please refer to the implementation manners provided in the above steps for details, which will not be elaborated here.
[0201] The above computer-readable storage medium may be an internal storage unit of the aforementioned resource processing device and / or electronic device, such as the hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. The above computer-readable storage medium may further include magnetic disks, optical discs, read-only memory (ROM), or random access memory (RAM), etc. Further, the computer-readable storage medium may include both the internal storage unit and the external storage device of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store the data that has been output or is to be output.
[0202] An embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 and / or Figure 4 the methods provided in each step.
[0203] The terms "first", "second", etc. in the claims, the description and the drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or electronic device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or electronic devices. The mention of "embodiment" in this context means that the specific features, structures or characteristics described in connection with the embodiment may be included in at least one embodiment of this application. The display of this phrase at various positions in the description does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the description and claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0204] Those of ordinary skill in the art will appreciate that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described in terms of function in the above description. Skilled artisans may implement the described functions using different methods for each particular application, but such implementation should not be considered to exceed the scope of this application.
[0205] The foregoing disclosure is only for the preferred embodiments of this application and should not be used to limit the scope of the rights of this application. Therefore, equivalent changes made in accordance with the claims of this application are still within the scope covered by this application.
Claims
1. A resource processing method, characterized in that, The method includes: In response to a resource quantity confirmation request sent by a service provider, determining a target account corresponding to the resource quantity confirmation request, where the resource quantity confirmation request includes the service volume of a target service provided by the service provider to a user; According to a first sub-service volume provided by the service provider this time and a resource quantity confirmation parameter, determining the resource quantity corresponding to the first sub-service volume provided this time, where the resource quantity confirmation parameter is used to represent the unit resource quantity corresponding to the unit service volume of the target service; Determining the resource quantity corresponding to the first sub-service volume provided this time as the first resource quantity determined this time, and transferring the resources of the first resource quantity determined this time from the target account to the account corresponding to the service provider; Determining a new resource quantity confirmation parameter according to the resource quantity confirmation parameter and a preset resource granularity, where the preset resource granularity is used to represent the minimum resource quantity corresponding to the resources in the target account, and the unit resource quantity corresponding to the new resource quantity confirmation parameter is the minimum measurement unit corresponding to the preset resource granularity; Determining the resource quantity corresponding to a second sub-service volume provided this time and each subsequent time according to the new resource quantity confirmation parameter, and determining the sum of the resource quantities corresponding to the second sub-service volume provided this time and each subsequent time as a new resource quantity. When, after the service provider provides the service volume of the target service at any time, the new resource quantity is the unit resource quantity corresponding to the resource quantity confirmation parameter, determining the sum of the new resource quantity and the resource quantity corresponding to the first sub-service volume provided at that time as the first resource quantity determined at that time, and transferring the resources of the first resource quantity determined at that time from the target account to the account corresponding to the service provider; Among them, the first resource quantity determined each time is: the resource quantity of the resources transferred from the target account to the account corresponding to the service provider after the service provider provides the service volume of the target service this time; the first sub-service volume provided by the service provider each time is: the integer multiple part of the unit service volume in the service volume of the target service provided this time, and the second sub-service volume provided by the service provider each time is: the remaining part of the service volume of the target service provided this time except the first sub-service volume provided this time.
2. The method according to claim 1, wherein The method further includes: In response to a resource transfer request sent by the service provider, where the resource transfer request includes a second resource quantity corresponding to the resources to be transferred by the user, transferring the resources of the second resource quantity to the target account.
3. The method according to claim 1, wherein The resource quantity confirmation request further includes a provider identifier of the service provider and a user identifier of the user; determining the target account corresponding to the resource quantity confirmation request includes: Determining a set of accounts corresponding to the service provider based on the provider identifier; Determining the target account corresponding to the user from the set of accounts based on the user identifier.
4. The method according to claim 1, wherein The method further includes: If the resource quantity of the resources in the target account is less than the unit resource quantity, sending a first indication message to the service provider to cause the service provider to stop providing the target service to the user.
5. The method according to claim 2, characterized in that, Transferring the second resource quantity to the target account in response to the resource transfer request sent by the service provider includes: In response to the resource transfer request sent by the service provider, sending resource transfer parameters to the service provider, where the resource transfer parameters are used by the service provider to enable the user to transfer the second resource quantity through the resource provider; Obtaining the second resource quantity and transferring the second resource quantity to the target account.
6. The method according to claim 5, wherein The transferring the second resource quantity to the target account includes: Transferring the second resource quantity to the target account based on a preset resource granularity; where the preset resource granularity is used to represent the minimum resource quantity corresponding to the resources in the target account.
7. The method according to claim 2, characterized in that, The method further includes: Obtaining a first resource transfer identifier corresponding to the resource transfer request and storing the first resource transfer identifier in a resource transfer identifier set; In response to a new resource transfer request sent by the service provider, obtaining a second resource transfer identifier corresponding to the new resource transfer request sent by the service provider; If the second resource transfer identifier is stored in the resource transfer identifier set, sending second indication information to the service provider so that the service provider can prompt the corresponding user that the new resource transfer request is an invalid request; If the second resource transfer identifier is not stored in the resource transfer identifier set, performing resource transfer based on the new resource transfer request.
8. The method according to claim 1, wherein The method further includes: In response to a resource quantity query request sent by the service provider for the target account, determining a third resource quantity of the remaining resources in the target account; Sending third indication information to the service provider so that the service provider can display the third resource quantity of the remaining resources to the user.
9. The method according to any one of claims 1 to 8, characterized in that, The business volume of the target service is the provided duration or provided quantity corresponding to the target service.
10. A resource processing device, characterized in that, The apparatus includes: An account determination module, configured to determine a target account corresponding to a resource quantity confirmation request in response to a resource quantity confirmation request sent by a service provider, where the resource quantity confirmation request includes the business volume of a target service provided by the service provider to a user; A first resource transfer module, configured to: According to the first sub-business volume provided by the service provider this time and resource quantity confirmation parameters, determining the resource quantity corresponding to the first sub-business volume provided this time, where the resource quantity confirmation parameters are used to represent the unit resource quantity corresponding to the unit business volume of the target service; Determining the resource quantity corresponding to the first sub-business volume provided this time as the first resource quantity determined this time, and transferring the resource quantity of the first resource quantity determined this time from the target account to the account corresponding to the service provider; Determining new resource quantity confirmation parameters according to the resource quantity confirmation parameters and a preset resource granularity, where the preset resource granularity is used to represent the minimum resource corresponding to the resources in the target account, and the unit resource quantity corresponding to the new resource quantity confirmation parameters is the minimum measurement unit corresponding to the preset resource granularity; Determine the resource amount corresponding to the second sub - service amount provided this time and each time thereafter according to the new resource amount confirmation parameter, and determine the sum of the resource amounts corresponding to the second sub - service amount provided this time and each time thereafter as the new resource amount. When, after the service provider provides the service volume of the target service at any time, the new resource amount is the unit resource amount corresponding to the resource amount confirmation parameter, determine the sum of the new resource amount and the resource amount corresponding to the first sub - service amount provided this time as the first resource amount determined this time, and transfer the resources of the first resource amount determined this time from the target account to the account corresponding to the service provider; Among them, the first resource amount determined each time is: the resource amount of the resources transferred from the target account to the account corresponding to the service provider after the service provider provides the service volume of the target service this time; the first sub - service amount provided by the service provider each time is: the integer - multiple part of the unit service amount in the service volume of the target service provided this time, and the second sub - service amount provided by the service provider each time is: the remaining part of the service volume of the target service provided this time except the first sub - service amount provided this time.
11. The device according to claim 10, characterized in that, The resource processing device further includes a second resource transfer module, and the second resource transfer module is used for: In response to the resource transfer request sent by the service provider, the resource transfer request includes the second resource amount corresponding to the resources to be transferred by the user, transfer the resources of the second resource amount to the target account.
12. The device according to claim 10, characterized in that, The resource amount confirmation request further includes the provider identifier of the service provider and the user identifier of the user; when the account determination module determines the target account corresponding to the resource amount confirmation request, it is used for: Determine the set of accounts corresponding to the service provider based on the provider identifier; Determine the target account corresponding to the user from the set of accounts based on the user identifier.
13. The device according to claim 10, characterized in that, The first resource transfer module is further used for: If the resource amount in the target account is less than the unit resource amount, send a first indication message to the service provider to make the service provider stop providing the target service to the user.
14. The device according to claim 11, characterized in that, When the second resource transfer module transfers the resources of the second resource amount to the target account in response to the resource transfer request sent by the service provider, it is used for: In response to the resource transfer request sent by the service provider, send a resource transfer parameter to the service provider, and the resource transfer parameter is used for the service provider to make the user transfer the resources of the second resource amount through the resource provider based on the resource transfer parameter; Obtain the resources of the second resource amount and transfer the resources of the second resource amount to the target account.
15. The device according to claim 14, characterized in that, When the second resource transfer module transfers the resources of the second resource amount to the target account, it is used for: Transfer the resources of the second resource amount to the target account based on a preset resource granularity; Among them, the preset resource granularity is used to represent the minimum resource amount corresponding to the resources in the target account.
16. The device according to claim 11, characterized in that The second resource transfer module is further used for: Obtain a first resource transfer identifier corresponding to the resource transfer request, and store the first resource transfer identifier in a resource transfer identifier set; In response to a new resource transfer request sent by the service provider, obtain a second resource transfer identifier corresponding to the new resource transfer request sent by the service provider; If the second resource transfer identifier is stored in the resource transfer identifier set, send second indication information to the service provider, so that the service provider can prompt the corresponding user that the new resource transfer request is an invalid request; If the second resource transfer identifier is not stored in the resource transfer identifier set, perform resource transfer based on the new resource transfer request.
17. The device according to claim 10, characterized in that, The device further includes a resource display module, and the resource display module is configured to: In response to a resource quantity query request for the target account sent by the service provider, determine a third resource quantity of the remaining resources in the target account; Send third indication information to the service provider, so that the service provider can display the third resource quantity of the remaining resources to the user.
18. The device according to any one of claims 10 to 17, characterized in that The service volume of the target service is the provided duration or provided quantity corresponding to the target service.
19. An electronic device, characterized in that, Comprising a processor and a memory, the processor and the memory are interconnected; The memory is used for storing a computer program; The processor is configured to execute the method according to any one of claims 1 to 9 when calling the computer program.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 9.
21. A computer program product, characterized in that, The computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium, a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Charging method of cloud infrastructure services
CN106257524A
Body building duration calculation method and device based on face recognition as well as body building equipment
CN109741481A
Resource transfer method and device
CN111784347A
Information prompting method and device, storage medium and electronic equipment
CN112215651A