Method, apparatus, electronic device, and storage medium for allocating virtual resources
By introducing a sharing mechanism and a multi-select allocation mechanism in the virtual blind box, the problem of single allocation of virtual resources and poor interaction is solved, and higher resource diversity and user interaction are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202210770849.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The existing virtual blind box has a single method of allocation of virtual resources, which causes users to purchase the same virtual blind box multiple times but still fail to obtain the expected resources, and the interactivity is poor, affecting user interest and trust.
A sharing mechanism and a multi-select allocation mechanism for virtual blind boxes are introduced. The information of the virtual blind box is sent to other terminals through the sharing instructions of the first terminal, and the association between users is established, and the virtual resources are randomly allocated to the associated virtual blind boxes to improve the diversity and interactivity of resource allocation.
It improves the diversity of virtual resource allocation and the interaction between users, increases the probability of users obtaining expected resources, and increases users' interest in virtual blind boxes and trust in operators.
Smart Images

Figure CN115337652B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable storage medium for allocating virtual resources. Background Art
[0002] With the rapid development of computer technology, online activities such as online shopping and online entertainment have gradually replaced offline activities and become a new trend. As a new form of online goods, virtual blind boxes increase the fun of users' online activities.
[0003] In the prior art, the allocation method of virtual resources in virtual blind boxes is single. After a user purchases a virtual blind box, the virtual resource allocation system will randomly select a virtual resource from the virtual resource set corresponding to the virtual blind box and allocate it to the virtual blind box purchased by the user. Since the allocation of virtual resources adopts a multiple-choice random selection method, there may be a situation where the same user purchases the same virtual blind box multiple times in order to obtain the desired virtual resource, but still cannot obtain the desired virtual resource, or extremely unlucky situations where the same virtual resource is obtained, and the virtual resource allocation cannot establish interaction with the user. Therefore, the existing method of allocating virtual resources through virtual blind boxes has poor interactivity. Summary of the invention
[0004] The present application provides a method and device for allocating virtual resources, an electronic device, and a computer-readable storage medium to solve the technical problems of the existing method of allocating virtual resources through virtual blind boxes, such as a single allocation method and poor interactivity with users.
[0005] An embodiment of the present application provides a method for allocating virtual resources, wherein a virtual blind box is displayed through a graphical user interface of a first terminal, and the method includes:
[0006] In response to the acquisition instruction, acquiring a first virtual blind box corresponding to the first terminal from the virtual blind box;
[0007] In response to the sharing instruction, sending sharing information of the virtual blind box to at least one second terminal, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information;
[0008] In response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, so as to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes; wherein, the target terminal is the first terminal or a target second terminal, and the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information; the target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal;
[0009] Feed back the allocation result of the target virtual resources obtained by allocating the target virtual blind box to the target terminal, so as to display the target virtual resources allocated to the target virtual blind box on the graphical user interface of the target terminal.
[0010] An embodiment of the present application further provides an apparatus for allocating virtual resources. Virtual blind boxes are displayed through the graphical user interface of a first terminal. The apparatus includes: an acquisition unit, a sharing unit, an allocation unit, and a feedback unit;
[0011] The acquisition unit is configured to, in response to an acquisition instruction, acquire a first virtual blind box corresponding to the first terminal from the virtual blind boxes;
[0012] The sharing unit is configured to, in response to a sharing instruction, send sharing information of the virtual blind box to at least one second terminal, so that the second terminal can acquire at least one second virtual blind box associated with the first virtual blind box based on the sharing information;
[0013] The allocation unit is configured to, in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, so as to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes; wherein, the target terminal is the first terminal or a target second terminal, and the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information; the target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal;
[0014] The feedback unit is configured to feed back the allocation result of the target virtual resources obtained by allocating the target virtual blind box to the target terminal, so as to display the target virtual resources allocated to the target virtual blind box on the graphical user interface of the target terminal.
[0015] An embodiment of the present application further provides an electronic device, including: a memory, a processor;
[0016] The memory is used to store one or more computer instructions;
[0017] The processor is used to execute the one or more computer instructions to implement the above method.
[0018] The embodiment of the present application also provides a computer-readable storage medium, on which one or more computer instructions are stored. When the instructions are executed by a processor, the above method is executed.
[0019] Compared with the prior art, the virtual resource allocation method provided in the present application sends the sharing information of the virtual blind box to at least one second terminal through the sharing instruction of the first terminal, and the second terminal can obtain the second virtual blind box associated with the first virtual blind box obtained by the first terminal based on the sharing instruction. Further, through the first punch-in instruction of any target terminal in the first terminal or the target second terminal to the target virtual blind box held by it, the allocation of virtual resources is stimulated, and the virtual resources in the virtual resource set corresponding to the virtual blind box are allocated to the first virtual blind box and the second virtual blind box, and the allocation result of the target virtual blind box allocation to obtain the target virtual resource is fed back to the target terminal, so that the allocated target virtual resources are displayed on the graphical user interface of the target terminal. The virtual resource allocation method provided in the present application is a virtual resource allocation method based on a sharing mechanism and a multi-selection allocation mechanism. Due to the introduction of the sharing mechanism of the virtual blind box, multiple users can purchase the same virtual blind box that is related to each other, so that when the virtual blind box is allocated virtual resources, the interaction between the virtual resource allocation and the user is established, the diversity of virtual resource allocation is improved, and it is used for interaction with users. The virtual resource allocation method provided in the present application solves the technical problems in the prior art of single virtual resource allocation method and poor user interactivity. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is an application system diagram of a virtual resource allocation method provided in an embodiment of the present application;
[0021] Figure 2 It is an application system diagram of another virtual resource allocation method provided in an embodiment of the present application;
[0022] Figure 3 is a flow chart of a method for allocating virtual resources provided in the first embodiment of the present application;
[0023] Figure 4 This is a flowchart of the second terminal obtaining the second virtual blind box provided by the first embodiment of the present application;
[0024] Figure 5 is a flowchart of mutually exclusive allocation of virtual resources provided by the first embodiment of the present application;
[0025] Figure 6 is a signaling flow chart of a method for allocating virtual resources provided in a second embodiment of the present application;
[0026] Figure 7 is a structural diagram of a virtual resource allocation device provided in a third embodiment of the present application;
[0027] Figure 8 It is a schematic diagram of the structure of an electronic device provided in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0028] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0029] Virtual resources can refer to the nouns corresponding to real resources. Virtual resources were born with the development of Internet technology. They are information resources generated by using databases and program editing, such as online libraries, online shopping malls, virtual game props, etc.
[0030] Virtual blind boxes can refer to online blind box products that imitate the definition of offline blind box products. Users purchase virtual blind boxes online through user terminal devices, and the background system randomly allocates blind box items to present to users. The resources allocated in the virtual blind box are also virtual resources. Virtual resources can be exchanged and interacted online, and can also be exchanged for real items.
[0031] The participation of virtual blind boxes in online activities has invisibly increased the fun of the activities, and users have also shown a high interest in virtual blind boxes. Therefore, virtual blind boxes are widely used in online shopping, gaming, and other fields.
[0032] The existing method for allocating virtual resources in virtual blind boxes is a random single-choice allocation method of multiple choices. That is, after a user purchases a virtual blind box, the virtual resource allocation system will randomly select a virtual resource from the virtual resource set corresponding to the virtual blind box and allocate it to the virtual blind box purchased by the user. When the user opens the purchased virtual blind box, he or she can obtain the virtual resource.
[0033] The existing method for allocating virtual resources is single. After the same user purchases the same virtual blind box multiple times, although a virtual resource can be obtained each time, since the virtual resource allocation adopts a random single-selection method of choosing one from multiple options, each time the virtual resource allocation system allocates virtual resources to the virtual blind box, a virtual resource is randomly selected from the virtual resource set corresponding to the virtual blind box and allocated to the virtual blind box. The virtual resources allocated to each of the multiple virtual blind boxes purchased by the same user are randomly selected again from the virtual resource set, and it cannot be guaranteed that the virtual resources allocated to each virtual blind box are different. Therefore, there will be a situation where the same user purchases the same virtual blind box multiple times in order to obtain the desired virtual resource but still cannot obtain the desired virtual resource in the end. There may even be an extremely unlucky situation where the same user purchases the same virtual blind box multiple times but obtains the same virtual resource. Whichever situation occurs, it will lead to a reduction in the user's interest in virtual blind boxes and a decrease in the user's trust in the online activity operator.
[0034] For example: The game operator sets up a prop blind box in a multiplayer online battle game. The virtual props preset in the prop blind box include: knife, pistol, sniper rifle, and rocket launcher. The rules stated for the prop blind box are that the probability for a game player to obtain any virtual prop by purchasing the blind box is 25%. Then the player will think that buying at most four blind boxes will allow them to get the virtual prop they want. Suppose a player hopes to get a rocket launcher. After the player purchases the prop blind box for the first time, the virtual prop allocation system randomly selects a virtual prop (such as: knife) from the four virtual props and allocates it to the prop blind box purchased by the player for the first time. After the player opens the blind box, they will obtain the virtual prop (such as: knife). Since the player did not obtain the desired prop when purchasing the prop blind box for the first time, the player purchases the prop blind box for the second time. The virtual prop allocation system will randomly select a virtual prop again from the four virtual props and allocate it to the prop blind box purchased by the game player again. The virtual prop allocation system allocates virtual props randomly and will not automatically exclude the virtual prop (such as: knife) that the player has already obtained when purchasing the prop blind box for the first time. Therefore, the virtual prop allocated by the virtual prop allocation system to the prop blind box purchased by the player for the second time may be the same as the virtual prop obtained by the player for the first time (such as: knife), or it may be different from the virtual prop obtained by the player for the first time. Each time the player purchases a prop blind box, the virtual prop allocation system will randomly select and allocate one from four again. Therefore, it is possible that after the player purchases the prop blind box four times, they still do not get the rocket launcher, or even get duplicate props every time (such as: knife). Then the player will think that the probability value marked on the prop blind box by the game operator is false, and even think that the prop blind box cannot produce a rocket launcher, thus losing trust in the game operator and losing interest in the prop blind box.
[0035] In view of this, the present application provides a method for allocating virtual resources, creatively introducing a sharing mechanism for virtual blind boxes and a multiple-selection allocation mechanism for virtual resources, establishing an interaction between virtual resource allocation and users, improving the diversity of virtual resource allocation, and the interaction between users. It solves the technical problems of single virtual resource allocation method and poor interactivity with users in the prior art.
[0036] The following further elaborates in detail on the method, device, electronic device, and computer-readable storage medium for allocating virtual resources described in the present application with reference to specific embodiments and accompanying drawings.
[0037] Figure 1 It is an application system diagram of a method for allocating virtual resources provided by an embodiment of the present application. As Figure 1 shown, the system includes a user terminal 101 and a server 102. The user terminal 101 is communicatively connected to the server 102 through a network. There can be multiple user terminals 101, and the multiple user terminals 101 are communicatively connected to each other through a network. Each user terminal 101 can be a touch terminal, such as a smart phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), etc.; or it can be a computer terminal, such as a notebook computer, a desktop computer, etc. The server 102 is used to deploy the method for allocating virtual resources provided by the present application. Multiple users purchase the same associated virtual blind box through multiple user terminals 101. The server 102, in response to an open instruction of the purchased virtual blind box by the user terminal 101, allocates virtual resources to each virtual blind box and feeds back the allocation result to the user terminal 101, and the user terminal 101 displays the allocated virtual resources to the user through a graphical user interface. The server 102 can be a device, an electronic device for deploying the method for allocating virtual resources, or a server for deploying the method for allocating virtual resources.
[0038] Figure 2 It is another application system diagram of a method for allocating virtual resources provided by an embodiment of the present application. As Figure 2As shown in the figure, the application system includes a game terminal 201 and a game server 202. The game terminal 201 is communicatively connected to the game server 202 via a network. The game terminal 201 may include multiple game terminals, and the multiple game terminals 201 are communicatively connected to each other via a network. Each game terminal 201 may be a touch terminal, such as a smart phone, a tablet computer, a personal digital assistant (PDA), etc.; or it may be a computer terminal, such as a laptop computer, a desktop computer, etc. The game server 202 is used to deploy games for the game terminal 201 and is also used to deploy the virtual resource allocation method provided in this application. Multiple players purchase the same associated prop blind box through multiple game terminals 201. The game server 202 allocates game props to the purchased prop blind box and feeds back the game prop allocation result to the game terminal 201. The player can obtain the game props allocated by the game server 202 by opening the prop blind box through the game terminal 201. The game server 202 may be a single server that deploys both game tasks and the virtual resource allocation method provided in this application, or it may be two servers that respectively deploy game tasks and the virtual resource allocation method provided in this application. Of course, the game server 202 may also be a cloud server that deploys the virtual resource allocation method provided in this application on the cloud server and simultaneously provides virtual prop allocation for multiple prop blind boxes.
[0039] The first embodiment of this application provides a virtual resource allocation method, which displays a virtual blind box through the graphical user interface of a first terminal.
[0040] Figure 3 It is a flowchart of the virtual resource allocation method provided in this embodiment. The following combines Figure 3 to describe in detail the virtual resource allocation method provided in this embodiment. The embodiments involved in the following description are used to explain the technical solutions of this application and are not intended as limitations for actual use.
[0041] As Figure 3 shown, the virtual resource allocation method provided in this embodiment includes the following steps:
[0042] Step S301, in response to an acquisition instruction, acquire a first virtual blind box corresponding to the first terminal from the virtual blind box.
[0043] The acquisition instruction is an acquisition instruction issued by the user through the first terminal for the virtual blind box.
[0044] The virtual blind box is displayed to the user through the graphical user interface of the first terminal. By sending an acquisition instruction for the virtual blind box, the user can obtain a first virtual blind box from the virtual blind box. The first virtual blind box is the virtual blind box obtained by the user through the first terminal. The acquisition instruction can be a click operation on the virtual blind box displayed on the graphical user interface of the first terminal, or a purchase operation on the virtual blind box after the click operation, etc.
[0045] After obtaining the first virtual blind box from the virtual blind box in response to the acquisition instruction sent by the user through the first terminal, the method provided in this embodiment further includes: in response to a third opening instruction for the first virtual blind box, randomly selecting a third virtual resource from the virtual resource set corresponding to the virtual blind box and allocating it to the first virtual blind box held by the first terminal, so as to display the third virtual resource allocated to the first virtual blind box on the graphical user interface of the first terminal.
[0046] After the user obtains the first virtual blind box through the first terminal, the virtual resource allocation server can send an opening status option for the first virtual blind box to the first terminal, such as: asking the user whether to immediately open the first virtual blind box, for example: displaying "Open Immediately" and "Open Later" options on the graphical user interface of the first terminal. Another example: asking the user whether to purchase the virtual blind box separately, for example: displaying "Purchase Separately" and "Crowdfunding Purchase" options on the graphical user interface of the first terminal.
[0047] When the user selects the "Open Immediately" or "Purchase Separately" option, that is, the user sends a third opening instruction for the first virtual blind box through the first terminal, the virtual resource allocation server will randomly select a virtual resource from the virtual resource set corresponding to the virtual blind box and allocate it as the third virtual resource to the first virtual blind box held by the first terminal. After the virtual resource allocation server completes the virtual resource allocation for the first virtual blind box, the third virtual resource allocated to the first virtual blind box will be displayed on the graphical user interface of the first terminal.
[0048] Step S302, in response to the sharing instruction, send the sharing information of the virtual blind box to at least one second terminal, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information.
[0049] The sharing instruction is an instruction for the user to send the sharing information of the virtual blind box to the virtual resource allocation server through the first terminal.
[0050] In response to the virtual resource allocation server receiving a sharing instruction sent by a first terminal, the virtual resource allocation server sends the sharing information of the virtual blind box to at least one second terminal. The second terminal can be a terminal specified by the user through the first terminal when sending the sharing instruction to the virtual resource allocation server, or it can be a terminal where other users related to the user are located selected by the virtual resource allocation server according to the user information of the first terminal. For example: When user A sends a sharing instruction to the virtual resource allocation server through the first terminal and specifies to share the sharing information of the virtual blind box with user B, then, in response to the virtual resource allocation server receiving the sharing instruction sent by user A through the first terminal, the virtual resource allocation server will send the sharing information of the virtual blind box to the terminal where user B is located. Another example: After user A sends a sharing instruction to the virtual resource allocation server through the first terminal, in response to the virtual resource allocation server receiving the sharing instruction sent by user A through the first terminal, the virtual resource allocation server will select user C related to user A and send the sharing information of the virtual blind box to the terminal where user C is located. The above user B and user C can refer to one user or multiple users. User B can refer to all users specified by user A to share the sharing information of the virtual blind box, and user C can refer to all users related to user A selected by the virtual resource allocation server. The virtual resource allocation server sending the sharing information of the virtual blind box to user B or user C is actually sending the sharing information of the virtual blind box to the terminal where user B or user C is located, and user B or user C views the sharing information of the virtual blind box through the graphical user interface of their terminal.
[0051] After the second terminal receives the sharing information of the virtual blind box sent by the virtual resource allocation server, it can obtain a second virtual blind box associated with the first virtual blind box corresponding to the first terminal based on this sharing information. For example: The user views and purchases the virtual blind box by clicking on the sharing information of the virtual blind box displayed on the graphical user interface of the second terminal, and thus obtains a second virtual blind box associated with the first virtual blind box.
[0052] The second virtual blind box is a virtual blind box associated with the first virtual blind box, which means that the second virtual blind box is the same virtual blind box as the first virtual blind box, and the second virtual blind box is a virtual blind box obtained based on the sharing information. The sharing information is the sharing information sent by the virtual resource allocation server to the second terminal after the first terminal obtains the first virtual blind box and sends a sharing instruction.
[0053] For example: A virtual blind box is displayed on the graphical user interface of the first terminal where user A is located. User A obtains the first virtual blind box corresponding to the first terminal from the virtual blind box through the first terminal. In response to the sharing instruction of user A, the virtual resource allocation server sends the sharing information of the virtual blind box to the second terminal where user B is located. User B obtains the second virtual blind box corresponding to the second terminal based on the sharing information of the virtual blind box. Then, since the first virtual blind box and the second virtual blind box are the same virtual blind box, and the second virtual blind box is the virtual blind box obtained based on the sharing information, therefore, the second virtual blind box is the associated blind box of the first virtual blind box.
[0054] For another example: A virtual blind box is displayed on the graphical user interface of the first terminal where user A is located. User A obtains the first virtual blind box corresponding to the first terminal from the virtual blind box through the first terminal; the same virtual blind box is also displayed on the graphical user interface of the second terminal where user B is located. User B obtains the second virtual blind box corresponding to the second terminal from the virtual blind box through the second terminal. Then, although the first virtual blind box and the second virtual blind box are the same virtual blind box, the second virtual blind box is not the virtual blind box obtained based on the sharing information. Therefore, the second virtual blind box is not the associated blind box of the first virtual blind box.
[0055] For another example: A virtual blind box is displayed on the graphical user interface of the first terminal where user A is located. User A obtains the first virtual blind box corresponding to the first terminal from the virtual blind box through the first terminal. In response to the sharing instruction of user A, the virtual resource allocation server sends the sharing information of the virtual blind box to the second terminal where user B is located. User B views the virtual blind box through the graphical user interface of the second terminal based on the sharing information of the virtual blind box, but does not perform a subsequent purchase operation. Instead, user B obtains the purchase interface of the virtual blind box through other means and purchases the virtual blind box. Then, although the first virtual blind box and the second virtual blind box are the same virtual blind box, and the virtual resource allocation server also sends the sharing information of the virtual blind box to the second terminal, user B does not obtain the second virtual blind box based on the sharing information. Therefore, the second virtual blind box is not the associated blind box of the first virtual blind box.
[0056] The associated relationship of the virtual blind box plays a crucial role in the subsequent virtual resource allocation steps. It is precisely based on this associated relationship that the virtual resource allocation method provided in this embodiment can increase the probability of users obtaining the desired virtual resources.
[0057] For example: The game operator sets a prop blind box in a multiplayer online battle game. The virtual prop set corresponding to the prop blind box includes: knife, pistol, sniper rifle, and rocket launcher. The rules stated for this prop blind box are that the probability for a player to obtain any virtual prop by purchasing the blind box is 25%. Suppose after player A purchases this prop blind box, the virtual resource allocation server shares the sharing information of this prop blind box with player B, player C, and player D (actually, the virtual resource allocation server sends the sharing information of this prop blind box to the terminals where player B, player C, and player D are located).
[0058] If player B, player C, and player D all purchase this prop blind box based on this sharing information, then the prop blind boxes purchased by player B, player C, and player D are all associated blind boxes of the prop blind box purchased by player A. In the subsequent virtual prop allocation step, the virtual resource allocation server will mutually and exclusively allocate the four virtual props in the virtual prop set corresponding to this prop blind box to four prop blind boxes according to the probability value of 25%. Then, through one purchase of this prop blind box by player A, player B, player C, and player D, all four virtual props (knife, pistol, sniper rifle, rocket launcher) can be obtained. Through further prop exchanges, player A can obtain the desired virtual prop.
[0059] If player B, player C, and player D do not purchase this prop blind box based on the sharing information but purchase it by other means on their own, then although the prop blind boxes purchased by player B, player C, and player D are the same prop blind box as the one purchased by player A, they are not the associated prop blind boxes of the prop blind box purchased by player A. In the subsequent virtual prop allocation step, the virtual resource allocation server will not mutually and exclusively allocate the four virtual props in the virtual prop set corresponding to this prop blind box to four prop blind boxes according to the probability value of 25%, but will conduct an independent random selection of one out of four for each prop blind box. Then, through one purchase of this prop blind box by player A, player B, player C, and player D, it is not certain that all four virtual props can be obtained, and it is even possible to obtain four identical virtual props (knife, knife, knife, knife). Then the probability for player A to obtain the desired virtual prop will be very low.
[0060] In response to the sharing instruction, before sending the sharing information of the virtual blind box to at least one second terminal, the method provided in this embodiment further includes: in response to the sharing instruction, generating identification information of the virtual blind box.
[0061] The identification information of the virtual blind box refers to the identification information that can characterize the virtual blind box, which is the identification information with a unique correspondence with the virtual blind box. Through the identification information, the virtual blind box can be queried. The identification information can be an identification code generated for the virtual blind box or link information generated for the virtual blind box. By inputting the identification code of the virtual blind box on the graphical user interface of the terminal or clicking on the link information of the virtual blind box, the user can query the virtual blind box.
[0062] This embodiment provides an optional method for generating the identification information of the virtual blind box, that is, using the Snow Flake algorithm to generate the Universally Unique Identifier (UUID) of the virtual blind box, and using the Universally Unique Identifier as the identification information of the virtual blind box.
[0063] The Universally Unique Identifier (UUID) is a commonly used identification code for providing unique identification information for virtual items. It is an identification code composed of a group of 32 - digit hexadecimal numbers, and its repetition probability is close to zero.
[0064] The Snow Flake algorithm is an algorithm for generating distributed identification codes. It is a method for generating identification codes based on timestamps, machine numbers, IP addresses, etc. The identification codes generated using the Snow Flake algorithm are completely generated in memory and do not depend on the database. The Snow Flake algorithm mainly uses a 64 - bit long digital number as the globally unique identification code. Among them, the first part includes 1 bit, which is zero and has no meaning. The second part includes 41 bits, representing the timestamp. The third part includes 5 bits, representing the computer room identification code. The fourth part includes 5 bits, representing the machine identification code. The fifth part includes 12 bits, representing the sequence number. That is, the Universally Unique Identifier of the virtual blind box generated using the Snow Flake algorithm is a 64 - bit digital code.
[0065] The identification information of the virtual blind box can be the identification information generated by the virtual resource allocation server for the virtual blind box in response to the user sending a sharing instruction to the virtual resource allocation server through the first terminal, or it can be the identification information generated by the virtual resource allocation server for the virtual blind box in response to the user sending a fetch instruction to the virtual resource allocation server through the first terminal and obtaining the first virtual blind box corresponding to the first terminal from the virtual blind box.
[0066] After generating the identification information of the virtual blind box in response to the sharing instruction, the method further includes: using the identification information as the sharing information and sending the identification information of the virtual blind box to at least one of the second terminals. After receiving the identification information of the virtual blind box sent by the virtual resource allocation server, the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the identification information of the virtual blind box.
[0067] This embodiment provides an alternative implementation manner of sending the sharing information of the virtual blind box to at least one second terminal in response to a sharing instruction, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information. Figure 4 It is a flowchart of the second terminal obtaining the second virtual blind box provided by this embodiment.
[0068] As Figure 4 shown, an alternative implementation manner of sending the sharing information of the virtual blind box to at least one second terminal in response to a sharing instruction provided by this embodiment, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information includes the following steps:
[0069] S302-1, in response to the sharing instruction, send the sharing information of the virtual blind box to at least one second terminal.
[0070] In response to the first terminal sending a sharing instruction to the virtual resource allocation server, the virtual resource allocation server sends the sharing information of the virtual blind box to at least one second terminal, for example: sending the identification information of the virtual blind box.
[0071] S302-2, receive the second acquisition instruction of the virtual blind box from the second terminal, and judge whether the second acquisition instruction meets the preset purchase condition of the virtual blind box.
[0072] In response to the second terminal receiving the sharing information of the virtual blind box, the second terminal can send a second acquisition instruction of the virtual blind box to the virtual resource allocation server, and the second acquisition instruction is a virtual blind box acquisition instruction sent by the second terminal to the virtual resource allocation server.
[0073] In response to the virtual resource allocation server receiving the second acquisition instruction sent by the second terminal, the virtual resource allocation server needs to judge this second acquisition instruction. Specifically, it judges whether this second acquisition instruction meets the preset purchase condition of the virtual blind box.
[0074] The preset purchase conditions of the virtual blind box may refer to the preset purchase criteria for the virtual blind box. Only when the purchase criteria of the virtual blind box are met can the second terminal purchase the virtual blind box. If the purchase criteria of the virtual blind box are not met, the second terminal cannot purchase the virtual blind box.
[0075] S302-3, if the second acquisition instruction meets the preset purchase conditions of the virtual blind box, the second virtual blind box obtained from the virtual blind box is fed back to the second terminal.
[0076] If the virtual resource allocation server determines that the second acquisition instruction meets the preset purchase conditions of the virtual blind box, the virtual resource allocation server obtains the second virtual blind box from the virtual blind box and sends it to the second terminal.
[0077] S302-4, if the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, a prompt message is fed back to the second terminal to display the prompt message on the graphical user interface of the second terminal and / or play the prompt message through the second terminal; wherein, the prompt message indicates that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0078] If the virtual resource allocation server determines that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, the virtual resource allocation server does not send the second virtual blind box to the second terminal, but sends the prompt message indicating that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box to the second terminal.
[0079] The prompt message may be text information, such as: This virtual blind box cannot be purchased, or it may be voice information, such as: the voice corresponding to "This virtual blind box cannot be purchased".
[0080] After the virtual resource allocation server sends the prompt message to the second terminal, the prompt message can be displayed on the graphical user interface of the second terminal, or played through the second terminal, or displayed on the graphical user interface of the second terminal and played through the second terminal at the same time. The specific implementation method is not limited here.
[0081] This embodiment provides an optional implementation method for determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box, that is, determining whether the identification information of the virtual blind box included in the second acquisition instruction is consistent with the identification information of the virtual blind box shared by the first terminal.
[0082] The identification information is the sharing information sent by the virtual resource allocation server to the second terminal in response to the sharing instruction, and is also the sharing information of the virtual blind box shared by the first terminal.
[0083] The second acquisition instruction sent by the second terminal to the virtual resource allocation server includes the identification information of the virtual blind box. By determining whether the identification information of the virtual blind box included in the second acquisition instruction is consistent with the identification information of the virtual blind box shared by the first terminal, it is possible to implement that the second virtual blind box purchased through the second terminal and the first virtual blind box purchased through the first terminal are associated blind boxes.
[0084] The determination method specifically includes:
[0085] If they are consistent, the second acquisition instruction meets the preset purchase conditions of the virtual blind box, and the virtual resource allocation server sends the second virtual blind box obtained from the virtual blind box to the second terminal.
[0086] If they are inconsistent, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, and the virtual resource allocation server sends a prompt message indicating that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box to the second terminal.
[0087] For example: The game operator sets a prop blind box in a multiplayer online battle game. There are 4 virtual props preset in the virtual prop set corresponding to the prop blind box, including: knife, pistol, sniper rifle, and rocket launcher. After player A obtains the prop blind box through the first terminal, in response to the sharing instruction sent by player A from the first terminal to the virtual resource allocation server, the virtual resource allocation server generates the identification information of the prop blind box and sends the identification information of the prop blind box to the second terminals where player B and player C are located. Player B and player C can send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box, or can send a second acquisition instruction to the virtual resource allocation server through other means. Therefore, when the virtual resource allocation server receives the second acquisition instructions for the virtual blind box sent by player B and player C, it will determine whether the identification information of the virtual blind box included in the second acquisition instructions sent by player B and player C is consistent with the identification information of the virtual blind box shared by the first terminal. If the identification information of the virtual blind box included in the second acquisition instruction sent by player B is consistent with the identification information of the virtual blind box shared by the first terminal, the virtual resource allocation server will send the second virtual blind box obtained from the virtual blind box to the second terminal where player B is located, and the second virtual blind box obtained by player B and the first virtual blind box obtained by player A are associated blind boxes. If the identification information of the virtual blind box included in the second acquisition instruction sent by player C is inconsistent with the identification information of the virtual blind box shared by the first terminal, the virtual resource allocation server will send a prompt message indicating that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box to the second terminal where player C is located. Of course, through subsequent operations, player C can also obtain the second virtual blind box, but the second virtual blind box obtained by player C and the first virtual blind box obtained by player A are not associated blind boxes.
[0088] This embodiment provides another optional implementation manner for determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box, that is, determining whether the number of times the virtual blind box has been purchased is less than the preset quantity of the virtual blind box.
[0089] The preset quantity of the virtual blind box refers to the quantity of virtual resources preset in the virtual resource set corresponding to the virtual blind box. Let m represent the preset quantity of the virtual blind box, and m is a positive integer. For example: If there are 4 virtual resources preset in the virtual resource set corresponding to a virtual blind box, then the preset quantity of this virtual blind box is 4 (m = 4).
[0090] The number of times the virtual blind box has been purchased refers to the number of times the associated blind box has been purchased based on the sharing information of the virtual blind box. Let n represent the number of times the virtual blind box has been purchased, where n is a positive integer. For example: User A purchases a virtual blind box through a first terminal and sends a sharing instruction to the virtual resource allocation server. The virtual resource allocation server sends the sharing information of the virtual blind box to the second terminals where User B, User C, and User D are located. User B and User C purchase the virtual blind box based on the sharing information of the virtual blind box, and User D purchases the virtual blind box through other means. Then, the virtual blind boxes obtained by User B and User C are associated with the virtual blind box obtained by User A, and the number of times the virtual blind box has been purchased is 3 (n = 3).
[0091] The judgment method specifically includes:
[0092] If it is less than (n < m), then the second acquisition instruction meets the preset purchase condition of the virtual blind box, and the virtual resource allocation server sends the second virtual blind box obtained from the virtual blind box to the second terminal.
[0093] If it is not less than (n = m), the second acquisition instruction does not meet the preset purchase condition of the virtual blind box, and the virtual resource allocation server sends a prompt message indicating that the second acquisition instruction does not meet the preset purchase condition of the virtual blind box to the second terminal.
[0094] When the number of times the virtual blind box has been purchased is equal to the preset quantity of the virtual blind box, it means that the preset virtual resources in the virtual resource set corresponding to the virtual blind box have been mutually exclusive and allocated to the purchased virtual blind boxes. At this time, if the virtual blind box is opened, the user's expected virtual resources will surely be obtained. Therefore, when the number of times the virtual blind box has been purchased is equal to the preset quantity of the virtual blind box, the purpose of the user's crowdfunding purchase of the virtual blind box has been achieved.
[0095] When the number of times the virtual blind box has been purchased is less than the preset quantity of the virtual blind box, it means that the preset virtual resources in the virtual resource set corresponding to the virtual blind box cannot be mutually exclusive and allocated to the purchased virtual blind boxes. At this time, if the virtual blind box is opened, there is still a risk that the user's expected virtual resources will not be obtained. Therefore, when the number of times the virtual blind box has been purchased is less than the preset quantity of the virtual blind box, other users can continue to purchase the blind box associated with this virtual blind box to increase the probability of the user's expected virtual resources being obtained.
[0096] For example: In a multiplayer online battle game, the game operator sets up a prop blind box. There are 4 virtual props preset in the virtual prop set corresponding to this prop blind box, including: knife, pistol, sniper rifle, and rocket launcher. Then, the preset quantity of this prop blind box is 4. After player A obtains this prop blind box through the first terminal, in response to the sharing instruction sent by player A to the virtual resource allocation server through the first terminal, the virtual resource allocation server generates the identification information of the prop blind box and sends the identification information of the prop blind box to the second terminals where player B, player C, player D, and player E are located. Player B, through the second terminal where he is located, is the first to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server determines whether the number of times the prop blind box has been purchased is less than the preset quantity of the prop blind box. Since the number of times the prop blind box has been purchased is 1 when player B purchases the prop blind box and 1 < 4, the second acquisition instruction sent by player B to the virtual resource allocation server through the second terminal where he is located meets the preset purchase condition of the prop blind box, and player B can obtain the prop blind box. Player C, through the second terminal where he is located, is the second to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server determines whether the number of times the prop blind box has been purchased is less than the preset quantity of the prop blind box. Since the number of times the prop blind box has been purchased is 2 when player C purchases the prop blind box and 2 < 4, the second acquisition instruction sent by player C to the virtual resource allocation server through the second terminal where he is located meets the preset purchase condition of the prop blind box, and player C can obtain the prop blind box. Player D, through the second terminal where he is located, is the third to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server determines whether the number of times the prop blind box has been purchased is less than the preset quantity of the prop blind box. Since the number of times the prop blind box has been purchased is 3 when player D purchases the prop blind box and 3 < 4, the second acquisition instruction sent by player D to the virtual resource allocation server through the second terminal where he is located meets the preset purchase condition of the prop blind box, and player D can obtain the prop blind box. Player E, through the second terminal where he is located, is the fourth to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server determines whether the number of times the prop blind box has been purchased is less than the preset quantity of the prop blind box. Since the number of times the prop blind box has been purchased is 4 when player E purchases the prop blind box and 4 = 4, the second acquisition instruction sent by player E to the virtual resource allocation server through the second terminal where he is located does not meet the preset purchase condition of the prop blind box, and player E cannot obtain the prop blind box.
[0097] This embodiment provides another alternative implementation for determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box, that is, determining whether the target terminal receives the first opening instruction for the target virtual blind box.
[0098] The determination method specifically includes:
[0099] If received, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, and the virtual resource allocation server sends a prompt message indicating that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box to the second terminal.
[0100] If not received, the second acquisition instruction meets the preset purchase conditions of the virtual blind box, and the virtual resource allocation server sends the second virtual blind box obtained from the virtual blind box to the second terminal.
[0101] After the virtual resource allocation server receives the first opening instruction for the target virtual blind box from the target terminal, the virtual resource allocation server will allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the virtual blind boxes that have been purchased. At this time, each virtual blind box that has been purchased (including: the first virtual blind box and each second virtual blind box) has been allocated virtual resources, and the purchase of the virtual blind box has ended, and the virtual blind box cannot be obtained through the second acquisition instruction anymore. Therefore, if the virtual resource allocation server has received the first opening instruction sent by the target terminal, the second acquisition instruction sent by other users through their second terminals to the virtual resource allocation server will not meet the preset purchase conditions of the virtual blind box, and the user will no longer be able to obtain the virtual blind box through the sharing information of the virtual blind box.
[0102] The above lists three alternative implementation methods for determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box. Of course, other determination methods may also be included. These determination methods can be applied alone in the virtual resource allocation method described in this embodiment, or can be applied simultaneously in the virtual resource allocation method described in this embodiment for combined determination. The specific implementation method is not limited here.
[0103] The method provided in this embodiment further includes: in response to the second sharing instruction sent by the second terminal, sending the sharing information of the virtual blind box to at least one third terminal, so that the third terminal can obtain at least one fourth virtual blind box associated with the first virtual blind box based on the sharing information.
[0104] After the second terminal receives the sharing information of the virtual blind box sent by the virtual resource allocation server, the second terminal may further send a second sharing instruction to the virtual resource allocation server. In response to the virtual resource allocation server receiving the second sharing instruction sent by the second terminal, the virtual resource allocation server sends the sharing information of the virtual blind box to a third terminal. The third terminal may be the terminal specified by the second terminal when sending the second sharing instruction to the virtual resource allocation server, or may be the terminal where other users related to the user are located selected by the virtual resource allocation server according to the user information of the second terminal. The sharing information of the virtual blind box sent by the virtual resource allocation server to the third terminal is the same as the sharing information of the virtual blind box sent by the virtual resource allocation server to the second terminal.
[0105] Therefore, the fourth virtual blind box obtained by the third terminal based on the received sharing information of the virtual blind box is also an associated blind box of the first virtual blind box.
[0106] Step S303, in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes.
[0107] The target terminal is the first terminal or a target second terminal, and the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information.
[0108] The target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal.
[0109] Since the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information of the virtual blind box, the second virtual blind box and the first virtual blind box are associated blind boxes. The target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal. Therefore, when the target virtual blind box is the first virtual blind box, the virtual blind box associated with the target virtual blind box is the second virtual blind box; when the target virtual blind box is the second virtual blind box, the virtual blind boxes associated with the target virtual blind box are the first virtual blind box and the other second virtual blind boxes except the target virtual blind box.
[0110] After the virtual resource allocation server receives the first open instruction for the target virtual blind box sent by the target terminal, the virtual resource allocation server will allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the target virtual blind box and the virtual blind boxes associated with the target virtual blind box. That is to say, when the virtual resource allocation server receives the first open instruction for the target virtual blind box sent by the target terminal, the virtual resource allocation server will complete the virtual resource allocation for the first virtual blind box and all the second virtual blind boxes.
[0111] This embodiment provides an optional implementation method for the virtual resource allocation server to allocate virtual resources to the first virtual blind box and the second virtual blind box, that is, select a target number of virtual resources from the virtual resource set corresponding to the virtual blind box, and mutually exclusive allocate the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal; the target number is the sum of the number of the first terminal and the target second terminal.
[0112] The mutually exclusive allocation means that any one virtual resource in the virtual resource set corresponding to the virtual blind box can only be allocated to one of the first virtual blind box and the second virtual blind box, and cannot be allocated to both virtual blind boxes at the same time. That is to say, the two virtual resources allocated between any two different virtual blind boxes in the first virtual blind box and the second virtual blind box will not be the same virtual resource, and one virtual resource corresponds to one virtual blind box in the first virtual blind box and the second virtual blind box.
[0113] The mutually exclusive allocation of virtual resources makes the total number of the first virtual blind box sent to the first terminal and the second virtual blind box sent to the target second terminal not greater than the preset number of virtual resources in the virtual resource set corresponding to the virtual blind box. For example: the preset number of virtual resources in the virtual resource set corresponding to a virtual blind box is 4. Then, the total number of the first virtual blind box and the second virtual blind box must be less than or equal to 4. If the total number of the first virtual blind box and the second virtual blind box is greater than 4, the phenomenon of repeated allocation will occur during the allocation of the 4 virtual resources in the virtual resource set, and mutually exclusive allocation cannot be achieved. When the total number of the first virtual blind box and the second virtual blind box is equal to the preset number of virtual resources in the virtual resource set corresponding to the virtual blind box, all the preset virtual resources in the virtual resource set can be mutually exclusive allocated to the first virtual blind box and the second virtual blind box. At this time, if the virtual blind box is opened, the user's expected virtual resources will surely be drawn, achieving the purpose of the user's crowdfunding to purchase the virtual blind box.
[0114] This embodiment provides an alternative implementation for selecting a target number of virtual resources from the virtual resource set corresponding to the virtual blind box, that is, randomly selecting a target number of virtual resources from the virtual resource set corresponding to the virtual resources.
[0115] For example: The number of virtual resources preset in the virtual resource set corresponding to a virtual blind box is 4, and the total number of the first terminal and the target second terminals is 3. Then, before allocating the virtual resources to the first virtual blind box and the second virtual blind box, 3 virtual resources will be randomly selected from the 4 virtual resources, and then the 3 virtual resources will be mutually exclusive allocated. Of course, if the total number of the first terminal and the target second terminals is 4, then all 4 virtual resources will be selected.
[0116] This embodiment provides an alternative implementation for mutually exclusive allocating the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal. Figure 5 It is a flowchart of mutually exclusive allocating virtual resources provided by this embodiment.
[0117] As Figure 5 shown, mutually exclusive allocating the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal includes the following steps:
[0118] Step S303-1: Perform permutation and combination on the selected target number of virtual resources to determine multiple candidate allocation schemes.
[0119] The candidate allocation scheme can be an allocation scheme formed by performing permutation and combination on the selected virtual resources using a permutation and combination function. The number of candidate allocation schemes can be determined according to the preset number of virtual resources and the target number in the virtual resource set corresponding to the virtual blind box.
[0120] Let m represent the preset number of virtual resources in the virtual resource set corresponding to the virtual blind box, and n represent the target number. The candidate allocation scheme is actually taking n virtual resources from m virtual resources and arranging them in a certain order in a column. The formula is as follows:
[0121]
[0122] For example: The number of virtual resources preset in the virtual resource set corresponding to the virtual blind box is 3, namely virtual resource A, virtual resource B, and virtual resource C, and the target number is 2. Then there are 6 candidate allocation schemes, namely AB, AC, BC, BA, CA, and CB. Since the target number is less than the number of virtual resources preset in the virtual resource set corresponding to the virtual blind box, in each candidate allocation scheme, two of the virtual resources A, B, and C are included, that is, a random selection of two out of three. Compared with the existing virtual resource allocation method that adopts a random selection of one out of three, the method provided in this embodiment significantly increases the probability for the user to obtain the expected virtual resources.
[0123] For another example: The number of virtual resources preset in the virtual resource set corresponding to the virtual blind box is 3, namely virtual resource A, virtual resource B, and virtual resource C, and the target number is also 3. Then there are 6 candidate allocation schemes, namely ABC, ACB, BCA, BAC, CAB, and CBA. Since the target number is equal to the number of virtual resources preset in the virtual resource set corresponding to the virtual blind box, in each candidate allocation scheme, the virtual resources A, B, and C are all included. That is to say, in this case, the user's expected virtual resources will surely be drawn.
[0124] Step S303-2: Determine a target allocation scheme from the multiple candidate allocation schemes, and mutually allocate the virtual resources of the target number to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal according to the target allocation scheme.
[0125] An alternative implementation manner is to randomly select one from the multiple candidate allocation schemes, and mutually allocate the virtual resources in the candidate allocation scheme to the virtual blind boxes according to the acquisition order of the virtual blind boxes by the first terminal and each second terminal. Of course, the time when the first terminal obtains the first virtual blind box must be earlier than the time when any second terminal obtains the second virtual blind box.
[0126] For example, in a multiplayer online battle game, the game operator sets up a prop blind box. In the virtual prop set corresponding to this prop blind box, 4 virtual props are preset, namely a knife (represented by a for the prop knife), a pistol (represented by b for the prop pistol), a sniper rifle (represented by c for the prop sniper rifle), and a rocket launcher (represented by d for the prop rocket launcher). After player A obtains the first prop blind box through the first terminal, in response to the sharing instruction sent by player A to the virtual resource allocation server through the first terminal, the virtual resource allocation server generates the identification information of the prop blind box and sends the identification information of the prop blind box to player B, player C, player D, and player E. Player B, through the second terminal where he is located, is the first to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server sends the second prop blind box obtained from the prop blind box to the second terminal where player B is located. Player C, through the second terminal where he is located, is the second to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server sends the second prop blind box obtained from the prop blind box to the second terminal where player C is located. Player D, through the second terminal where he is located, is the third to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. The virtual resource allocation server sends the second prop blind box obtained from the prop blind box to the second terminal where player D is located. The second prop blind boxes obtained by player B, player C, and player D are associated blind boxes of the first prop blind box obtained by player A. Player E, through the second terminal where he is located, is the fourth to send a second acquisition instruction to the virtual resource allocation server based on the identification information of the prop blind box. Since the number of times this prop blind box has been purchased is equal to the number of virtual props preset in the virtual prop set corresponding to this prop blind box, player E cannot obtain a prop blind box associated with the first prop blind box obtained by player A.
[0127] After any one of player A, player B, player C, and player D sends a first opening instruction of the prop blind box to the virtual resource allocation server through the terminal (target terminal) where he is located, the virtual resource allocation server will select a target number of virtual props from the virtual prop set corresponding to this prop blind box. Using the permutation and combination function, according to the number of virtual props preset in the virtual prop set corresponding to this prop blind box and the target number, it generates a candidate allocation plan for the virtual props. The number of virtual props preset in the virtual prop set corresponding to this prop blind box is 4, and the target number is also 4. That is, there will be 24 candidate allocation plans, which are: abcd, abdc, acbd, acdb, adbc, adcb, bacd, badc, bcad, bcda, bdac, bdca, cabd, cadb, cbad, cbda, cdab, cdba, dabc, dacb, dbac, dbca, dcab, dcba.
[0128] The virtual resource allocation server randomly selects one of the above 24 candidate allocation schemes and mutually allocates the above four virtual items to four item blind boxes in the order of obtaining the item blind boxes. For example, if the virtual resource allocation server randomly selects the candidate allocation scheme of bdac, it will mutually allocate the virtual items to the first item blind box obtained by player A through the first terminal, the second item blind box obtained by player B through the second terminal where he is located, the second item blind box obtained by player C through the second terminal where he is located, and the second item blind box obtained by player D through the second terminal where he is located in the order of pistol, rocket launcher, knife, and sniper rifle.
[0129] Step S304: Feed back the allocation result of obtaining the target virtual resource by the target virtual blind box to the target terminal, so as to display the target virtual resource allocated to the target virtual blind box on the graphical user interface of the target terminal.
[0130] In response to the target terminal sending a first opening instruction to the virtual resource allocation server, the virtual resource allocation server allocates virtual resources and feeds back the allocation result to the target terminal. The target terminal opens the target virtual blind box according to the first opening instruction and displays the target virtual resource on the graphical user interface of the target terminal.
[0131] Taking the above item blind box as an example, if the second terminal where player B is located is the target terminal, then in response to the first opening instruction sent by player B through the second terminal where he is located to the virtual resource allocation server, the virtual resource allocation server will mutually allocate the virtual items to the first item blind box obtained by player A through the first terminal, the second item blind box obtained by player B through the second terminal where he is located, the second item blind box obtained by player C through the second terminal where he is located, and the second item blind box obtained by player D through the second terminal where he is located in the order of pistol, rocket launcher, knife, and sniper rifle. Further, the virtual resource allocation server will feed back the allocation result of the virtual item in the second item blind box allocated to player B to the second terminal where player B is located. After player B opens the item blind box through the second terminal where he is located, the virtual item rocket launcher allocated to the second item blind box of player B can be displayed on the graphical user interface of the second terminal where player B is located.
[0132] In response to the first opening instruction of the target virtual blind box sent by the target terminal, the virtual resource allocation server allocates virtual resources to the first virtual blind box and the second virtual blind box, and feeds back the allocation result for the target virtual blind box to the target terminal, and displays the target virtual resource on the graphical user interface of the target terminal. At this time, virtual resources have been allocated to both the first virtual blind box and the second virtual blind box.
[0133] Based on this, the method provided in this embodiment further includes: in response to receiving a status check instruction of a second target virtual blind box from a second target terminal, feeding back a display adjustment instruction to the second target terminal according to the status check instruction, so that the second target terminal adjusts the display status of the second target virtual blind box to a first display status according to the display adjustment instruction.
[0134] The first display status indicates that the target terminal has opened the target virtual blind box, the second target virtual blind box has been allocated corresponding second target virtual resources and the second target virtual blind box has not been opened.
[0135] The second target terminal is the terminal other than the target terminal among the first terminal and the target second terminal, and the second target virtual blind box is the virtual blind box corresponding to the second target terminal among the first virtual blind box and the second virtual blind box.
[0136] The second target terminal can detect the status of the second target virtual blind box it holds at any time, mainly to detect whether the virtual blind box associated with the second target virtual blind box has been opened. In response to the virtual resource allocation server receiving the status detection instruction sent by the second target terminal, the virtual resource allocation server can feed back a display adjustment instruction to the second target terminal, so that the second target terminal makes a displayable adjustment to the open status of the second target virtual blind box according to the display adjustment instruction.
[0137] For example: adjusted to the first display status, that is, it means that at least one virtual blind box associated with the second target virtual blind box has been opened, the second target virtual blind box has been allocated corresponding second target virtual resources and has not been opened yet.
[0138] For another example: adjusted to the second display status, that is, it means that the second target virtual blind box and all virtual blind boxes associated with it have not been opened.
[0139] For another example: adjusted to the third display status, that is, it means that the second target virtual blind box has been opened and there are still unopened virtual blind boxes associated with it.
[0140] The above display status can be represented by means of text, letters, graphics, etc. displayed on the virtual blind box. For example, the first display status is represented by the letter X, the second display status is represented by the letter Y, the third display status is represented by the letter Z, etc.
[0141] In response to a status check instruction for a second target virtual blind box from a second target terminal, a virtual resource allocation server feeds back a display adjustment instruction to the second target terminal according to the status check instruction. After the second target terminal adjusts the display status of the second target virtual blind box to a first display status according to the display adjustment instruction, the method provided in this embodiment further includes: in response to receiving a second opening instruction for the second target virtual blind box in the first display status from the second target terminal, feeding back the allocation result of obtaining a second target virtual resource for the second target virtual blind box to the second target terminal, so as to display the second target virtual resource allocated to the second target virtual blind box on the graphical user interface of the second target terminal.
[0142] After a user views the status of a second target virtual blind box through a second target terminal, the user can send a second opening instruction for the second target virtual blind box to the virtual resource allocation server through the second target terminal. After receiving the second opening instruction, the virtual resource allocation server immediately feeds back the allocation result for the second target virtual blind box to the second target terminal. The second target terminal opens the second target virtual blind box according to the second opening instruction, and displays the second target virtual resource on the graphical user interface of the second target terminal.
[0143] The above method provided in this embodiment can significantly increase the probability that a user's expected virtual resource is obtained in one draw. However, the first virtual resource obtained by the user through the first terminal is not necessarily the user's expected virtual resource, and the user's expected virtual resource may be obtained by other users through the second terminal.
[0144] Based on this, this embodiment provides an optional implementation method for virtual resource gift-giving based on a virtual resource gift instruction, specifically: in response to receiving a virtual resource gift instruction for a fourth target terminal from a third target terminal, sending a third target virtual resource to the fourth target terminal.
[0145] Wherein, the third target terminal is the first terminal or the target second terminal; the fourth target terminal is the terminal other than the third target terminal among the first terminal and the target second terminal.
[0146] The third target virtual resource is the virtual resource allocated to a third target virtual blind box, and the third target virtual blind box is the first virtual blind box or the second virtual blind box held by the third target terminal.
[0147] Any one of the first terminal and the target second terminal can become the third target terminal and give away the virtual resources obtained from its virtual blind box to other first terminals or target second terminals. The giving away of virtual resources can still be achieved through the virtual resource allocation server. For example, by applying the virtual resource transfer function set in the virtual resource allocation server. Of course, it can also be achieved through other application servers, such as the mail transfer server in the game.
[0148] The virtual resource giving away provided in this embodiment includes: if the third target terminal is the first terminal, then the fourth target terminal is any one of the target second terminals. In response to the virtual resource allocation server receiving a virtual resource giving away instruction sent by the first terminal for a target second terminal, the virtual resource allocation server sends the first virtual resource corresponding to the first terminal to the target second terminal, thus realizing the first terminal giving away virtual resources to the target second terminal.
[0149] The virtual resource giving away provided in this embodiment also includes: if the third target terminal is one of the target second terminals, then the fourth target terminal is any one of the first terminal and other target second terminals. In response to the virtual resource allocation server receiving a virtual resource giving away instruction sent by this target second terminal for the first terminal or another target second terminal, the virtual resource allocation server sends the second virtual resource corresponding to this target second terminal to the first terminal or another target second terminal, thus realizing the target second terminal giving away virtual resources to the first terminal or other target second terminals.
[0150] Taking the above prop blind box as an example for illustration. Player A obtains a pistol prop through the first terminal, Player B obtains a rocket launcher prop through his second terminal, Player C obtains a knife prop through his second terminal, and Player D obtains a sniper rifle prop through his second terminal. Suppose Player A already has a pistol prop in his game backpack, while Player C doesn't have a pistol prop in his game backpack. Then Player A can send a virtual resource giving away instruction for Player C to the virtual resource allocation server through the first terminal. The virtual resource allocation server will then send the pistol prop to the second terminal where Player C is located, and Player C will then have the pistol prop given away by Player A.
[0151] This embodiment also provides an optional implementation method for virtual resource exchange based on a virtual resource exchange instruction, specifically: in response to receiving a virtual resource exchange instruction sent by the fifth target terminal and the sixth target terminal, sending the fifth target virtual resource to the sixth target terminal and sending the sixth target virtual resource to the fifth target terminal.
[0152] Among them, the fifth target terminal is the first terminal or the target second terminal, and the sixth target terminal is the terminal other than the fifth target terminal among the first terminal and the target second terminal.
[0153] The fifth target virtual resource is the virtual resource allocated to the fifth target virtual blind box, and the fifth target virtual blind box is the first virtual blind box or the second virtual blind box held by the fifth target terminal.
[0154] The sixth target virtual resource is the virtual resource allocated to the sixth target virtual blind box, and the sixth target virtual blind box is the first virtual blind box or the second virtual blind box held by the sixth target terminal.
[0155] Any one of the first terminal and the target second terminal can become the fifth target terminal or the sixth target terminal to exchange virtual resources with each other. The exchange of virtual resources can still be realized through the virtual resource allocation server. For example: applying the virtual resource transfer function set in the virtual resource allocation server. Of course, it can also be realized through other application servers. For example: the mail transfer server in the game.
[0156] The virtual resource exchange provided in this embodiment includes: if the fifth target terminal is the first terminal, then the sixth target terminal is any one of the target second terminals. In response to the virtual resource allocation server receiving the virtual resource exchange designation sent by the first terminal and a target second terminal, the virtual resource allocation server will send the first virtual resource corresponding to the first terminal to the target second terminal. At the same time, the virtual resource allocation server will send the second virtual resource corresponding to the target second terminal to the first terminal to realize the virtual resource exchange between the first terminal and the target second terminal.
[0157] The virtual resource exchange provided in this embodiment also includes: if the fifth target terminal is a target second terminal, then the sixth target terminal is any one of the first terminal and other target second terminals. In response to the virtual resource allocation server receiving the resource exchange designation sent by the target second terminal and the first terminal or another target second terminal, the virtual resource allocation server will send the second virtual resource corresponding to the target second terminal to the first terminal or another target second terminal. At the same time, the virtual resource allocation server will send the first virtual resource corresponding to the first terminal or the second virtual resource corresponding to another target second terminal to the target second terminal to realize the virtual resource exchange between the target second terminal and the first terminal or other target second terminals.
[0158] Taking the above-mentioned prop blind box as an example, an illustrative example is given. Player A obtained a pistol prop through the first terminal, Player B obtained a rocket launcher prop through the second terminal where he is located, Player C obtained a knife prop through the second terminal where he is located, and Player D obtained a sniper rifle prop through the second terminal where he is located. Suppose the virtual prop desired by Player A is a rocket launcher prop, then Player A can negotiate with Player B for the interaction of virtual props. In response to the virtual resource allocation server receiving the virtual resource exchange instruction sent by Player A through the first terminal and Player B through the second terminal where he is located, the virtual resource allocation server can send the rocket launcher prop to the first terminal where Player A is located, and send the pistol prop to the second terminal where Player B is located. Player A then has the rocket launcher prop, and Player B has the pistol prop. Through one purchase of the prop blind box, Player A obtained the desired virtual prop.
[0159] The above first embodiment has described in detail the method for allocating virtual resources provided by this application in an optional implementation manner. The method for allocating virtual resources provided by this application includes but is not limited to the implementation manners given in the first embodiment.
[0160] The second embodiment of this application provides a method for allocating virtual resources.
[0161] Figure 6 It is the signaling flowchart of the method for allocating virtual resources provided in this embodiment, which includes: a first terminal, a second terminal, and a virtual resource allocation server; the first terminal is the terminal that obtains the first virtual blind box and sends a sharing instruction; the second terminal is the terminal that obtains the second virtual blind box based on the sharing information, and the second terminal includes multiple terminals that obtain the second virtual blind box based on the sharing information; the virtual resource allocation server is the server that sends the first virtual blind box to the first terminal and the second virtual blind box to the second terminal, and allocates the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind box.
[0162] As Figure 6 shown, the method for allocating virtual resources provided in this embodiment includes the following steps:
[0163] Step S601, the first terminal sends an acquisition instruction for the virtual blind box to the virtual resource allocation server.
[0164] Step S602, in response to the virtual resource allocation server receiving the acquisition instruction, send the first virtual blind box obtained from the virtual blind box to the first terminal.
[0165] Step S603, the first terminal sends a sharing instruction for the virtual blind box to the virtual resource allocation server.
[0166] Step S604: In response to the virtual resource allocation server receiving the sharing instruction, generate sharing information of the virtual blind box.
[0167] Step S605: The virtual resource allocation server sends the sharing information of the virtual blind box to the second terminal.
[0168] Step S606: In response to the second terminal receiving the sharing information, the second terminal sends a second acquisition instruction for the virtual blind box to the virtual resource allocation server based on the sharing information.
[0169] Step S607: In response to the virtual resource allocation server receiving the second acquisition instruction, determine whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box.
[0170] Step S608: In response to the virtual resource allocation server determining that the second acquisition instruction meets the preset purchase conditions of the virtual blind box, the virtual resource allocation server sends the second virtual blind box obtained from the virtual blind box to the second terminal.
[0171] Step S609: In response to the virtual resource allocation server determining that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, the virtual resource allocation server sends a prompt message indicating that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box to the second terminal.
[0172] Step S610: The first terminal sends a first opening instruction for the first virtual blind box to the virtual resource allocation server. Of course, it can also be a second terminal sending a first opening instruction for the second virtual blind box to the virtual resource allocation server. For a clearer description in the subsequent steps, in this step, the first terminal is defined as the terminal sending the first opening instruction.
[0173] Step S611: In response to the virtual resource allocation server receiving the first opening instruction, the virtual resource allocation server mutually allocates the virtual resources in the virtual resource set corresponding to the virtual blind box, so that the first virtual blind box and each second virtual blind box are allocated different virtual resources.
[0174] Step S612: The virtual resource allocation server sends the allocation result of the first virtual blind box to the first terminal.
[0175] Step S613: In response to the first opening instruction, the first terminal opens the first virtual blind box, and the first virtual resource allocated by the first virtual blind box is displayed on the graphical user interface of the first terminal.
[0176] Step S614: One or more second terminals send a status viewing instruction for the second virtual blind box to the virtual resource allocation server. Since the first terminal is defined as the terminal that sends the first opening instruction in step S610, the terminal that sends the status viewing instruction in this step is the second terminal, and each second terminal can send the status viewing instruction to the virtual resource allocation server. Of course, if one second terminal is used as the terminal that sends the first opening instruction in step S610, then the terminal that sends the status viewing instruction in this step is the first terminal or other second terminals.
[0177] Step S615: In response to the virtual resource allocation server receiving the status viewing instruction, the virtual resource allocation server sends a display adjustment instruction to one or more second terminals.
[0178] Step S616: In response to one or more second terminals receiving the display adjustment instruction, adjust the display status of the second virtual blind box.
[0179] Step S617: One or more second terminals send a second opening instruction for the second virtual blind box to the virtual resource allocation server.
[0180] Step S618: The virtual resource allocation server sends the allocation result of the second virtual blind box to one or more second terminals.
[0181] Step S619: One or more second terminals open the second virtual blind box in response to the second opening instruction, and the second virtual resources allocated by the second virtual blind box are displayed on the graphical user interfaces of one or more second terminals.
[0182] Step S620: The first terminal sends a virtual resource gift instruction for one second terminal to the virtual resource allocation server.
[0183] Step S621: In response to the virtual resource allocation server receiving the virtual resource gift instruction, the virtual resource allocation server sends the first virtual resources corresponding to the first terminal to this second terminal. Of course, the virtual resource gift instruction can also be sent by one second terminal to the virtual resource allocation server, and the virtual resource allocation server completes the gift of virtual resources from the second terminal to the first terminal, or from the second terminal to other second terminals.
[0184] Step S622: The first terminal and one second terminal send a virtual resource exchange instruction to the virtual resource allocation server.
[0185] Step S623: In response to the virtual resource allocation server receiving the virtual resource exchange instruction, the virtual resource allocation server sends the first virtual resource corresponding to the first terminal to the second terminal, and sends the second virtual resource corresponding to the second terminal to the first terminal. Of course, the virtual resource exchange instruction may also be sent by one second terminal to another second terminal to the virtual resource allocation server, and the virtual resource allocation server completes the exchange of virtual resources between the two second terminals.
[0186] The virtual resource allocation methods provided by the first and second embodiments creatively introduce the sharing mechanism of virtual blind boxes and the multiple-selection allocation mechanism of virtual resources, changing the gameplay of virtual blind boxes from single-player to multi-player, and changing the allocation of virtual resources from single-selection to multiple-selection or even full-selection, increasing the probability that users can obtain the desired virtual resources by purchasing a single blind box. At the same time, it establishes the interaction between virtual resource allocation and players, as well as the interaction between players. Of course, the virtual resource allocation methods provided in this application include, but are not limited to, the implementation manners provided in the first and second embodiments.
[0187] The third embodiment of this application provides a virtual resource allocation device that displays a virtual blind box through the graphical user interface of the first terminal. Figure 7 It is a schematic structural diagram of the virtual resource allocation device provided in this embodiment.
[0188] As Figure 7 shown, the virtual resource allocation device provided in this embodiment includes: an acquisition unit 701, a sharing unit 702, an allocation unit 703, and a feedback unit 704;
[0189] The acquisition unit 701 is configured to, in response to an acquisition instruction, acquire the first virtual blind box corresponding to the first terminal from the virtual blind box.
[0190] Optionally, the method further includes: in response to a third opening instruction for the first virtual blind box, randomly selecting a third virtual resource from the virtual resource set corresponding to the virtual blind box and allocating it to the first virtual blind box held by the first terminal, so as to display the third virtual resource allocated to the first virtual blind box on the graphical user interface of the first terminal.
[0191] The sharing unit 702 is configured to, in response to a sharing instruction, send sharing information of the virtual blind box to at least one second terminal, so that the second terminal can acquire at least one second virtual blind box associated with the first virtual blind box based on the sharing information.
[0192] Optionally, the method further includes:
[0193] In response to the sharing instruction, generate identification information of the virtual blind box, use the identification information as the sharing information, and send the identification information of the virtual blind box to at least one of the second terminals.
[0194] Optionally, the generating the identification information of the virtual blind box includes:
[0195] Generate a universally unique identifier (UUID) of the virtual blind box using the Snowflake algorithm, and use the UUID as the identification information of the virtual blind box.
[0196] Optionally, the responding to the sharing instruction and sending the sharing information of the virtual blind box to at least one second terminal, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information, includes:
[0197] In response to the sharing instruction, send the sharing information of the virtual blind box to at least one second terminal;
[0198] Receive a second acquisition instruction of the virtual blind box from the second terminal, and determine whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box;
[0199] If the second acquisition instruction meets the preset purchase conditions of the virtual blind box, feedback the second virtual blind box obtained from the virtual blind box to the second terminal;
[0200] If the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, feedback a prompt message to the second terminal to display the prompt message on the graphical user interface of the second terminal, and / or play the prompt message through the second terminal;
[0201] Wherein, the prompt message indicates that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0202] Optionally, the second acquisition instruction includes the identification information of the virtual blind box; the determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box includes:
[0203] Determine whether the identification information of the virtual blind box included in the second acquisition instruction is consistent with the identification information of the virtual blind box shared by the first terminal;
[0204] If they are consistent, the second acquisition instruction meets the preset purchase conditions of the virtual blind box;
[0205] If they are inconsistent, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0206] Optionally, the determination of whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box further includes:
[0207] Determine whether the number of times the virtual blind box has been purchased is less than the preset quantity of the virtual blind box, where the preset quantity is the preset quantity of virtual resources in the virtual resource set corresponding to the virtual blind box;
[0208] If it is less, the second acquisition instruction meets the preset purchase conditions of the virtual blind box;
[0209] If it is not less, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0210] Optionally, the determination of whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box further includes:
[0211] Determine whether a first opening instruction for the target virtual blind box is received from the target terminal;
[0212] If received, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box;
[0213] If not received, the second acquisition instruction meets the preset purchase conditions of the virtual blind box.
[0214] The allocation unit 703 is configured to, in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, so as to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes; wherein, the target terminal is the first terminal or a target second terminal, and the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information; the target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal.
[0215] Optionally, the response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, and allocating the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, so as to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes, includes:
[0216] Select a target quantity of virtual resources from the virtual resource set corresponding to the virtual blind box, and mutually allocate the target quantity of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal; the target quantity is the sum of the number of the first terminal and the target second terminal.
[0217] Optionally, the mutually exclusive allocation of the target quantity of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal includes:
[0218] Performing permutations and combinations on the selected target quantity of virtual resources to determine multiple candidate allocation schemes;
[0219] Determining a target allocation scheme from the multiple candidate allocation schemes, and mutually exclusively allocating the target quantity of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal according to the target allocation scheme.
[0220] The feedback unit 704 is configured to feedback the allocation result of the target virtual resources obtained by allocating the target virtual blind box to the target terminal, so as to display the target virtual resources allocated to the target virtual blind box on the graphical user interface of the target terminal.
[0221] Optionally, the method further includes:
[0222] In response to receiving a status check instruction of a second target virtual blind box from a second target terminal, feedback a display adjustment instruction to the second target terminal according to the status check instruction, so that the second target terminal adjusts the display status of the second target virtual blind box to a first display status according to the display adjustment instruction; the first display status indicates that the target terminal has opened the target virtual blind box, the second target virtual blind box has been allocated corresponding second target virtual resources and the second target virtual blind box has not been opened;
[0223] Wherein, the second target terminal is a terminal other than the target terminal among the first terminal and the target second terminal, and the second target virtual blind box is a virtual blind box corresponding to the second target terminal among the first virtual blind box and the second virtual blind box.
[0224] Optionally, the method further includes:
[0225] In response to receiving a second opening instruction of the second target virtual blind box in the first display status from the second target terminal, feedback the allocation result of the second target virtual resources obtained by allocating the second target virtual blind box to the second target terminal, so as to display the second target virtual resources allocated to the second target virtual blind box on the graphical user interface of the second target terminal.
[0226] Optionally, the method further includes:
[0227] In response to receiving a virtual resource gift instruction sent by a third target terminal for a fourth target terminal, send the third target virtual resource to the fourth target terminal;
[0228] Wherein, the third target terminal is the first terminal or the target second terminal; the fourth target terminal is the terminal other than the third target terminal among the first terminal and the target second terminal; the third target virtual resource is the virtual resource allocated to the third target virtual blind box; the third target virtual blind box is the first virtual blind box or the second virtual blind box held by the third target terminal.
[0229] Optionally, the third target terminal is the first terminal.
[0230] Optionally, the method further includes:
[0231] In response to receiving a virtual resource exchange instruction sent by a fifth target terminal and a sixth target terminal, send the fifth target virtual resource to the sixth target terminal, and send the sixth target virtual resource to the fifth target terminal;
[0232] Wherein, the fifth target terminal is the first terminal or the target second terminal; the sixth target terminal is the terminal other than the fifth target terminal among the first terminal and the target second terminal; the fifth target virtual resource is the virtual resource allocated to the fifth target virtual blind box; the fifth target virtual blind box is the first virtual blind box or the second virtual blind box held by the fifth target terminal; the sixth target virtual resource is the virtual resource allocated to the sixth target virtual blind box; the sixth target virtual blind box is the first virtual blind box or the second virtual blind box held by the sixth target terminal.
[0233] Optionally, the fifth target terminal is the first terminal.
[0234] The fourth embodiment of the present application provides an electronic device. Figure 8 It is a schematic structural diagram of the electronic device provided in this embodiment.
[0235] As Figure 8 shown, the electronic device provided in this embodiment includes: a memory 801 and a processor 802.
[0236] The memory 801 is used to store computer instructions for executing the virtual resource allocation method.
[0237] The processor 802 is used to execute the computer instructions stored in the memory 801 and perform the following operations:
[0238] In response to an acquisition instruction, acquire the first virtual blind box corresponding to the first terminal from the virtual blind box;
[0239] In response to a sharing instruction, send sharing information of the virtual blind box to at least one second terminal, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information;
[0240] In response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocate virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and each of the second virtual blind boxes to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes; wherein, the target terminal is the first terminal or a target second terminal, and the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information; the target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal;
[0241] Feed back the allocation result of the target virtual blind box obtaining the target virtual resource to the target terminal, so as to display the target virtual resource allocated to the target virtual blind box on the graphical user interface of the target terminal.
[0242] Optionally, the method further includes: in response to a third opening instruction for the first virtual blind box, allocate a third virtual resource randomly selected from the virtual resource set corresponding to the virtual blind box to the first virtual blind box held by the first terminal, so as to display the third virtual resource allocated to the first virtual blind box on the graphical user interface of the first terminal.
[0243] Optionally, the method further includes:
[0244] In response to the sharing instruction, generate identification information of the virtual blind box, use the identification information as the sharing information and send the identification information of the virtual blind box to at least one of the second terminals.
[0245] Optionally, the generating the identification information of the virtual blind box includes:
[0246] Generate a universally unique identifier of the virtual blind box using the snowflake algorithm, and use the universally unique identifier as the identification information of the virtual blind box.
[0247] Optionally, the in response to a sharing instruction, send sharing information of the virtual blind box to at least one second terminal, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box includes:
[0248] In response to a sharing instruction, send sharing information of the virtual blind box to at least one second terminal;
[0249] Receive the second acquisition instruction of the virtual blind box from the second terminal, and determine whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box;
[0250] If the second acquisition instruction meets the preset purchase conditions of the virtual blind box, feedback the second virtual blind box obtained from the virtual blind box to the second terminal;
[0251] If the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, feedback a prompt message to the second terminal to display the prompt message on the graphical user interface of the second terminal and / or play the prompt message through the second terminal;
[0252] Wherein, the prompt message indicates that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0253] Optionally, the second acquisition instruction includes the identification information of the virtual blind box; determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box includes:
[0254] Determine whether the identification information of the virtual blind box included in the second acquisition instruction is consistent with the identification information of the virtual blind box shared by the first terminal;
[0255] If they are consistent, the second acquisition instruction meets the preset purchase conditions of the virtual blind box;
[0256] If they are inconsistent, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0257] Optionally, determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box further includes:
[0258] Determine whether the number of times the virtual blind box has been purchased is less than the preset quantity of the virtual blind box, where the preset quantity is the quantity of virtual resources preset in the virtual resource set corresponding to the virtual blind box;
[0259] If it is less, the second acquisition instruction meets the preset purchase conditions of the virtual blind box;
[0260] If it is not less, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
[0261] Optionally, determining whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box further includes:
[0262] Determine whether a first opening instruction for the target virtual blind box is received from the target terminal;
[0263] If received, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box;
[0264] If not received, the second acquisition instruction meets the preset purchase conditions of the virtual blind box.
[0265] Optionally, in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocating virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes, includes:
[0266] Selecting a target number of virtual resources from the virtual resource set corresponding to the virtual blind box, and mutually exclusive allocating the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal; the target number is the sum of the number of the first terminal and the target second terminal.
[0267] Optionally, the mutually exclusive allocating the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal includes:
[0268] Performing permutations and combinations on the selected target number of virtual resources to determine multiple candidate allocation schemes;
[0269] Determining a target allocation scheme from the multiple candidate allocation schemes, and mutually exclusive allocating the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal according to the target allocation scheme.
[0270] Optionally, the method further includes:
[0271] In response to receiving a status check instruction for a second target virtual blind box from a second target terminal, feeding back a display adjustment instruction to the second target terminal according to the status check instruction, so that the second target terminal adjusts the display status of the second target virtual blind box to a first display status according to the display adjustment instruction; the first display status indicates that the target terminal has opened the target virtual blind box, the second target virtual blind box has been allocated corresponding second target virtual resources and the second target virtual blind box has not been opened;
[0272] Wherein, the second target terminal is a terminal other than the target terminal among the first terminal and the target second terminal, and the second target virtual blind box is the virtual blind box corresponding to the second target terminal among the first virtual blind box and the second virtual blind boxes.
[0273] Optionally, the method further includes:
[0274] In response to receiving a second opening instruction for the second target virtual blind box in the first display state from the second target terminal, feeding back to the second target terminal the allocation result of obtaining the second target virtual resource by allocating the second target virtual blind box, so as to display on the graphical user interface of the second target terminal the second target virtual resource allocated to the second target virtual blind box.
[0275] Optionally, the method further includes:
[0276] In response to receiving a virtual resource gift instruction sent by a third target terminal for a fourth target terminal, sending the third target virtual resource to the fourth target terminal;
[0277] Wherein, the third target terminal is the first terminal or the target second terminal; the fourth target terminal is the terminal other than the third target terminal among the first terminal and the target second terminal; the third target virtual resource is the virtual resource allocated to the third target virtual blind box; the third target virtual blind box is the first virtual blind box or the second virtual blind box held by the third target terminal.
[0278] Optionally, the third target terminal is the first terminal.
[0279] Optionally, the method further includes:
[0280] In response to receiving a virtual resource exchange instruction sent by a fifth target terminal and a sixth target terminal, sending the fifth target virtual resource to the sixth target terminal, and sending the sixth target virtual resource to the fifth target terminal;
[0281] Wherein, the fifth target terminal is the first terminal or the target second terminal; the sixth target terminal is the terminal other than the fifth target terminal among the first terminal and the target second terminal; the fifth target virtual resource is the virtual resource allocated to the fifth target virtual blind box; the fifth target virtual blind box is the first virtual blind box or the second virtual blind box held by the fifth target terminal; the sixth target virtual resource is the virtual resource allocated to the sixth target virtual blind box; the sixth target virtual blind box is the first virtual blind box or the second virtual blind box held by the sixth target terminal.
[0282] Optionally, the fifth target terminal is the first terminal.
[0283] The fifth embodiment of the present application provides a computer-readable storage medium, which includes computer instructions that are used to implement the methods described in the embodiments of the present application when executed by a processor.
[0284] It should be noted that relational terms such as "first" and "second" in this article are only used to distinguish one entity or operation from another entity or operation, and do not require or imply any actual relationship or order between these entities or operations. In addition, words such as "including", "having", "containing", and "comprising" have the same meaning, and, at the end of any one or more items after any of the above words, it is open-ended. None of the above nouns means that the one or more items have been enumerated exhaustively, or are limited to these enumerated one or more items.
[0285] When used in this article, unless otherwise clearly stated, the term "or" includes all possible combinations, except those that are not feasible. For example, if it is expressed that a database may include A or B, then unless otherwise specifically specified or not feasible, it may include database A, or B, or A and B. As a second example, if it is expressed that a certain database may include A, B, or C, then unless otherwise specifically specified or not feasible, the database may include database A, or B, or C, or A and B, or A and C, or B and C, or A and B and C.
[0286] It is worth noting that the above embodiments can be implemented by hardware or software (program code), or a combination of hardware and software. If implemented by software, it can be stored in the above computer-readable medium. When this software is executed by a processor, it can execute the methods disclosed above. The computing units and other functional units described in this disclosure can be implemented by hardware or software, or a combination of hardware and software. Those of ordinary skill in the art will also understand that the above-mentioned multiple modules / units can be combined into one module / unit, and each of the above modules / units can be further divided into multiple sub-modules / sub-units.
[0287] In the above detailed description, the embodiments have been described with reference to many specific details, and these details may vary depending on the embodiments. Certain adaptations and modifications can be made to the embodiments. For those skilled in the art, some other embodiments can be obviously obtained from the specific implementation manners disclosed in the present application. This specification and examples are only for exemplary purposes, and the true scope and essence of the present application are set forth by the claims. The step order shown in the drawings is also only for explanatory purposes and does not mean to be limited to any specific steps or order. Therefore, those skilled in the art will realize that when implementing the same method, these steps can be executed in a different order.
[0288] Exemplary embodiments are disclosed in the drawings and detailed description of the present application. However, many variations and modifications can be made to these embodiments. Accordingly, although specific terms are used, these terms are for general and descriptive purposes only and not for purposes of limitation.
Claims
1. A method for allocating virtual resources, characterized in that, Display a virtual blind box through the graphical user interface of the first terminal. The method includes: In response to an acquisition instruction, acquire a first virtual blind box corresponding to the first terminal from the virtual blind box; In response to a sharing instruction, send sharing information of the virtual blind box to at least one second terminal, so that the second terminal can acquire at least one second virtual blind box associated with the first virtual blind box based on the sharing information; In response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocate virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes; wherein, the target terminal is the first terminal or a target second terminal, the target second terminal is the second terminal that has acquired the second virtual blind box based on the sharing information; the target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal; Feed back the allocation result of the target virtual blind box obtaining the target virtual resource to the target terminal, to display the target virtual resource allocated to the target virtual blind box on the graphical user interface of the target terminal; The step of, in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, allocating virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind boxes, to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes, includes: Select a target number of virtual resources from the virtual resource set corresponding to the virtual blind box, and mutually exclusive allocate the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal; the target number is the sum of the number of the first terminal and the target second terminal.
2. The method according to claim 1, wherein The method further includes: In response to a third opening instruction for the first virtual blind box, allocate a third virtual resource randomly selected from the virtual resource set corresponding to the virtual blind box to the first virtual blind box held by the first terminal, to display the third virtual resource allocated to the first virtual blind box on the graphical user interface of the first terminal.
3. The method according to claim 1, wherein The method further includes: In response to the sharing instruction, generate identification information of the virtual blind box, and use the identification information as the sharing information and send the identification information of the virtual blind box to at least one of the second terminals.
4. The method according to claim 3, characterized in that, The step of generating the identification information of the virtual blind box includes: Generate a universally unique identifier for the virtual blind box using the snowflake algorithm, and use the universally unique identifier as the identification information of the virtual blind box.
5. The method according to claim 1, wherein The step of, in response to a sharing instruction, sending the sharing information of the virtual blind box to at least one second terminal, so that the second terminal can acquire at least one second virtual blind box associated with the first virtual blind box based on the sharing information, includes: In response to the sharing instruction, send the sharing information of the virtual blind box to at least one second terminal; Receive the second acquisition instruction of the virtual blind box from the second terminal, and determine whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box; If the second acquisition instruction meets the preset purchase conditions of the virtual blind box, feedback the second virtual blind box obtained from the virtual blind box to the second terminal; If the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box, feedback a prompt message to the second terminal to display the prompt message on the graphical user interface of the second terminal, and / or play the prompt message through the second terminal; Wherein, the prompt message indicates that the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
6. The method according to claim 5, wherein The second acquisition instruction includes the identification information of the virtual blind box; the determination of whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box includes: Determine whether the identification information of the virtual blind box included in the second acquisition instruction is consistent with the identification information of the virtual blind box shared by the first terminal; If they are consistent, the second acquisition instruction meets the preset purchase conditions of the virtual blind box; If they are not consistent, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
7. The method according to claim 5, wherein The determination of whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box further includes: Determine whether the number of times the virtual blind box has been purchased is less than the preset quantity of the virtual blind box, where the preset quantity is the quantity of virtual resources preset in the virtual resource set corresponding to the virtual blind box; If it is less, the second acquisition instruction meets the preset purchase conditions of the virtual blind box; If it is not less, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box.
8. The method according to claim 5, characterized in that, The determination of whether the second acquisition instruction meets the preset purchase conditions of the virtual blind box further includes: Determine whether the first opening instruction of the target virtual blind box from the target terminal is received; If received, the second acquisition instruction does not meet the preset purchase conditions of the virtual blind box; If not received, the second acquisition instruction meets the preset purchase conditions of the virtual blind box.
9. The method according to claim 1, characterized in that, The mutually exclusive allocation of the target quantity of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal includes: Perform permutations and combinations on the selected target quantity of virtual resources to determine multiple candidate allocation schemes; Determine a target allocation scheme from the multiple candidate allocation schemes, and mutually exclusively allocate the target quantity of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal according to the target allocation scheme.
10. The method according to claim 1, wherein The method further includes: In response to receiving a status check instruction for a second target virtual blind box from a second target terminal, a display adjustment instruction is fed back to the second target terminal according to the status check instruction, so that the second target terminal adjusts the display status of the second target virtual blind box to a first display status according to the display adjustment instruction; the first display status indicates that the target terminal has opened the target virtual blind box, the second target virtual blind box has been allocated corresponding second target virtual resources and the second target virtual blind box has not been opened; Wherein, the second target terminal is the terminal other than the target terminal among the first terminal and the target second terminal, and the second target virtual blind box is the virtual blind box corresponding to the second target terminal among the first virtual blind box and the second virtual blind box.
11. The method according to claim 10, wherein The method further includes: In response to receiving a second opening instruction for the second target virtual blind box in the first display status from the second target terminal, the allocation result of the second target virtual resources allocated to the second target virtual blind box is fed back to the second target terminal, so as to display the second target virtual resources allocated to the second target virtual blind box on the graphical user interface of the second target terminal.
12. The method according to claim 1, characterized in that The method further includes: In response to receiving a virtual resource gift instruction sent by a third target terminal for a fourth target terminal, send third target virtual resources to the fourth target terminal; Wherein, the third target terminal is the first terminal or the target second terminal; the fourth target terminal is the terminal other than the third target terminal among the first terminal and the target second terminal; the third target virtual resources are the virtual resources allocated to the third target virtual blind box; the third target virtual blind box is the first virtual blind box or the second virtual blind box held by the third target terminal.
13. The method according to claim 12, characterized in that, The third target terminal is the first terminal.
14. The method according to claim 1, wherein The method further includes: In response to receiving a virtual resource exchange instruction sent by a fifth target terminal and a sixth target terminal, send fifth target virtual resources to the sixth target terminal and send sixth target virtual resources to the fifth target terminal; Wherein, the fifth target terminal is the first terminal or the target second terminal; the sixth target terminal is the terminal other than the fifth target terminal among the first terminal and the target second terminal; the fifth target virtual resources are the virtual resources allocated to the fifth target virtual blind box; the fifth target virtual blind box is the first virtual blind box or the second virtual blind box held by the fifth target terminal; the sixth target virtual resources are the virtual resources allocated to the sixth target virtual blind box; the sixth target virtual blind box is the first virtual blind box or the second virtual blind box held by the sixth target terminal.
15. The method according to claim 14, wherein The fifth target terminal is the first terminal.
16. An allocation device for virtual resources, characterized in that, Displaying a virtual blind box through the graphical user interface of the first terminal, the device includes: an acquisition unit, a sharing unit, an allocation unit, and a feedback unit; The acquisition unit is configured to acquire the first virtual blind box corresponding to the first terminal from the virtual blind box in response to an acquisition instruction; The sharing unit is configured to send the sharing information of the virtual blind box to at least one second terminal in response to a sharing instruction, so that the second terminal can obtain at least one second virtual blind box associated with the first virtual blind box based on the sharing information; The allocation unit is configured to allocate the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind box in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, so as to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes; wherein, the target terminal is the first terminal or a target second terminal, and the target second terminal is the second terminal that has obtained the second virtual blind box based on the sharing information; the target virtual blind box is the first virtual blind box or the second virtual blind box held by the target terminal; The feedback unit is configured to feedback the allocation result of the target virtual blind box obtaining the target virtual resources to the target terminal, so as to display the target virtual resources allocated to the target virtual blind box on the graphical user interface of the target terminal; The step of allocating the virtual resources in the virtual resource set corresponding to the virtual blind box to the first virtual blind box and the second virtual blind box in response to receiving a first opening instruction for a target virtual blind box sent by a target terminal, so as to determine the virtual resources obtained by the first virtual blind box and each of the second virtual blind boxes, includes: Selecting a target number of virtual resources from the virtual resource set corresponding to the virtual blind box, and mutually allocating the target number of virtual resources to the first virtual blind box held by the first terminal and the at least one second virtual blind box held by the at least one second terminal; the target number is the sum of the number of the first terminal and the target second terminal.
17. An electronic device, characterized in that, Comprising: A memory and a processor; The memory is configured to store one or more computer instructions; The processor is configured to execute the one or more computer instructions to implement the method according to any one of claims 1-15.
18. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that, When the instruction is executed by the processor, the method according to any one of claims 1-15 is executed.
Citation Information
Patent Citations
Virtual prop allocating method and device, facility and storage medium
CN110841294A
Virtual blind box circulation / ordering control method and device, equipment, medium and product
CN113807917A