CN107665453B - Virtual resource processing method and device and server - Google Patents

Virtual resource processing method and device and server Download PDF

Info

Publication number
CN107665453B
CN107665453B CN201710773517.8A CN201710773517A CN107665453B CN 107665453 B CN107665453 B CN 107665453B CN 201710773517 A CN201710773517 A CN 201710773517A CN 107665453 B CN107665453 B CN 107665453B
Authority
CN
China
Prior art keywords
account
resource
virtual
transferred
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710773517.8A
Other languages
Chinese (zh)
Other versions
CN107665453A (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 Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710773517.8A priority Critical patent/CN107665453B/en
Publication of CN107665453A publication Critical patent/CN107665453A/en
Application granted granted Critical
Publication of CN107665453B publication Critical patent/CN107665453B/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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method for processing virtual resources, which comprises the following steps: receiving a request message from a first account, wherein the request message is used for requesting transfer of virtual resources in an order, and the request message at least carries identification information of a second account; and responding to the request message, and generating corresponding virtual resources for the second account. The embodiment of the invention also discloses a processing device of the virtual resource and a server.

Description

Virtual resource processing method and device and server
Technical Field
The invention relates to the field of internet application, in particular to a method and a device for processing virtual resources and a server.
Background
In recent years, internet technologies have been rapidly developed, and various internet technologies have been developed along with the development of internet technologies, and these internet technologies have entered daily lives. At present, users can accurately obtain preferential information through more and more local life information and transaction platforms, for example, users can purchase electronic coupons on the platforms at a lower price, or users can obtain cash vouchers issued by merchants on line on the platforms. If the virtual resources purchased by the user, such as electronic coupons, red packs, electronic movie tickets, vouchers and the like, cannot be used within the valid period, the user can choose to refund or abandon the use, but the consumption probability of the virtual resources is reduced, and the activity of the user is affected.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a method, an apparatus, and a server for processing virtual resources, so as to implement the transfer of virtual resources, and increase the consumption probability of the virtual resources and the activity of a platform account.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for processing virtual resources, including: receiving a request message from a first account, wherein the request message is used for requesting transfer of virtual resources in an order, and the request message at least carries identification information of a second account; and responding to the request message, and generating corresponding virtual resources for the second account.
In a second aspect, an embodiment of the present invention provides a processing apparatus for virtual resources, including: a receiving unit, configured to receive a request message from a first account, where the request message is used to request transfer of a virtual resource in an order, and the request message at least carries identification information of a second account; and the response unit is used for responding to the request message and generating corresponding virtual resources for the second account.
In a third aspect, an embodiment of the present invention provides a server, including: the virtual resource processing method comprises the following steps of a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the virtual resource processing method of one or more technical schemes are realized when the processor executes the computer program.
In the method, the device and the server for processing the virtual resources provided by the embodiment of the invention, firstly, a request message for requesting the transfer of the virtual resources in an order from a first account is received, and the first message at least carries identification information of a second account; then, responding to the request message, and generating a corresponding electronic ticket for the second account. Therefore, in the embodiment of the present invention, the request message carrying the identification information of the second account is sent to the server through the first account, and the server can generate the corresponding virtual resource for the second account according to the identification information, so that the virtual resource of the first account is transferred to the second account, and the consumption probability of the virtual resource and the activity of the platform account are increased.
Drawings
FIG. 1-1 is a block diagram of a virtual resource processing system according to an embodiment of the present invention;
fig. 1-2 are a first schematic flow chart illustrating an implementation of a method for processing virtual resources according to an embodiment of the present invention;
fig. 1-3 are schematic first flow charts illustrating an implementation of a virtual resource transfer method according to an embodiment of the present invention;
fig. 1-4 are schematic diagrams illustrating an implementation flow of a virtual resource transfer method according to an embodiment of the present invention;
FIG. 2-1 is a schematic view illustrating a second implementation flow of a processing method for virtual resources according to an embodiment of the present invention;
FIG. 2-2 is a schematic flow chart of an implementation of a ticket code spelling transaction in the embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a virtual resource processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server in the embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides a method for processing virtual resources, where the method may be applied to a virtual resource processing system, and fig. 1-1 is a schematic architecture diagram of the virtual resource processing system in the embodiment of the present invention, and as shown in fig. 1-1, the processing system may include: a client 101 of a first account, a virtual resource processing server 102 and a client 103 of a second account;
the client 101 of the first account and the client 102 of the second account may be mobile clients or web clients.
In practical applications, a user may log in to the virtual resource processing server 102 through the first account and the second account at the client, and in practical applications, the client may be installed on a terminal such as a smart phone, a tablet computer, a notebook computer, a super-notebook computer, and the like.
The following describes a processing method of virtual resources provided in an embodiment of the present invention with reference to the above system. Here, first, it is described that, in a specific implementation process, the virtual resource in the embodiment of the present invention may be an electronic ticket, an electronic movie ticket, an electronic red packet, or the like. The electronic coupon can be an electronic meal coupon, an electronic cash voucher, an electronic discount coupon, and the like.
Fig. 1-2 are schematic diagrams of a first implementation flow of a processing method for virtual resources in an embodiment of the present invention, and as shown in fig. 1-2, the method includes:
s121: the first account sends a request message to the server;
the request message is used for requesting to transfer the virtual resources in the order, and at least carries identification information of the second account; in this embodiment of the present invention, the identification information of the second account may be a mobile phone number, an email address, a social network account number, a user name, a user ID, and the like of the second account, which is not specifically limited in this embodiment of the present invention.
Here, the number of virtual resources in an order may be one, or may be multiple, such as two, three, four, and so on.
Specifically, after a user logs in to the virtual resource processing server through a first account on a client of the first account, the user may purchase virtual resources through the first account, and after the user purchases one or more virtual resources through the first account, the user wants to transfer all or a part of the virtual resources in the first account to his or her own friends, at this time, the first account may select one friend or create a group to transfer the part of the virtual resources, and then, the friend selected by the first account or a member of the created group is the second account. Therefore, the first account sends the request message to the server after selecting the second account.
In practical applications, the first account may have a plurality of orders, such as a dining order in a restaurant, a movie watching order in a movie theater, etc., and each order may have only one virtual resource or a plurality of virtual resources according to the number of consumption items purchased by the user. For example, when a user wants to watch a movie with a companion, the user may submit one movie ticket order with the first account on the client of the first account to purchase two electronic movie tickets simultaneously or two movie ticket orders to purchase two electronic movie tickets in a separate order.
S122: and the server responds to the request message and generates corresponding virtual resources for the second account.
In an implementation, the S122 may include: responding to the request message, and determining virtual resources to be transferred from the virtual resources corresponding to the order based on a preset strategy; and generating corresponding virtual resources for the second account based on the virtual resources to be transferred and the identification information.
Here, after the server receives the request message from the first account, the server may respond to the request message, determine the virtual resource to be transferred from the virtual resource corresponding to the order held by the server based on the preset policy, then determine the second account according to the identification information of the second account carried in the request message, and finally generate the corresponding virtual resource for the second account based on the virtual resource to be transferred.
In practical application, the server may determine the virtual resource to be transferred from the virtual resources corresponding to all orders held by the first account, or may determine the virtual resource to be transferred from all virtual resources corresponding to the order specified by the first account.
In a specific implementation process, the step of determining the virtual resource to be transferred from the virtual resource corresponding to the order based on the preset policy may be, but is not limited to, the following two cases.
First, the first account may be transferred in order units, that is, the first account may transfer all unused virtual resources in one or more orders, and then, the request message sent by the first account may further carry identification information of an order that the first account wants to transfer. At this time, the step of determining the virtual resource to be transferred from the virtual resource corresponding to the order based on the preset policy may include: analyzing the request message to obtain the identification information of the order; searching all virtual resources corresponding to the order according to the identification information of the order; and determining the virtual resource in an unused state in all the virtual resources as the virtual resource to be transferred.
Here, the server responds to and parses the request message, and may obtain identification information of an order that the first account wants to transfer in addition to obtaining identification information of the second account, for example, the first account wants to transfer all unused electronic tickets in a movie ticket order held by the first account, then the server parses the first message, and can obtain identification information of the movie ticket order, such as an order number, and then look up all corresponding electronic tickets according to the order number, and determine the electronic tickets in an unused state as electronic tickets to be transferred, so as to transfer to the second account later.
Second, the first account may be transferred in units of virtual resources, that is, the first account may transfer one or more virtual resources, where the virtual resources may be virtual resources in the same order or virtual resources in different orders, and then the first message sent by the first account may also carry a first resource identifier of the virtual resource that the first account wants to transfer, such as a coupon number, a redemption code, a serial number, a verification code, and the like. At this time, the step of determining the virtual resource to be transferred from the virtual resource corresponding to the order based on the preset policy may include: analyzing the request message, and acquiring a first resource identifier of the virtual resource carried by the request message, wherein the first resource identifier is a resource identifier of the virtual resource selected by the first account; determining virtual resources corresponding to the first resource identifier from the virtual resource tickets contained in the order; and determining the virtual resource corresponding to the first resource identifier as the virtual resource to be transferred.
Here, the server responds to and parses the request message, and in addition to obtaining the identification information of the second account, may also obtain a first resource identification of the virtual resource that the first account wants to transfer, that is, the selected virtual resource, for example, the first account wants to transfer one or several electronic movie tickets that the first account holds, then, the server parses the request message, and can obtain the first resource identification of the one or several electronic movie tickets, such as a redemption code, and then, look up the corresponding electronic movie tickets according to the redemption code, and determine the electronic movie tickets as the virtual resource to be transferred for subsequent transfer to the second account.
Of course, the virtual resource to be transferred may also be determined in other manners, and the embodiment of the present invention is not particularly limited.
In a specific implementation process, in order to generate a corresponding virtual resource for the second user, the step of generating a corresponding virtual resource for the second account based on the virtual resource to be transferred and the identification information may include: determining a second account according to the identification information; acquiring a second resource identifier of the virtual resource to be transferred; randomly generating a corresponding third resource identifier at least based on the second resource identifier; and generating corresponding virtual resources for the second account according to the third resource identifier.
Here, after determining that the virtual resource is to be transferred, the server may obtain a second resource identifier of the virtual resource to be transferred, for example, a serial number, a redemption code, a verification code, a two-dimensional code, and the like.
Specifically, based on the second resource identifier, the manner of generating the third resource identifier may be, but is not limited to, the following two cases:
first, when the second resource identifier of the virtual resource to be transferred is a serial code of a fixed number of bits, the server may add one or more random numbers on the basis of the second resource identifier to generate a corresponding third resource identifier.
Illustratively, when the second resource identifier is an eight-bit serial number, such as 17919038, the server may add a random number to any position in the second resource identifier to generate a nine-bit serial number as the third resource identifier, and then the randomly generated third resource identifier may be 217919038, 17919038, 179129038, etc.
Secondly, when the second resource identifier of the virtual resource to be transferred is a serial code of a fixed number of bits, the server may randomly generate a corresponding third resource identifier according to time on the basis of the second resource identifier.
Illustratively, when the second resource identifier is a sequence number of one eight bits, such as 17919038, the server may replace the current time at any position in the second resource identifier as a third resource identifier, such as replacing the first bit in 17919038 with 0804, resulting in 08047919038.
Of course, the third resource identifier may also be determined in other ways, for example, when the second resource identifier is a sequence number with one eight bit number and the first bit number is a fixed number, as in 20170804, the server may randomly generate the first bit number in the second resource identifier as another number, and obtain a sequence number with another eight bit number as the third resource identifier, as in 30170804, 40170804, and the like, which is not limited in this embodiment of the present invention.
In other embodiments of the present invention, after determining, based on a preset policy, a virtual resource to be transferred from a virtual resource corresponding to an order, the method further includes: and setting the virtual resources to be transferred to a frozen state, wherein the frozen state is used for representing that the first account is not available at present and the virtual resources to be transferred.
Here, in order to ensure that the virtual resource generated for the second account can be used normally and avoid the possibility that one virtual resource is used by multiple accounts, after determining the virtual resource to be transferred from the virtual resource corresponding to the order of the first account, the virtual resource to be transferred needs to be set to a frozen state, and at this time, the virtual resource to be transferred cannot be used, consumed, transferred again and the like by the first account.
In a specific implementation process, the setting of the virtual resource to be transferred to the frozen state can be realized by setting a resource identifier of the virtual resource to be transferred to the frozen state. Then, in another embodiment of the present invention, after acquiring the second resource identifier of the virtual resource to be transferred, the method further includes: and setting the second resource identifier to be in a frozen state, wherein the frozen state is used for representing that the second resource identifier is not available currently.
Here, in order to ensure that the electronic ticket generated for the second account can be used normally, the resource identifier of the virtual resource to be transferred, that is, the second resource identifier needs to be set to a frozen state, at this time, the second resource identifier cannot be consumed, refunded, and transfer is initiated again, and meanwhile, a third resource identifier randomly generated based on the second resource identifier, that is, a new resource identifier is generated for the virtual resource to be transferred.
Further, after the step of determining the virtual resource to be transferred from the virtual resource corresponding to the order, the method further includes: generating a new order for the second account according to the virtual resource to be transferred; correspondingly, after the step of randomly generating the corresponding third resource identifier, the method further includes: associating the third resource identification to the new order.
In practical application, if the first account transfers virtual resources in units of orders, after the server sets the second resource identifier of the virtual resource to be transferred to a frozen state, a new order may be generated for the second account according to the virtual resource to be transferred, for example, a new order is generated for the second account according to package information corresponding to the selected virtual resource, and then, a third resource identifier generated for the virtual resource is associated with the new order.
In other embodiments of the present invention, the S122 may include: responding to the request message, and determining a second account according to the identification information; detecting whether a confirmation message from the second account is received or not within a preset time period, wherein the confirmation message carries a fourth resource identifier of the virtual resource selected by the second account; if the confirmation message is received within the preset time, responding to the confirmation message, and correspondingly generating a fifth resource identifier for the selected virtual resource; and generating corresponding virtual resources for the second account according to the fifth resource identifier.
In practical application, if the first account is transferred in units of virtual resources, that is, the first account may transfer a certain virtual resource or multiple virtual resources, and the virtual resources may be virtual resources in the same order or virtual resources in different orders, at this time, the first account notifies the second account of the virtual resources that can be transferred, so that the second account selects the required virtual resources, then, in order to accurately transfer the virtual resources, the server needs to detect whether the confirmation message from the second account is received within a preset time period after determining the second account, so as to obtain, from the confirmation message, the fourth resource identifier of the virtual resource selected by the second account, where the fourth resource identifier is carried by the confirmation message. In this way, after the server obtains the fourth resource identifier, a corresponding fifth resource identifier may be generated for the virtual resource selected by the second account, and a corresponding virtual resource may be generated for the second account according to the fifth resource identifier, thereby completing the transfer of the virtual resource of the first account selected by the second account to the second account.
Therefore, in the embodiment of the present invention, a request message carrying identification information of a second account is sent to a server through a first account, the server is requested to transfer virtual resources in an order of the first account, and the server can generate corresponding virtual resources for the second account according to the identification information, so that the virtual resources of the first account are transferred to the second account, and the consumption probability of the virtual resources and the activity of a platform account are increased.
Based on the foregoing embodiment, in practical applications, in order to generate the corresponding virtual resource for the second account, after S121, the server may determine the virtual resource to be transferred from the virtual resource corresponding to the order to be transferred by the first account by itself, and select the required virtual resource from the virtual resources to be transferred by the third account of the second account.
Fig. 1 to 3 are schematic implementation flows of a method for transferring virtual resources according to an embodiment of the present invention, and referring to fig. 1 to 3, after S121, the method may further include:
s131: the server responds to the request message and determines virtual resources to be transferred from the virtual resources corresponding to the order based on a preset strategy;
s132: the server sends the related information of the virtual resource to be transferred to the second account according to the identification information of the second account;
wherein the related information is used for indicating to select the virtual resource;
here, after determining the virtual resources to be transferred, the server sends, according to the identification information of the second account carried in the request message, the relevant information of the virtual resources to be transferred, such as the resource identification of the virtual resources to be transferred, package content, order information of the located order, and the like, to the second account, so that the second account can know which virtual resources the first account needs to transfer.
S133: the server sends a notification message to the first account;
wherein, the notification message is used to indicate that the related information is successfully transmitted.
Here, after executing S133, the server sends a notification message to the first account to notify that the first account successfully sends the information related to the to-be-transferred virtual resource.
Therefore, the transfer and release process of the virtual resources is completed, and then the transfer process of the virtual resources is carried out.
Referring to the dotted line in fig. 1-3, after S133, the method further includes:
s134: a third account in the second account determines a fourth resource identifier of the selected virtual resource according to the relevant information of the virtual resource to be transferred;
here, after the second account receives the relevant information of the virtual resource to be transferred, all or part of the accounts want to accept the virtual resource transferred by the first account, and then these accounts, i.e. the third account, may select the virtual resource to be transferred, so as to determine the fourth resource identifier of the selected virtual resource.
S135: the second account carries the fourth resource identifier in a confirmation message and sends the confirmation message to the server;
s136: the server responds to the confirmation message when receiving the confirmation message within the preset time, sets the fourth resource identifier to be in a frozen state, and correspondingly generates a fifth resource identifier for the selected virtual resource;
s137: and the server sends the fifth resource identification to the third account.
Therefore, the transfer process of the virtual resources is completed, and in the embodiment of the invention, the transfer of the virtual resources is realized by issuing the relevant information of the virtual resources to be transferred to the second account, so that the consumption probability of the virtual resources and the activity of the platform account are increased.
Based on the foregoing embodiment, in practical applications, when the first account is transferred in order units, one order may include a plurality of unused virtual resources therein, and then after S133, the server may self-allocate the virtual resources in the order to the third account in the second account.
Fig. 1 to 4 are schematic diagrams illustrating an implementation flow of a virtual resource transfer method according to an embodiment of the present invention, and referring to fig. 1 to 4, after S133, the method further includes:
s141: the third account sends an acceptance message to the server;
wherein the acceptance message indicates that the third account accepts the transferred virtual resource;
here, after S133, if one or more third accounts among the second accounts determine to accept the transferred virtual resource, at this time, the third accounts transmit an acceptance message to the server.
S142: the server responds to the receiving message and allocates the virtual resources to be transferred to the third account according to the allocation rule configured for the third account in advance;
here, the server responds to the acceptance message to know that the third account accepts virtual resource transfer, and at this time, the server allocates the virtual resources to be transferred in the order according to the allocation rules configured for each acceptance account in advance.
In a specific implementation process, S142 may include: and after the virtual resources to be transferred meet the transfer conditions, allocating the virtual resources to be transferred to the third accounts according to the number of the virtual resources to be transferred and the upper limit value of the number of the transferred virtual resources configured for each third account in advance.
Here, the virtual resource to be transferred has corresponding transfer conditions, for example, the order still has transferable virtual resources, the number of virtual resources accepted for transfer by a certain third account does not reach the upper limit value, and the virtual resource to be transferred is still in the valid period, and in the valid period, the virtual resource can be consumed, transferred, refunded, and the like. After the server responds to the acceptance message, firstly determining whether the virtual resources to be transferred in the order meet transfer conditions, if so, allocating the virtual resources to be transferred to each third account according to the number of the virtual resources to be transferred and the upper limit value of the number of the transferred virtual resources which are configured for each third account in advance, for example, one movie ticket order comprises 3 movie ticket coupons, and the upper limit value of the number of the transferred virtual resources which are configured for the third account in advance is 2, so that under the condition that only one third account accepts the transferred virtual resources, 2 movie ticket coupons can be allocated to the third account; under the condition that two or three accounts accept the transferred virtual resources, 2 movie ticket coupons can be distributed to the third account which firstly sends the fourth message, and 1 movie ticket coupon is distributed to the third account which later sends the fourth message, so that the virtual resources are shared and snatched.
Of course, after the virtual resource placed in the order is allocated, if the third account sends an acceptance message indicating that the transfer of the virtual resource is accepted, the server sends an end message indicating that the virtual resource in the order is completed to the third user account.
S143: the server sets the fourth resource identification of the distributed virtual resource to be transferred to a frozen state, and correspondingly generates a fifth resource identification for the distributed virtual resource to be transferred;
s144: and the server respectively sends the fifth resource identifications to the corresponding third accounts.
Therefore, in the embodiment of the invention, when the first account transfers the virtual resources in the order as the unit, the server can automatically allocate the virtual resources to be transferred in the order to the third account which receives the transfer, so as to realize the transfer of the virtual resources, and increase the consumption probability of the virtual resources and the activity of the platform account.
Based on the foregoing embodiments, the processing method of the virtual resource in one or more embodiments is described by taking the virtual resource as an electronic ticket and the resource identifier of the virtual resource as a ticket code, as an example.
Fig. 2-1 is a schematic diagram of an implementation flow of the processing method of the virtual resource in the embodiment of the present invention, referring to fig. 2-1, Step1 indicates that an unused electronic ticket exists in an order history of the user 1, a corresponding order (e.g., orderId1) may be selected to initiate a party function, and the selected order is sent to several friends, and the maximum number of pieces of the friends that can be party is set; step2, the server establishes a group and informs users in the group; step3, the server returns to the user 1 to initiate the successful spelling and robbery; step4, the user i in the spelling group clicks the spelling preferentially; step5, the server sets a certain unused ticket code under orderId1 to be in a pieced state, and generates an order (orderId2) and a ticket code (orderId1 corresponds to the package) for the user [ i ]; step6, the server returns the results of the spelling and robbery to the user [ i ].
Fig. 2-2 is a schematic flow chart of an implementation process of a coupon code scrambling transaction in an embodiment of the present invention, and referring to fig. 2-2, Step5 may be implemented as follows:
step51, clicking to perform spelling by a user [ i ] in the spelling group;
step52, the server judges whether the orderId1 meets the robbing condition;
step53, if yes, the server acquires the userId2, the order ID (orderId1), the package ID (dealId1) and other information of the user [ i ]; if not, returning to Step 513;
step54, the server will update one unused electronic ticket receiptId1 in orderId1 to be the status of being pieced together;
step55, if successful, the server generates an order orderId2 under dealId1 for the user id 2;
step56, if the failure occurs, the server updates the receiptId1 as unused;
step57, if the orderId2 is successfully generated, the server generates a new coupon receiptId2 for the orderId 2;
step58, if the orderId2 is failed to be generated, the server deletes the information corresponding to the orderId2 and returns to Step 56;
step59, if the receiptId2 is successfully generated, the server increases the information of the spelling relationship between the orderId1 and the orderId 2;
step510, if the receiptId2 is generated unsuccessfully, the server deletes the scrambling and robbing relationship and returns to Step 58;
step511, if the information of the splicing and robbing relation is successfully added, the server judges whether the ticket code splicing and robbing transaction is successfully executed;
step 512: if the information of the splicing-robbing relationship is failed to be added, the server deletes the splicing-robbing relationship and returns to Step 510;
step 513: if the execution is successful, the successful spelling and robbery information is returned;
step 514: if the execution fails, the information of the robbery failure is returned.
Based on the same inventive concept, an embodiment of the present invention provides a processing apparatus for virtual resources, and the management apparatus may be applied to the server in one or more embodiments described above.
Fig. 3 is a schematic structural diagram of a processing apparatus for virtual resources according to an embodiment of the present invention, and referring to fig. 3, the processing apparatus 30 includes: a receiving unit 31, configured to receive a request message from a first account, where the request message is used to request transfer of a virtual resource in an order, and the request message at least carries identification information of a second account; and a responding unit 32, configured to respond to the request message and generate a corresponding virtual resource for the second account.
In the embodiment of the present invention, the response unit 32 is specifically configured to respond to the request message, and determine, based on a preset policy, a virtual resource to be transferred from the virtual resources corresponding to the order; and generating corresponding virtual resources for the second account based on the virtual resources to be transferred and the identification information.
In the embodiment of the present invention, the response unit 32 is specifically configured to parse the request message to obtain the identification information of the order; searching all virtual resources corresponding to the order according to the identification information of the order; and determining the virtual resource in an unused state in all the virtual resources as the virtual resource to be transferred.
In this embodiment of the present invention, the response unit 32 is specifically configured to parse the request message, and obtain a first resource identifier of a virtual resource carried in the request message, where the first resource identifier is a resource identifier of a virtual resource selected by the first account; determining virtual resources corresponding to the first resource identification from the virtual resources contained in the order; and determining the virtual resource corresponding to the first resource identifier as the virtual resource to be transferred.
In this embodiment of the present invention, the response unit 32 is specifically configured to set the to-be-transferred virtual resource to a frozen state, where the frozen state is used to represent that the to-be-transferred virtual resource is not currently available in the first account.
In this embodiment of the present invention, the response unit 32 is specifically configured to determine the second account according to the identification information; acquiring a second resource identifier of the virtual resource to be transferred; randomly generating a corresponding third resource identifier at least based on the second resource identifier; and generating corresponding virtual resources for the second account according to the third resource identifier.
In this embodiment of the present invention, the response unit 32 is specifically configured to set the second resource identifier to be in a frozen state, where the frozen state is used to represent that the second resource identifier is currently unavailable.
In the embodiment of the present invention, the response unit 32 is specifically configured to generate a new order for the second account according to the virtual resource to be transferred after determining the virtual resource to be transferred from the virtual resource corresponding to the order; and the processor is further configured to associate the third resource identifier with the new order after randomly generating the corresponding third resource identifier.
In this embodiment of the present invention, the response unit 32 is specifically configured to respond to the request message, and determine the second account according to the identification information; detecting whether a confirmation message from the second account is received or not within a preset time period, wherein the confirmation message carries a fourth resource identifier of the virtual resource selected by the second account; if the confirmation message is received within the preset time, responding to the confirmation message, and correspondingly generating a fifth resource identifier for the selected virtual resource; and generating corresponding virtual resources for the second account according to the fifth resource identifier.
Here, it should be noted that: the above description of the embodiment of the processing apparatus, similar to the above description of the embodiment of the method, has similar advantageous effects as the embodiment of the method. For technical details not disclosed in the embodiments of the management device of the present invention, reference should be made to the description of the embodiments of the method of the present invention for understanding.
Based on the same inventive concept, the embodiment of the present invention provides a server, which is consistent with one or more servers described above.
Fig. 4 is a schematic structural diagram of a server in an embodiment of the present invention, and referring to fig. 4, the server 40 includes: the method comprises the following steps: a memory 41, a processor 42 and a computer program 43 stored on the memory 41 and executable on the processor 42, the processor 42 realizing the following steps when executing the computer program: receiving a request message from a first account, wherein the request message is used for requesting to transfer virtual resources in an order, and the request message at least carries identification information of a second account; and responding to the request message, and generating corresponding virtual resources for the second account.
In other embodiments of the present invention, the processor 42 when executing the program further performs the following steps: responding to the request message, and determining virtual resources to be transferred from the virtual resources corresponding to the order based on a preset strategy; and generating corresponding virtual resources for the second account based on the virtual resources to be transferred and the identification information.
In other embodiments of the present invention, the processor 42 when executing the program further performs the following steps: analyzing the request message to obtain the identification information of the order; searching all virtual resources corresponding to the order according to the identification information of the order; and determining the virtual resource in an unused state in all the virtual resources as the virtual resource to be transferred.
In other embodiments of the present invention, the processor 42 when executing the program further performs the following steps: analyzing the request message, and acquiring a first resource identifier of the virtual resource carried by the request message, wherein the first resource identifier is a resource identifier of the virtual resource selected by the first account; determining virtual resources corresponding to the first resource identification from the virtual resources contained in the order; and determining the virtual resource corresponding to the first resource identifier as the virtual resource to be transferred.
In other embodiments of the present invention, the processor 42 when executing the program further performs the following steps: and setting the virtual resources to be transferred to a frozen state, wherein the frozen state is used for representing that the first account is not available at present and the virtual resources to be transferred.
In other embodiments of the present invention, the processor 42 when executing the program further performs the following steps: determining a second account according to the identification information; acquiring a second resource identifier of the virtual resource to be transferred; randomly generating a corresponding third resource identifier at least based on the second resource identifier; and generating corresponding virtual resources for the second account according to the third resource identifier.
In other embodiments of the present invention, after the step of acquiring the second resource identifier of the virtual resource to be transferred, the processor 42 executes the program to further implement the following steps: and setting the second resource identifier to be in a frozen state, wherein the frozen state is used for representing that the second resource identifier is not available currently.
In another embodiment of the present invention, after the step of determining that the virtual resource is to be transferred from the virtual resource corresponding to the order, the processor 42 executes the program to further implement the following steps: generating a new order for the second account according to the virtual resource to be transferred; after the step of randomly generating the corresponding third resource identifier, the processor further implements the following steps when executing the program: associating the third resource identification to the new order.
In other embodiments of the present invention, the processor 42 when executing the program further performs the following steps: responding to the request message, and determining a second account according to the identification information; detecting whether a confirmation message from the second account is received or not within a preset time period, wherein the confirmation message carries a fourth resource identifier of the virtual resource selected by the second account; if the confirmation message is received within the preset time, responding to the confirmation message, and correspondingly generating a fifth resource identifier for the selected virtual resource; and generating corresponding virtual resources for the second account according to the fifth resource identifier.
Here, it should be noted that: the above description of the server embodiment is similar to the above description of the method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the server embodiment of the present invention, reference is made to the description of the method embodiment of the present invention for understanding.
It should be noted that, in the embodiment of the present invention, if the output method of the multimedia information is implemented in the form of a software functional module and is sold or used as a standalone product, the output method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program is used for implementing the method for outputting multimedia information in the embodiment of the present invention when the computer program is executed by a processor.
Here, it should be noted that: the above description of the computing device or computer-readable storage medium embodiments is similar to the description of the method embodiments above, with similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the computing device or storage medium of the present invention, reference is made to the description of the embodiments of the method of the present invention for understanding.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (9)

1. A method for processing virtual resources is characterized by comprising the following steps:
receiving an order submitted by a first account, wherein the order is used for purchasing a plurality of virtual resources with the same purpose from a server;
receiving a request message from the first account, wherein the request message is used for requesting transfer of at least one virtual resource in the order, and the request message at least carries identification information of a second account;
the server responds to the request message and generates corresponding virtual resources for the second account, and the method comprises the following steps:
determining virtual resources to be transferred from the virtual resources corresponding to all orders held by the first account;
acquiring a second resource identifier of the virtual resource to be transferred, and setting the second resource identifier to be in a frozen state;
generating a corresponding third resource identifier based on the second resource identifier, and generating a corresponding virtual resource for a second account according to the third resource identifier, wherein the third resource identifier is a new resource identifier of the virtual resource to be transferred;
generating a new order for the second account according to the virtual resource to be transferred;
associating the third resource identification to the new order;
and sending the order information of the new order to the second account.
2. The method of claim 1, wherein generating the corresponding virtual resource for the second account in response to the request message comprises:
responding to the request message, and determining virtual resources to be transferred from the virtual resources corresponding to the order based on a preset strategy;
and generating corresponding virtual resources for the second account based on the virtual resources to be transferred and the identification information.
3. The method according to claim 2, wherein the determining the virtual resource to be transferred from the virtual resource corresponding to the order based on the preset policy comprises:
analyzing the request message to obtain the identification information of the order;
searching all virtual resources corresponding to the order according to the identification information of the order;
and determining the virtual resource in an unused state in all the virtual resources as the virtual resource to be transferred.
4. The method according to claim 2, wherein the determining the virtual resource to be transferred from the virtual resources included in the order based on the preset policy comprises:
analyzing the request message, and acquiring a first resource identifier of a virtual resource carried by the request message, wherein the first resource identifier is a resource identifier of the virtual resource selected by the first account;
determining a virtual resource corresponding to the first resource identifier from the virtual resources contained in the order;
and determining the virtual resource corresponding to the first resource identifier as the virtual resource to be transferred.
5. The method according to claim 2, wherein after determining that the virtual resource is to be transferred from the virtual resources corresponding to the order based on the preset policy, the method further comprises:
and setting the virtual resource to be transferred to be in a frozen state, wherein the frozen state is used for representing that the virtual resource to be transferred is not available currently in the first account.
6. The method according to claim 2, wherein the generating the corresponding virtual resource for the second account based on the virtual resource to be transferred and the identification information comprises:
determining the second account according to the identification information;
acquiring a second resource identifier of the virtual resource to be transferred;
randomly generating a corresponding third resource identifier at least based on the second resource identifier;
and generating corresponding virtual resources for the second account according to the third resource identifier.
7. The method of claim 1, wherein generating the corresponding virtual resource for the second account in response to the request message comprises:
responding to the request message, and determining the second account according to the identification information;
detecting whether a confirmation message from the second account is received or not within a preset time period, wherein the confirmation message carries a fourth resource identifier of the virtual resource selected by the second account;
if the confirmation message is received within the preset time, responding to the confirmation message, and correspondingly generating a fifth resource identifier for the selected virtual resource;
and generating corresponding virtual resources for the second account according to the fifth resource identifier.
8. An apparatus for processing virtual resources, comprising:
the receiving unit is used for receiving an order submitted by the first account, and the order is used for purchasing a plurality of virtual resources with the same purpose from the server;
receiving a request message from the first account, wherein the request message is used for requesting transfer of at least one virtual resource in the order, and the request message at least carries identification information of a second account;
a response unit, configured to respond to the request message and generate a corresponding virtual resource for the second account;
the response unit is specifically configured to generate a corresponding virtual resource for the second account through the following steps:
determining virtual resources to be transferred from the virtual resources corresponding to all orders held by the first account;
acquiring a second resource identifier of the virtual resource to be transferred, and setting the second resource identifier to be in a frozen state;
generating a corresponding third resource identifier based on the second resource identifier, and generating a corresponding virtual resource for a second account according to the third resource identifier, wherein the third resource identifier is a new resource identifier of the virtual resource to be transferred;
the response unit is specifically configured to generate a new order for the second account according to the virtual resource to be transferred after the virtual resource to be transferred is determined from the virtual resource corresponding to the order, and is further configured to associate a third resource identifier to the new order after the corresponding third resource identifier is randomly generated, and send order information of the new order to the second account.
9. A server, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the processing method of the virtual resource according to any of claims 1 to 7 when executing the computer program.
CN201710773517.8A 2017-08-31 2017-08-31 Virtual resource processing method and device and server Active CN107665453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710773517.8A CN107665453B (en) 2017-08-31 2017-08-31 Virtual resource processing method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710773517.8A CN107665453B (en) 2017-08-31 2017-08-31 Virtual resource processing method and device and server

Publications (2)

Publication Number Publication Date
CN107665453A CN107665453A (en) 2018-02-06
CN107665453B true CN107665453B (en) 2022-01-21

Family

ID=61097368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710773517.8A Active CN107665453B (en) 2017-08-31 2017-08-31 Virtual resource processing method and device and server

Country Status (1)

Country Link
CN (1) CN107665453B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765144B (en) * 2018-04-10 2023-04-14 平安科技(深圳)有限公司 Electronic resource package processing method, terminal device and medium
CN111709728A (en) * 2020-06-19 2020-09-25 深圳市融壹买信息科技有限公司 Virtual resource splitting deduction replacing method and device, computer equipment and storage medium
CN113065878B (en) * 2021-04-08 2024-02-06 湖南闪知大数据科技有限公司 Transaction method, system, server and storage medium
CN113657943B (en) * 2021-08-24 2023-11-07 北京百度网讯科技有限公司 Virtual asset transfer system, method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101223546A (en) * 2005-05-16 2008-07-16 夏普株式会社 Electronic ticket transfer system and electronic ticket transfer method
CN103366304A (en) * 2013-06-14 2013-10-23 北京小米科技有限责任公司 Method, device and equipment for transfer of virtual commodity use right
CN104601448A (en) * 2015-01-12 2015-05-06 腾讯科技(深圳)有限公司 Method and device for handling virtual card
CN104980403A (en) * 2014-04-10 2015-10-14 腾讯科技(深圳)有限公司 Method and device for processing business request
CN105321088A (en) * 2014-07-03 2016-02-10 周万荣 Stimulus transfer method and system in electronic commerce

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766209B (en) * 2014-01-07 2017-07-21 腾讯科技(深圳)有限公司 A kind of batch data processing method and system
CN104616138A (en) * 2014-07-31 2015-05-13 腾讯科技(深圳)有限公司 Resource transferring method, system and device
CN105976181A (en) * 2016-05-25 2016-09-28 财付通支付科技有限公司 Processing method for virtual resources, server, and client
CN106097047A (en) * 2016-06-06 2016-11-09 上海银天下科技有限公司 The hyperphoric method and device of virtual objects

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101223546A (en) * 2005-05-16 2008-07-16 夏普株式会社 Electronic ticket transfer system and electronic ticket transfer method
CN103366304A (en) * 2013-06-14 2013-10-23 北京小米科技有限责任公司 Method, device and equipment for transfer of virtual commodity use right
CN104980403A (en) * 2014-04-10 2015-10-14 腾讯科技(深圳)有限公司 Method and device for processing business request
CN105321088A (en) * 2014-07-03 2016-02-10 周万荣 Stimulus transfer method and system in electronic commerce
CN104601448A (en) * 2015-01-12 2015-05-06 腾讯科技(深圳)有限公司 Method and device for handling virtual card

Also Published As

Publication number Publication date
CN107665453A (en) 2018-02-06

Similar Documents

Publication Publication Date Title
US10699301B2 (en) Data-processing method and apparatus, and computer storage medium for electronic resource transfer
CN107665453B (en) Virtual resource processing method and device and server
US11042915B2 (en) Order processing method and terminal
US20210319468A1 (en) Information processing method, server, first terminal, and computer storage medium
US11074576B2 (en) Electronic certificate processing method and electronic certificate processing apparatus
JP6671759B2 (en) Message processing method, apparatus and system, and computer storage medium
WO2017133329A1 (en) Information processing method, server, first terminal and computer storage medium
CN104937623A (en) Attended dispensing environment utilizing mobile payment
JP6760974B2 (en) Transaction processing method and system
KR101649265B1 (en) Adcache space auctions based on differential context
CN103747436A (en) Application program downloading method and device
CN108229925B (en) Data matching method and system for electronic receipt
CN113179282A (en) Method and device for merging account numbers and server
CN104766231A (en) Real-time communication information transmission method for the same commodity
CN112633954B (en) Rights and interests processing method and device based on block chain
US20210157659A1 (en) Event execution method, device, and system
CN108874836B (en) Method and device for transferring electronic ticket
CN105323288B (en) Network data processing system and method, corresponding server and terminal
CN111476598A (en) Information prompting method and device, storage medium and electronic device
US20230196401A1 (en) Methods, systems, and devices for managing information between merchants, intermediaries and/or end users
CN113268287A (en) Small program starting method and device based on graphic code
CN113704024A (en) Data processing method, device, related equipment and storage medium
CN106296333A (en) Network resource processing method and device
WO2020234864A1 (en) System and method for transferring an anonymized transaction between nodes of a computer network
US11915286B1 (en) Systems and method for attributing transactions from multiple websites to content producers

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