CN113129013A - Virtual resource transfer method, device, equipment and medium - Google Patents

Virtual resource transfer method, device, equipment and medium Download PDF

Info

Publication number
CN113129013A
CN113129013A CN202110442844.1A CN202110442844A CN113129013A CN 113129013 A CN113129013 A CN 113129013A CN 202110442844 A CN202110442844 A CN 202110442844A CN 113129013 A CN113129013 A CN 113129013A
Authority
CN
China
Prior art keywords
account
virtual
resource transfer
target
sandbox
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.)
Granted
Application number
CN202110442844.1A
Other languages
Chinese (zh)
Other versions
CN113129013B (en
Inventor
杨开南
马列敏
王丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110442844.1A priority Critical patent/CN113129013B/en
Publication of CN113129013A publication Critical patent/CN113129013A/en
Application granted granted Critical
Publication of CN113129013B publication Critical patent/CN113129013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, 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/405Establishing or using transaction specific rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/227Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction

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 a preset resource transfer condition triggered by 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 the sandbox account, resource transfer is carried out on the residual virtual resources in the sandbox account according to the sandbox resource transfer mode; and under the condition that the account to be transferred is the real account, performing resource transfer on the residual virtual resources in the real account according to a real resource transfer mode. According to the embodiment of the disclosure, the reliability of virtual resource transaction and the account security of transaction related parties can be improved.

Description

Virtual resource transfer method, device, equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for virtual resource transfer.
Background
With the rapid development of computer technology and mobile communication technology, more and more internet platforms all promote virtual resource transaction functions, such as virtual coin recharging and virtual product purchasing by using virtual coins.
At present, a user can test or experience a virtual resource transaction function of an internet platform by using a sandbox account. However, when the user owns the sandbox account and the real account at the same time, in the process of the virtual resource transaction performed by the user through the internet platform, the virtual resources in the sandbox account and the real account may be mixed, so that the fund loss of the transaction related party of the virtual resource transaction is caused, and the account security of the transaction related party is further reduced.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, 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 a preset resource transfer condition triggered by 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 the sandbox account, resource transfer is carried out on the residual virtual resources in the sandbox account according to the sandbox resource transfer mode;
and under the condition that the account to be transferred is the real account, performing resource transfer on the residual virtual resources in the real account according to a real resource transfer mode.
In a second aspect, the present disclosure provides a virtual resource transfer apparatus, including:
the account selection unit is configured to respond to a preset resource transfer condition triggered by a target user, and select 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;
the first transfer unit is configured to transfer the resources of the residual virtual resources in the sandbox account according to the sandbox resource transfer mode under the condition that the account to be transferred is the sandbox account;
and the second transfer unit is configured to transfer the resources of the residual virtual resources in the real account according to the real resource transfer 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 device, including:
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:
the virtual resource transfer method, the device, the equipment and the medium of the embodiment can respond to the preset resource transfer condition triggered by the target user, select one account from a plurality of accounts at least comprising the sandbox account and the real account of the target user as the account to be transferred, and transfer the resources of the residual virtual resources in the sandbox account according to the sandbox resource transfer mode under the condition that the account to be transferred is the sandbox account, and transfer the resources of the residual virtual resources in the real account according to the real resource transfer mode under the condition that the account to be transferred is the real account, because the virtual resource transfer is only carried out aiming at one account in the plurality of accounts when the resource transfer condition is triggered each time, the mixing of the virtual resources in the sandbox account and the real account is avoided, therefore, the fund loss of the transaction related party of the virtual resource transaction can be avoided, the reliability of virtual resource transaction and the account security of transaction related parties are improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is an architecture diagram of virtual resource transfer provided in an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a virtual resource transfer method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another virtual resource transfer method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another virtual resource transfer method provided in the embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another virtual resource transfer method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a virtual resource transfer 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 are shown in the 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 rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the 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. Moreover, 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 "include" and variations thereof as used herein are 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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
First, a part of the concept related to the present disclosure will be explained.
The sandbox environment refers to an environment in which a user is not actually deducted money during a transaction process, but an internet platform is informed that the transaction payment is successful. The account used by the user in the sandbox environment may be a sandbox account.
The virtual resource transaction function of the internet platform can be tested by an operator of the internet platform in a sandbox environment by using the sandbox account. An auditor of the system platform can audit the virtual resource transaction function of the internet platform by using the sandbox account in the sandbox environment. Experience users of the internet platform can experience the virtual resource transaction function of the internet platform by using the sandbox account in the sandbox environment.
Specifically, the system platform may be a running platform of a mobile operating system, and the mobile operating system may be any system, which is not limited herein.
The real environment is an environment for informing the internet platform of successful transaction payment after real deduction of money is carried out on the user 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 use the real account to actually use the virtual resource transaction function of the internet platform in the real environment.
The virtual resources may include virtual coins, vouchers, red packs, etc. that a user may recharge or purchase and utilize to purchase "tokens" of merchandise through payment.
The remaining virtual resource may be a virtual resource balance of the account, such as a virtual currency balance, a voucher balance, a red envelope balance, and the like.
At present, when a user owns a sandbox account and a real account at the same time, the internet platform generally does not distinguish a "sandbox environment" from a "real environment" in the process of virtual resource transaction by the user through the internet platform, that is, 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 power.
In one case, if the user is charged with 100 virtual coins in a sandbox environment, however, there is no internet platform to make a real deduction to the user. Thereafter, the user purchases a commodity worth of 80 virtual coins using the 100 virtual coins. Because the internet platform does not distinguish the sandbox environment from the real environment, after the transaction is successful, the platform pays funds corresponding to 80 virtual coins to a provider (merchant) of the commodity, so that the internet platform has fund loss.
In another case, if the user is charged with 100 virtual coins in a sandbox environment, however, there is no real deduction from the user by the internet platform. After that, the user applies for refunds for the 100 virtual coins. Because the internet platform does not distinguish the 'sandbox environment' from the 'real environment', the internet platform has no way to distinguish whether the 100 virtual coins actually deduct money from the user, and refund the user only according to the fact that the real money is deducted from the user, so that the internet platform has fund loss.
Therefore, in the related art, when a user owns a sandbox account and a real account at the same time, in the process of virtual resource transaction of the user through an internet platform, virtual resources in the sandbox account and the real account may be mixed, so that fund loss of transaction related parties of the virtual resource transaction, such as the internet platform, is caused, and further, the account security of the transaction related parties, such as the internet platform, is reduced.
In order to solve the above problem, embodiments of the present disclosure provide a virtual resource transfer method, apparatus, device, and medium capable of ensuring fund security and legitimate interest of a transaction-related party of a virtual resource transaction on the premise of supporting 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 shows 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 at a client side and at least one server 102 at a server side. The electronic device 101 may establish a connection with the server 102 through a network Protocol, such as hypertext Transfer Protocol over Secure Socket Layer (HTTPS), and perform information interaction. The electronic device 101 may include a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable device, an all-in-one machine, an intelligent home device, and other devices having a communication function, and may also include a virtual machine or a simulator-simulated device. The server 102 may include a device with storage and computing functions, such as a cloud server or a server cluster.
Based on the above framework, the server 102 may respond to a preset resource transfer condition triggered for the target user 103 using the electronic device 101, select one account from the multiple accounts of the target user 103 as an account to be transferred, since the multiple accounts of the target user 103 may at least include 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 used as the account to be transferred, and then, in a case that the account to be transferred is the sandbox account, resource transfer is performed on the remaining virtual resources in the sandbox account according to the sandbox resource transfer manner, and in a case that the account to be transferred is the real account, resource transfer is performed on the remaining virtual resources in the real account according to the real resource transfer manner, so that a mixture of the virtual resources in the sandbox account and the real account is avoided, therefore, the fund 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 product purchase operation, a transfer operation, and/or other transaction triggering operations involving the transfer of virtual resources within a designated internet platform on the electronic device 101, where the designated internet platform may be a designated application or a designated website. After receiving the transaction triggering operation input by the target user 103, the electronic device 101 may send a transaction request corresponding to the transaction triggering operation to the server 102 of the specified internet platform, so that the server 102 receives the transaction request. At this time, the server 103 may determine, in response to receiving the transaction request, that a preset resource transfer condition is triggered for the target user 103, select one account from the multiple accounts of the target user 103 to serve 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 the sandbox resource transfer manner when the account to be transferred is the 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 the real resource transfer manner when the account to be transferred is the real account. Therefore, in the process of transferring out the virtual resources, the mixing use of the sandbox account of the target user 103 and the virtual resources of the real account can be avoided, further, the fund loss of both parties of the resource receiving user corresponding to the designated internet platform, the target user 103 and the transaction request is avoided, 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 load operation, a red envelope pickup operation, or other resource transfer triggering operation involving virtual resource transfer within a designated internet platform on the electronic device 101. After receiving the resource transfer triggering operation input by the target user 103, the electronic device 101 may send a resource transfer request corresponding to the resource transfer triggering operation to the server 102 of the specified 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 one account from the multiple accounts of the target user 103 as an account to be transferred, transfer the resource to the virtual resource to be transferred corresponding to the transfer request to the sandbox account according to the sandbox resource transfer mode if the account to be transferred is the sandbox account, and transfer the resource to the virtual resource to be transferred corresponding to the transfer request to the real account according to the real resource transfer mode if the account to be transferred is the real account. Therefore, in the process of transferring to the virtual resource, the virtual resource of the sandbox account and the real account of the target user 103 can be prevented from being mixed, the fund loss of the target user 103 and the specified internet platform can be further avoided, and the reliability of virtual resource transaction and the account security of the transaction related party can be improved.
The following describes a virtual resource transfer method provided by the embodiment of the present disclosure with reference to fig. 2 to 5 according to the above architecture. In the embodiment of the present disclosure, the virtual resource transfer method may be performed by 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.
Fig. 2 shows a flowchart of a virtual resource transfer method provided by an embodiment of the present disclosure.
As shown in fig. 2, the virtual resource transfer method may include the following steps.
S210, responding to a preset resource transfer condition triggered by 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 the disclosed embodiment, the virtual resource may include a "token" that a user may add or purchase by paying and may purchase goods using, such as a virtual coin, a voucher, a red pack, and the like, without limitation.
In the embodiment of the present disclosure, the remaining virtual resource may be a virtual resource balance in a corresponding account, for example, a virtual coin balance, a voucher balance, a red envelope balance, and the like, which is not limited herein.
Taking a sandbox account as an example, the sandbox account may correspond to the sandbox virtual resource, and the remaining virtual resource in the sandbox account may be the remaining sandbox virtual resource. Taking the real account as an example, the real account may correspond to the real virtual resources, and the remaining virtual resources in the real account may be the remaining real virtual resources.
In some embodiments of the present disclosure, the resource transfer condition may comprise a resource roll-out condition.
Optionally, the resource transfer-out condition may include receiving a transaction request sent by the electronic device, where the transaction request may be used to request that the virtual resource to be transferred out be transferred from the account of the target user to the account to be transferred in.
The electronic device may be the electronic device 101 in the client shown in fig. 1.
Specifically, the target user may initiate a product purchase operation, a transfer operation, and other transaction triggering operations involving virtual resource roll-out within a designated internet platform on the electronic device. The electronic device may send a transaction request corresponding to a transaction triggering operation to the server after receiving the transaction triggering operation input by the target user, so that the server triggers the resource transfer-out condition when 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 triggering resource roll-out condition, S210 may be executed to implement a transaction triggering operation on the electronic device based on the target user, and the triggering server executes the virtual resource transfer method of the embodiments of the present disclosure to secure funds of transaction-related parties, such as a specified 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-in condition.
Optionally, 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 to transfer the virtual resource to be transferred to the account of the target user.
Specifically, the target user may initiate a resource transfer triggering operation related to virtual resource transfer, such as a recharge operation, a red envelope pickup operation, and the like, in a specified internet platform on the electronic device. The electronic device may send a resource transfer-in request corresponding to the resource transfer-in trigger operation to the server after receiving the resource transfer-in trigger operation input by the target user, so that the server triggers the resource transfer-in condition when receiving the resource transfer-in request.
Optionally, the resource transfer-in request may carry resource transfer-in information, where the resource transfer-in information may include a user identifier of the target user and a resource amount to be transferred into the virtual resource, so that the server may transfer the virtual resource to be transferred into an account of the target user based on the resource transfer-in information.
In these embodiments, after the server determines the triggering resource transfer condition, S210 may be executed to implement a resource transfer triggering operation on the electronic device based on the target user, and the triggering 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 specified 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 effective duration may be set when the virtual resource is transferred to both the sandbox account and the real account. The effective time period may be set according to needs, such as permanent, 1 year, 1 month, 1 day, 1 hour, and the like, and is not limited herein.
The server can detect the transfer-in time and the effective duration of the residual 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 be determined that the target remaining virtual resource needs to be transferred out from the target account, and then a trigger resource transfer condition may be determined, and S210 may be executed to implement the virtual resource transfer method of the embodiment of the present disclosure based on the target remaining virtual resource whose remaining effective duration is zero, so as to ensure the fund security of a transaction-related party, such as a designated internet platform.
For example, when transferring the sandbox virtual resource to the sandbox account, an effective duration, for example, 1 month, may be set for the transferred sandbox virtual resource, the server may calculate, based on the transfer time and the effective duration of the transferred sandbox virtual resource, a remaining effective duration of the remaining sandbox virtual resource in the transferred sandbox virtual resource, and when determining that the remaining effective duration of the remaining sandbox virtual resource in the transferred sandbox virtual resource is zero, determine to trigger a resource transfer condition, and then execute S210.
In summary, the server may trigger the execution of S210 in different ways according to different preset resource transfer conditions, so that the intelligence of virtual resource transfer is improved.
In the embodiment of the disclosure, after triggering the preset resource transfer condition for the target user, the server may select one account from the multiple 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 select an account to be transferred from among the plurality of accounts of the target user according to the account selection manner corresponding to the target user.
The user type may include a test user type, an audit user type, an experience user type, a real user type, and the like. The testing user type indicates that the user is an operator of the Internet platform, the auditing user type indicates that the user is an auditor 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.
When 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. When the user type is the 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.
Therefore, the server can select a corresponding account 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 an 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. Therefore, the server can select a corresponding account to be transferred for the target user from the 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 common virtual resources.
The universal virtual resource refers to a virtual resource which can be applied to different internet services in the same internet platform in different operation platforms and different associated internet platforms of the internet platform.
In the case where the internet platform is an application, the platform associated with the internet platform may be an associated application that should be programmed, such as an application having the same developer. In the case where the internet platform is a website, the platform associated with the internet platform may be a website associated with the website, such as a website with the same developer.
In these embodiments, no matter the server triggers the resource transfer condition corresponding to any internet service for the target user, the server may select an account to be transferred from all accounts of the target user.
In still other embodiments, each user may configure multiple sandbox accounts and multiple real accounts, and the virtual resources in both the sandbox accounts and the real accounts are non-universal virtual resources.
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 operation platforms, different internet services in different associated internet platforms of the internet platform, or different internet services in the internet platform.
In these embodiments, each account of each user may correspond to a service identifier, which may be used to indicate the service type.
The service identifier may include at least one of an operation platform identifier, an internet platform identifier, and an internet service identifier.
Further, the running platform identifier may be an identifier of a group to which the running platform belongs, or may be an identifier of the running platform, which is not limited herein. The internet platform identifier may be an identifier of a group 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 the 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, the virtual resource may be commonly used between each of the internet platforms under the group to which the internet platform belongs. As another example, if the internet platform identification is an identification of an internet platform, the virtual resource may only be applicable on that internet platform.
In these embodiments, when the resource transfer condition corresponds to the target service, the selecting an account to be transferred from the multiple 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 a service identifier of the target service corresponding to the resource transfer condition, and then select, from among the accounts of the target user, 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 among the plurality of accounts belonging to the target service, thereby implementing isolation of the non-universal virtual resource.
And S220, under the condition that the account to be transferred is the sandbox account, performing resource transfer on the residual virtual resources in the sandbox account according to the sandbox resource transfer mode.
In the embodiment of the disclosure, when the account to be transferred selected by the server is a sandbox account, the server may 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, and after the transaction is successful, the fund corresponding to the virtual resource to be transferred is not provided to the resource receiving user, or the virtual resource to be transferred corresponding to the resource transfer request is transferred to the sandbox account of the target user, and after the transaction is successful, the fund corresponding to the virtual resource to be transferred is not collected from the target user.
Further, when the server selects an account to be transferred from among the 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 the sandbox resource transfer manner when the account to be transferred is the sandbox account, which is not described herein.
And S230, under the condition that the account to be transferred is the real account, performing resource transfer on the residual virtual resources in the real account according to a real resource transfer mode.
In the embodiment of the present disclosure, in a 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 a real receiving account corresponding to the transaction request according to a real resource transfer manner, and provide funds corresponding to the virtual resource to be transferred to the resource receiving user after the transaction is successful, or transfer the virtual resource to be transferred corresponding to the resource transfer request to a real account of the target user, and collect the funds corresponding to the virtual resource to be transferred from the target user after the transaction is successful.
Further, when the server selects an account to be transferred from among the 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 a real resource transfer manner when the account to be transferred is a real account, which is not described herein again.
In the disclosed embodiment, in response to triggering a preset resource transfer condition for a target user, selecting one account from a plurality of accounts of the target user at least comprising the sandbox account and the real account as an account to be transferred, and in the case that the account to be transferred is the sandbox account, according to the sandbox resource transfer mode, and the resource transfer is carried out on the residual virtual resources in the sandbox account, and under the condition that the account to be transferred is a real account, according to the real resource transfer mode, the resource transfer is carried out on the residual virtual resources in the real account, and because the virtual resource transfer is carried out only aiming at one account in a plurality of accounts when the resource transfer condition is triggered each time, the mixed use of the virtual resources in the sandbox account and the real account is avoided, therefore, the fund 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 another embodiment of the present disclosure, in a case that the plurality of accounts include at least a sandbox account and a real account, the server may select a corresponding account to be transferred for the target user from 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 that the resource transfer condition includes a resource transfer-out condition, the selecting an account to be transferred from the plurality of accounts of the target user in S210 may specifically include:
determining the residual virtual resource amount in the sandbox account and the residual virtual resource amount 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 may determine the amount of the remaining virtual resources in the sandbox account and the amount of the remaining virtual resources in the real account, and compare the amount of the remaining virtual resources in the sandbox account with the amount of the remaining virtual resources in the real account, so as to use the account with the larger amount of the remaining virtual resources in the sandbox account and the real account as an account to be transferred, thereby improving the success rate of transferring the virtual resources.
Thus, the server may select an account to be transferred based on the amount of virtual resources remaining in the account.
Further, when the resource transfer condition includes that a transaction request sent by the electronic device is received and the transaction request carries a target account type, the selecting an account to be transferred from the plurality of accounts of the target user in S210 may further specifically include:
and taking the account which belongs 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 use an account belonging to the target account type in the sandbox account and the real account as an account to be transferred.
Therefore, the server can further select the account to be transferred based on the target account type carried by the transaction request under the condition that the resource transfer condition comprises a resource transfer-out condition.
Optionally, the sandbox account type may be used as the target account type when the target user performs testing, auditing and experiencing, so that the server may transfer the sandbox virtual resource by using the sandbox account when the target user performs testing, auditing and experiencing, thereby avoiding a refund fund loss and a repeated payment fund loss for the user due to the use of a real account for testing, auditing and experiencing, and avoiding a fund loss for an internet platform due to the use of a real account for testing, auditing and experiencing.
In other embodiments of the present disclosure, when the resource transfer condition includes a resource transfer condition, the selecting an account to be transferred from the plurality of accounts of the target user in S210 may specifically include:
under the condition that the target fund corresponding to the virtual resource to be transferred is determined to be received, the real account is used as the account to be transferred;
in the event that it is determined that the target funds are not received, the sandbox account is treated as the account to be transferred.
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 target user as an example of the recharging operation of the virtual money, the virtual resource to be transferred may be the virtual money to be recharged, the target fund may be a money for purchasing the virtual money to be recharged, and the server may determine whether the money is received, and further determine whether the target fund corresponding to the virtual resource to be transferred is received. If the target fund corresponding to the virtual resource to be transferred is determined to be received, the server can take the real account as the account to be transferred; and if the target fund corresponding to the virtual resource to be transferred is determined not to be 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 resources to be transferred.
In still other embodiments of the present disclosure, in the case that the resource transfer condition includes that the remaining effective duration of the target remaining virtual resource in the target account is detected to be zero, the selecting, in S210, an account to be transferred from among the multiple accounts of the target user 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 use a target account of 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 the server to select the account to be transferred from the plurality of accounts belonging to the target service is similar to the above method, and details are not repeated here.
In summary, the server may select the account to be transferred by different account selection methods corresponding to different resource transfer conditions, so as to improve flexibility and reliability of selecting the account to be transferred.
In 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 that the resource transfer condition includes a resource transfer-out condition, S220 may specifically include:
and 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, transferring the virtual resource to be transferred from the sandbox account of the target user to the sandbox receiving account.
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, 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, it indicates that the remaining virtual resource amount of the sandbox account is sufficient for this transfer, and the server may transfer the virtual resource to be transferred 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, it indicates that the remaining virtual resource amount of the sandbox account is not enough for the resource transfer out, the server may generate and send termination prompt information to the electronic device, where the termination prompt information may be used to indicate a resource transfer failure and a reason of the resource transfer failure, such as insufficient remaining virtual resource of the sandbox account.
Accordingly, S230 may specifically include:
and under the condition that the account to be transferred is the 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, transferring the virtual resource to be 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 is not described herein again.
The following takes the embodiment shown in fig. 3 as an example, and details of the virtual resource transfer method in these embodiments are described.
Fig. 3 shows a flowchart of another virtual resource transfer method provided by the embodiment of the present disclosure.
As shown in fig. 3, taking the virtual resource as the virtual coin as an example, the virtual resource transferring method may include the following steps.
S302, the server responds to a transaction request sent by the electronic device, an account to be transferred is selected from a plurality of accounts of the target user, if the account to be transferred is a sandbox account, S304 is executed, and if the account to be transferred is a real account, S310 is executed.
S304, under the condition that the account to be transferred is the sandbox account, the server can judge whether the number of the residual sandbox virtual coins in the sandbox account is larger than or equal to the number of the virtual coins to be transferred, namely whether the residual sandbox virtual coins are enough, if so, S306 is executed, and if not, S308 is executed.
S306, the server executes the resource transfer corresponding to the transaction request.
If the transaction request is generated by the electronic equipment according to the product purchasing operation of the target user, the server can continue to complete the product purchasing process after the resource transfer is completed.
S308, the server generates termination prompt information and sends the termination prompt information to the electronic equipment and a management system of the Internet platform respectively so as to report errors to the target user and the management system.
S310, under the condition that the account to be transferred is the real account, the server can judge whether the number of the residual real virtual coins of the real account is larger than or equal to the number of the virtual coins to be transferred, namely whether the residual 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 amount in the account to be transferred, and the reliability of resource transfer is improved.
In other embodiments of the present disclosure, in a case that the resource transfer condition includes that a transaction request sent by the electronic device is received and the transaction request is used for purchasing the target virtual product, S220 may specifically include:
transferring the virtual resource 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.
Specifically, the server may compare the remaining virtual resource amount in the real account with a target virtual resource amount corresponding to the target virtual product, and 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 indicates that the remaining virtual resource amount of the real account is sufficient for the transfer, the server may transfer the virtual resource with the target virtual resource amount from the real account to a real receiving account corresponding to the target virtual product, and after the resource transfer is completed, send the target virtual product purchased by the target user to the electronic device.
In still other embodiments of the present disclosure, in a case that the resource transfer condition includes that a transaction request sent by the electronic device is received and the transaction request is used for purchasing the target virtual product, S230 may specifically include:
under the condition that the residual virtual resource amount in the sandbox account is larger than or equal to the target virtual resource amount corresponding to the target virtual product, transferring the virtual resource with the target virtual resource amount from the sandbox account to the sandbox 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.
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, and 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 indicates that the remaining virtual resource amount of the sandbox account is sufficient for the transfer, and the server may transfer the virtual resource with the target virtual resource amount from the sandbox account to the sandbox receiving account corresponding to the target virtual product, and after the resource transfer is completed, 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 the target prompt information, where the target prompt information may be used to indicate that the target virtual product is obtained through the sandbox account, so that the electronic device may display the target virtual product with the target prompt information, and further prompt the target user that the target virtual product is the virtual product obtained through the sandbox account.
Optionally, 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 also carry a preset use duration, and the preset use duration may be used to indicate a duration of a use permission that the electronic device has for 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 authority for the target virtual product, and taking the duration of the use authority as the preset use duration corresponding to the target virtual product.
Specifically, the server may configure a duration of the usage right, i.e., a usage period, for the target virtual product to obtain a preset usage duration corresponding to the target virtual product, and then send the target virtual product carrying the target prompt information and having the preset usage duration to the electronic device. The preset use duration, namely the use permission duration, can represent the use duration of the target virtual product by the target user, the server can determine the use duration of the target virtual product by the target user according to the preset use duration, the target user can use the target virtual product through the electronic equipment during the use duration, so that the target user cannot use the target virtual product through the electronic equipment when the target user is out of the use duration, the server can automatically recover the target virtual product after the use duration is expired, and the rights and interests of a provider of the target virtual product are guaranteed.
In some further embodiments of the present disclosure, in a case that the resource transfer condition includes that the remaining effective duration of the target remaining virtual resource in the target account is detected to be zero, S220 may specifically include:
and under the condition that the account to be transferred is the sandbox account, transferring the target residual virtual resources from the sandbox account to the sandbox resource recovery account.
The sandbox resource recovery account can be an account used for destroying the sandbox virtual resources by the internet platform.
Specifically, the server may directly transfer the target remaining virtual resources from the sandbox account to the sandbox resource reclamation account when 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 under the condition that the account to be transferred is the real account, transferring the target residual virtual resources from the real account to the real resource recycling account.
The real resource recovery account can be an account used for destroying real virtual resources by the internet platform.
Specifically, the server may directly transfer the target remaining virtual resources from the real account to the real resource reclamation account when the account to be transferred is the real account, so as to purge the target remaining virtual resources of the real account.
Therefore, the server can consume the target residual virtual resources with the residual effective duration being zero in a consumption mode, and the problem of inconsistent account checking caused by direct emptying is avoided.
In some further embodiments of the present disclosure, in a case that the resource transfer condition includes a resource transfer-in condition, S220 may specifically include:
and under the condition that the account to be transferred is the sandbox account, transferring the virtual resource to be transferred to the sandbox account from the sandbox resource issuing account.
The sandbox resource issuing account can be an account used by the internet platform for issuing 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 when 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 the real account, transferring the virtual resource to be transferred from the real resource issuing account to the real account.
The real resource issuing account may be an account used by the internet platform to issue real virtual resources.
Specifically, the server may directly transfer the virtual resource to be transferred from the real resource issuance account to the real account when 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 perform resource transfer on 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, thereby further improving the fund security of the target user.
The embodiment of the disclosure further provides another virtual resource transfer method, in which when the server completes resource transfer, the server may further feed back, to the electronic device, the total amount of the remaining virtual resources of the plurality of accounts after the virtual resource transfer.
Fig. 4 shows a flowchart of another virtual resource transfer method provided by the embodiment of the present disclosure.
As shown in fig. 4, the virtual resource transfer method may include the following steps.
S410, responding to a preset resource transfer condition triggered by the 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, under the condition that the account to be transferred is the sandbox account, performing resource transfer on the residual virtual resources in the sandbox account according to the sandbox resource transfer mode.
And S430, under the condition that the account to be transferred is the real account, performing resource transfer on the residual virtual resources in the real account according to a real resource transfer 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 again.
And 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 present disclosure, the server may calculate the total amount of the remaining virtual resources in all accounts of the target user when completing the resource transfer.
Optionally, the server may establish an account table for each user, where the account table may record therein a user identifier, a service identifier, remaining virtual resources of sandbox accounts under different platforms, frozen remaining virtual resources of sandbox accounts under different platforms, remaining virtual resources of real accounts under different platforms, frozen remaining virtual resources of real accounts under different platforms, total charged virtual resources of sandbox accounts under different platforms, and the like, which is not limited herein.
Therefore, the Internet platform can perform distinguished management, inquiry and account checking on the sandbox account and the real account of each user based on the account table, and accuracy of the management, the inquiry and the account checking is improved.
Specifically, when the server completes the resource transfer, the account table of the target user may be updated according to the completion condition of the resource transfer, and then the total amount of the remaining virtual resources of all accounts in the updated account table of the target user is calculated.
And S450, sending the total amount of the residual virtual resources to the electronic equipment corresponding to the plurality of accounts.
In this 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 resource transfer is completed.
Therefore, the electronic equipment can uniformly display the residual virtual resource amount of the sandbox account and the real account, and further reduces perception of a user to different accounts.
The embodiment of the present disclosure further provides another virtual resource transfer method, in which when a server completes resource transfer, resource transfer flow information corresponding to the resource transfer may also be generated.
Fig. 5 shows a flowchart of another virtual resource transfer method provided by an embodiment of the present disclosure.
As shown in fig. 5, the virtual resource transfer method may include the following steps.
And S510, responding to a preset resource transfer condition triggered by the 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.
S520, under the condition that the account to be transferred is the sandbox account, resource transfer is conducted on the residual virtual resources in the sandbox account according to the sandbox resource transfer mode.
S530, under the condition that the account to be transferred is a real account, resource transfer is carried out on the residual virtual resources in the real account according to a real resource transfer mode.
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 again.
And S540, when the resource transfer is completed, generating resource transfer flow information corresponding to the resource transfer.
In the embodiment of the disclosure, after the virtual resource transfer is performed on the account to be transferred, the server may generate the resource transfer flow information corresponding to the resource transfer according to the preset flow generation mode, and store the resource transfer flow information in association with the account to be transferred. The target user can send a historical flow acquisition request to the server through the electronic device when the target user wants to view the historical resource transfer flow information of the account to be transferred, 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 the electronic device, wherein the account identifier belongs to the resource transfer flow information, so that the resource transfer flow information can be viewed by the user.
Further, the historical flow acquisition request sent by the electronic device to the server may also carry an inquiry time range, and the server may send, in response to the received historical flow acquisition request, resource transfer flow information stored in association with the account to be transferred within the inquiry time range to the electronic device for the user to view.
Optionally, the resource transfer pipelining information corresponding to one resource transfer may include a user identifier, an account type of an account to be transferred, an account identifier of an 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, a resource transfer use, and the like, which is not limited herein.
Therefore, the running water information of different accounts can be clearly isolated, and account checking consistency is ensured.
Further, when the remaining virtual resources in the account to be transferred are non-generic virtual resources, the resource transfer pipelining information corresponding to one resource transfer may also include a service type. Therefore, the method can definitely isolate the running water information of different service types, and ensures account checking consistency.
In summary, the virtual resource transfer method of the embodiment of the present disclosure can improve coverage of the public test on the payment scenario, avoid fund loss of the transaction-related party of the virtual resource transaction, and improve account security and experience of the transaction-related party.
Fig. 6 shows a schematic structural diagram of a virtual resource transfer apparatus according to an embodiment of the present disclosure.
In the embodiment of the present disclosure, the virtual resource transfer 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 transfer apparatus 600 may include an account selecting unit 610, a first transfer unit 620, and a second transfer unit 630.
The account selection unit 610 may be configured to select an account to be transferred from among a plurality of accounts of the target user in response to triggering a preset resource transfer condition for the target user, where the plurality of accounts include at least a sandbox account and a real account.
The first transferring unit 620 may be configured to, when the account to be transferred is a sandbox account, perform resource transfer on the remaining virtual resources in the sandbox account according to a sandbox resource transferring manner.
The second transferring unit 630 may be configured to, when the account to be transferred is a real account, perform resource transfer on the remaining virtual resources in the real account according to a real resource transferring manner.
In the disclosed embodiment, in response to triggering a preset resource transfer condition for a target user, selecting one account from a plurality of accounts of the target user at least comprising the sandbox account and the real account as an account to be transferred, and in the case that the account to be transferred is the sandbox account, according to the sandbox resource transfer mode, and the resource transfer is carried out on the residual virtual resources in the sandbox account, and under the condition that the account to be transferred is a real account, according to the real resource transfer mode, the resource transfer is carried out on the residual virtual resources in the real account, and because the virtual resource transfer is carried out only aiming at one account in a plurality of accounts when the resource transfer condition is triggered each time, the mixed use of the virtual resources in the sandbox account and the real account is avoided, therefore, the fund 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 some embodiments of the present disclosure, the resource transfer condition may comprise 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 use the account with the larger amount of the virtual resources left 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-in condition.
Accordingly, the account selection unit 610 may include a third selection sub-unit and a fourth selection sub-unit.
The third selecting subunit may be configured to, in a case where it is determined that the target funds corresponding to the virtual resource to be transferred are received, take the real account as the account to be transferred.
The fourth selection subunit may be configured to treat the sandbox account as the account to be transferred if it is determined that the target funds are not received.
In still other embodiments of the present disclosure, the resource transfer condition may include receiving a transaction request sent by the electronic device, where the transaction request may carry a target account type.
Accordingly, the account selection unit 610 may include a fifth selection subunit, which may be configured to take an account belonging to the target account type of 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 a 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, which may be configured to take a target account of the sandbox account and the real account as the 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, in a case where the remaining virtual resource amount in the real account is greater than or equal to a target virtual resource amount corresponding to the target virtual product, transfer the virtual resource having the target virtual resource amount from the real account to a real receiving account corresponding to the target virtual product.
The second transfer subunit may be configured to send the target virtual product to the electronic device.
In still 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 transfer subunit may be configured to transfer the virtual resource with the target virtual resource amount from the sandbox account to the sandbox receiving account corresponding to the target virtual product if 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 the target virtual product carrying target prompt information to the electronic device, where the target prompt information is used to indicate that the target virtual product is obtained through the sandbox account.
Further, the target virtual product may also carry a preset use duration, and the preset use duration may be used to indicate a duration of a use permission that the electronic device has for the target virtual product.
In some embodiments of the present disclosure, the virtual resource transfer apparatus 600 may further include a resource amount calculation unit and a resource amount transmission unit.
The resource amount calculation unit may be configured to calculate a total amount of remaining virtual resources of the plurality of accounts when the resource transfer is completed.
The resource amount transmitting unit may be configured to transmit the total amount of the remaining virtual resources to the electronic devices corresponding to the plurality of accounts.
In some embodiments of the present disclosure, the virtual resource transfer apparatus 600 may further include a pipeline generation unit, and the pipeline generation unit may be configured to generate resource transfer pipeline information corresponding to the resource transfer when the resource transfer 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 transfer apparatus 600 shown in fig. 6 may execute each step in the method embodiments shown in fig. 2 to fig. 5, and implement each process and effect in the method embodiments shown in fig. 2 to fig. 5, which are not described herein again.
Embodiments of the present disclosure also provide a virtual resource transfer device, which may include a processor and a memory, where the memory 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 foregoing embodiments.
Fig. 7 shows a schematic structural diagram of a virtual resource transfer device provided in an embodiment of the present disclosure. Referring specifically to fig. 7, a schematic structural diagram of a virtual resource transfer device 700 suitable for implementing the 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 bring any limitation to the functions and the 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 necessary for the operation of the virtual resource transfer apparatus 700 are also stored. The processing device 701, the ROM702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; 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 illustrates a virtual resource transfer apparatus 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
The embodiment of the present disclosure also provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the processor is enabled to implement the virtual resource transfer method in the foregoing embodiment.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program performs the above-described functions defined in the virtual resource transfer method according to the embodiment of the present disclosure when executed by the processing apparatus 701.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, optical cables, RF (radio frequency), etc., 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 network.
The computer readable medium may be embodied in the virtual resource transfer apparatus; or may exist separately 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 apparatus, cause the virtual resource transfer apparatus to perform:
responding to a preset resource transfer condition triggered by 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 the sandbox account, resource transfer is carried out on the residual virtual resources in the sandbox account according to the sandbox resource transfer mode; and under the condition that the account to be transferred is the real account, performing resource transfer on the residual virtual resources in the real account according to a real resource transfer mode.
In embodiments of the present disclosure, computer program code for carrying out operations of the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), 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. A 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 exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while 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. Under 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 limitations on the scope of the 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 disclosed as example forms of implementing the claims.

Claims (14)

1. A virtual resource transfer method, comprising:
in response to a preset resource transfer condition triggered by a target user, 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;
when the account to be transferred is the sandbox account, resource transfer is carried out on the residual virtual resources in the sandbox account according to a sandbox resource transfer mode;
and under the condition that the account to be transferred is the real account, performing resource transfer on the residual virtual resources in the real account according to a real resource transfer mode.
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 among the plurality of accounts of the target user comprises:
determining the amount of the virtual resources remaining in the sandbox account and the amount of the virtual resources remaining 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.
3. The method of claim 1, wherein the resource transfer condition comprises a resource transfer-in condition;
wherein the selecting an account to be transferred from among the plurality of accounts of the target user comprises:
under the condition that the target fund corresponding to the virtual resource to be transferred is determined to be received, taking the real account as the account to be transferred;
in an instance in which it is determined that the target funds are not received, treating the sandbox account as the account to be transferred.
4. The method according to claim 1, wherein the resource transfer condition comprises receiving a transaction request sent by an electronic device, wherein the transaction request carries a target account type;
wherein the selecting an account to be transferred from among the plurality of accounts of the target user comprises:
and taking the account which belongs 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 among 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 resource transfer condition comprises receiving a transaction request sent by an electronic device, the transaction request for purchasing a target virtual product;
wherein, the resource transfer of the remaining virtual resources in the real account according to the real resource transfer mode includes:
transferring the virtual resource with the target virtual resource amount from the real account to a real receiving account corresponding to the target virtual product when the residual virtual resource amount in the real account is larger 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.
7. The method of claim 1, wherein the resource transfer condition comprises receiving a transaction request sent by an electronic device, the transaction request for purchasing a target virtual product;
wherein, according to the sandbox resource transfer mode, resource transfer is performed on the remaining virtual resources in the sandbox account, including:
transferring the virtual resource with the target virtual resource amount from the sandbox account to a sandbox receiving account corresponding to the target virtual product if 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;
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.
8. The method according to claim 7, wherein the target virtual product further carries a preset usage duration, and the preset usage duration is used for indicating a duration of usage authority of the target virtual product by the electronic device.
9. The method of claim 1, further comprising:
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.
10. The method of claim 1, further comprising:
and when the resource transfer is finished, generating resource transfer flow information corresponding to the resource transfer.
11. The method of claim 1, wherein the resource transfer condition corresponds to a target service;
wherein the selecting an account to be transferred from among the plurality of accounts of the target user comprises:
selecting the account to be transferred from the plurality of accounts belonging to the target service.
12. A virtual resource transfer apparatus, comprising:
the account selection unit is configured to respond to a preset resource transfer condition triggered by a target user, and select 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;
the first transfer unit is configured to transfer resources to the residual 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 transfer unit is configured to perform resource transfer on the remaining 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.
13. 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 claims 1-11.
14. 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 carry out the virtual resource transfer method of any one of the preceding claims 1-11.
CN202110442844.1A 2021-04-23 2021-04-23 Virtual resource transfer method, device, equipment and medium Active CN113129013B (en)

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 true CN113129013A (en) 2021-07-16
CN113129013B 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)

Citations (5)

* Cited by examiner, † Cited by third party
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
US20210064742A1 (en) * 2019-08-30 2021-03-04 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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20210064742A1 (en) * 2019-08-30 2021-03-04 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
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
CN113129013B (en) 2023-10-03

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
CN110599323B (en) Resource processing method and processing equipment
US10489763B2 (en) Communicating payments
US20140074723A1 (en) Communicating payments
US20120276845A1 (en) Payment processing
US20140180852A1 (en) Communicating payments
CN111260478A (en) Credit data interaction method and system
CN105868973B (en) Event resource processing method and device
CN114169885A (en) Digital currency payment method, device, terminal and computer readable storage medium
CN112700234A (en) Payment method, device, system, server, equipment and medium
CN110348827A (en) The direct-connected method of medium and small bank, minuscule-type-enterprise and relevant device based on third-party application
WO2023197917A1 (en) Payment security management method and apparatus and payment system
CN113129013B (en) Virtual resource transfer method, device, equipment and medium
EP3866094A1 (en) Resource flow transaction method and apparatus
US10223687B2 (en) Link of mobile devices to facilitate mobile commerce transactions
CN106203976A (en) Payment system based on same fund server and method of payment, device and server
KR102051620B1 (en) Post-paid service system for mobile card using validation of post-paid payment card
CN111415148A (en) Method and device for non-inductive payment, electronic equipment and storage medium
CN112184406A (en) Data processing method, system, electronic device and computer readable storage medium
CN111192113A (en) Order processing method, device, equipment and storage medium
CN111415263A (en) Data matching method and device
KR102051621B1 (en) Winless charging service system for mobile card using validation of post-paid payment card
CN111127003A (en) Wallet account payment method, device and storage medium
CN117078251A (en) Prepayment type consumption method, system, equipment and storage medium based on digital currency

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