CN111625353A - Virtual resource distribution processing method, device, server and storage medium - Google Patents

Virtual resource distribution processing method, device, server and storage medium Download PDF

Info

Publication number
CN111625353A
CN111625353A CN202010420367.4A CN202010420367A CN111625353A CN 111625353 A CN111625353 A CN 111625353A CN 202010420367 A CN202010420367 A CN 202010420367A CN 111625353 A CN111625353 A CN 111625353A
Authority
CN
China
Prior art keywords
virtual resource
virtual
account
resource
distributed
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
CN202010420367.4A
Other languages
Chinese (zh)
Other versions
CN111625353B (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010420367.4A priority Critical patent/CN111625353B/en
Publication of CN111625353A publication Critical patent/CN111625353A/en
Application granted granted Critical
Publication of CN111625353B publication Critical patent/CN111625353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The method comprises the steps of receiving a trigger instruction of a first account to a virtual resource map, obtaining display probabilities of a plurality of second accounts in a virtual resource pool to be distributed in the virtual resource map, determining the second accounts of a target number displayed in the virtual resource map according to the display probabilities, further obtaining one second account selected from the second accounts of the target number displayed in the virtual resource map, obtaining the residual value of each virtual resource sent by the selected second account, and distributing the virtual resource with the largest residual value to the first account, so that effective distribution processing of the virtual resource is achieved, and the problem that which virtual resource is taken for distribution cannot be calculated under a high concurrency scene in the prior art is solved.

Description

Virtual resource distribution processing method, device, server and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing virtual resource distribution, a server, and a storage medium.
Background
With the development of the internet and communication technology, various internet applications are becoming more and more rich, for example, live webcasting has become a life entertainment mode of people. To increase the user's viscosity, the anchor may red wrap through the red wrap map during the activity to get more opportunities for traffic exposure and thus gain more attention, while ordinary users may get red wrap through the red wrap map during the activity.
In the related art, as shown in fig. 1, when a host (a red packet-making user) makes a red packet on a red packet map, the red packet is split into sub red packets and added to a preemptible red packet pool by means of normal distribution and the like (a red packet splitting module) according to the total amount of the red packet and the expected amount of the sub red packets; when a red packet robbing user enters a red packet map, taking out some sub-red packets (a red packet distribution module) from the red packet robbable pool with a certain probability, displaying the sub-red packets on the red packet map, and moving the sub-red packets to the red packet pool to be received; when a user clicks a certain sub red packet in the red packet map, the sub red packet is transferred from the red packet pool to be received to the received red packet pool, and the user successfully robs the red packet at the moment; when the user does not click on the red packet map for a long time or fails to rob the red packet, the corresponding sub-red packets are transferred from the red packet pool to be received to the red packet pool capable of being robed, and the red packet robbing opportunity is given up to the user.
However, at present, when sub red packages are allocated to a red package map, three red package pools (a preemptible red package pool, a to-be-received red package pool, and a received red package pool) need to be relied on and maintained, so that under the scene that the number of red packages is huge and the red package users are highly concurrent, a problem that which sub red packages are to be taken from the preemptible red package pool for distribution cannot be calculated highly concurrently occurs, and maintenance cannot be performed under high concurrency is caused.
Disclosure of Invention
The present disclosure provides a virtual resource distribution processing method, apparatus, server, and storage medium, to at least solve a problem in the related art that a red packet pool cannot be maintained in a high concurrency scenario. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a virtual resource distribution processing method is provided, including:
receiving a triggering instruction of a first account on a virtual resource map, and acquiring display probabilities of a plurality of second accounts in a virtual resource pool to be distributed in the virtual resource map;
acquiring second accounts of the number of targets displayed in the virtual resource map according to the display probability;
acquiring one selected from second accounts with the target number displayed in the virtual resource map;
acquiring the remaining value of each virtual resource sent by the selected second account;
and distributing the virtual resource with the most remaining value to the first account.
In one embodiment, the virtual resource pool to be distributed includes a resource set corresponding to each virtual resource, where the resource set includes multiple sub-virtual resources obtained by splitting each virtual resource; distributing the virtual resource with the most remaining value to the first account, including: sending the virtual resource with the most residual value to a virtual resource map for display; receiving a resource acquisition request for virtual resources displayed in a virtual resource map, acquiring a resource set corresponding to the virtual resource with the most residual value, and distributing one residual sub-virtual resource in the resource set to the first account when the resource set currently has the residual sub-virtual resource; and when the resource set does not have the residual sub-virtual resources currently, returning prompt information of resource acquisition failure to the first account.
In one embodiment, after distributing one remaining child virtual resource in the set of resources to the first account, the method further comprises: moving the child virtual resources from the virtual resource pool to be distributed to the distributed virtual resource pool; and updating the residual value of the corresponding virtual resource according to the resource set after distributing the sub-virtual resource.
In one embodiment, the obtaining of the display probability of the plurality of second accounts in the virtual resource map to be distributed includes: acquiring the total remaining value of the virtual resources sent to the virtual resource pool to be distributed by each second account; calculating a total value corresponding to the virtual resources in the virtual resource pool to be distributed according to the total remaining value of the virtual resources sent by each second account; and determining the ratio of the total remaining value of the virtual resources sent by the second account to the total value corresponding to the virtual resources in the virtual resource pool to be distributed as the display probability of the second account in the virtual resource map.
In one embodiment, after distributing one remaining child virtual resource in the set of resources to the first account, the method further comprises: updating the total residual value of the virtual resources sent by the second account of the corresponding virtual resources according to the resource set after distributing the sub virtual resources; and updating the total value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account.
In one embodiment, after calculating the total number value corresponding to the virtual resource in the virtual resource pool to be distributed, the method further includes: acquiring virtual resources sent by a second account, and updating the total residual value of the virtual resources sent by the second account; and updating the total value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account.
According to a second aspect of the embodiments of the present disclosure, there is provided a virtual resource distribution processing apparatus including:
the display probability acquisition module is configured to execute a trigger instruction of receiving a first account on the virtual resource map, and acquire display probabilities of a plurality of second accounts in the virtual resource map to be distributed;
the display determination module is configured to execute a second account for acquiring the number of targets displayed in the virtual resource map according to the display probability;
the selection acquisition module is configured to execute acquisition of one selected from the second accounts with the target number displayed in the virtual resource map;
a remaining value determination module configured to perform obtaining a remaining value of each virtual resource that has been transmitted by the selected second account;
a distribution module configured to perform distribution of the virtual resource having the highest remaining value to the first account.
In one embodiment, a virtual resource pool to be distributed includes a resource set corresponding to each virtual resource, where the resource set includes multiple sub-virtual resources obtained by splitting each virtual resource; the distribution module includes: the sending unit is configured to send the virtual resource with the most residual value to a virtual resource map for showing; a request receiving unit configured to perform receiving a resource acquisition request for a virtual resource shown in a virtual resource map; the distribution unit is configured to execute acquisition of a resource set corresponding to the virtual resource with the largest residual value, and when the resource set currently has the residual sub-virtual resource, distribute the residual sub-virtual resource in the resource set to the first account; and when the resource set does not have the residual sub-virtual resources currently, returning prompt information of resource acquisition failure to the first account.
In one embodiment, the apparatus further comprises: a transfer module configured to perform a move of the child virtual resource from a pool of virtual resources to be distributed to a pool of distributed virtual resources; a first updating module configured to perform updating of a remaining value of the corresponding virtual resource according to the resource set after distributing the child virtual resource.
In one embodiment, the presentation probability obtaining module includes: a total remaining value acquisition unit configured to perform acquisition of a total remaining value of each second account that has transmitted the virtual resource to a virtual resource pool to be distributed; a total value determining unit configured to calculate a total value corresponding to the virtual resource in the virtual resource pool to be distributed according to a total remaining value of the virtual resource sent by each second account; and the display probability calculation unit is configured to determine a ratio of a total remaining value of the virtual resources sent by the second account to a total value corresponding to the virtual resources in the virtual resource pool to be distributed as a display probability of the second account in the virtual resource map.
In one embodiment, the apparatus further comprises: a second updating module configured to update, according to the resource set after distributing the child virtual resource, a total remaining value of the virtual resource sent by a second account of the corresponding virtual resource; and the third updating module is configured to update the total value corresponding to the virtual resource in the virtual resource pool to be distributed according to the updated total remaining value of the virtual resource sent by the second account.
In one embodiment, the second update module is configured to perform: acquiring virtual resources sent by a second account, and updating the total residual value of the virtual resources sent by the second account; the third update module is configured to perform: and updating a total numerical value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to cause the server to perform the virtual resource distribution processing method described in any embodiment of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of a server, enable the server to perform the virtual resource distribution processing method described in any one of the embodiments of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, so that the device performs the virtual resource distribution processing method described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the method comprises the steps of obtaining display probabilities of a plurality of second accounts in a virtual resource pool to be distributed in a virtual resource map by receiving a trigger instruction of a first account on the virtual resource map, obtaining the second accounts with the target number displayed in the virtual resource map according to the display probabilities, further obtaining one second account selected from the second accounts with the target number displayed in the virtual resource map, determining the residual value of each virtual resource sent by the selected second account, and distributing the virtual resource with the largest residual value to the first account, so that effective distribution processing of the virtual resource is realized, and the problem that which virtual resource is taken for distribution cannot be calculated in a high concurrency scene in the prior art is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a technical architecture diagram for distributing red packs through a red pack map in the conventional art.
Fig. 2 is a diagram of an application environment illustrating a virtual resource distribution processing method according to an example embodiment.
Fig. 3 is a flowchart illustrating a virtual resource distribution processing method according to an example embodiment.
FIG. 4 is a flowchart illustrating the step of distributing virtual resources to a first account according to an example embodiment.
FIG. 5 is a flowchart illustrating the step of obtaining presentation probabilities according to an exemplary embodiment.
Fig. 6 is a schematic diagram illustrating a specific application of a virtual resource distribution processing method according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a virtual resource distribution processing apparatus according to an example embodiment.
Fig. 8 is an internal block diagram of a server according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The virtual resource distribution processing method provided by the present disclosure may be applied to an application environment shown in fig. 2, as shown in fig. 2, including: the system comprises a first terminal 101, a second terminal 102 and a server 103, wherein the first terminal 101 and the second terminal 102 can be connected with the server 103 through a network for data interaction. Specifically, the first terminal 101 may be a terminal of a first account, the second terminal 102 may be a terminal of a second account, and the second account may send a trigger instruction for the virtual resource map to the server 103 through the second terminal 102, so as to send the virtual resource to the virtual resource pool to be distributed in the server 103 through the virtual resource map; the first account can send a trigger instruction for the virtual resource map to the server 103 through the first terminal 101, so as to obtain the corresponding virtual resource in the virtual resource map under the processing of the server. Specifically, the first terminal 101 and the second terminal 102 may be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 103 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
Fig. 3 is a flowchart illustrating a virtual resource distribution processing method according to an exemplary embodiment, and as shown in fig. 3, the method is described as applied to the server in fig. 2, and includes the following steps.
In step S310, a triggering instruction of the first account on the virtual resource map is received, and display probabilities of a plurality of second accounts in the virtual resource pool to be distributed in the virtual resource map are obtained.
The virtual resource map is a page capable of receiving virtual resources and displaying the virtual resources. The triggering instruction is an instruction or a command instructing the server to return the virtual resource map to the terminal. The first account is an account for requesting to acquire the virtual resources through the virtual resource map, and the second account is an account for sending the virtual resources to the virtual resource pool to be distributed through the virtual resource map. The virtual resource pool to be distributed stores all the virtual resources to be distributed sent by the second accounts, and the display probability refers to the possibility that each second account is displayed in the virtual resource map. Specifically, when the first account needs to acquire the virtual resource through the virtual resource map, the triggering instruction of the virtual resource map is sent to the server by clicking the corresponding option in the terminal, so as to request the server to distribute the virtual resource to the server through the virtual resource map. When receiving a trigger instruction sent by a first account, a server obtains a display probability of each second account in a virtual resource map to be distributed, wherein the display probability of each second account can be obtained based on a total remaining value of virtual resources sent by the second account to the virtual resource pool to be distributed.
In step S320, the number of second accounts of the target number displayed in the virtual resource map is obtained according to the display probability.
The target number refers to the number of the second accounts displayed in the virtual resource map, which is set according to needs, and the target number can be set according to an actual application scene. In this embodiment, the higher the presentation probability, the higher the possibility that the second account is presented in the virtual resource map. Specifically, the server acquires the second accounts with the target number displayed in the virtual resource map according to the display probability of each second account and the preset display number, and returns the second accounts to the terminal of the first account for display, so that the first account can be selected according to the second accounts displayed by the terminal.
In step S330, one second account selected from the target number of second accounts displayed in the virtual resource map is acquired.
Specifically, when the first account selects one of the target number of second accounts displayed in the virtual resource map of the terminal, the corresponding terminal interacts with the server, so that the server can acquire which selected second account.
In step S340, the remaining value of each virtual resource that has been transmitted by the selected second account is acquired.
The remaining value of the virtual resource refers to a part of the virtual resource which is not distributed, and when the second account sends a plurality of virtual resources to the virtual resource pool to be distributed through the virtual resource map, the remaining value of each virtual resource sent by the second account is determined.
In step S350, the virtual resource with the largest remaining value is distributed to the first account.
Specifically, the server acquires a certain second account selected by the first account from the target number of second accounts displayed in the virtual resource map, acquires the remaining value of each virtual resource sent by the second account, and further distributes the virtual resource with the largest remaining value to the first account, so that the problem that which virtual resource is selected for distribution cannot be calculated in a high concurrency scene in the prior art is solved.
According to the virtual resource distribution processing method, the server receives a trigger instruction of the first account to the virtual resource map, obtains the display probability of a plurality of second accounts in the virtual resource pool to be distributed in the virtual resource map according to the trigger instruction, obtains the second accounts of the target number displayed in the virtual resource map according to the display probability, further obtains one second account selected from the second accounts of the target number displayed in the virtual resource map, obtains the residual value of each virtual resource sent by the selected second account, and distributes the virtual resource with the largest residual value to the first account, so that effective distribution processing of the virtual resource is achieved, and the problem that which virtual resource is taken for distribution cannot be calculated under a high concurrency scene in the traditional technology is solved.
In an exemplary embodiment, the virtual resource pool to be distributed includes a resource set corresponding to each virtual resource, and the resource set includes a plurality of sub-virtual resources obtained by splitting the corresponding virtual resource. Specifically, for virtual resources sent by a second account to a virtual resource pool to be distributed, in order to avoid that a large number of first accounts scramble the same virtual resource and the success rate of obtaining the virtual resource is extremely low, and meanwhile, in order to obtain reasonable attention for the second account, generally, when the second account sends the virtual resource, a server splits the virtual resource according to a certain rule so as to obtain a plurality of corresponding sub-virtual resources, stores the plurality of split sub-virtual resources in the virtual resource pool to be distributed as a resource set of the corresponding virtual resource, thereby ensuring the success rate of obtaining the virtual resource by the first account in a manner of distributing the sub-virtual resources, and simultaneously enabling the second account to obtain reasonable attention.
In an exemplary embodiment, as shown in fig. 4, in step S350, the virtual resource with the largest remaining value is distributed to the first account, which may specifically be implemented by the following steps:
in step S351, the virtual resource with the largest remaining value is sent to the virtual resource map for presentation.
Specifically, the server acquires one second account selected by the first account from the second accounts with the target number displayed in the virtual resource map, acquires the remaining value of each virtual resource sent by the second account, and further sends the virtual resource with the largest remaining value to the virtual resource map for display, so that the first account initiates a request for acquiring the virtual resource through the displayed virtual resource.
In step S352, a resource acquisition request for a virtual resource shown in the virtual resource map is received.
The resource acquisition request refers to an acquisition request of the virtual resource shown in the virtual resource map, which is initiated to the server by the first account through the terminal.
In step S353, a resource set corresponding to the virtual resource with the largest remaining value is obtained, and the virtual resource is distributed to the first account according to the resource set.
Specifically, when a server receives a resource acquisition request sent by a first account for a virtual resource with the largest residual value shown in a virtual resource map, a resource set corresponding to the virtual resource with the largest residual value is acquired, whether a residual sub-virtual resource exists in the resource set is further judged, and when the residual sub-virtual resource exists in the resource set, one residual sub-virtual resource in the resource set is distributed to the first account; and when the resource set does not have the residual sub-virtual resources currently, returning prompt information of resource acquisition failure to the first account.
And distributing one sub-virtual resource in the resource set corresponding to the virtual resource to the first account so as to complete the distribution of the virtual resource.
In the embodiment, the virtual resource with the largest residual value is displayed in the virtual resource map, and when the resource acquisition request of the virtual resource displayed in the virtual resource map is received, the corresponding sub-virtual resource is decoupled through the virtual resource and distributed in the form of the sub-virtual resource, so that the traffic amplification effect is realized, the success rate of acquiring the virtual resource by the first account is improved, meanwhile, the second account can obtain reasonable attention, the sub-virtual resource corresponding to the virtual resource is maintained in the form of the resource set, and the high concurrent distribution capability of the server is greatly improved.
In an exemplary embodiment, after distributing a remaining sub virtual resource in the resource set corresponding to the virtual resource with the highest remaining value to the first account, the method further includes: and moving the sub-virtual resources from the virtual resource pool to be distributed to the distributed virtual resource pool, wherein the sub-virtual resources acquired by the first account are stored in the distributed virtual resource pool. Specifically, after the distributing step, after a certain sub-virtual resource in the virtual resource pool to be distributed is distributed to the first account, the distributed sub-virtual resource is moved from the virtual resource pool to be distributed to the distributed virtual resource pool, and then the remaining value of the corresponding virtual resource is updated according to the resource set after the sub-virtual resource is distributed, thereby decoupling the maintenance of the virtual resource state. The remaining value of the virtual resource refers to the sum of values of sub-virtual resources to be distributed in a resource set corresponding to the virtual resource.
In an exemplary embodiment, as shown in fig. 5, in step S310, obtaining display probabilities of a plurality of second accounts in the virtual resource pool to be distributed in the virtual resource map may specifically be implemented by the following steps:
in step S311, a total remaining value of virtual resources that each second account has transmitted to the virtual resource pool to be distributed is acquired.
In this embodiment, since the virtual resource pool to be distributed includes the resource set corresponding to each virtual resource, the virtual resources in the virtual resource pool to be distributed may be aggregated according to each second account for sending the virtual resource, so as to obtain the resource sets corresponding to the virtual resources sent by each second account, and further obtain the total remaining value of the virtual resources sent by each second account.
In step S312, a total value corresponding to the virtual resource in the virtual resource pool to be distributed is calculated according to the total remaining value of the virtual resource sent by each second account.
Specifically, after the total remaining value of the virtual resource sent by each second account in the virtual resource pool to be distributed is obtained, the total value corresponding to the virtual resource in the virtual resource pool to be distributed can be obtained based on the sum of the total remaining values of the virtual resource sent by each second account.
In step S313, a ratio of the total remaining value of the virtual resources sent by the second account to the total value corresponding to the virtual resources in the virtual resource pool to be distributed is determined as a display probability of the second account in the virtual resource map.
In the embodiment, the virtual resources in the virtual resource pool to be distributed are aggregated through the account dimension, so that the capacity of the virtual resource pool to be distributed is greatly improved. The ratio of the total remaining value of the virtual resources sent by the second account to the total value corresponding to the virtual resources in the virtual resource pool to be distributed is determined as the display probability of the second account in the virtual resource map, and the probability of being distributed to the virtual resource map is higher when the display probability is higher. Compare in the traditional art that can rob red packet pool that figure 1 shows how many sub-red packets have, just can only issue how many times red packet, and can not play the problem of the effect that the flow is enlargied, then the biggest benefit of fabulous balance flow through the show probability in this application, and possess the super ability of sending out of flow.
In an exemplary embodiment, after distributing a remaining sub virtual resource in the resource set corresponding to the virtual resource with the largest remaining value to the first account, the method further includes: and updating the total residual value of the virtual resources sent by the second account of the corresponding virtual resources according to the resource set after the sub-virtual resources are distributed, and updating the total value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account. In this embodiment, the sub virtual resources in the virtual resource pool to be distributed are aggregated hierarchically, that is, the corresponding resource set is updated through the distributed sub virtual resources, and then the total remaining value of the virtual resources sent by the second account corresponding to the resource set is updated through the user dimension, so that the total value corresponding to the virtual resources in the virtual resource pool to be distributed is updated, which not only improves the storage capacity of the data set in the virtual resource pool to be distributed, but also can improve the high concurrency capacity of the server.
In an exemplary embodiment, after obtaining a total number value corresponding to a virtual resource in a virtual resource pool to be distributed, the method further includes: and acquiring the virtual resources sent by the second account, updating the total residual value of the virtual resources sent by the second account according to the virtual resources sent by the second account, and updating the total value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account. In this embodiment, the total remaining value of the virtual resources sent by the second account for sending the virtual resources is maintained through the user dimension, and then the total value corresponding to the virtual resources in the virtual resource pool to be distributed is updated, so that the storage capacity of data in the virtual resource pool to be distributed is improved, and the high concurrency capacity of the server is improved.
In an exemplary embodiment, the virtual resource map is a red envelope map, and the method of the present application is further described by taking the red envelope map as an example of applying the red envelope map to a live broadcast scene, as shown in fig. 6, in the live broadcast scene, the method generally includes a anchor user (i.e., a red envelope-emitting party, i.e., a second account) and a viewer watching a live broadcast (i.e., a red envelope-capturing party, i.e., a first account), on one hand, the anchor can obtain more opportunities for traffic exposure by emitting a red envelope during an activity, so as to obtain more attention, and the more anchor for emitting a red envelope on the red envelope map will excite more viewers to emit a red envelope map; on the other hand, the audience can obtain certain rewards by grabbing the red packet through the red packet map during the activity, so that the audience has the acquisition feeling and the participation feeling of the activity, and more people grabbing the red packet on the red packet map and more flow are more, more anchor is excited to shoot the red packet, so that a virtuous circle is formed.
The key point is how to balance the appeal of the red packet capturing party and the red packet capturing party, namely, the success rate of capturing the red packet by the red packet capturing user is ensured, and the participation enthusiasm of the user is ensured; meanwhile, the user of the red packet sending needs to be ensured to obtain reasonable attention, and the enthusiasm of the user for sending the red packet is stimulated. In order to ensure the enthusiasm of the party for robbing the red envelope, the key is to ensure the success rate and the amount of money for robbing the red envelope. Therefore, when the red packet distribution module is used for distributing the red packets, the red packets which can be robbed in the red packet pool are reasonably distributed to the red packet map of the red packet robbing user, and the distribution strategy is ensured not to have the phenomenon that a large number of users are able to rob the same red packet and the success rate is extremely low. In order to ensure the enthusiasm of the red packet-emitting party, the key point is to ensure that the red packet-emitting party obtains reasonable traffic exposure on a red packet map.
As can be known from the conventional technology shown in fig. 1, since the scheme needs to rely on and maintain three red packet pools (a preemptible red packet pool, a to-be-received red packet pool, and a received red packet pool), when the number of red packets is large and a user of the preemptible red packet is highly concurrent, it may be impossible to calculate which sub-red packets are to be taken from the preemptible red packet pool for distribution at a high concurrency, thereby causing a problem that the maintenance is impossible at the high concurrency. And the defect that the excessive sending cannot be realized exists, namely the red packet can be sent for only a plurality of times when the red packet pool has a plurality of red packets, and the red packet distribution can be understood to be the red packet distribution rather than the red packet robbing to a certain extent, so that the function of flow amplification cannot be realized.
Based on this, in the application, when a red packet is broadcasted, the server divides the red packet into sub red packet sets including one sub red packet and stores the sub red packet sets into the preemptible red packet pool by using a scatter model such as normal distribution according to the amount of the red packet and the expected amount of the sub red packet, for example, as for a certain red packet I sent by the user a in fig. 6, the divided sub red packet sets are (I1, I2, … …, in), so that the sub red packet sets are maintained through the dimension of the red packet. Meanwhile, the red packet pool can be preempted to maintain two data sets: the sub-red packet set balance of the red packet dimension and the red packet balance of the user dimension. For example, for a certain red packet I sent by the user a, the remaining sub red packets in the corresponding sub red packet set have (I1, I2, … …, in), and the sub red packet set balance of the red packet dimension is the sum of the remaining sub red packets I1, I2, … …, in the red packet I.
The balance of the red packets in the user dimension, that is, the balance of all the red packets transmitted by the same user with the red packet, as shown in fig. 6, there are red packet I and red packet J transmitted by user a, where the remaining sub-red packets in the sub-red packet set with the red packet I have (I1, I2, … …, in), and the remaining sub-red packets in the sub-red packet set with the red packet J have (J1, J2, … …, jn), so that the balance of all the red packets transmitted by user a is the sum of the remaining sub-red packets I1, I2, … …, in the sub-red packet set with the red packet J1, J2, … …, jn.
When the red packet robbing user wants to enter the red packet map, a trigger instruction for the virtual resource map is sent to the server, based on the trigger instruction, the server divides the red packet balance of the red packet sent by each red packet robbing user by the total balance of all sub-red packets in the red packet robbing pool, and takes the divided balance as the display probability of the red packet robbing user in the red packet map, and obtains the red packet robbing user displayed in the red packet map according to the display probability, so that the more the red packet balances of the red packet robbing user are, the greater the probability of being displayed in the red packet map is, and the more the red packet robbing user displayed in the red packet map is obtained through the display probability, and the function of flow amplification can be achieved.
When a red packet robbing user selects a certain red packet emitting user displayed in a red packet map, the server acquires the balance of a sub red packet set corresponding to each red packet sent by the red packet robbing user from a red packet pool, selects the red packet with the largest current sub red packet set balance to display on the red packet map, and when the red packet robbing user clicks the red packet on the red packet map, if the remaining sub red packets exist in the sub red packet set of the current red packet, acquires one sub red packet which is not robbed yet from the sub red packet set of the red packet to distribute to the red packet robbing user, and the success of the red packet robbing is indicated at this moment; and if the sub red packet set of the red packet is completely robbed, namely the sub red packet set is empty, indicating that the red packet robbing is failed, and returning prompt information of resource acquisition failure to the red packet robbing user.
Therefore, in the embodiment, by introducing a balance method, the sub red packet sets in the preemptible red packet pool are aggregated according to the balance of the user, so that the capacity of the preemptible red packet pool is improved; during the red envelope robbing, the red envelope is distributed according to the balance of the user and then the balance of the red envelope, so that the high concurrency capability is greatly improved; when the red packet is distributed, the problem that the red packet cannot be overflowed is solved by issuing the red packet and decoupling the pre-distribution of the sub-red packet, so that the flow amplification effect is realized.
It should be understood that although the various steps in the flow charts of fig. 1-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Fig. 7 is a block diagram illustrating a virtual resource distribution processing apparatus according to an example embodiment. Referring to fig. 7, the apparatus includes a presentation probability acquiring module 701, a display determining module 702, a selection acquiring module 703, a remaining value determining module 704, and a distributing module 705.
The display probability obtaining module 701 is configured to execute a trigger instruction for receiving a first account on a virtual resource map, and obtain display probabilities of a plurality of second accounts in a to-be-distributed virtual resource pool in the virtual resource map;
a display determination module 702 configured to execute obtaining a second account of the number of targets displayed in the virtual resource map according to the display probability;
a selection obtaining module 703 configured to perform obtaining of a selected one of the second accounts of the target number displayed in the virtual resource map;
a remaining value determining module 704 configured to execute obtaining a remaining value of each virtual resource that has been transmitted by the selected second account;
a distribution module 705 configured to perform distributing the virtual resource with the largest remaining value to the first account.
In an exemplary embodiment, the virtual resource pool to be distributed includes a resource set corresponding to each virtual resource, where the resource set includes a plurality of sub-virtual resources obtained by splitting each virtual resource; the distribution module 805 includes: the sending unit is configured to send the virtual resource with the most residual value to a virtual resource map for showing; a request receiving unit configured to perform receiving a resource acquisition request for a virtual resource shown in a virtual resource map; the distribution unit is configured to execute acquisition of a resource set corresponding to the virtual resource with the largest residual value, and when the resource set currently has the residual sub-virtual resource, distribute the residual sub-virtual resource in the resource set to the first account; and when the resource set does not have the residual sub-virtual resources currently, returning prompt information of resource acquisition failure to the first account.
In an exemplary embodiment, the apparatus further comprises: a transfer module configured to perform a move of the child virtual resource from a pool of virtual resources to be distributed to a pool of distributed virtual resources; a first updating module configured to perform updating of a remaining value of the corresponding virtual resource according to the resource set after distributing the child virtual resource.
In an exemplary embodiment, the presentation probability obtaining module 801 includes: a total remaining value acquisition unit configured to perform acquisition of a total remaining value of each second account that has transmitted the virtual resource to a virtual resource pool to be distributed; a total value determining unit configured to calculate a total value corresponding to the virtual resource in the virtual resource pool to be distributed according to a total remaining value of the virtual resource sent by each second account; and the display probability calculation unit is configured to determine a ratio of a total remaining value of the virtual resources sent by the second account to a total value corresponding to the virtual resources in the virtual resource pool to be distributed as a display probability of the second account in the virtual resource map.
In an exemplary embodiment, the apparatus further comprises: a second updating module configured to update, according to the resource set after distributing the child virtual resource, a total remaining value of the virtual resource sent by a second account of the corresponding virtual resource; and the third updating module is configured to update the total value corresponding to the virtual resource in the virtual resource pool to be distributed according to the updated total remaining value of the virtual resource sent by the second account.
In an exemplary embodiment, the second update module is configured to perform: acquiring virtual resources sent by a second account, and updating the total residual value of the virtual resources sent by the second account; the third update module is configured to perform: and updating a total numerical value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating an apparatus S00 for virtual resource distribution processing according to an example embodiment. For example, the device S00 may be a server. Referring to FIG. 8, device S00 includes a processing component S20 that further includes one or more processors and memory resources represented by memory S22 for storing instructions, e.g., applications, that are executable by processing component S20. The application program stored in the memory S22 may include one or more modules each corresponding to a set of instructions. Further, the processing component S20 is configured to execute instructions to perform the virtual resource distribution processing method described above.
The device S00 may also include a power supply component S24 configured to perform power management of the device S00, a wired or wireless network interface S26 configured to connect the device S00 to a network, and an input-output (I/O) interface S28. The device S00 may operate based on an operating system stored in the memory S22, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as the memory S22 comprising instructions, executable by the processor of the device S00 to perform the above method. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A virtual resource distribution processing method is characterized by comprising the following steps:
receiving a triggering instruction of a first account on a virtual resource map, and acquiring display probabilities of a plurality of second accounts in a virtual resource pool to be distributed in the virtual resource map;
acquiring second accounts of the number of targets displayed in the virtual resource map according to the display probability;
acquiring one second account selected from the second accounts with the target number displayed in the virtual resource map;
acquiring the remaining value of each virtual resource sent by the selected second account;
distributing the virtual resource with the largest remaining value to the first account.
2. The method according to claim 1, wherein the virtual resource pool to be distributed includes a resource set corresponding to each virtual resource, and the resource set includes a plurality of sub-virtual resources obtained by splitting each virtual resource; the distributing the virtual resource with the most remaining value to the first account comprises:
sending the virtual resource with the most residual value to the virtual resource map for display;
receiving a resource acquisition request for the virtual resource shown in the virtual resource map;
acquiring a resource set corresponding to the virtual resource with the largest residual value, and when the resource set currently has residual sub-virtual resources, distributing one residual sub-virtual resource in the resource set to the first account; and when the resource set does not have the residual sub-virtual resources currently, returning prompt information of resource acquisition failure to the first account.
3. The method of claim 2, wherein after distributing the one remaining child virtual resource in the set of resources to the first account, the method further comprises:
moving the child virtual resource from the virtual resource pool to be distributed to a distributed virtual resource pool;
and updating the residual value of the corresponding virtual resource according to the resource set after distributing the sub-virtual resource.
4. The method according to claim 2, wherein the obtaining of the display probability of the plurality of second accounts in the virtual resource map to be distributed comprises:
acquiring a total remaining value of the virtual resources sent to the virtual resource pool to be distributed by each second account;
calculating a total value corresponding to the virtual resources in the virtual resource pool to be distributed according to the total remaining value of the virtual resources sent by each second account;
determining a ratio of a total remaining value of the virtual resources sent by the second account to a total value corresponding to the virtual resources in the virtual resource pool to be distributed as a display probability of the second account in the virtual resource map.
5. The method of claim 4, wherein after distributing the one remaining child virtual resource in the set of resources to the first account, the method further comprises:
updating the total residual value of the virtual resources sent by the second account of the corresponding virtual resources according to the resource set after distributing the sub-virtual resources;
and updating a total numerical value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account.
6. The method according to claim 4, wherein after the calculating the total number value corresponding to the virtual resource in the to-be-distributed virtual resource pool, the method further comprises:
acquiring virtual resources sent by a second account, and updating the total residual value of the virtual resources sent by the second account;
and updating a total numerical value corresponding to the virtual resources in the virtual resource pool to be distributed according to the updated total residual value of the virtual resources sent by the second account.
7. A virtual resource distribution processing apparatus, comprising:
the display probability acquisition module is configured to execute a trigger instruction of receiving a first account on a virtual resource map, and acquire display probabilities of a plurality of second accounts in a to-be-distributed virtual resource pool in the virtual resource map;
the display determination module is configured to execute the second account for acquiring the number of targets displayed in the virtual resource map according to the display probability;
the selection acquisition module is configured to execute acquisition of one selected from the second accounts with the target number displayed in the virtual resource map;
a remaining value determination module configured to perform obtaining a remaining value of each virtual resource that the selected second account has transmitted;
a distribution module configured to perform a distribution of the virtual resource having the most remaining value to the first account.
8. The apparatus according to claim 7, wherein the virtual resource pool to be distributed includes a resource set corresponding to each virtual resource, and the resource set includes a plurality of sub-virtual resources obtained by splitting each virtual resource; the distribution module includes:
a sending unit configured to send the virtual resource with the most remaining value to the virtual resource map for presentation;
a request receiving unit configured to perform receiving a resource acquisition request for the virtual resource shown in a virtual resource map;
the distribution unit is configured to execute acquisition of a resource set corresponding to the virtual resource with the largest residual value, and when the resource set currently has residual sub-virtual resources, distribute one residual sub-virtual resource in the resource set to the first account; and when the resource set does not have the residual sub-virtual resources currently, returning prompt information of resource acquisition failure to the first account.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the virtual resource distribution processing method of any one of claims 1 to 6.
10. A storage medium in which instructions are executed by a processor of a server to enable the server to execute the virtual resource distribution processing method according to any one of claims 1 to 6.
CN202010420367.4A 2020-05-18 2020-05-18 Virtual resource distribution processing method, device, server and storage medium Active CN111625353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010420367.4A CN111625353B (en) 2020-05-18 2020-05-18 Virtual resource distribution processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010420367.4A CN111625353B (en) 2020-05-18 2020-05-18 Virtual resource distribution processing method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111625353A true CN111625353A (en) 2020-09-04
CN111625353B CN111625353B (en) 2024-03-12

Family

ID=72270528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010420367.4A Active CN111625353B (en) 2020-05-18 2020-05-18 Virtual resource distribution processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111625353B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511856A (en) * 2020-11-30 2021-03-16 北京达佳互联信息技术有限公司 Virtual resource pushing method and device and server
CN113159814A (en) * 2021-01-15 2021-07-23 北京达佳互联信息技术有限公司 Resource distribution method and device, electronic equipment and storage medium
CN113515691A (en) * 2021-03-22 2021-10-19 北京达佳互联信息技术有限公司 Resource distribution method and device, electronic equipment and storage medium
WO2023088024A1 (en) * 2021-11-18 2023-05-25 腾讯科技(深圳)有限公司 Virtual scene interactive processing method and apparatus, and electronic device, computer-readable storage medium and computer program product

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150375120A1 (en) * 2012-09-05 2015-12-31 Jack Lim Methods and systems for adaptive tuning of game events
US20160099889A1 (en) * 2013-08-01 2016-04-07 Tencent Technology (Shenzhen) Company Limited Method and apparatus for allocating network medium data resources
CN106296276A (en) * 2016-08-03 2017-01-04 西安诺瓦电子科技有限公司 Electronics red packet distributing method
CN107172496A (en) * 2017-04-11 2017-09-15 广州华多网络科技有限公司 The virtual resource sending method and device of a kind of direct broadcasting room
CN108921530A (en) * 2018-06-22 2018-11-30 Oppo广东移动通信有限公司 Information judgment method, device, storage medium and terminal
CN109741115A (en) * 2019-01-25 2019-05-10 努比亚技术有限公司 Link promotion method, terminal and computer readable storage medium based on red packet
WO2019128532A1 (en) * 2017-12-29 2019-07-04 阿里巴巴集团控股有限公司 Method, device, and apparatus for transmitting electronic red envelope, and method, device, and apparatus for receiving electronic red envelope
CN110688215A (en) * 2019-08-23 2020-01-14 咪咕文化科技有限公司 Virtual resource allocation method, server, and computer-readable storage medium
CN110704485A (en) * 2019-09-12 2020-01-17 北京达佳互联信息技术有限公司 Virtual resource processing method, device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150375120A1 (en) * 2012-09-05 2015-12-31 Jack Lim Methods and systems for adaptive tuning of game events
US20160099889A1 (en) * 2013-08-01 2016-04-07 Tencent Technology (Shenzhen) Company Limited Method and apparatus for allocating network medium data resources
CN106296276A (en) * 2016-08-03 2017-01-04 西安诺瓦电子科技有限公司 Electronics red packet distributing method
CN107172496A (en) * 2017-04-11 2017-09-15 广州华多网络科技有限公司 The virtual resource sending method and device of a kind of direct broadcasting room
WO2019128532A1 (en) * 2017-12-29 2019-07-04 阿里巴巴集团控股有限公司 Method, device, and apparatus for transmitting electronic red envelope, and method, device, and apparatus for receiving electronic red envelope
CN108921530A (en) * 2018-06-22 2018-11-30 Oppo广东移动通信有限公司 Information judgment method, device, storage medium and terminal
CN109741115A (en) * 2019-01-25 2019-05-10 努比亚技术有限公司 Link promotion method, terminal and computer readable storage medium based on red packet
CN110688215A (en) * 2019-08-23 2020-01-14 咪咕文化科技有限公司 Virtual resource allocation method, server, and computer-readable storage medium
CN110704485A (en) * 2019-09-12 2020-01-17 北京达佳互联信息技术有限公司 Virtual resource processing method, device and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511856A (en) * 2020-11-30 2021-03-16 北京达佳互联信息技术有限公司 Virtual resource pushing method and device and server
CN112511856B (en) * 2020-11-30 2023-06-27 北京达佳互联信息技术有限公司 Virtual resource pushing method, device and server
CN113159814A (en) * 2021-01-15 2021-07-23 北京达佳互联信息技术有限公司 Resource distribution method and device, electronic equipment and storage medium
CN113515691A (en) * 2021-03-22 2021-10-19 北京达佳互联信息技术有限公司 Resource distribution method and device, electronic equipment and storage medium
CN113515691B (en) * 2021-03-22 2023-10-03 北京达佳互联信息技术有限公司 Resource distribution method, device, electronic equipment and storage medium
WO2023088024A1 (en) * 2021-11-18 2023-05-25 腾讯科技(深圳)有限公司 Virtual scene interactive processing method and apparatus, and electronic device, computer-readable storage medium and computer program product

Also Published As

Publication number Publication date
CN111625353B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN111625353B (en) Virtual resource distribution processing method, device, server and storage medium
CN111084983B (en) Cloud game service method, device, equipment and storage medium
CN112616068A (en) Task processing method and device, electronic equipment and storage medium
CN112218106B (en) Game live broadcast method and device, electronic equipment and storage medium
US20220241686A1 (en) Information processing method, system, apparatus, device, and storage medium
CN111314714B (en) Game live broadcast method and device
CN106658040A (en) Resource distribution method and device
CN112672179B (en) Method, device and equipment for live game
CN110868607B (en) Live game interaction method and device, server and readable storage medium
CN111359220B (en) Game advertisement generation method and device and computer equipment
CN111770355A (en) Media server determination method, device, server and storage medium
WO2024066828A1 (en) Data processing method and apparatus, and device, computer-readable storage medium and computer program product
CN112090066B (en) Scene display method and device based on virtual interactive application
CN115794139B (en) Mirror image data processing method, device, equipment and medium
CN111970529A (en) Information processing method and device for live broadcast room, storage medium and electronic device
CN110490590B (en) Activity record query method, device, equipment and storage medium based on block chain
US20220103500A1 (en) Method and device for managing group member, and method for processing group message
CN114339444A (en) Method, device and equipment for adjusting playing time of video frame and storage medium
CN116896564B (en) Block generation method and device based on block chain network and computer equipment
CN113476853A (en) Data processing method and device for interactive tasks, electronic equipment and storage medium
CN111111182B (en) Game view angle determining method, device and server
CN110354496B (en) Electronic athletic event processing method and device, storage medium and electronic equipment
US20240264870A1 (en) Methods and systems for performing service verification on a plurality of parties in federated computation based on container cluster
CN113468346B (en) Resource processing method and device, electronic equipment and storage medium
CN109345290B (en) Electronic resource processing method and device, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant