CN113129013B - Virtual resource transfer method, device, equipment and medium - Google Patents
Virtual resource transfer method, device, equipment and medium Download PDFInfo
- Publication number
- CN113129013B CN113129013B CN202110442844.1A CN202110442844A CN113129013B CN 113129013 B CN113129013 B CN 113129013B CN 202110442844 A CN202110442844 A CN 202110442844A CN 113129013 B CN113129013 B CN 113129013B
- Authority
- CN
- China
- Prior art keywords
- account
- target
- virtual
- sandbox
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/405—Establishing or using transaction specific rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/22—Payment schemes or models
- G06Q20/227—Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The disclosure relates to a virtual resource transfer method, device, equipment and medium. The virtual resource transfer method comprises the following steps: responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user, wherein the plurality of accounts at least comprise a sandbox account and a real account; under the condition that the account to be transferred is a sandbox account, transferring the resources of the rest virtual resources in the sandbox account according to a sandbox resource transferring mode; and under the condition that the account to be transferred is a real account, transferring the resources of the rest virtual resources in the real account according to a real resource transferring mode. According to the embodiment of the disclosure, the reliability of virtual resource transaction and the account security of the transaction related party can be improved.
Description
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a virtual resource transfer method, device, equipment and medium.
Background
With the rapid development of computer technology and mobile communication technology, more and more internet platforms have introduced virtual resource transaction functions, such as virtual coin recharging and virtual product purchasing by using virtual coins.
Currently, users can test or experience virtual resource transaction functions of an internet platform by using a sandbox account. However, when the user has both the sandbox account and the real account, in the process that the user performs the virtual resource transaction through the internet platform, the virtual resources in the sandbox account and the real account may be mixed, so that the funds of the transaction related party of the virtual resource transaction are lost, and the account security of the transaction related party is further reduced.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a virtual resource transfer method, apparatus, device, and medium.
In a first aspect, the present disclosure provides a virtual resource transfer method, including:
responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user, wherein the plurality of accounts at least comprise a sandbox account and a real account;
under the condition that the account to be transferred is a sandbox account, transferring the resources of the rest virtual resources in the sandbox account according to a sandbox resource transferring mode;
and under the condition that the account to be transferred is a real account, transferring the resources of the rest virtual resources in the real account according to a real resource transferring mode.
In a second aspect, the present disclosure provides a virtual resource transfer apparatus, including:
an account selection unit configured to select an account to be transferred from a plurality of accounts of a target user, the plurality of accounts including at least a sandbox account and a real account, in response to triggering a preset resource transfer condition for the target user;
the first transfer unit is configured to transfer the resources of the remaining virtual resources in the sandbox account according to a sandbox resource transfer mode under the condition that the account to be transferred is the sandbox account;
and the second transferring unit is configured to transfer the resources of the remaining virtual resources in the real account according to the real resource transferring mode under the condition that the account to be transferred is the real account.
In a third aspect, the present disclosure provides a virtual resource transfer apparatus, comprising:
a processor;
a memory for storing executable instructions;
the processor is configured to read the executable instructions from the memory, and execute the executable instructions to implement the virtual resource transfer method according to the first aspect.
In a fourth aspect, the present disclosure provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the virtual resource transfer method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the virtual resource transfer method, device, equipment and medium, a preset resource transfer condition can be triggered for a target user, one account is selected from a plurality of accounts of the target user, which at least comprise a sandbox account and a real account, to serve as an account to be transferred, when the account to be transferred is the sandbox account, the residual virtual resources in the sandbox account are transferred according to a sandbox resource transfer mode, and when the account to be transferred is the real account, the residual virtual resources in the real account are transferred according to a real resource transfer mode, and because the virtual resource transfer is only conducted for one account of the accounts when the resource transfer condition is triggered each time, the mixed use of the sandbox account and the virtual resources in the real account is avoided, so that the fund loss of a transaction related party of virtual resource transaction can be avoided, and the reliability of the virtual resource transaction and the account safety of the transaction related party are improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a block diagram of virtual resource transfer according to an embodiment of the present disclosure;
fig. 2 is a flow chart of a virtual resource transfer method according to an embodiment of the disclosure;
FIG. 3 is a flowchart illustrating another virtual resource transfer method according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating another virtual resource transfer method according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a virtual resource transfer method according to another embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a virtual resource transferring apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a virtual resource transfer device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
First, a part of the concepts related to the present disclosure will be described.
The sandbox environment refers to an environment in which a user is not actually deducted in the transaction process, but the internet platform is informed of successful transaction payment. The account used by the user in the sandbox environment may be a sandbox account.
An operator of the internet platform can test the virtual resource transaction function of the internet platform by utilizing a sandbox account in a sandbox environment. And auditing personnel of the system platform can audit the virtual resource transaction function of the Internet platform by utilizing the sandbox account in the sandbox environment. Experience users of the internet platform can experience virtual resource transaction functions of the internet platform by utilizing sandbox accounts in a sandbox environment.
Specifically, the system platform may be an operating platform of a mobile operating system, which may be any system, and is not limited herein.
The real environment refers to an environment in which the internet platform is informed of successful transaction payment after the user is really deducted in the transaction process. The account used by the user in the real environment may be a real account.
The real user of the Internet platform can utilize the real account to carry out real use on the virtual resource transaction function of the Internet platform in a real environment.
The virtual resources may include virtual coins, vouchers, red bags, etc. that the user may recharge or purchase with a fee and utilize to purchase "tokens" for the goods.
The remaining virtual resources may be virtual resource balances of the account, such as virtual coin balances, voucher balances, red package balances, and the like.
Currently, when a user has a sandbox account and a real account at the same time, in the process that the user performs virtual resource transaction through an internet platform, the internet platform generally does not distinguish between a sandbox environment and a real environment, namely the sandbox account and the real account are completely mixed together to perform virtual resource transfer, or the sandbox account and the real account are configured with the same purchasing capability.
In one case, if the user has charged 100 virtual coins in a sandbox environment, however, there is no internet platform for the user to make a real deduction. Thereafter, the user purchases a commodity of 80 virtual coins using the 100 virtual coins. Because the internet platform does not distinguish the 'sandbox environment' from the 'real environment', after successful transaction, the platform pays funds corresponding to 80 virtual coins to a provider (merchant) of the commodity, so that the internet platform has funds loss.
In another case, if the user has charged 100 virtual coins in a sandbox environment, however, there is no internet platform for a real deduction to the user. Thereafter, the user applies for refunds for the 100 virtual coins. Because the internet platform does not distinguish between the "sandbox environment" and the "real environment", the internet platform has no way of distinguishing whether the 100 virtual coins actually deduct money from the user, and can only refund money for the user according to the fact that the user has actually deducted money, so that the internet platform has funds loss.
Therefore, in the related art, when the user has both the sandbox account and the real account, during the process that the user performs the virtual resource transaction through the internet platform, the virtual resources in the sandbox account and the real account may be mixed, so that the funds of the transaction related party of the virtual resource transaction, such as the internet platform, are lost, and the account security of the transaction related party, such as the internet platform, is reduced.
In order to solve the above-mentioned problems, embodiments of the present disclosure provide a virtual resource transfer method, apparatus, device, and medium capable of ensuring the fund security and legal rights of a transaction-related party of a virtual resource transaction on the premise of supporting the use of virtual resources in a sandbox environment.
The virtual resource transfer method provided by the present disclosure may be applied to the architecture shown in fig. 1, and is specifically described in detail with reference to fig. 1.
FIG. 1 illustrates an architecture diagram of virtual resource transfer provided by an embodiment of the present disclosure.
As shown in fig. 1, the architecture diagram may include at least one electronic device 101 of a client and at least one server 102 of a server. The electronic device 101 may establish a connection and interact information with the server 102 via a network protocol, such as the hypertext transfer security protocol (Hyper Text Transfer Protocol over Secure Socket Layer, HTTPS). The electronic device 101 may include devices with communication functions, such as a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable device, an integrated machine, and an intelligent home device, and may also include devices simulated by a virtual machine or a simulator. The server 102 may include a cloud server or a cluster of servers or other devices with storage and computing capabilities.
Based on the above architecture, the server 102 may select one account from the multiple accounts of the target user 103 as the account to be transferred in response to triggering a preset resource transfer condition for the target user 103 using the electronic device 101, and as the multiple accounts of the target user 103 may include at least a sandbox account and a real account, which is equivalent to that after the server 102 triggers the resource transfer condition each time, only one of the multiple accounts is taken as the account to be transferred, further in the case that the account to be transferred is the sandbox account, the resource transfer is performed on the remaining virtual resources in the sandbox account according to the sandbox resource transfer mode, and in the case that the account to be transferred is the real account, the resource transfer is performed on the remaining virtual resources in the real account according to the real resource transfer mode, so that the mixed use of the sandbox account and the virtual resources in the real account is avoided, and the funds loss of the transaction related party of the virtual resource transaction can be avoided, and the reliability of the virtual resource transaction and the account security of the transaction related party are improved.
In one example, the target user 103 may initiate a transaction triggering operation involving the transfer of virtual resources, such as a product purchase operation, a transfer operation, etc., within a designated internet platform on the electronic device 101, which may be a designated application or a designated website. The electronic device 101 may, after receiving the transaction triggering operation input by the target user 103, send a transaction request corresponding to the transaction triggering operation to the server 102 of the designated internet platform, so that the server 102 receives the transaction request. At this time, the server 103 may determine that a preset resource transfer condition is triggered for the target user 103 in response to receiving the transaction request, select one account from a plurality of accounts of the target user 103 as an account to be transferred, transfer the virtual resource to be transferred corresponding to the transaction request from the sandbox account to the sandbox receiving account corresponding to the transaction request according to a sandbox resource transfer mode when the account to be transferred is a sandbox account, and transfer the virtual resource to be transferred corresponding to the transaction request from the real account to the real receiving account corresponding to the transaction request according to a real resource transfer mode when the account to be transferred is a real account. Therefore, in the process of transferring out the virtual resources, the virtual resources of the sandbox account and the real account of the target user 103 are prevented from being mixed, further, the fund loss of the appointed internet platform, the target user 103 and the resource receiving user corresponding to the transaction request is prevented, and the reliability of virtual resource transaction and the account security of the transaction related party are improved.
In another example, the target user 103 may initiate a resource transfer-in trigger operation involving a virtual resource transfer, such as a recharge operation, a red pack pickup operation, etc., within a designated internet platform on the electronic device 101. The electronic device 101 may send, after receiving the resource transfer trigger operation input by the target user 103, a resource transfer request corresponding to the resource transfer trigger operation to the server 102 of the designated internet platform, so that the server 102 receives the resource transfer request. At this time, the server 103 may respond to the resource transfer request, select an account from the multiple accounts of the target user 103 as an account to be transferred, transfer the virtual resource to be transferred corresponding to the resource transfer request into the sandbox account according to the sandbox resource transfer mode in the case that the account to be transferred is the sandbox account, and transfer the virtual resource to be transferred corresponding to the resource transfer request into the real account according to the real resource transfer mode in the case that the account to be transferred is the real account. Therefore, in the process of transferring into the virtual resource, the virtual resource of the sandbox account and the real account of the target user 103 is prevented from being mixed, so that the fund loss of the target user 103 and the appointed internet platform is prevented, and the reliability of virtual resource transaction and the account security of a transaction related party are improved.
The virtual resource transfer method provided by the embodiments of the present disclosure is described below with reference to fig. 2 to 5 according to the above architecture. In the disclosed embodiment, the virtual resource transfer method may be performed by a server, such as server 102 in the server shown in fig. 1. The server may include a cloud server or a server cluster, and other devices with storage and computing functions.
Fig. 2 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure.
As shown in fig. 2, the virtual resource transfer method may include the following steps.
S210, responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user.
In some embodiments of the present disclosure, the plurality of accounts may include at least a sandbox account and a real account.
The sandbox account may be an account of the target user in the sandbox environment, and the real account may be an account of the target user in the real environment.
In these embodiments, the target user may have both a sandbox account and a real account.
In embodiments of the present disclosure, virtual resources may include, without limitation, virtual coins, vouchers, red bags, etc. that a user may recharge or purchase through payment and may utilize to purchase "tokens" for goods.
In the embodiment of the disclosure, the remaining virtual resources may be virtual resource balances in the corresponding accounts, such as virtual coin balances, voucher balances, red package balances, and the like, which are not limited herein.
Taking a sandbox account as an example, the sandbox account may correspond to a sandbox virtual resource, and the remaining virtual resources in the sandbox account may be remaining sandbox virtual resources. Taking the real account as an example, the real account may correspond to the real virtual resource, and the remaining virtual resource in the real account may be the remaining real virtual resource.
In some embodiments of the present disclosure, the resource transfer condition may include a resource roll-out condition.
Alternatively, the resource transfer-out condition may include receiving a transaction request sent by the electronic device, which may be used to request transfer of the virtual resource to be transferred from the account of the target user to the account to be transferred.
The electronic device may be the electronic device 101 in the client shown in fig. 1.
Specifically, the target user may initiate a transaction triggering operation involving the transfer of virtual resources, such as a product purchase operation, a transfer operation, etc., within a designated internet platform on the electronic device. After receiving the transaction triggering operation input by the target user, the electronic device can send a transaction request corresponding to the transaction triggering operation to the server, so that the server triggers a resource transfer-out condition under the condition of receiving the transaction request.
Optionally, the transaction request may carry transaction information, where the transaction information may include a user identifier of the target user, a user identifier of a resource receiving user to which the account to be transferred belongs, and a resource amount of the virtual resource to be transferred, so that the server may transfer the virtual resource to be transferred from the account of the target user to the account to be transferred of the resource receiving user based on the transaction information.
In these embodiments, after the server determines the trigger resource roll-out condition, S210 may be executed to implement a transaction trigger operation based on the target user on the electronic device, where the trigger server executes the virtual resource transfer method of the embodiments of the present disclosure to ensure the fund security of the transaction-related parties, such as the designated internet platform, the target user, and the resource receiving user.
In other embodiments of the present disclosure, the resource transfer condition may include a resource transfer condition.
Alternatively, the resource transfer condition may include receiving a resource transfer request sent by the electronic device, where the resource transfer request may be used to request transfer of the virtual resource to be transferred to the account of the target user.
Specifically, the target user may initiate a resource transfer triggering operation involving a virtual resource transfer, such as a recharging operation, a red packet pickup operation, etc., in a designated internet platform on the electronic device. After receiving the resource transfer trigger operation input by the target user, the electronic device can send a resource transfer request corresponding to the resource transfer trigger operation to the server, so that the server triggers a resource transfer condition under the condition of receiving the resource transfer request.
Optionally, the resource transfer request may carry resource transfer information, where the resource transfer information may include a user identifier of the target user and a resource amount of the virtual resource to be transferred, so that the server may transfer the virtual resource to be transferred to the account of the target user based on the resource transfer information.
In these embodiments, after the server determines the trigger resource transfer condition, S210 may be executed to implement a resource transfer trigger operation for the electronic device based on the target user, where the trigger server executes the virtual resource transfer method of the embodiments of the present disclosure to ensure the fund security of the transaction related party, such as the target user and the designated internet platform.
In still other embodiments of the present disclosure, the resource transfer condition may include detecting that the remaining effective duration of the target remaining virtual resource in the target account is zero.
Optionally, the virtual resource may set the effective duration when transferring into both the sandbox account and the real account. The effective duration may be set as desired, for example, permanent, 1 year, 1 month, 1 day, 1 hour, etc., and is not limited herein.
The server can detect the transfer-in time and the effective duration of the remaining virtual resources in each account of the target user in real time. When the server detects that the remaining effective duration of the target remaining virtual resource in the target account is zero, it may determine that the target remaining virtual resource needs to be transferred out of the target account, and further determine a trigger resource transfer condition, and S210 may be executed, so as to implement the target remaining virtual resource based on the zero remaining effective duration, and trigger the server to execute the virtual resource transfer method of the embodiment of the present disclosure, so as to ensure fund security of a transaction related party, such as a designated internet platform.
For example, when the sandbox virtual resource is transferred into the sandbox account, an effective duration may be set for the transferred-in sandbox virtual resource, for example, 1 month, and the server may calculate a remaining effective duration of remaining sandbox virtual resources in the transferred-in sandbox virtual resource based on the transfer time and the effective duration of the transferred-in sandbox virtual resource, and determine a trigger resource transfer condition when determining that the remaining effective duration of remaining sandbox virtual resources in the transferred-in sandbox virtual resource is zero, thereby executing S210.
In summary, the server may trigger execution S210 in different manners through different preset resource transfer conditions, thereby improving the intelligence of virtual resource transfer.
In the embodiment of the disclosure, after triggering a preset resource transfer condition for a target user, the server may select one account from a plurality of accounts of the target user as an account to be transferred.
In some embodiments, the server may determine a user type of the target user, determine an account selection manner corresponding to the target user according to the user type, and further select an account to be transferred from a plurality of accounts of the target user according to the account selection manner corresponding to the target user.
The user types may include a test user type, an audit user type, an experience user type, a real user type, and the like. The test user type indicates that the user is an operator of the Internet platform, the auditing user type indicates that the user is an auditing person of the system platform, the experience user type indicates that the user is an experience user of the Internet platform, and the real user type indicates that the user is a real user of the Internet platform.
In the case that the user type is any one of the test user type, the audit user type and the experience user type, the account selection mode corresponding to the target user may be to use the sandbox account as the account to be transferred. In the case that the user type is a real user type, the account selection mode corresponding to the target user may be to use the real account as the account to be transferred.
Thus, the server can select corresponding accounts to be transferred for the target user from a plurality of accounts of the target user based on different user types.
In other embodiments, the server may also select the account to be transferred from the multiple accounts of the target user by using an account selection manner corresponding to the triggered resource transfer condition. Thus, the server can select corresponding accounts to be transferred for the target user from a plurality of accounts of the target user based on different resource transfer conditions.
The account selection method in these embodiments will be described in detail later.
In still other embodiments, each user may configure one sandbox account and one real account, and the virtual resources in both the sandbox account and the real account are universal virtual resources.
The universal virtual resource refers to a virtual resource which can be applied to the same internet platform in different operation platforms and different internet services in different associated internet platforms of the internet platform.
In the case where the internet platform is an application, the associated platform of the internet platform may be an associated application of the program, for example an application having the same developer. In the case where the internet platform is a website, the associated platform of the internet platform may be an associated website of the website, such as a website having the same developer.
In these embodiments, the server may select the account to be transferred from all accounts of the target user, regardless of the server triggering any resource transfer conditions for the internet service for the target user.
In still other embodiments, each user may configure multiple sandboxed accounts and multiple real accounts, and the virtual resources in both the sandboxed accounts and the real accounts are non-generic virtual resources.
Wherein, the non-universal virtual resource refers to a virtual resource which is not universal in at least one of the same internet service in the same internet platform in different running platforms, different internet service in different associated internet platforms of the internet platform or different internet service in the internet platform.
In these embodiments, each account of each user may correspond to a service identification, which may be used to indicate the type of service.
The service identifier may include at least one of an operation platform identifier, an internet platform identifier, and an internet service identifier.
Further, the identifier of the operation platform may be an identifier of a group to which the operation platform belongs, or may be an identifier of the operation platform, which is not limited herein. The internet platform identifier may be an identifier of a packet to which the internet platform belongs, or may be an identifier of the internet platform, which is not limited herein. The internet service identifier may be an identifier of a packet to which the internet service belongs, or may be an identifier of the internet service, which is not limited herein.
For example, if an internet platform identification is an identification of a group to which the internet platform belongs, the group to which the internet platform belongs including a plurality of internet platforms, virtual resources may be common among each internet platform under the group to which the internet platform belongs. For another example, if the internet platform identification is an identification of an internet platform, the virtual resource may only be applicable at that internet platform.
In these embodiments, in the case that the resource transfer condition corresponds to the target service, selecting the account to be transferred among the accounts of the target user in S210 may further specifically include:
an account to be transferred is selected among a plurality of accounts belonging to the target service.
Specifically, the server may obtain the service identifier of the target service corresponding to the resource transfer condition, and then select, from the accounts of the target users, a plurality of accounts having the service identifier of the target service, that is, a plurality of accounts belonging to the target service, and further select an account to be transferred from the plurality of accounts belonging to the target service, thereby implementing isolation of non-universal virtual resources.
S220, under the condition that the account to be transferred is a sandbox account, transferring the resources of the rest virtual resources in the sandbox account according to a sandbox resource transfer mode.
In the embodiment of the present disclosure, in the case where the account to be transferred selected by the server is a sandbox account, the server may transfer, according to a sandbox resource transfer manner, a virtual resource to be transferred corresponding to the transaction request from the sandbox account to a sandbox receiving account corresponding to the transaction request, and after the transaction is successful, no funds corresponding to the virtual resource to be transferred are provided to the resource receiving user, or, a sandbox account corresponding to the virtual resource to be transferred corresponding to the resource transfer request is transferred to the target user, and after the transaction is successful, no funds corresponding to the virtual resource to be transferred are collected from the target user.
Further, in the case that the server selects an account to be transferred from a plurality of accounts belonging to the target service, the server may perform resource transfer on the remaining virtual resources in the sandbox account corresponding to the target service according to a sandbox resource transfer manner when the account to be transferred is a sandbox account, which is not described herein.
And S230, under the condition that the account to be transferred is a real account, transferring the resources of the rest virtual resources in the real account according to a real resource transferring mode.
In the embodiment of the disclosure, in the case that the account to be transferred selected by the server is a real account, the server may transfer the virtual resource to be transferred corresponding to the transaction request from the real account to the real receiving account corresponding to the transaction request according to the real resource transfer manner, and after the transaction is successful, provide funds corresponding to the virtual resource to be transferred to the resource receiving user, or transfer the virtual resource to be transferred corresponding to the resource transfer request to the real account of the target user, and after the transaction is successful, collect funds corresponding to the virtual resource to be transferred from the target user.
Further, in the case that the server selects an account to be transferred from a plurality of accounts belonging to the target service, the server may perform resource transfer on the remaining virtual resources in the real account corresponding to the target service according to the real resource transfer manner when the account to be transferred is the real account, which is not described herein.
In the embodiment of the disclosure, a preset resource transfer condition can be triggered for a target user, one account is selected from a plurality of accounts of the target user, including at least a sandbox account and a real account, as an account to be transferred, and when the account to be transferred is the sandbox account, the remaining virtual resources in the sandbox account are transferred according to a sandbox resource transfer mode, and when the account to be transferred is the real account, the remaining virtual resources in the real account are transferred according to a real resource transfer mode.
In another embodiment of the disclosure, in the case that the plurality of accounts includes at least a sandbox account and a real account, the server may select a corresponding account to be transferred for the target user among the plurality of accounts of the target user based on different resource transfer conditions.
In some embodiments of the present disclosure, in the case where the resource transfer condition includes a resource transfer-out condition, selecting an account to be transferred among the plurality of accounts of the target user in S210 may specifically include:
determining the residual virtual resource quantity in the sandbox account and the residual virtual resource quantity in the real account;
and taking the account with larger residual virtual resource amount in the sandbox account and the real account as the account to be transferred.
Specifically, after triggering a preset resource transfer-out condition for a target user, the server can determine the remaining virtual resource amount in the sandbox account and the remaining virtual resource amount in the real account, compare the remaining virtual resource amount in the sandbox account with the remaining virtual resource amount in the real account, and further use an account with larger remaining virtual resource amount in the sandbox account and the real account as an account to be transferred, so that the success rate of virtual resource transfer is improved.
Thus, the server may select an account to be transferred based on the amount of virtual resources remaining in the account.
Further, in the case that the resource transfer condition includes receiving a transaction request sent by the electronic device and the transaction request carries a target account type, selecting an account to be transferred among the multiple accounts of the target user in S210 may further specifically include:
And taking the account belonging to the target account type in the sandbox account and the real account as the account to be transferred.
Specifically, after triggering a preset resource transfer condition for a target user, the server may acquire a target account type carried by the transaction request, and take an account belonging to the target account type in the sandbox account and the real account as an account to be transferred.
Thus, the server may further select the account to be transferred based on the target account type carried by the transaction request, in the case where the resource transfer condition includes a resource transfer-out condition.
Optionally, the sandbox account type can be used as the target account type when the target user performs testing, auditing and experience, so that the server can utilize the sandbox account to transfer the sandbox virtual resource when the target user performs testing, auditing and experience, thereby avoiding refund funds loss and repeated payment funds loss for the user caused by using the real account to perform testing, auditing and experience, and avoiding funds loss for the Internet platform caused by using the real account to perform testing, auditing and experience.
In other embodiments of the present disclosure, in the case where the resource transfer condition includes a resource transfer condition, selecting an account to be transferred among the plurality of accounts of the target user in S210 may specifically include:
Under the condition that the target funds corresponding to the virtual resources to be transferred are received, taking the real account as the account to be transferred;
and taking the sandbox account as the account to be transferred in the case that the target funds are not received.
Specifically, after triggering a preset resource transfer condition for a target user, the server may determine whether a target fund corresponding to a virtual resource to be transferred is received. Taking the recharging operation of the virtual currency by the target user as an example, the virtual currency to be recharged by the virtual resource to be transferred can be the virtual currency to be recharged, the target fund can be the goods money for purchasing the virtual currency to be recharged, and the server can determine whether the goods money is received or not, and further determine whether the target fund corresponding to the virtual resource to be transferred is received or not. If the target funds corresponding to the virtual resources to be transferred are received, the server can take the real account as the account to be transferred; if the target funds corresponding to the virtual resources to be transferred are not received, the server can take the sandbox account as the account to be transferred.
Therefore, the server can select the account to be transferred based on the receiving condition of the target funds corresponding to the virtual resource to be transferred.
In further embodiments of the present disclosure, in a case where the resource transfer condition includes detecting that the remaining effective duration of the target remaining virtual resource in the target account is zero, selecting the account to be transferred among the plurality of accounts of the target user in S210 may specifically include:
And taking the target account in the sandbox account and the real account as the account to be transferred.
Specifically, after triggering a preset resource transfer condition for a target user, the server may determine a target account to which the target remaining virtual resource belongs, and take a target account in the sandbox account and the real account as an account to be transferred.
Therefore, the server can select the account to be transferred based on the target account to which the target residual virtual resource with the residual effective duration of zero belongs.
It should be noted that, the method for selecting the account to be transferred from the plurality of accounts belonging to the target service by the server is similar to the above method, and will not be described herein.
In summary, the server may select the account to be transferred through different account selection manners corresponding to different resource transfer conditions, so as to improve flexibility and reliability of selecting the account to be transferred.
In still another embodiment of the present disclosure, the server may perform resource transfer on the remaining virtual resources in the account to be transferred based on different resource transfer conditions and resource transfer manners corresponding to different accounts to be transferred.
In some embodiments of the present disclosure, in a case where the resource transfer condition includes a resource roll-out condition, S220 may specifically include:
And transferring the virtual resource to be transferred from the sandbox account of the target user to the sandbox receiving account under the condition that the account to be transferred is the sandbox account and the residual virtual resource amount of the sandbox account is larger than or equal to the resource amount of the virtual resource to be transferred.
Specifically, the server may compare the remaining virtual resource amount of the sandbox account with the resource amount of the virtual resource to be transferred out, and if the comparison result is that the remaining virtual resource amount of the sandbox account is greater than or equal to the resource amount of the virtual resource to be transferred out, it is indicated that the remaining virtual resource amount of the sandbox account is sufficient for the transfer out, and the server may transfer the virtual resource to be transferred out from the sandbox account of the target user to the sandbox receiving account.
Optionally, after comparing the remaining virtual resource amount of the sandbox account with the resource amount of the virtual resource to be transferred out, if the comparison result is that the remaining virtual resource amount of the sandbox account is smaller than the resource amount of the virtual resource to be transferred out, the server may generate and send a termination prompt message to the electronic device, where the termination prompt message may be used to indicate a resource transfer failure and a cause of the resource transfer failure, such as insufficient remaining virtual resource of the sandbox account.
Accordingly, S230 may specifically include:
when the account to be transferred is a real account and the remaining virtual resource amount of the real account is greater than or equal to the resource amount of the virtual resource to be transferred, the virtual resource to be transferred is transferred from the real account of the target user to the real receiving account, which is similar to the specific resource transfer method of S220, and will not be described herein.
The virtual resource transfer method in the embodiments will be described in detail below by taking the embodiment shown in fig. 3 as an example.
Fig. 3 is a flow chart illustrating another virtual resource transfer method according to an embodiment of the present disclosure.
As shown in fig. 3, taking a virtual resource as an example of a virtual coin, the virtual resource transfer method may include the following steps.
S302, the server responds to the transaction request sent by the electronic equipment, an account to be transferred is selected from a plurality of accounts of the target user, S304 is executed if the account to be transferred is a sandbox account, and S310 is executed if the account to be transferred is a real account.
S304, in the case that the account to be transferred is a sandbox account, the server can judge whether the number of the virtual coins of the remaining sandbox in the sandbox account is larger than or equal to the number of the virtual coins to be transferred, namely whether the virtual coins of the remaining sandbox are enough, if so, S306 is executed, and if not, S308 is executed.
S306, the server executes resource transfer corresponding to the transaction request.
If the transaction request is generated by the electronic device according to the product purchasing operation of the target user, the server can continue to complete the product purchasing flow after the resource transfer is completed.
And S308, the server generates termination prompt information and sends the termination prompt information to the electronic equipment and the management system of the Internet platform respectively so as to report errors to the target user and the management system.
S310, in the case that the account to be transferred is a real account, the server can judge whether the number of the remaining real virtual coins of the real account is greater than or equal to the number of the virtual coins to be transferred, namely whether the remaining real virtual coins are enough, if so, S306 is executed, and if not, S312 is executed.
S312, the server generates termination prompt information and sends the termination prompt information to the electronic equipment so as to report errors to the target user.
Therefore, the server can transfer the resources of the account to be transferred according to the condition of the residual virtual resource quantity in the account to be transferred, and the reliability of the resource transfer is improved.
In other embodiments of the present disclosure, in a case where the resource transfer condition includes receiving a transaction request sent by the electronic device and the transaction request is for purchasing the target virtual product, S220 may specifically include:
Under the condition that the residual virtual resource quantity in the real account is greater than or equal to the target virtual resource quantity corresponding to the target virtual product, transferring the virtual resource with the target virtual resource quantity from the real account to a real receiving account corresponding to the target virtual product;
and sending the target virtual product to the electronic equipment.
Specifically, the server may compare the remaining virtual resource amount in the real account with the target virtual resource amount corresponding to the target virtual product, if the comparison result is that the remaining virtual resource amount in the real account is greater than or equal to the target virtual resource amount, it is indicated that the remaining virtual resource amount of the real account is sufficient to be transferred out this time, the server may transfer the virtual resource having the target virtual resource amount from the real account to the real receiving account corresponding to the target virtual product, and after completing the resource transfer, send the target virtual product purchased by the target user to the electronic device.
In still other embodiments of the present disclosure, where the resource transfer condition includes receiving a transaction request sent by the electronic device and the transaction request is for purchasing the target virtual product, S230 may specifically include:
under the condition that the residual virtual resource quantity in the sandbox account is greater than or equal to the target virtual resource quantity corresponding to the target virtual product, transferring the virtual resource with the target virtual resource quantity from the sandbox account to the sandbox receiving account corresponding to the target virtual product;
And sending a target virtual product carrying target prompt information to the electronic equipment, wherein the target prompt information is used for indicating that the target virtual product is obtained through the sandbox account.
Specifically, the server may compare the remaining virtual resource amount of the sandbox account with the target virtual resource amount corresponding to the target virtual product, if the comparison result is that the remaining virtual resource amount of the sandbox account is greater than or equal to the target virtual resource amount, it is indicated that the remaining virtual resource amount of the sandbox account is sufficient to be transferred out this time, the server may transfer the virtual resource having the target virtual resource amount from the sandbox account to the sandbox receiving account corresponding to the target virtual product, and after completing the resource transfer, send the target virtual product purchased by the target user to the electronic device.
In these embodiments, the target virtual product sent by the server to the electronic device carries a target prompt message, where the target prompt message may be used to instruct the target virtual product to be obtained through the sandbox account, so that the electronic device may display the target virtual product with the target prompt message, and further prompt the target user that the target virtual product is a virtual product obtained through the sandbox account.
Alternatively, the target prompt information may be a target prompt identifier or a target prompt text, which is not limited herein.
Optionally, the target virtual product may further carry a preset use duration, where the preset use duration may be used to indicate a duration of a use right of the electronic device to the target virtual product.
Further, before sending the target virtual product carrying the target prompt information to the electronic device, the virtual resource transfer method may further include:
and configuring the duration of the use permission for the target virtual product, and taking the duration of the use permission as the preset use duration corresponding to the target virtual product.
Specifically, the server may configure the duration of the use permission, that is, the use period, for the target virtual product to obtain a preset use duration corresponding to the target virtual product, and then send the target virtual product with the preset use duration and carrying the target prompt information to the electronic device. The server can determine the service life of the target virtual product by the target user according to the preset service time, and the target user can use the target virtual product through the electronic equipment during the service life, so that the target user cannot use the target virtual product through the electronic equipment at a time beyond the service life, and further the server can automatically retract the target virtual product after the service life expires, thereby guaranteeing the rights of the provider of the target virtual product.
In still other embodiments of the present disclosure, where the resource transfer condition includes detecting that the remaining effective duration of the target remaining virtual resource in the target account is zero, S220 may specifically include:
and transferring the target remaining virtual resources from the sandbox account to the sandbox resource recycling account under the condition that the account to be transferred is the sandbox account.
The sandbox resource recycling account can be an account of the internet platform for destroying the sandbox virtual resource.
Specifically, the server may directly transfer the target remaining virtual resources from the sandbox account to the sandbox resource recycling account in the case where the account to be transferred is the sandbox account, so as to clear the target remaining virtual resources of the sandbox account.
Accordingly, S230 may specifically include:
and in the case that the account to be transferred is a real account, transferring the target residual virtual resources from the real account to a real resource recycling account.
The real resource recycling account can be an account of the Internet platform for destroying real virtual resources.
Specifically, the server may directly transfer the target remaining virtual resources from the real account to the real resource recycling account in the case where the account to be transferred is the real account, so as to clear the target remaining virtual resources of the real account.
Therefore, the server can consume the target residual virtual resources with zero residual effective duration in a consumption mode, and the problem of inconsistent account checking caused by direct emptying is avoided.
In still other embodiments of the present disclosure, in the case where the resource transfer condition includes a resource transfer condition, S220 may specifically include:
and under the condition that the account to be transferred is a sandbox account, transferring the virtual resource to be transferred into the sandbox account from the sandbox resource issuing account.
The sandbox resource issuing account can be an account for the internet platform to issue sandbox virtual resources.
Specifically, the server may directly transfer the virtual resource to be transferred from the sandbox resource issuing account to the sandbox account under the condition that the account to be transferred is the sandbox account, so as to issue a new virtual resource to the sandbox account of the target user.
Accordingly, S230 may specifically include:
and under the condition that the account to be transferred is a real account, transferring the virtual resource to be transferred into the real account from the real resource issuing account.
The real resource issuing account can be an account for the Internet platform to issue real virtual resources.
Specifically, the server may directly transfer the virtual resource to be transferred from the real resource issuing account to the real account in the case that the account to be transferred is the real account, so as to issue a new virtual resource to the real account of the target user.
In summary, the server can reliably transfer the resources of the remaining virtual resources in the account to be transferred through different resource transfer conditions and resource transfer modes corresponding to different accounts to be transferred, so that the fund security of the target user is further improved.
The embodiment of the disclosure also provides another virtual resource transfer method, in which the server can also feed back the total amount of the remaining virtual resources of the plurality of accounts after the virtual resource transfer to the electronic device when the resource transfer is completed.
Fig. 4 is a flow chart illustrating a further virtual resource transfer method according to an embodiment of the present disclosure.
As shown in fig. 4, the virtual resource transfer method may include the following steps.
S410, responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user.
Optionally, the plurality of accounts includes at least a sandbox account and a real account.
And S420, carrying out resource transfer on the remaining virtual resources in the sandbox account according to a sandbox resource transfer mode under the condition that the account to be transferred is the sandbox account.
And S430, under the condition that the account to be transferred is a real account, transferring the resources of the rest virtual resources in the real account according to a real resource transferring mode.
It should be noted that S410 to S430 are similar to S210 to S230 in the embodiment shown in fig. 2, and are not described herein.
S440, when the resource transfer is completed, calculating the total amount of the residual virtual resources of the plurality of accounts.
In the embodiment of the disclosure, the server may calculate the total amount of remaining virtual resources in all accounts of the target user when the transfer of resources is completed.
Optionally, the server may establish an account table for each user, where a user identifier, a service identifier, remaining virtual resources of the sandbox account under different platforms, frozen remaining virtual resources of the sandbox account under different platforms, remaining virtual resources of the real account under different platforms, frozen remaining virtual resources of the real account under different platforms, total recharging virtual resources of the sandbox account under different platforms, and the like may be recorded in the account table, which is not limited herein.
Therefore, the internet platform can carry out differentiated management, inquiry and account checking on the sandbox account and the real account of each user based on the account table, and the accuracy of management, inquiry and account checking is improved.
Specifically, when the server finishes the resource transfer, the accounting table of the target user can be updated according to the finishing condition of the resource transfer, and then the total amount of the remaining virtual resources of all accounts in the updated accounting table of the target user is calculated.
S450, sending the total amount of the remaining virtual resources to the electronic equipment corresponding to the plurality of accounts.
In the embodiment of the disclosure, the server may send the total amount of the remaining virtual resources to the electronic device corresponding to the target user, so that the electronic device displays the total amount of the remaining virtual resources of the multiple accounts of the target user, so that the target user knows the total amount of the remaining virtual resources owned by the target user after the transfer of the resources is completed.
Therefore, the electronic equipment can uniformly display the residual virtual resource amounts of the sandbox account and the real account, and further reduce the perception of users to different accounts.
The embodiment of the disclosure also provides a virtual resource transfer method, in which the server can also generate resource transfer flow information corresponding to the resource transfer when the resource transfer is completed.
Fig. 5 shows a flowchart of still another virtual resource transfer method according to an embodiment of the present disclosure.
As shown in fig. 5, the virtual resource transfer method may include the following steps.
S510, responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user.
Optionally, the plurality of accounts includes at least a sandbox account and a real account.
And S520, carrying out resource transfer on the remaining virtual resources in the sandbox account according to a sandbox resource transfer mode under the condition that the account to be transferred is the sandbox account.
And S530, carrying out resource transfer on the residual virtual resources in the real account according to a real resource transfer mode under the condition that the account to be transferred is the real account.
It should be noted that S510 to S530 are similar to S210 to S230 in the embodiment shown in fig. 2, and are not described herein.
S540, when the resource transfer is completed, generating resource transfer flow information corresponding to the resource transfer.
In the embodiment of the present disclosure, after virtual resource transfer is performed on an account to be transferred, the server may generate resource transfer flow information corresponding to resource transfer according to a preset flow generation manner, and store the resource transfer flow information in association with the account to be transferred. When the target user wants to view the historical resource transfer flow information of the account to be transferred, the electronic device sends a historical flow acquisition request to the server, the historical flow acquisition request can carry the account identifier of the account to be transferred, and the server can respond to the received historical flow acquisition request and send the resource transfer flow information stored in association with the account to be transferred, to which the account identifier belongs, to the electronic device for the user to view.
Further, the historical running water obtaining request sent by the electronic device to the server may further carry a query time range, and the server may respond to the received historical running water obtaining request and send resource transfer running water information stored in association with the account to be transferred in the query time range to the electronic device for the user to view.
Optionally, the resource transfer flow information corresponding to one resource transfer may include, without limitation, a user identifier, an account type of an account to be transferred, an account identifier of the account to be transferred, a virtual resource transfer time, a remaining virtual resource amount before the resource transfer occurs, a remaining virtual resource amount after the resource transfer occurs, a resource transfer type, and a resource transfer use.
Therefore, the running water information of different accounts can be clearly isolated, and reconciliation consistency is ensured.
Further, in the case that the remaining virtual resources in the account to be transferred are non-universal virtual resources, the resource transfer flow information corresponding to one resource transfer may further include a service type. Therefore, the method can clearly isolate the flow information of different business types and ensure reconciliation consistency.
In summary, the virtual resource transfer method of the embodiment of the disclosure can improve coverage of the payment scenario of the public test, avoid funds loss of the transaction related party of the virtual resource transaction, and improve account security and experience of the transaction related party.
Fig. 6 illustrates a schematic structural diagram of a virtual resource transferring apparatus according to an embodiment of the present disclosure.
In the embodiment of the present disclosure, the virtual resource transferring apparatus 600 may be a server, such as the server 102 in the server shown in fig. 1. The server may include a cloud server or a server cluster, and other devices with storage and computing functions.
As shown in fig. 6, the virtual resource transferring apparatus 600 may include an account selecting unit 610, a first transferring unit 620, and a second transferring unit 630.
The account selection unit 610 may be configured to select an account to be transferred among a plurality of accounts of the target user, including at least a sandbox account and a real account, in response to triggering a preset resource transfer condition for the target user.
The first transferring unit 620 may be configured to perform resource transfer on the remaining virtual resources in the sandbox account according to a sandbox resource transfer manner in the case where the account to be transferred is a sandbox account.
The second transferring unit 630 may be configured to perform resource transfer on the remaining virtual resources in the real account according to the real resource transfer manner in the case where the account to be transferred is the real account.
In the embodiment of the disclosure, a preset resource transfer condition can be triggered for a target user, one account is selected from a plurality of accounts of the target user, including at least a sandbox account and a real account, as an account to be transferred, and when the account to be transferred is the sandbox account, the remaining virtual resources in the sandbox account are transferred according to a sandbox resource transfer mode, and when the account to be transferred is the real account, the remaining virtual resources in the real account are transferred according to a real resource transfer mode.
In some embodiments of the present disclosure, the resource transfer condition may include a resource roll-out condition.
Accordingly, the account selection unit 610 may include a first selection subunit and a second selection subunit.
The first selection subunit may be configured to determine an amount of virtual resources remaining in the sandboxed account and an amount of virtual resources remaining in the real account.
The second selection subunit may be configured to take an account with a larger amount of virtual resources remaining in the sandbox account and the real account as the account to be transferred.
In other embodiments of the present disclosure, the resource transfer condition may include a resource transfer condition.
Accordingly, the account selection unit 610 may include a third selection subunit and a fourth selection subunit.
The third selection subunit may be configured to take the real account as the account to be transferred in a case where it is determined that the target funds corresponding to the virtual resource to be transferred are received.
The fourth selection subunit may be configured to take the sandbox account as the account to be transferred in case it is determined that the target funds are not received.
In further embodiments of the present disclosure, the resource transfer condition may include receiving a transaction request sent by the electronic device, which may carry the target account type.
Accordingly, the account selection unit 610 may include a fifth selection subunit that may be configured to take an account belonging to the target account type among the sandbox account and the real account as the account to be transferred.
In still other embodiments of the present disclosure, the resource transfer condition may include detecting that the remaining effective duration of the target remaining virtual resource in the target account is zero.
Accordingly, the account selection unit 610 may include a sixth selection subunit that may be configured to take a target account of the sandbox account and the real account as an account to be transferred.
In some embodiments of the present disclosure, the resource transfer condition may include receiving a transaction request sent by the electronic device, which may be used to purchase the target virtual product.
Accordingly, the second transfer unit 630 may include a first transfer subunit and a second transfer subunit.
The first transfer subunit may be configured to transfer the virtual resource having the target virtual resource amount from the real account to the real receiving account corresponding to the target virtual product, in a case where the remaining virtual resource amount in the real account is greater than or equal to the target virtual resource amount corresponding to the target virtual product.
The second transfer subunit may be configured to send the target virtual product to the electronic device.
In other embodiments of the present disclosure, the resource transfer condition may include receiving a transaction request sent by the electronic device, which may be used to purchase the target virtual product.
Accordingly, the first transfer unit 620 may include a third transfer subunit and a fourth transfer subunit.
The third transferring subunit may be configured to transfer the virtual resource having the target virtual resource amount from the sandbox account to the sandbox receiving account corresponding to the target virtual product, in a case where the remaining virtual resource amount in the sandbox account is greater than or equal to the target virtual resource amount corresponding to the target virtual product.
The fourth transfer subunit may be configured to send, to the electronic device, a target virtual product carrying target prompt information, where the target prompt information is used to instruct the target virtual product to be obtained through the sandbox account.
Further, the target virtual product may further carry a preset use duration, where the preset use duration may be used to indicate a duration of the use permission of the electronic device on the target virtual product.
In some embodiments of the present disclosure, the virtual resource transfer apparatus 600 may further include a resource amount calculating unit and a resource amount transmitting unit.
The resource amount calculation unit may be configured to calculate the total amount of virtual resources remaining for the plurality of accounts upon completion of the resource transfer.
The resource amount transmitting unit may be configured to transmit the remaining virtual resource amount to the electronic devices corresponding to the plurality of accounts.
In some embodiments of the present disclosure, the virtual resource migration apparatus 600 may further include a pipeline generating unit, where the pipeline generating unit may be configured to generate resource migration pipeline information corresponding to resource migration when the resource migration is completed.
In some embodiments of the present disclosure, the resource transfer condition may correspond to a target service.
Accordingly, the account selection unit 610 may be further configured to select an account to be transferred among a plurality of accounts belonging to the target service.
It should be noted that, the virtual resource transferring apparatus 600 shown in fig. 6 may perform the steps in the method embodiments shown in fig. 2 to 5, and implement the processes and effects in the method embodiments shown in fig. 2 to 5, which are not described herein.
Embodiments of the present disclosure also provide a virtual resource transfer device that may include a processor and a memory that may be used to store executable instructions. The processor may be configured to read the executable instructions from the memory and execute the executable instructions to implement the virtual resource transfer method in the above embodiment.
Fig. 7 illustrates a schematic structural diagram of a virtual resource transfer device according to an embodiment of the present disclosure. Referring now in particular to FIG. 7, a schematic diagram of a virtual resource transfer device 700 suitable for use in implementing embodiments of the present disclosure is shown.
The virtual resource transfer device 700 in the embodiments of the present disclosure may be a server. The server may include a cloud server or a server cluster, and other devices with storage and computing functions.
It should be noted that, the virtual resource transfer device 700 shown in fig. 7 is only an example, and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.
As shown in fig. 7, the virtual resource transfer apparatus 700 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage device 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the virtual resource transfer device 700 are also stored. The processing device 701, the ROM702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
In general, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the virtual resource transfer device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 shows a virtual resource transfer apparatus 700 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The present disclosure also provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the virtual resource transfer method in the above embodiments.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, or installed from storage 708, or installed from ROM 702. When executed by the processing device 701, the computer program performs the above-described functions defined in the virtual resource transfer method of the embodiment of the present disclosure.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP, and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the virtual resource transfer device; or may exist alone without being assembled into the virtual resource transfer device.
The computer-readable medium carries one or more programs which, when executed by the virtual resource transfer device, cause the virtual resource transfer device to perform:
responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user, wherein the plurality of accounts at least comprise a sandbox account and a real account; under the condition that the account to be transferred is a sandbox account, transferring the resources of the rest virtual resources in the sandbox account according to a sandbox resource transferring mode; and under the condition that the account to be transferred is a real account, transferring the resources of the rest virtual resources in the real account according to a real resource transferring mode.
In an embodiment of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
Claims (12)
1. A virtual resource transfer method, comprising:
responding to triggering a preset resource transfer condition aiming at a target user, and selecting an account to be transferred from a plurality of accounts of the target user, wherein the accounts at least comprise a sandbox account and a real account;
under the condition that the account to be transferred is the sandbox account, performing resource transfer on the remaining virtual resources in the sandbox account according to a sandbox resource transfer mode;
under the condition that the account to be transferred is the real account, transferring the resources of the rest virtual resources in the real account according to a real resource transferring mode;
the resource transfer condition includes receiving a transaction request sent by the electronic device, where the transaction request is used to purchase a target virtual product, and performing resource transfer on remaining virtual resources in the sandbox account according to a sandbox resource transfer mode includes:
Transferring virtual resources with the target virtual resource amount from the sandbox account to a sandbox receiving account corresponding to the target virtual product under the condition that the residual virtual resource amount in the sandbox account is greater than or equal to the target virtual resource amount corresponding to the target virtual product;
the target virtual product carrying target prompt information is sent to the electronic equipment, and the target prompt information is used for indicating that the target virtual product is obtained through the sandbox account;
and transferring the resources of the rest virtual resources in the real account according to a real resource transfer mode, wherein the method comprises the following steps:
transferring virtual resources with the target virtual resource amount from the real account to a real receiving account corresponding to the target virtual product under the condition that the residual virtual resource amount in the real account is greater than or equal to the target virtual resource amount corresponding to the target virtual product
And sending the target virtual product to the electronic equipment.
2. The method of claim 1, wherein the resource transfer condition comprises a resource roll-out condition;
wherein the selecting an account to be transferred from the plurality of accounts of the target user comprises:
Determining the amount of virtual resources remaining in the sandbox account and the amount of virtual resources remaining in the real account;
and taking the account with larger residual virtual resource quantity in the sandbox account and the real account as the account to be transferred.
3. The method of claim 1, wherein the resource transfer condition comprises a resource transfer condition;
wherein the selecting an account to be transferred from the plurality of accounts of the target user comprises:
under the condition that the target funds corresponding to the virtual resources to be transferred are received, taking the real account as the account to be transferred;
and taking the sandbox account as the account to be transferred under the condition that the target funds are not received.
4. The method of claim 1, wherein the resource transfer condition comprises receiving a transaction request sent by an electronic device, the transaction request carrying a target account type;
wherein the selecting an account to be transferred from the plurality of accounts of the target user comprises:
and taking the account belonging to the target account type in the sandbox account and the real account as the account to be transferred.
5. The method of claim 1, wherein the resource transfer condition comprises detecting that a remaining effective duration of a target remaining virtual resource in a target account is zero;
wherein the selecting an account to be transferred from the plurality of accounts of the target user comprises:
and taking the target account in the sandbox account and the real account as the account to be transferred.
6. The method of claim 1, wherein the target virtual product further carries a preset usage time period, and the preset usage time period is used for indicating a time period of a usage right of the electronic device to the target virtual product.
7. The method according to claim 1, wherein the method further comprises:
when the resource transfer is completed, calculating the total amount of the remaining virtual resources of the plurality of accounts;
and sending the total amount of the remaining virtual resources to the electronic equipment corresponding to the plurality of accounts.
8. The method according to claim 1, wherein the method further comprises:
and when the resource transfer is completed, generating resource transfer flow information corresponding to the resource transfer.
9. The method of claim 1, wherein the resource transfer condition corresponds to a target service;
Wherein the selecting an account to be transferred from the plurality of accounts of the target user comprises:
and selecting the account to be transferred from the plurality of accounts belonging to the target business.
10. A virtual resource transfer apparatus, comprising:
an account selection unit configured to select an account to be transferred from a plurality of accounts of a target user in response to triggering a preset resource transfer condition for the target user, wherein the plurality of accounts at least comprise a sandbox account and a real account;
the first transfer unit is configured to transfer resources of the remaining virtual resources in the sandbox account according to a sandbox resource transfer mode under the condition that the account to be transferred is the sandbox account;
the second transferring unit is configured to transfer the resources of the remaining virtual resources in the real account according to a real resource transferring mode under the condition that the account to be transferred is the real account;
the first transferring unit is configured to receive a transaction request sent by an electronic device, where the transaction request is used to purchase a target virtual product, and perform resource transfer on remaining virtual resources in the sandbox account according to a sandbox resource transfer manner, where the resource transfer includes:
Transferring virtual resources with the target virtual resource amount from the sandbox account to a sandbox receiving account corresponding to the target virtual product under the condition that the residual virtual resource amount in the sandbox account is greater than or equal to the target virtual resource amount corresponding to the target virtual product;
the target virtual product carrying target prompt information is sent to the electronic equipment, and the target prompt information is used for indicating that the target virtual product is obtained through the sandbox account;
the second transferring unit is configured to receive a transaction request sent by the electronic device, where the transaction request is used to purchase a target virtual product, and perform resource transfer on remaining virtual resources in the real account according to a real resource transfer manner, where the resource transfer includes:
under the condition that the residual virtual resource quantity in the real account is greater than or equal to the target virtual resource quantity corresponding to the target virtual product, transferring the virtual resource with the target virtual resource quantity from the real account to a real receiving account corresponding to the target virtual product;
and sending the target virtual product carrying target prompt information to the electronic equipment, wherein the target prompt information is used for indicating that the target virtual product is obtained through the sandbox account.
11. A virtual resource transfer apparatus, comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the virtual resource transfer method of any of the preceding claims 1-9.
12. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the virtual resource transfer method of any of the preceding claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110442844.1A CN113129013B (en) | 2021-04-23 | 2021-04-23 | Virtual resource transfer method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110442844.1A CN113129013B (en) | 2021-04-23 | 2021-04-23 | Virtual resource transfer method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113129013A CN113129013A (en) | 2021-07-16 |
CN113129013B true CN113129013B (en) | 2023-10-03 |
Family
ID=76779413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110442844.1A Active CN113129013B (en) | 2021-04-23 | 2021-04-23 | Virtual resource transfer method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113129013B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245234A (en) * | 2021-12-21 | 2022-03-25 | 北京达佳互联信息技术有限公司 | Virtual resource processing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615516A (en) * | 2018-12-05 | 2019-04-12 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus, electronic equipment and storage medium |
CN111340468A (en) * | 2020-02-26 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Resource data processing method and device, computer equipment and storage medium |
CN112232810A (en) * | 2020-09-24 | 2021-01-15 | 中国银联股份有限公司 | Resource processing method, server, device, equipment, system and medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3786826A1 (en) * | 2019-08-30 | 2021-03-03 | Barclays Execution Services Limited | Secure validation pipeline in a third party cloud environment |
US20210110359A1 (en) * | 2019-10-15 | 2021-04-15 | Bank Of America Corporation | Dynamic virtual resource management system |
-
2021
- 2021-04-23 CN CN202110442844.1A patent/CN113129013B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615516A (en) * | 2018-12-05 | 2019-04-12 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus, electronic equipment and storage medium |
CN111340468A (en) * | 2020-02-26 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Resource data processing method and device, computer equipment and storage medium |
CN112232810A (en) * | 2020-09-24 | 2021-01-15 | 中国银联股份有限公司 | Resource processing method, server, device, equipment, system and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113129013A (en) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102312781B1 (en) | Offline payment, service processing, and method and apparatus for payment processing | |
CN105099688B (en) | A kind of operating method of electronic account, the methods of exhibiting and device for paying the page | |
TWI762788B (en) | Payment risk control method and system | |
CN110599323A (en) | Resource processing method and processing equipment | |
US10439973B2 (en) | Methods to mitigate communication delays between systems in connection with a transport service | |
CN111260478A (en) | Credit data interaction method and system | |
CN110796440A (en) | Payment method, device and system, payment service architecture, electronic equipment and medium | |
WO2022262527A1 (en) | Digital currency-based payment method, platform, terminal, and payment system | |
CN114169885A (en) | Digital currency payment method, device, terminal and computer readable storage medium | |
US20140052616A1 (en) | Payment system and methods for brokering consumer-pay transactions | |
CN110348827A (en) | The direct-connected method of medium and small bank, minuscule-type-enterprise and relevant device based on third-party application | |
CN113129013B (en) | Virtual resource transfer method, device, equipment and medium | |
CN113935726A (en) | Method, apparatus and computer readable medium for implementing a common account | |
CN111857876A (en) | Service processing method and device, electronic equipment and computer readable medium | |
CN111415263A (en) | Data matching method and device | |
CN111415148A (en) | Method and device for non-inductive payment, electronic equipment and storage medium | |
CN111476562A (en) | Virtual resource transfer method, device, electronic equipment and storage medium | |
CN111401910A (en) | Transfer method executed by computing device and transfer apparatus applied to computing device | |
CN116976883A (en) | Prepaid card fund supervision method and system based on blockchain | |
CN117078251A (en) | Prepayment type consumption method, system, equipment and storage medium based on digital currency | |
CN117172766A (en) | Virtual account data processing method, device, equipment and storage medium | |
CN111127003A (en) | Wallet account payment method, device and storage medium | |
CN112927035A (en) | Resource allocation method, device, equipment and medium | |
CN116012006A (en) | Digital currency-based payment method, platform and payment system | |
CN115619385A (en) | Payment management method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |