Virtual item determination method and apparatus, computer device, and storage medium
Patent Information
- Application Number
- CN202210798623.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-07-08
AI Technical Summary
然而,不同的虚拟物品获取业务需求需要对应不同的虚拟物品获取概率策略,导致每次虚拟物品获取活动与虚拟物品获取业务存在较强的耦合性,由此降低虚拟物品获取概率策略在不同虚拟物品获取业务之间的复用性,从而降低虚拟物品获取的灵活性
[0058]The aforementioned method, apparatus, computer equipment, storage medium, and computer program product for determining virtual items first obtain a virtual item acquisition request from a target object. The virtual item acquisition request carries a business type, a first request identifier, and object information of the target object. Then, based on the business type and object information, as well as the pre-configured correspondence between business type, object type, and probability strategy, and according to the first request identifier, a first reconciliation result is obtained between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions. When the first reconciliation result indicates that the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, the target virtual item of the target object is determined based on the target probability strategy according to the pre-configured correspondence between the probability strategy and virtual items. The target virtual item is the virtual item issued to the target object. The target probability strategy is determined by considering both business type and object information. This reduces the coupling between business type and probability strategy. Furthermore, the target virtual item is determined by reconciling the virtual item acquisition parameters of the target object with the preset virtual item acquisition conditions. The virtual item determination step is separated from the reconciliation step, further reducing the coupling between reconciliation and virtual item acquisition. This improves the reusability of the probability strategy across different business types while ensuring the atomicity of virtual item acquisition, thereby enhancing the flexibility and reliability of virtual item determination.
Smart Images

Figure CN117422514B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet application technology, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for determining virtual items. Background Technology
[0002] With the development of network technology, virtual item acquisition systems have become a fundamental capability of operational activity platforms. Therefore, to ensure user engagement and activity levels, various operational activity platforms often launch activities based on these systems, allowing users to participate in virtual item acquisition. Currently, a virtual item acquisition activity is designed with a single virtual item acquisition probability strategy configured based on specific virtual item acquisition business needs. However, different virtual item acquisition business needs require different virtual item acquisition probability strategies, resulting in a strong coupling between each virtual item acquisition activity and the virtual item acquisition business. This reduces the reusability of the virtual item acquisition probability strategy across different virtual item acquisition businesses, thereby reducing the flexibility of virtual item acquisition. Summary of the Invention
[0003] Therefore, it is necessary to provide a method, apparatus, computer equipment, and storage medium for determining virtual items that can improve reusability, flexibility, and reliability in response to the above-mentioned technical problems.
[0004] Firstly, this application provides a method for determining virtual items. The method includes:
[0005] The virtual item acquisition request of the target object is obtained. The virtual item acquisition request carries the business type, the first request identifier and the object information of the target object.
[0006] Based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request;
[0007] Based on the first request identifier, obtain the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions;
[0008] The first reconciliation result is: when the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, the target virtual item of the target object is determined based on the pre-configured probability strategy and the correspondence between virtual items, and the target virtual item is the virtual item issued to the target object.
[0009] In one embodiment, the virtual item acquisition parameters include an acquireable value; the preset virtual item acquisition conditions include a preset acquisition value;
[0010] The first reconciliation result is as follows: When the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, the target virtual item of the target object is determined based on the pre-configured probability strategy and the correspondence between virtual items, including:
[0011] The first reconciliation result is as follows: when the available value is greater than or equal to the preset available value, the latest virtual resource value is obtained based on the available value.
[0012] Based on the pre-configured probability strategy and the correspondence between virtual items, the first virtual item is determined based on the target probability strategy, and based on the second request identifier, the second reconciliation result between the first virtual item and the latest virtual resource value is obtained, wherein the second request identifier is associated with the first request identifier;
[0013] The target virtual item is determined based on the second reconciliation result.
[0014] In one embodiment, determining the target virtual item based on the second reconciliation result includes:
[0015] If the second reconciliation result is that the latest virtual resource value is greater than or equal to the item value of the first virtual item, then the target virtual item is determined based on the first virtual item.
[0016] In one embodiment, determining the target virtual item based on the second reconciliation result includes:
[0017] If the second reconciliation result is that the latest virtual resource value is less than the item value of the first virtual item, then the target virtual item is determined from the specified virtual items whose item value is less than the latest virtual resource value.
[0018] In one embodiment, determining the target virtual item from among specified virtual items whose item value is less than the latest virtual resource value includes:
[0019] Among all the specified virtual items whose item value is less than the latest virtual resource value, the specified virtual item with the smallest difference between its item value and the latest virtual resource value is determined as the target virtual item.
[0020] In one embodiment, determining the first virtual item based on a target probability strategy according to a pre-configured correspondence between a probability strategy and virtual items includes:
[0021] Based on the pre-configured probability strategy and the correspondence between virtual items, the first virtual item and the target quantity of the first virtual item are determined based on the target probability strategy.
[0022] The target virtual item is determined based on the first virtual item, including:
[0023] Based on the third request identifier, obtain the third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item. The third request identifier is associated with the first request identifier and the second request identifier.
[0024] The target virtual item is determined based on the third-party reconciliation results.
[0025] In one embodiment, determining the target virtual item based on a third reconciliation result includes:
[0026] If the third reconciliation result is that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, then the target virtual item is determined from the second virtual items whose inventory quantity is greater than the preset quantity.
[0027] In one embodiment, obtaining the latest virtual resource value based on the available numerical value includes:
[0028] Based on a preset conversion ratio between available values and virtual resources, the available values are converted into virtual resource values.
[0029] The latest virtual resource value is obtained by converting the virtual resource value.
[0030] In one embodiment, before obtaining a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier, the method further includes:
[0031] Obtain the first disconnect request in response to the virtual item acquisition request, generate a virtual item acquisition retry prompt, and use the virtual item acquisition retry prompt to instruct the target object to re-initiate the virtual item acquisition request.
[0032] In one embodiment, after obtaining a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier, the method further includes:
[0033] Query the second request identifier;
[0034] If the query result for the second request identifier is: no second request identifier is found, then re-execute the step of obtaining the first reconciliation result based on the first request identifier.
[0035] In one embodiment, after determining the target virtual item of the target object based on a target probability strategy, the method further includes:
[0036] Query the item distribution identifier corresponding to the target virtual item. The item distribution identifier is generated after the target virtual item is successfully distributed to the target object.
[0037] If the query result for the item distribution identifier is: no item distribution identifier found, the target virtual item will be re-distributed to the target object.
[0038] Secondly, this application also provides a virtual item determination device. The device includes:
[0039] The acquisition module is used to acquire virtual item acquisition requests from the target object. The virtual item acquisition request carries the business type, the first request identifier, and the object information of the target object.
[0040] The strategy determination module is used to obtain the target probability strategy that matches the virtual item acquisition request based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy.
[0041] The reconciliation result acquisition module is used to acquire the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier;
[0042] The virtual item determination module is used when the first reconciliation result is: the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, and the target virtual item is determined based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items. The target virtual item is the virtual item issued to the target object.
[0043] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0044] The virtual item acquisition request of the target object is obtained. The virtual item acquisition request carries the business type, the first request identifier and the object information of the target object.
[0045] Based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request;
[0046] Based on the first request identifier, obtain the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions;
[0047] The first reconciliation result is: the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions. Based on the pre-configured probability strategy and the correspondence between virtual items, the target virtual item of the target object is determined based on the target probability strategy. The target virtual item is the virtual item issued to the target object.
[0048] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0049] The virtual item acquisition request of the target object is obtained. The virtual item acquisition request carries the business type, the first request identifier and the object information of the target object.
[0050] Based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request;
[0051] Based on the first request identifier, obtain the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions;
[0052] The first reconciliation result is: the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions. Based on the pre-configured probability strategy and the correspondence between virtual items, the target virtual item of the target object is determined based on the target probability strategy. The target virtual item is the virtual item issued to the target object.
[0053] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0054] The virtual item acquisition request of the target object is obtained. The virtual item acquisition request carries the business type, the first request identifier and the object information of the target object.
[0055] Based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request;
[0056] Based on the first request identifier, obtain the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions;
[0057] The first reconciliation result is: the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions. Based on the pre-configured probability strategy and the correspondence between virtual items, the target virtual item of the target object is determined based on the target probability strategy. The target virtual item is the virtual item issued to the target object.
[0058] The aforementioned method, apparatus, computer equipment, storage medium, and computer program product for determining virtual items first obtain a virtual item acquisition request from a target object. The virtual item acquisition request carries a business type, a first request identifier, and object information of the target object. Then, based on the business type and object information, as well as the pre-configured correspondence between business type, object type, and probability strategy, and according to the first request identifier, a first reconciliation result is obtained between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions. When the first reconciliation result indicates that the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, the target virtual item of the target object is determined based on the target probability strategy according to the pre-configured correspondence between the probability strategy and virtual items. The target virtual item is the virtual item issued to the target object. The target probability strategy is determined by considering both business type and object information. This reduces the coupling between business type and probability strategy. Furthermore, the target virtual item is determined by reconciling the virtual item acquisition parameters of the target object with the preset virtual item acquisition conditions. The virtual item determination step is separated from the reconciliation step, further reducing the coupling between reconciliation and virtual item acquisition. This improves the reusability of the probability strategy across different business types while ensuring the atomicity of virtual item acquisition, thereby enhancing the flexibility and reliability of virtual item determination. Attached Figure Description
[0059] Figure 1 This is a diagram illustrating the application environment of a virtual item determination method in one embodiment;
[0060] Figure 2 This is a schematic diagram illustrating the correspondence between various virtual item acquisition systems, probabilities, and virtual items in one embodiment;
[0061] Figure 3 A schematic diagram of the system architecture for a virtual item determination system in one embodiment;
[0062] Figure 4 This is a flowchart illustrating a method for determining virtual items in one embodiment;
[0063] Figure 5 This is a schematic diagram of the interface for obtaining a virtual item acquisition request method in one embodiment;
[0064] Figure 6 This is a schematic diagram illustrating the correspondence between service types and probability strategies in one embodiment;
[0065] Figure 7 This is a schematic diagram illustrating the correspondence between object types and probability strategies in one embodiment;
[0066] Figure 8This is a schematic diagram illustrating the correspondence between business type, object type, and probability strategy in one embodiment;
[0067] Figure 9 This is a schematic diagram illustrating the correspondence between probabilistic strategies and virtual items in one embodiment;
[0068] Figure 10 This is a flowchart illustrating the process of determining a target virtual item in one embodiment;
[0069] Figure 11 This is a partial flowchart illustrating the process of determining a target virtual item in one embodiment;
[0070] Figure 12 This is a partial flowchart illustrating the process of determining the target virtual item in another embodiment;
[0071] Figure 13 This is a partial flowchart illustrating the process of determining a target virtual item in yet another embodiment;
[0072] Figure 14 This is a schematic diagram illustrating virtual resource value verification and inventory quantity verification in one embodiment;
[0073] Figure 15 This is a schematic diagram of the process for determining the first virtual item in one embodiment;
[0074] Figure 16 This is a partial flowchart illustrating the process of determining the target virtual item in another embodiment;
[0075] Figure 17 This is a schematic diagram of the process for obtaining the latest virtual resource value in one embodiment;
[0076] Figure 18 This is a schematic diagram illustrating the specific steps of a virtual item determination method in one embodiment;
[0077] Figure 19 This is a partial flowchart illustrating the process of obtaining and reconciling virtual items in one embodiment;
[0078] Figure 20 This is a partial flowchart illustrating the process of obtaining and reconciling virtual items in another embodiment;
[0079] Figure 21 This is a partial flowchart illustrating the process of obtaining and reconciling virtual items in yet another embodiment;
[0080] Figure 22 This is a schematic diagram of the complete process of a virtual item determination method in one embodiment;
[0081] Figure 23 This is a structural block diagram of a virtual item determination device in one embodiment;
[0082] Figure 24 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0083] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0084] Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Based on the cloud computing business model, cloud technology encompasses network technology, information technology, integration technology, management platform technology, and application technology. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.
[0085] Cloud computing refers to the delivery and usage model of IT infrastructure, meaning obtaining necessary resources through a network in an on-demand and easily scalable manner. In a broader sense, cloud computing refers to the delivery and usage model of services, meaning obtaining necessary services through a network in an on-demand and easily scalable manner. These services can be IT and software related, internet-related, or other services. Cloud computing is a product of the convergence of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing. Driven by the development of the internet, real-time data streams, the diversification of connected devices, and the demands of search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Unlike previous parallel and distributed computing, the emergence of cloud computing will fundamentally revolutionize the entire internet model and enterprise management model.
[0086] The solutions provided in this application relate to cloud computing technology, and are specifically illustrated through the following embodiments:
[0087] The virtual item determination method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104, or it can be located in the cloud or on another server.
[0088] Specifically, taking terminal 102 as an example, when a target object wishes to acquire virtual items, it can perform corresponding operations on terminal 102 to generate a virtual item acquisition request. These operations can include clicking and swiping on the virtual item acquisition interface of terminal 102, or inputting voice commands on the virtual item acquisition interface; specific operations are not limited here. Therefore, terminal 102, based on the service type carried in the virtual item acquisition request and the target object information, and the correspondence between the pre-configured service type, object type, and probability strategy, obtains a target probability strategy matching the virtual item acquisition request. Based on the first request identifier, it obtains a first reconciliation result between the target object's virtual items and the preset virtual item acquisition conditions. If the first reconciliation result is that the target object's virtual item acquisition parameters meet the preset virtual item acquisition conditions, then based on the pre-configured probability strategy and the correspondence between virtual items, the target virtual item for the target object is determined according to the target probability strategy. The target virtual item is the virtual item issued to the target object, and the target virtual item is displayed on the virtual item acquisition interface so that the target object confirms that the target virtual item is the acquired virtual item.
[0089] Secondly, taking server 104 as an example, server 104 can obtain a virtual item acquisition request from terminal 102. The method by which terminal 102 obtains the virtual item acquisition request is similar to the aforementioned description and will not be repeated here. Therefore, server 104, based on the business type carried in the virtual item acquisition request and the object information of the target object, and the correspondence between the pre-configured business type, object type, and probability strategy, obtains a target probability strategy matching the virtual item acquisition request. Based on the first request identifier, server 104 obtains a first reconciliation result between the target object's virtual item and the preset virtual item acquisition conditions. If the first reconciliation result is that the target object's virtual item acquisition parameters meet the preset virtual item acquisition conditions, then based on the pre-configured probability strategy and the correspondence between virtual items, server 104 determines the target virtual item for the target object based on the target probability strategy. The target virtual item is the virtual item issued to the target object. Then, server 104 sends the determined target virtual item to terminal 102, so that terminal 102 displays the target virtual item on the virtual item acquisition interface. Thus, the target object determines that the target virtual item is the acquired virtual item.
[0090] The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices, such as smartwatches, smart bracelets, and head-mounted devices. The server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0091] Currently, in virtual item acquisition scenarios, the probability of participating in virtual item acquisition activities is often not equal for all users. Each different activity, depending on its business needs and recall strategies, will have different focuses. For example... Figure 2 As shown, for Virtual Item Acquisition System A, Activity A targets new users participating in the virtual item acquisition service. New users have a 100% probability of acquiring a virtual item on a first-come, first-served basis; the specific virtual item is a membership card. Secondly, for Virtual Item Acquisition System B, Activity B targets each user's third virtual item acquisition, with a 50% probability of acquiring a virtual item; the specific virtual item is headphones. Finally, for Virtual Item Acquisition System C, Activity C does not determine the target virtual item for illegitimate objects, but a preset object type can be used to acquire virtual items; the specific virtual item is a mobile phone, and this preset object type can include membership cards, etc.
[0092] like Figure 2As shown, each virtual item acquisition activity must correspond to a unique probability strategy. Currently, most virtual item acquisition systems directly encode this probability strategy. In addition, the definition of virtual items is different for each virtual item acquisition activity, resulting in a strong coupling between each virtual item acquisition activity and the virtual item acquisition business. This reduces the reusability of the virtual item acquisition probability strategy across different virtual item acquisition businesses, thereby reducing the flexibility of virtual item acquisition.
[0093] Based on this, the embodiments of this application provide a method for determining virtual items, and the virtual item determination method provided by the embodiments of this application can be applied to virtual item acquisition scenarios, specifically as follows: Figure 3 As shown, in the virtual item acquisition scenario, the virtual item determination method requires the joint execution of other dependent systems 302 and the virtual item acquisition system 304. The virtual item acquisition system 304 specifically includes two parts: virtual item acquisition 306 and reconciliation processing 308. Furthermore, virtual item acquisition 306 can be further subdivided into a condition layer 3061 and a probability model layer 3062. Specifically, the virtual item acquisition system 304 is used to determine the target virtual item that can be issued to the target object in this virtual item acquisition, based on the virtual item determination method provided in this application embodiment.
[0094] Specifically, reconciliation processing 308 is used to perform reconciliation processing. Specifically, reconciliation processing 308 can be used to obtain a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on a first request identifier. Reconciliation processing 308 can also be used to obtain a second reconciliation result between the first virtual item and the latest virtual resource value based on a second request identifier, and further, reconciliation processing 308 can be used to obtain a third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item based on a third request identifier.
[0095] Secondly, the main function of the condition layer 3061 is to distribute the target object to different probability models based on the object information of the target object. The aforementioned probability model is the probability strategy described in the embodiments of this application. That is, the condition layer 3061 pre-configures the probability strategy corresponding to each business type and the object type corresponding to each probability strategy. Thus, in actual application, the condition layer 3061 obtains the target probability strategy corresponding to the target object participating in this virtual item acquisition business based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy.
[0096] In addition, to ensure the system's disaster recovery capabilities and high availability, a fallback probability model will be pre-configured for all virtual item acquisition services by default. In the event of unavailability scenarios such as Remote Procedure Call Protocol (RPC) failure at the interface of condition layer 3061, the pre-configured fallback probability model will be selected by default to execute the subsequent probability strategy to ensure the reliability of the system.
[0097] The probability model layer 3062 primarily uses mathematical probability models as a basis to distinguish the acquisition probabilities of different virtual items. In other words, the probability model layer 3062 includes multiple different probability strategies, each describing the acquisition probability of different virtual items. Specifically, the probability model layer 3062 is responsible for pre-configuring the correspondence between probability strategies and various virtual items. Therefore, in practical applications, the probability model layer 3062 can calculate the result of the virtual item corresponding to the target probability strategy based on the pre-configured correspondence between probability strategies and virtual items. It should be understood that in practical applications, each probability model (i.e., probability strategy) has a unique corresponding probability strategy identifier. This identifier is generated when configuring each virtual item acquisition service to ensure that one probability strategy corresponds to one identifier. Furthermore, during the pre-configuration of the virtual item acquisition service, probability expectation verification is performed to ensure legality.
[0098] Based on this, in one embodiment, such as Figure 4 As shown, a method for determining virtual items is provided, which can be applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps:
[0099] Step 402: Obtain the virtual item acquisition request of the target object. The virtual item acquisition request carries the business type, the first request identifier, and the object information of the target object.
[0100] The virtual item acquisition request is a request initiated by the target object to participate in the virtual item acquisition service. The service type refers to the type of virtual item acquisition service the target object is participating in. Different service types have different available virtual items and different focus object information. For example, the available virtual items for the new user service type include computers, mobile phones, and e-vouchers, and the focus object information is the object participating in the service for the first time. Conversely, the available virtual items for the blocked service type include mice, headphones, and e-vouchers, and the focus object information is sensitive or illegitimate individuals. It should be understood that the specific available virtual items and focus object information for each service type need to be determined based on the actual situation and business requirements.
[0101] Secondly, the first request identifier is the request identifier generated when a virtual item acquisition request is made. The first request identifier may include, but is not limited to, order numbers and request numbers. Object information includes, but is not limited to, the device information used by the target object, the target object's identity information, the target object's behavioral information, and the target object's characteristic information. The aforementioned behavioral information may include whether the target object has participated in the business for the nth time, and the aforementioned identity information may include sensitive or illegitimate objects.
[0102] Specifically, when the target object wishes to acquire virtual items, it can perform corresponding operations on terminal 102 to generate a virtual item acquisition request for the virtual item acquisition service. Therefore, the virtual item acquisition request carries the service type corresponding to the virtual item acquisition service, the first request identifier, and the object information corresponding to the target object.
[0103] Based on this, the aforementioned operation allows the target object to click on the virtual item acquisition interface of terminal 102. For ease of understanding, an example based on a specific scenario of virtual item acquisition will be used for illustration. Figure 5 As shown, the target object clicks on the virtual item acquisition interface 502, specifically clicking on the virtual item acquisition interface 504 within the virtual item acquisition interface 502 to generate a virtual item acquisition request. It should be understood that the aforementioned operation can also include the target object swiping or double-clicking on the virtual item acquisition interface of the terminal 102, or inputting voice commands on the virtual item acquisition interface; the specifics are not limited here.
[0104] Step 404: Based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request.
[0105] The probability strategy describes the probability of acquiring different virtual items. The correspondence between business type, object type, and probability strategy is as follows: For each business type, a corresponding probability strategy identifier is pre-configured. Then, for different object types, the probability strategy indicated by the corresponding probability strategy identifier is configured. For example, business type A1 is configured with probability strategy identifiers 1, 2, and 3. Object type B1 corresponds to probability strategy C1 indicated by probability strategy identifier 1, object type B2 corresponds to probability strategy C2 indicated by probability strategy identifier 2, and object type B3 corresponds to probability strategy C3 indicated by probability strategy identifier 3.
[0106] To facilitate understanding of the correspondence between business types, object types, and probability strategies, such as Figure 6As shown, the probability model layer 602 pre-configures an equal probability strategy 604, an inventory probability strategy 606, and a time smoothing probability strategy 608 for business type A1, and configures an equal probability strategy 604 and an inventory probability strategy 606 for business type A2. Further, as... Figure 7 As shown, the condition layer 702 pre-configures an equal probability strategy 704 for object type B1 participating in business type A1, an inventory probability strategy 707 for object type B2 participating in business type A1, and a time smoothing probability strategy 708 for object type B3 participating in business type A1.
[0107] Specifically, the following example, using the scenario of taking a ball and putting it back into a box, where the box contains one red ball and one black ball, will be used to explain the aforementioned probability strategy.
[0108] Equal Probability Strategy: An equal probability strategy is specifically a probability model for putting a ball back into the box after drawing it. Based on this, if a red ball is drawn from the box the first time, and an equal probability strategy is used to draw a ball a second time, then the probability of drawing both a red and a black ball the second time is 50%.
[0109] Inventory probability strategy: The inventory probability strategy is a probability model where, after taking a ball, it is not returned to the box. Based on this, after taking one red ball from the box for the first time, if the inventory probability strategy is used to perform the second ball-taking operation, then the second ball will inevitably be a black ball from the box. After completing the second ball-taking operation, the inventory will be exhausted, and no further ball-taking operations can be performed.
[0110] Secondly, the time-smoothing probability strategy: In practical applications, the virtual item acquisition business may experience a situation where many participants join on the first day, and the number of participants gradually decreases thereafter. The time-smoothing probability strategy addresses this issue. For example, if the virtual item acquisition business lasts for 10 days, based on the time-smoothing probability strategy, at most 10% of the virtual items can be distributed each day, with the probability of each virtual item being dynamically adjusted. Ideally, based on the time-smoothing probability strategy, the change in the percentage of virtual items remaining in stock over time will be a straight line from 1 to 0.
[0111] Specifically, terminal 102 determines the probability strategies configured for a given business type based on the pre-configured correspondence between business types and probability strategies. Then, terminal 102 determines the target object type of the target object based on object information, and determines the target probability strategy corresponding to that target object type based on the pre-configured correspondence between object types and probability strategies, thereby obtaining the target probability strategy matching the virtual item acquisition request. The aforementioned object type is determined based on specific application requirements and business type. For example, the object type classification under this business type includes: objects participating in the business for the first time, and objects not participating in the business for the first time.
[0112] For ease of understanding, this is applied to scenarios involving the acquisition of virtual items, and... Figure 2 The example activity shown is used as an illustration, such as... Figure 8 As shown, this virtual item acquisition system can perform virtual item acquisition activities for business types A, B, and C. Based on this, for business type A, the corresponding object type and probability strategy are configured as follows: the object type being a first-time participant corresponds to a 100% inventory probability strategy, and the object type being a non-first-time participant corresponds to a preset probability strategy.
[0113] Secondly, for business type B, configure the corresponding mapping between object types and probability strategies: object types with a third participation correspond to a 50% equal probability strategy, and object types without a third participation correspond to a 50% preset probability strategy. And, for business type C, configure the corresponding mapping between object types and probability strategies: object types with a preset object type correspond to a 0% equal probability strategy, and object types without a preset object type correspond to a preset probability strategy.
[0114] Step 406: Based on the first request identifier, obtain the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions.
[0115] The virtual item acquisition parameters include the number of times one can participate in the virtual item acquisition service, or the eligibility to acquire virtual items such as points. Secondly, the preset virtual item acquisition conditions are the criteria used to determine whether a target object can participate in the virtual item acquisition service. Furthermore, the target virtual item can be a virtual electronic card, or a virtual state of a physical item, such as the virtual state of a mobile phone or headphones.
[0116] Specifically, after obtaining a virtual item acquisition request from the target object, terminal 102 can also obtain the virtual item acquisition parameters for this particular service type. For example, if the virtual item acquisition parameter is a achievable value, such as 3, then the target object can perform 3 virtual item acquisition operations. It should be understood that the virtual item acquisition parameters should be determined based on the actual situation and the specific settings of the virtual item acquisition service; no limitations are imposed here.
[0117] Based on this, terminal 102 further determines the first request identifier carried in the virtual item acquisition request, and then performs a reconciliation operation between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier. That is, terminal 102 specifically determines whether the virtual item acquisition parameters meet the preset virtual item acquisition conditions, thereby obtaining a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions. The aforementioned first reconciliation result is either that the virtual item acquisition parameters meet the preset virtual item acquisition conditions, or that the virtual item acquisition parameters do not meet the preset virtual item acquisition conditions.
[0118] Step 408, the first reconciliation result is: when the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, the target virtual item of the target object is determined based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items. The target virtual item is the virtual item issued to the target object.
[0119] Specifically, the first reconciliation result is: if the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, it means that the target object is qualified to participate in this virtual item acquisition business. At this time, the terminal 102 determines the target virtual item of the target object based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items.
[0120] For ease of understanding, this is applied to scenarios involving the acquisition of virtual items, and is based on... Figure 8 The activity example shown will be used as a further illustration, such as... Figure 9 As shown, this virtual item acquisition system can perform virtual item acquisition activities for business types A, B, and C.
[0121] Based on this, for business type A, the corresponding mapping between object types and probability strategies is configured as follows: First-time participants are matched with a 100% inventory probability strategy, while non-first-time participants are matched with a preset probability strategy. The pre-configured probability strategies and virtual items are as follows: a 100% inventory probability strategy is matched with virtual items (membership cards), while the preset probability strategy is matched with other virtual items.
[0122] Secondly, for business type B, the corresponding mapping between object types and probability strategies is configured as follows: the object type participating for the third time corresponds to the 50% equal probability strategy, and the object type not participating for the third time corresponds to the 50% preset probability strategy. The pre-configured mapping between probability strategies and virtual items is as follows: the 50% equal probability strategy corresponds to the virtual item (headphones), and the preset probability strategy corresponds to other virtual items.
[0123] Secondly, for business type C, the corresponding mapping between object types and probability strategies is configured as follows: the object type is a preset object type, which corresponds to the 0% equal probability strategy; the object type is a non-preset object type, which corresponds to the preset probability strategy. The mapping between pre-configured probability strategies and virtual items is as follows: the 0% equal probability strategy corresponds to the virtual item (mobile phone); the preset probability strategy corresponds to other virtual items.
[0124] In the aforementioned method for determining virtual items, the target probability strategy is determined by considering both business type and object information. This reduces the coupling between business type and probability strategy. Furthermore, the target virtual item is determined by reconciling the virtual item acquisition parameters of the target object with the preset virtual item acquisition conditions. By separating the virtual item determination step from the reconciliation step, the coupling between reconciliation and virtual item acquisition is further reduced. This improves the reusability of the probability strategy across different business types while ensuring the atomicity of virtual item acquisition, thereby enhancing the flexibility and reliability of virtual item determination.
[0125] In one embodiment, such as Figure 10 As shown, the virtual item acquisition parameters include the acquireable values; the preset virtual item acquisition conditions include the preset acquisition values.
[0126] Step 408, the first reconciliation result is: when the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, based on the pre-configured probability strategy and the correspondence between virtual items, the target virtual item of the target object is determined based on the target probability strategy. The target virtual item is the virtual item issued to the target object, including:
[0127] Step 1002, the first reconciliation result is as follows: when the obtainable value is greater than or equal to the preset obtainable value, the latest virtual resource value is obtained based on the obtainable value.
[0128] The process involves several steps. First, the pre-defined virtual item acquisition conditions include a pre-defined acquisition value, which determines whether a target object can participate in the virtual item acquisition service. The latest virtual resource value is the virtual resource value corresponding to the target object under this service type. In a specific virtual item acquisition application, this virtual resource value is the prize pool (funds pool). The prize pool (funds pool) is updated after each operation by converting the object's acquireable value into a converted resource value and investing it into the corresponding funds pool for that service type.
[0129] Specifically, after obtaining a virtual item acquisition request from a target object, terminal 102 can also obtain the acquireable value for that business type. If terminal 102 determines that the acquireable value is greater than or equal to a preset acquireable value in the first reconciliation result, it means that the target object's acquireable value can support the deduction of the preset acquireable value, i.e., it is qualified to participate in this virtual item acquisition business. The acquireable value is then converted into a conversion resource value, and the latest virtual resource value is determined based on the conversion resource value. It should be understood that after determining a target virtual item, terminal 102 will adjust the acquireable value. For example, if the acquireable value is 3, the target object can perform 3 virtual item acquisition operations, and after performing one virtual item acquisition operation, the acquireable value will be adjusted to 2.
[0130] Step 1004: Based on the pre-configured probability strategy and the correspondence between virtual items, determine the first virtual item based on the target probability strategy, and obtain the second reconciliation result between the first virtual item and the latest virtual resource value based on the second request identifier. The second request identifier is associated with the first request identifier.
[0131] The first virtual item is a virtual item calculated based on a target probability strategy. Secondly, the second request identifier is associated with the first request identifier. The second request identifier can be the same as the first request identifier, or it can be obtained based on the first request identifier through a preset association rule and be similar to the first request identifier. The second request identifier can include, but is not limited to, order numbers and request numbers.
[0132] Specifically, terminal 102 determines the first virtual item based on the target probability strategy, according to the pre-configured probability strategy and the correspondence between virtual items. For example, please refer again. Figure 9If the target object's business type is business type A, and the determined target probability strategy is a 100% inventory probability strategy, then since the 100% inventory probability strategy corresponds to a virtual item (membership card), the first virtual item can be determined to be a membership card. Secondly, if the target object's business type is business type B, and the determined target probability strategy is a 50% equal probability strategy, then since the 50% equal probability strategy corresponds to a virtual item (headphones), the first virtual item can be determined to be headphones.
[0133] Further, terminal 102 determines the first request identifier carried in the virtual item acquisition request, and after successfully completing step 406, generates a second request identifier with an associated relationship based on the first request identifier. Then, it performs a reconciliation operation on the first virtual item and the latest virtual resource value based on the second request identifier. Specifically, terminal 102 needs to further determine the item value of the first virtual item and determine the second reconciliation result based on the size relationship between the item value of the first virtual item and the latest virtual resource value. That is, the second reconciliation result specifically describes the size relationship between the item value of the first virtual item and the latest virtual resource value. Therefore, the second reconciliation result can be that the latest virtual resource value is greater than or equal to the item value of the first virtual item, or the second reconciliation result can be that the latest virtual resource value is less than the item value of the first virtual item.
[0134] Step 1006: Determine the target virtual item based on the second reconciliation result.
[0135] Specifically, terminal 102 determines the target virtual item based on the relationship between the value of the first virtual item and the latest virtual resource value, as described in the second reconciliation result. The target virtual item can be the first virtual item or any other virtual item.
[0136] In this embodiment, based on the comparison between the available value and the preset available value, it is determined whether to obtain the latest virtual resource value based on the available value, thereby ensuring that the target object can carry out the virtual item acquisition process under reliable and real-time conditions, thus ensuring the reliability of determining the first virtual item based on the target probability strategy.
[0137] The following sections will describe how to determine the target virtual item when the latest virtual resource value is greater than or equal to the value of the first virtual item, and when the latest virtual resource value is less than the value of the first virtual item:
[0138] In one embodiment, such as Figure 11 As shown, step 1006, based on the second reconciliation result, determines the target virtual item, including:
[0139] Step 1102: If the second reconciliation result is that the latest virtual resource value is greater than or equal to the item value of the first virtual item, then determine the target virtual item based on the first virtual item.
[0140] Specifically, terminal 102 first determines the value of the first virtual item, and if the second reconciliation result shows that the latest virtual resource value is greater than or equal to the value of the first virtual item, then it determines the target virtual item based on the first virtual item. For example, if the latest virtual resource value is 5 and the value of the first virtual item is 3, then terminal 102 can determine the target virtual item based on the first virtual item.
[0141] In this embodiment, the target virtual item is determined based on the item value of the first virtual item and the latest virtual resource value to ensure the reliability and flexibility of the target virtual item determination.
[0142] In one embodiment, such as Figure 12 As shown, step 1006, based on the second reconciliation result, determines the target virtual item, including:
[0143] Step 1202: If the second reconciliation result is that the latest virtual resource value is less than the item value of the first virtual item, then determine the target virtual item from the specified virtual items whose item value is less than the latest virtual resource value.
[0144] Specifically, terminal 102 determines the item value of the first virtual item, and if the second reconciliation result shows that the latest virtual resource value is greater than or less than the item value of the first virtual item, it further determines each specified virtual item whose item value is less than the latest virtual resource value, and then determines the target virtual item from the aforementioned specified virtual items.
[0145] For example, taking a mobile phone as the first virtual item, and the item value of the first virtual item (mobile phone) is 100, and the latest virtual resource value is 80, the latest virtual resource value is less than the item value of the first virtual item. Terminal 102 determines that the item value of the specified virtual item 1 (headphones) is 60, the item value of the specified virtual item 2 (mouse) is 50, and the item value of the specified virtual item 3 (coupon) is 1. Then, the target virtual item can be determined based on business needs or randomly from the specified virtual item 1 (headphones), specified virtual item 2 (mouse), and specified virtual item 3 (coupon).
[0146] It should be understood that after identifying the target virtual item and successfully sending it to the target object, it is necessary to further update the latest virtual resource value based on the item value of the target virtual item to obtain the latest virtual resource value. For example, to further illustrate with the aforementioned embodiment, if the specified virtual item 2 (mouse) is identified as the target virtual item, that is, the item value of the target virtual item is 50, if the terminal 102 subsequently completes the distribution of the specified virtual item 2 (mouse), after distribution, the terminal 102 needs to deduct the item value (50) of the target virtual item from the latest virtual resource value (80), at which time the latest virtual resource value is 30 (80-50).
[0147] Secondly, in practical applications, based on business needs, when the latest virtual resource value is less than the item value of the first virtual item, the target virtual item can be directly determined to be text information such as "Come again next time" or "Item not obtained".
[0148] In this embodiment, based on the comparison between the item value of the first virtual item and the latest virtual resource value, the target virtual item is determined from each specified virtual item whose item value is less than the latest virtual resource value, so as to ensure the reliability of the determination of the target virtual item.
[0149] In one embodiment, such as Figure 13 As shown, in step 1202, the target virtual item is determined from among the specified virtual items whose item value is less than the latest virtual resource value, including:
[0150] Step 1302: Among the specified virtual items whose item value is less than the latest virtual resource value, the specified virtual item with the smallest difference between its item value and the latest virtual resource value is determined as the target virtual item.
[0151] Specifically, terminal 102 first determines each specified virtual item whose item value is less than the latest virtual resource value, then calculates the difference between the item value and the latest virtual resource value, and determines the specified virtual item with the smallest difference between the item value and the latest virtual resource value as the target virtual item.
[0152] For example, again Figure 12Taking the example in step 1202 as an example, since the latest virtual resource value is 80, the item value of designated virtual item 1 (headphones) is 60, the item value of designated virtual item 2 (mouse) is 50, and the item value of designated virtual item 3 (coupon) is 1, it can be calculated that the difference between the item value of designated virtual item 1 (headphones) and the latest virtual resource value is 20 (80-60), the difference between the item value of designated virtual item 2 (mouse) and the latest virtual resource value is 30 (80-50), and the difference between the item value of designated virtual item 3 (coupon) and the latest virtual resource value is 79 (80-1). Therefore, the smallest difference is the difference between the item value of designated virtual item 1 (headphones) and the latest virtual resource value (20), and the terminal 102 determines designated virtual item 1 (headphones) as the target virtual item.
[0153] It should be understood that in practical applications, based on different business needs, terminal 102 can also determine each specified virtual item whose item value is less than the latest virtual resource value, then calculate the difference between the item value and the latest virtual resource value, and determine the specified virtual item with the largest difference between the item value and the latest virtual resource value as the target virtual item. Based on the aforementioned example, the largest difference is the difference between the item value of specified virtual item 3 (coupon) and the latest virtual resource value (79). In this case, terminal 102 will determine specified virtual item 3 (coupon) as the target virtual item.
[0154] In this embodiment, the target virtual item is determined by the difference between the item value and the latest virtual resource value, so as to ensure that the difference between the target virtual item and the latest virtual resource value is small. That is, the difference between the item value of the target virtual item and the item value of the first virtual item determined by the probability strategy is also small, further ensuring the reliability and feasibility of the determination of the target virtual item.
[0155] like Figure 14 As shown, in the process of confirming the target virtual item, it is necessary to verify the first virtual item determined based on the probability strategy. First, to ensure that the first virtual item is not over-issued during the entire business operation, the target virtual item is determined by the relationship between the item value of the first virtual item and the latest virtual resource value, as described in the previous embodiment. Second, to ensure the successful issuance of virtual items, in addition to considering the relationship between the item value of the first virtual item and the latest virtual resource value, it is also necessary to further consider the relationship between the inventory quantity of each virtual item and the target quantity of the first virtual item, thereby determining the method for determining the target virtual item. Therefore, the following will describe the method for determining the target virtual item based on the target quantity and inventory quantity of the first virtual item, in addition to considering the item value of the first virtual item and the latest virtual resource value:
[0156] In one embodiment, such as Figure 15 As shown, step 1004, determining the first virtual item based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items, includes:
[0157] Step 1502: Based on the pre-configured probability strategy and the correspondence between virtual items, determine the first virtual item and the target quantity of the first virtual item based on the target probability strategy.
[0158] The first virtual item is a virtual item calculated based on a target probability strategy. The target quantity of the first virtual item is the quantity to be distributed, calculated based on the target probability strategy. Typically, the target quantity is 1, but depending on different business needs and application scenarios, the target quantity can be an integer greater than 1; this is not limited here.
[0159] Specifically, terminal 102 determines the first virtual item and the target quantity of the first virtual item based on the pre-configured probability strategy and the correspondence between virtual items, according to the target probability strategy. For example, please refer again. Figure 9 If the target object's business type is business type A, and the determined target probability strategy is a 100% inventory probability strategy, since the 100% inventory probability strategy corresponds to virtual items (membership cards), then the first virtual item can be determined to be a membership card, and the target quantity of membership cards is 1.
[0160] Secondly, if the target object's business type is business type B, and the determined target probability strategy is a 50% equal probability strategy, since the 50% equal probability strategy corresponds to the virtual item (headphones), then the first virtual item can be determined to be headphones, and the target quantity of headphones is 1.
[0161] In step 1102, determining the target virtual item based on the first virtual item specifically includes:
[0162] Step 1504: Based on the third request identifier, obtain the third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item. The third request identifier is associated with the first request identifier and the second request identifier.
[0163] In the virtual item acquisition system, there is a corresponding virtual item library for this business type, and the actual quantity of the first virtual item currently stored in the virtual item library is the inventory quantity of the first virtual item.
[0164] Specifically, terminal 102 first determines the item value of the first virtual item. If the latest virtual resource value is greater than or equal to the item value of the first virtual item, it further performs a reconciliation operation on the target quantity and inventory quantity of the first virtual item based on the third request identifier. That is, terminal 102 further determines the relationship between the target quantity and the inventory quantity of the first virtual item to determine the third reconciliation result. The third reconciliation result specifically describes the relationship between the target quantity and the inventory quantity of the first virtual item. Therefore, the second reconciliation result can be that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, or that the target quantity of the first virtual item is less than or equal to the inventory quantity of the first virtual item.
[0165] Step 1506: Determine the target virtual item based on the third reconciliation result.
[0166] Specifically, terminal 102 determines the target virtual item based on the relationship between the target quantity and the inventory quantity of the first virtual item as described in the third reconciliation result. That is, if the target quantity of the first virtual item is less than or equal to the inventory quantity, then the first virtual item is identified as the target virtual item. For example, if the latest virtual resource value is 5 and the item value of the first virtual item is 3, then terminal 102 needs to further obtain the target quantity and inventory quantity of the first virtual item. If the target quantity of the first virtual item is 2 and the inventory quantity is 3, then the first virtual item is identified as the target virtual item.
[0167] In this embodiment, based on the relationship between the item value of the first virtual item and the latest virtual resource value, the relationship between the target quantity of the first virtual item and the inventory quantity of the first virtual item is further considered, so as to further ensure the reliability and flexibility of the determination of the target virtual item.
[0168] The third reconciliation result will be described below as follows: the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item. In one embodiment, such as Figure 16 As shown, step 1506, based on the third reconciliation result, determines the target virtual item, including:
[0169] Step 1602: If the third reconciliation result is that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, then determine the target virtual item from the second virtual items whose inventory quantity is greater than the preset quantity.
[0170] The preset quantity is a positive integer greater than or equal to 1.
[0171] Specifically, terminal 102 determines the third reconciliation result as follows: if the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, it further determines each second virtual item whose inventory quantity is greater than the preset quantity, and then determines the target virtual item from each second virtual item.
[0172] Furthermore, terminal 102 can determine the second virtual item with the largest inventory quantity among all second virtual items as the target virtual item. For example, taking the latest virtual resource value of 150, the item value of the first virtual item of 100, and the preset quantity of 1 as an example, the item value of the first virtual item is less than the latest virtual resource value. Further, the target quantity of the first virtual item is determined to be 1, while the inventory quantity of the first virtual item is 0. At this time, the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item. Therefore, it is necessary to determine each second virtual item whose inventory quantity is greater than the preset quantity (1). For example, the inventory quantity of second virtual item 1 (headphones) is 3, and the inventory quantity of second virtual item 2 (mouse) is 4. Based on this, the second virtual item 2 (mouse) with an inventory quantity of 4 is determined as the target virtual item.
[0173] Secondly, the item value of each second virtual item must be less than or equal to the item value of the first virtual item. For example, taking the latest virtual resource value as 150 and the item value of the first virtual item as 100 as an example, when determining the second virtual item, the terminal 102 needs to first select virtual items whose item value is less than or equal to the item value (100) of the first virtual item, and then select virtual items whose inventory quantity is greater than the preset quantity as the second virtual item.
[0174] Furthermore, in practical applications, there may be situations where the target quantity of the first virtual item is greater than 1. In such cases, if the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, the difference between the target quantity and the inventory quantity of the first virtual item can be calculated first. Then, based on the difference, the target virtual item can be determined from each of the second virtual items. That is, the target virtual item can include both the first and second virtual items. For example, if the target quantity of the first virtual item is 3 and the inventory quantity of the first virtual item is 1, the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item. Therefore, it is necessary to determine each of the second virtual items whose inventory quantity is greater than the preset quantity (1). If the inventory quantity of second virtual item 1 (headphones) is 3 and the inventory quantity of second virtual item 2 (mouse) is 4, then two of the second virtual items 2 (mouse) with an inventory quantity of 4 can be selected as one of the virtual items in the target virtual item. Therefore, the target virtual item can include 1 first virtual item and 2 second virtual items 2 (mouse).
[0175] It should be understood that in the foregoing embodiments, after the target virtual item is determined and distributed based on the target virtual item, the inventory quantity of each virtual item will be updated based on the target quantity, which will not be described in detail here.
[0176] In this embodiment, based on the relationship between the item value of the first virtual item and the latest virtual resource value, the relationship between the target quantity of the first virtual item and the inventory quantity of the first virtual item is further considered. The target virtual item is determined based on the inventory quantity of each second virtual item that is greater than the preset quantity, thereby further ensuring the reliability of the target virtual item determination and avoiding the situation where the target virtual item determination fails.
[0177] In one embodiment, such as Figure 17 As shown, in step 1002, obtaining the latest virtual resource value based on the available values specifically includes:
[0178] Step 1702: If the obtainable value is greater than or equal to the preset obtainable value, the obtainable value is converted into a virtual resource value based on the preset conversion ratio between the obtainable value and the virtual resource.
[0179] Specifically, the conversion ratio refers to the ratio between obtainable values and virtual resources. Secondly, as illustrated in the aforementioned embodiments, in specific virtual item acquisition applications, the virtual resource value is the prize pool (funds pool). The prize pool (funds pool) is created by converting the object's obtainable value into the corresponding funds pool for each operation, resulting in an updated funds pool (i.e., the latest virtual resource value).
[0180] Specifically, after obtaining a virtual item acquisition request from a target object, terminal 102 can also obtain the available value for that business type for that target object. Then, based on a preset conversion ratio between the available value and virtual resources, it converts the available value into a converted resource value. For example, if the conversion ratio is 1:3 and the available value is 3, then based on the conversion ratio, the available value can be converted into a converted virtual resource value of 9. If the conversion ratio is 1:10 and the available value is 1, then based on the conversion ratio, the available value can be converted into a converted virtual resource value of 10.
[0181] Step 1704: Obtain the latest virtual resource value based on the converted virtual resource value.
[0182] Specifically, based on the converted virtual resource value obtained in step 1702, terminal 102 updates the virtual resource value corresponding to the target object under this business type to obtain the latest virtual resource value. For example, if the target object is participating in the virtual item acquisition business corresponding to this business type for the first time, the virtual resource value corresponding to the target object under this business type is 0. If the converted virtual resource value is calculated to be 9, then after updating the virtual resource value corresponding to the target object under this business type based on the converted virtual resource value, the latest virtual resource value obtained is 9(0+9).
[0183] Secondly, if the target object participates in the virtual item acquisition business corresponding to this business type multiple times, before this virtual item acquisition request, the virtual resource value of the target object under this business type is 15. If the converted virtual resource value is calculated to be 9, then after updating the virtual resource value of the target object under this business type based on the converted virtual resource value, the latest virtual resource value obtained is 24 (15+9).
[0184] In this embodiment, based on a preset conversion ratio between obtainable values and virtual resources, obtainable values are converted into virtual resource values to ensure accurate conversion between obtainable values and virtual resource values. The virtual resource values of the target object under this business type are updated by converting virtual resource values to obtain the latest virtual resource values, thereby ensuring the accuracy and reliability of the latest virtual resource values.
[0185] In practical applications, the specific process for determining virtual items provided in this application embodiment can be divided into three parts: virtual item acquisition condition verification, virtual resource value verification, and inventory verification. The aforementioned three parts of the process have corresponding request identifiers (i.e., order numbers) for the same virtual item acquisition request. By performing virtual item acquisition condition verification, virtual resource value verification, and inventory verification on each request identifier, the reliability of the business is ensured. Specifically, as follows... Figure 18 As shown:
[0186] Virtual Item Acquisition Condition Verification 1802: Add the converted virtual resource value of the target object to the target object's fund pool for this business type. If the acquireable value is greater than or equal to the preset acquireable value, it means the acquireable value can be converted into a converted virtual resource value, and the latest virtual resource value is obtained based on the converted virtual resource value. At this time, the added virtual resource value is successful, and the first virtual item and its target quantity can be determined, allowing the virtual resource value verification to continue. Conversely, if the acquireable value is less than the preset acquireable value, it means the addition failed, i.e., insufficient virtual item acquisition attempts or unmet virtual item acquisition conditions. The first feedback message is returned, including: no virtual item acquisition qualification, or a virtual item acquisition error has occurred.
[0187] Virtual resource value and inventory verification 1804: Based on the item value of the first virtual item, deduct the item value of the first virtual item from the fund pool. If the latest virtual resource value is greater than or equal to the item value of the first virtual item, it means that the item value of the first virtual item can be deducted from the fund pool, i.e., the virtual resource value verification passes, and then inventory verification is performed. Inventory verification specifically includes: if the target quantity of the first virtual item is less than or equal to the inventory quantity of the first virtual item, then the first virtual item is determined as the target virtual item, and after passing the inventory verification, the delivery process is executed. Secondly, if the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, based on a similar method to the aforementioned embodiment, the target virtual item is determined from each of the second virtual items whose inventory quantity is greater than a preset quantity, and then the delivery process is executed.
[0188] Conversely, if the latest virtual resource value is less than the value of the first virtual item, it means that the value of the first virtual item cannot be deducted from the fund pool. In this case, the specified virtual items whose values are less than the latest virtual resource value can be determined based on the method described in the aforementioned embodiment, and the aforementioned inventory verification can continue. Alternatively, the second feedback information can be returned directly, while the first feedback information includes: no virtual item acquired, etc.
[0189] Shipment 1806: The purpose of shipment is to call the shipment system to send the target virtual item to the target object. If the shipment is successful, the entire process is completed smoothly. Conversely, if it fails, the problem needs to be fixed through subsequent reconciliation mechanisms. It should be noted that in practical applications, since target virtual items are usually asynchronous, the target object cannot immediately receive the item even if the shipment call is successful. Therefore, a status such as "target virtual item being shipped" can be introduced here to allow the target object to be aware of the virtual item acquisition result in advance.
[0190] The specific reconciliation mechanism will be described in detail below:
[0191] In one embodiment, such as Figure 19 As shown, before step 406, which obtains the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier, the method further includes:
[0192] 1902, retrieve the first disconnect request for the virtual item acquisition request, generate a virtual item acquisition retry prompt, and use the virtual item acquisition retry prompt to instruct the target object to re-initiate the virtual item acquisition request.
[0193] Specifically, based on Figure 18It is known that disconnecting the virtual item acquisition request before performing the virtual item acquisition condition verification 1802 will generate a first disconnection request for the virtual item acquisition request. Therefore, the terminal 102 can receive the first disconnection request before obtaining the first reconciliation result between the target object's virtual item acquisition parameters and the preset virtual item acquisition conditions based on the first request identifier. Thus, at this point, there are no changes to the target object or the funds pool, and the failure will not affect the current virtual item acquisition. Based on this, the terminal 102 generates a virtual item acquisition retry prompt, instructing the target object to re-initiate the virtual item acquisition request, thereby enabling the target object to re-initiate the virtual item acquisition request.
[0194] In one embodiment, such as Figure 20 As shown, after obtaining the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions according to the first request identifier in step 406, the method further includes:
[0195] Step 2002: Query the second request identifier.
[0196] In practical applications, if the virtual item acquisition request is disconnected after the virtual item acquisition condition verification 1802, meaning that terminal 102 has completed the step of obtaining the first reconciliation result, and executing the first reconciliation result step generates a second request identifier, then terminal 102 needs to query whether the second request identifier exists. The query result for the second request identifier can be either "the second request identifier was found" or "the second request identifier was not found".
[0197] Step 2004: If the query result of the second request identifier is: no second request identifier is found, re-execute the step of obtaining the first reconciliation result based on the first request identifier.
[0198] Specifically, if terminal 102 determines that the query result for the second request identifier is not found, it indicates that the operation is disconnected between virtual item acquisition condition verification 1802 and virtual resource value and inventory verification 1804. That is, after completing step 406, terminal 102 disconnects from the specific steps in step 1004 where it obtains the second reconciliation result between the first virtual item and the latest virtual resource value based on the second request identifier. At this point, to ensure the smooth progress of the virtual item determination process, the step in step 1004 where it obtains the first reconciliation result based on the first request identifier will be re-executed. That is, the steps from virtual resource value and inventory verification 1804 to delivery 1806 will be re-executed until all processes are completed.
[0199] In one embodiment, such as Figure 21As shown, in step 1004, after determining the target virtual item of the target object based on the target probability strategy, the method further includes:
[0200] Step 2102: Query the item distribution identifier corresponding to the target virtual item. The item distribution identifier is generated after the target virtual item is successfully distributed to the target object.
[0201] Specifically, since the target virtual item is a virtual item issued to a target object, after determining the target virtual item, terminal 102 needs to successfully issue the target virtual item to the target object, and then generate an item issuance identifier corresponding to the target virtual item. Based on this, terminal 102, in order to... Figure 18 The delivery process (1806) requires verification and querying the item distribution identifier corresponding to the target virtual item. The query result for the item distribution identifier can be either "item distribution identifier found" or "item distribution identifier not found".
[0202] Step 2104: If the query result for the item distribution identifier is: no item distribution identifier found, re-distribute the target virtual item to the target object.
[0203] Specifically, if the terminal 102 determines that the query result of the item distribution identifier is: if the item distribution identifier is not found, the target virtual item can be re-distributed to the target object to ensure the smooth distribution of the target virtual item.
[0204] It should be understood that in practical applications, if the virtual resource value and the request identifier executed by inventory verification 1904 can be found, and the result is failure, then the reconciliation process will also be returned as complete. This will not be elaborated on in detail here.
[0205] pass Figures 19 to 21 The reconciliation process described in the embodiments can guarantee the atomicity of virtual item determination.
[0206] The following will detail the complete process of determining virtual items, such as... Figure 22 As shown, this method is applied to Figure 1 Taking terminal 102 as an example, the explanation includes the following steps:
[0207] Step 2201: Obtain the virtual item acquisition request of the target object.
[0208] The virtual item acquisition request is a request initiated by the target object to participate in the virtual item acquisition service. The service type refers to the type of virtual item acquisition service the target object is participating in. Different service types have different available virtual items, and different service types have different information regarding the focus of attention. Secondly, the first request identifier is the request identifier generated when the virtual item acquisition request is generated. Object information includes, but is not limited to, the device information used by the target object, the target object's identity information, the target object's behavioral information, and the target object's characteristic information. The aforementioned behavioral information may include whether the target object has participated in the service for the [number]th time, and the aforementioned identity information may include sensitive or illegitimate objects.
[0209] Specifically, when the target object wishes to acquire virtual items, it can perform corresponding operations on terminal 102 to generate a virtual item acquisition request for the virtual item acquisition service. Therefore, the virtual item acquisition request carries the service type corresponding to the virtual item acquisition service, the first request identifier, and the object information corresponding to the target object.
[0210] Step 2202: Based on the business type and object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request.
[0211] The probability strategy describes the probability of acquiring different virtual items. The correspondence between business type, object type, and probability strategy is as follows: For each business type, a corresponding probability strategy identifier is pre-configured; then, for different object types, the probability strategy indicated by the corresponding probability strategy identifier is configured.
[0212] Specifically, terminal 102 determines the probability strategies configured for a given service type based on the pre-configured correspondence between service types and probability strategies. Then, terminal 102 determines the target object type of the target object based on object information, and determines the target probability strategy corresponding to that target object type based on the pre-configured correspondence between object types and probability strategies, thereby obtaining the target probability strategy that matches the virtual item acquisition request.
[0213] Step 2203: Obtain the first disconnection request for the virtual item acquisition request and generate a virtual item acquisition retry prompt.
[0214] Specifically, based on Figure 18It is known that disconnecting the virtual item acquisition request before performing the virtual item acquisition condition verification 1802 will generate a first disconnection request for the virtual item acquisition request. Therefore, the terminal 102 can receive the first disconnection request before obtaining the first reconciliation result between the target object's virtual item acquisition parameters and the preset virtual item acquisition conditions based on the first request identifier. Thus, at this point, there are no changes to the target object or the funds pool, and the failure will not affect the current virtual item acquisition. Based on this, the terminal 102 generates a virtual item acquisition retry prompt, instructing the target object to re-initiate the virtual item acquisition request, thereby enabling the target object to re-initiate the virtual item acquisition request.
[0215] Step 2204: Based on the first request identifier, obtain the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions.
[0216] The virtual item acquisition parameters include the number of times one can participate in the virtual item acquisition service, or the eligibility to acquire virtual items such as points. Secondly, the preset virtual item acquisition conditions are the criteria used to determine whether a target can participate in the virtual item acquisition service. Furthermore, the target virtual item can be a virtual electronic card or a virtual state of a physical item, such as the virtual state of a mobile phone or headphones. Specifically, the virtual item acquisition parameters include the acquireable value; the preset virtual item acquisition conditions include the preset acquireable value.
[0217] Specifically, after obtaining the virtual item acquisition request from the target object, terminal 102 can also obtain the virtual item acquisition parameters for this business type. Based on this, terminal 102 further determines the first request identifier carried in the virtual item acquisition request, and then performs a reconciliation operation between the target object's virtual item acquisition parameters and the preset virtual item acquisition conditions based on the first request identifier. That is, terminal 102 specifically determines whether the virtual item acquisition parameters meet the preset virtual item acquisition conditions, thereby obtaining a first reconciliation result between the target object's virtual item acquisition parameters and the preset virtual item acquisition conditions. The aforementioned first reconciliation result is either that the virtual item acquisition parameters meet the preset virtual item acquisition conditions, or that the virtual item acquisition parameters do not meet the preset virtual item acquisition conditions.
[0218] Step 2205, the first reconciliation result is as follows: when the obtainable value is greater than or equal to the preset obtainable value, the obtainable value is converted into a converted virtual resource value based on the preset conversion ratio between the obtainable value and the virtual resource.
[0219] Specifically, the conversion ratio refers to the ratio between obtainable numerical values and virtual resources.
[0220] Specifically, after obtaining the virtual item acquisition request of the target object, the terminal 102 can also obtain the acquireable value of the target object for this business type. If the terminal 102 determines that the acquireable value is greater than or equal to the preset acquireable value in the first reconciliation result, it means that the acquireable value of the target object can support the deduction of the preset acquireable value, that is, it is qualified to participate in this virtual item acquisition business. Based on the preset conversion ratio between the acquireable value and the virtual resources, the acquireable value is converted into a conversion resource value.
[0221] Step 2206: Obtain the latest virtual resource value based on the converted virtual resource value.
[0222] Specifically, based on the obtained converted virtual resource value, terminal 102 updates the virtual resource value corresponding to the target object under the service type to obtain the latest virtual resource value.
[0223] Step 2207: Based on the pre-configured probability strategy and the correspondence between virtual items, determine the first virtual item and the target quantity of the first virtual item based on the target probability strategy.
[0224] The first virtual item is a virtual item calculated based on a target probability strategy. The target quantity of the first virtual item is the quantity to be distributed, calculated based on the target probability strategy.
[0225] Specifically, the terminal 102 determines the first virtual item and the target quantity of the first virtual item based on the target probability strategy and the correspondence between the pre-configured probability strategy and the virtual item.
[0226] Step 2208: Query the second request identifier.
[0227] In practical applications, if the virtual item acquisition request is disconnected after the virtual item acquisition condition verification 1802, meaning that terminal 102 has completed the step of obtaining the first reconciliation result, and executing the first reconciliation result step generates a second request identifier, then terminal 102 needs to query whether the second request identifier exists. The query result for the second request identifier can be either "the second request identifier was found" or "the second request identifier was not found".
[0228] Step 2209: If the query result of the second request identifier is: no second request identifier is found, re-execute the step of obtaining the first reconciliation result based on the first request identifier.
[0229] Specifically, if terminal 102 determines that the query result for the second request identifier is not found, it indicates that the operation has been interrupted between virtual item acquisition condition verification 1802 and virtual resource value and inventory verification 1804. At this point, to ensure the smooth progress of the virtual item determination process, the step of obtaining the first reconciliation result based on the first request identifier will be re-executed. That is, the steps from virtual resource value and inventory verification 1804 to delivery 1806 will be re-executed until all processes are completed.
[0230] Step 2210: Based on the second request identifier, obtain the second reconciliation result between the first virtual item and the latest virtual resource value, wherein the second request identifier is associated with the first request identifier.
[0231] The first virtual item is a virtual item calculated based on a target probability strategy. Secondly, the second request identifier is associated with the first request identifier. The second request identifier can be the same as the first request identifier, or it can be obtained based on the first request identifier through a preset association rule and be similar to the first request identifier. The second request identifier can include, but is not limited to, order numbers and request numbers.
[0232] Specifically, terminal 102 determines the first request identifier carried in the virtual item acquisition request, generates a second request identifier with an associated relationship based on the first request identifier, and then performs a reconciliation operation on the first virtual item and the latest virtual resource value based on the second request identifier. Specifically, terminal 102 needs to further determine the item value of the first virtual item and determine the second reconciliation result based on the size relationship between the item value of the first virtual item and the latest virtual resource value. That is, the second reconciliation result specifically describes the size relationship between the item value of the first virtual item and the latest virtual resource value. Therefore, the second reconciliation result can be that the latest virtual resource value is greater than or equal to the item value of the first virtual item, or the second reconciliation result can be that the latest virtual resource value is less than the item value of the first virtual item.
[0233] Step 2211: If the second reconciliation result is that the latest virtual resource value is greater than or equal to the item value of the first virtual item, then according to the third request identifier, obtain the third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item.
[0234] Specifically, terminal 102 first determines the value of the first virtual item. If the second reconciliation result shows that the latest virtual resource value is greater than or equal to the value of the first virtual item, then based on the third request identifier, it obtains a third reconciliation result between the target quantity and the inventory quantity of the first virtual item. If the third reconciliation result specifically describes the relationship between the target quantity and the inventory quantity of the first virtual item, terminal 102 determines the target virtual item. That is, if the third reconciliation result shows that the target quantity of the first virtual item is less than or equal to the inventory quantity of the first virtual item, then the first virtual item is determined as the target virtual item.
[0235] Step 2212: If the third reconciliation result is that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, then determine the target virtual item from the second virtual items whose inventory quantity is greater than the preset quantity.
[0236] The preset quantity is a positive integer greater than or equal to 1.
[0237] Specifically, terminal 102 determines the third reconciliation result as follows: if the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, it further identifies each second virtual item whose inventory quantity is greater than a preset quantity, and then determines the target virtual item from each second virtual item. Furthermore, terminal 102 can determine the second virtual item with the largest inventory quantity among all second virtual items as the target virtual item. Secondly, the item value of each second virtual item must be less than or equal to the item value of the first virtual item.
[0238] Step 2213: If the second reconciliation result is that the latest virtual resource value is less than the item value of the first virtual item, then determine the target virtual item from the specified virtual items whose item value is less than the latest virtual resource value.
[0239] Specifically, terminal 102 determines the item value of the first virtual item, and if the second reconciliation result shows that the latest virtual resource value is greater than or less than the item value of the first virtual item, it further determines each specified virtual item whose item value is less than the latest virtual resource value, and then determines the target virtual item from the aforementioned specified virtual items.
[0240] Step 2214: Query the item distribution identifier corresponding to the target virtual item.
[0241] Specifically, since the target virtual item is a virtual item issued to a target object, after determining the target virtual item, terminal 102 needs to successfully issue the target virtual item to the target object, and then generate an item issuance identifier corresponding to the target virtual item. Based on this, terminal 102, in order to... Figure 18The delivery process (1806) requires verification and querying the item distribution identifier corresponding to the target virtual item. The query result for the item distribution identifier can be either "item distribution identifier found" or "item distribution identifier not found".
[0242] Step 2215: If the query result for the item distribution identifier is: no item distribution identifier found, re-distribute the target virtual item to the target object.
[0243] Specifically, if the terminal 102 determines that the query result of the item distribution identifier is: if the item distribution identifier is not found, the target virtual item can be re-distributed to the target object to ensure the smooth distribution of the target virtual item.
[0244] The specific implementation methods of steps 2201 to 2215 are similar to those of the aforementioned embodiments, and will not be repeated here.
[0245] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0246] Based on the same inventive concept, this application also provides a virtual item determination device for implementing the virtual item determination method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the virtual item determination device provided below can be found in the limitations of the virtual item determination method described above, and will not be repeated here.
[0247] In one embodiment, such as Figure 23 As shown, a virtual item determination device is provided, including: an acquisition module 2302, a strategy determination module 2304, a reconciliation result acquisition module 2306, and a virtual item determination module 2308, wherein:
[0248] The acquisition module 2302 is used to acquire a virtual item acquisition request of a target object, wherein the virtual item acquisition request carries a business type, a first request identifier, and object information of the target object;
[0249] The strategy determination module 2304 is used to obtain a target probability strategy that matches the virtual item acquisition request based on the business type and the object information, as well as the pre-configured correspondence between business type, object type and probability strategy.
[0250] The reconciliation result acquisition module 2306 is used to acquire a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier;
[0251] The virtual item determination module 2308 is used when the first reconciliation result is: the virtual item acquisition parameters of the target object meet the preset virtual item acquisition conditions, and the target virtual item of the target object is determined based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items, wherein the target virtual item is a virtual item issued to the target object.
[0252] In one embodiment, the virtual item acquisition parameter includes an acquireable value; the preset virtual item acquisition condition includes a preset acquisition value.
[0253] The virtual item determination module 2308 is specifically used for the first reconciliation result as follows: when the obtainable value is greater than or equal to the preset obtainable value, the latest virtual resource value is obtained based on the obtainable value; and according to the pre-configured probability strategy and the correspondence between virtual items, the first virtual item is determined based on the target probability strategy; and according to the second request identifier, the second reconciliation result between the first virtual item and the latest virtual resource value is obtained, wherein the second request identifier is associated with the first request identifier; and the target virtual item is determined based on the second reconciliation result.
[0254] In one embodiment, the virtual item determination module 2308 is specifically used to determine the target virtual item based on the first virtual item if the second reconciliation result is that the latest virtual resource value is greater than or equal to the item value of the first virtual item.
[0255] In one embodiment, the virtual item determination module 2308 is specifically used to determine the target virtual item from among the specified virtual items whose item value is less than the latest virtual resource value if the second reconciliation result is that the latest virtual resource value is less than the item value of the first virtual item.
[0256] In one embodiment, the virtual item determination module 2308 is specifically used to determine the specified virtual item with the smallest difference between its item value and the latest virtual resource value as the target virtual item among all specified virtual items whose item value is less than the latest virtual resource value.
[0257] In one embodiment, the virtual item determination module 2308 is specifically used to determine a first virtual item and a target quantity of the first virtual item based on a target probability strategy according to a pre-configured probability strategy and the correspondence between virtual items; and to obtain a third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item according to a third request identifier, wherein the third request identifier is associated with the first request identifier and the second request identifier; and to determine the target virtual item based on the third reconciliation result.
[0258] In one embodiment, the virtual item determination module 2308 is specifically used to determine the target virtual item from each of the second virtual items whose inventory quantity is greater than a preset quantity if the third reconciliation result is that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item.
[0259] In one embodiment, the virtual item determination module 2308 is specifically used to convert the obtainable value into a converted virtual resource value based on a preset conversion ratio between the obtainable value and the virtual resource; and to obtain the latest virtual resource value based on the converted virtual resource value.
[0260] In one embodiment, the acquisition module 2302 is further configured to acquire a first disconnection request for the virtual item acquisition request and generate a virtual item acquisition retry prompt before the reconciliation result acquisition module 2306 acquires the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions according to the first request identifier. The virtual item acquisition retry prompt is used to instruct the target object to re-initiate the virtual item acquisition request.
[0261] In one embodiment, the acquisition module 2302 is further configured to query a second request identifier after the reconciliation result acquisition module 2306 acquires the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier; if the query result of the second request identifier is: the second request identifier is not found, the step of acquiring the first reconciliation result based on the first request identifier is re-executed.
[0262] In one embodiment, the virtual item determination device further includes a virtual item dispensing module 2310;
[0263] The virtual item distribution module 2310 is used to query the item distribution identifier corresponding to the target virtual item after the virtual item determination module 2308 determines the target virtual item of the target object based on the target probability strategy. The item distribution identifier is generated after the target virtual item is successfully distributed to the target object. If the query result of the item distribution identifier is: no item distribution identifier is found, the target virtual item is re-distributed to the target object.
[0264] Each module in the aforementioned virtual item determination device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0265] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 24 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores the correspondence between business types, object types, and probabilistic strategies, as well as virtual resource values. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a method for determining virtual items.
[0266] Those skilled in the art will understand that Figure 24 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0267] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0268] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0269] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0270] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0271] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0272] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0273] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for determining virtual items, characterized in that, The method includes: Obtain a virtual item acquisition request from a target object, wherein the virtual item acquisition request carries a business type, a first request identifier, and object information of the target object; Based on the business type and the object information, as well as the pre-configured correspondence between business type, object type and probability strategy, obtain the target probability strategy that matches the virtual item acquisition request; Based on the first request identifier, obtain a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions; the virtual item acquisition parameters include an acquireable value; the preset virtual item acquisition conditions include a preset acquisition value; the acquireable value is the maximum value for the target object to perform virtual item acquisition operations; The first reconciliation result is as follows: if the obtainable value is greater than or equal to the preset obtainable value, the obtainable value is converted into a converted virtual resource value based on the preset conversion ratio between the obtainable value and the virtual resource; and the latest virtual resource value is obtained based on the converted virtual resource value. Based on the pre-configured probability strategy and the correspondence between virtual items, a first virtual item is determined based on the target probability strategy, and a second reconciliation result is determined based on the second request identifier and the size relationship between the item value of the first virtual item and the latest virtual resource value. The second request identifier is associated with the first request identifier. The target virtual item is determined based on the second reconciliation result.
2. The method according to claim 1, characterized in that, The determination of the target virtual item based on the second reconciliation result includes: If the second reconciliation result is that the latest virtual resource value is greater than or equal to the item value of the first virtual item, then the target virtual item is determined based on the first virtual item.
3. The method according to claim 1, characterized in that, The determination of the target virtual item based on the second reconciliation result includes: If the second reconciliation result is that the latest virtual resource value is less than the item value of the first virtual item, then the target virtual item is determined from each of the specified virtual items whose item value is less than the latest virtual resource value.
4. The method according to claim 3, characterized in that, Determining the target virtual item from among the specified virtual items whose item value is less than the latest virtual resource value includes: Among the specified virtual items whose item value is less than the latest virtual resource value, the specified virtual item with the smallest difference between its item value and the latest virtual resource value is determined as the target virtual item.
5. The method according to claim 2, characterized in that: The step of determining the first virtual item based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items includes: Based on the pre-configured probability strategy and the correspondence between virtual items, the first virtual item and the target quantity of the first virtual item are determined based on the target probability strategy. Determining the target virtual item based on the first virtual item includes: Based on the third request identifier, obtain a third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item, wherein the third request identifier is associated with the first request identifier and the second request identifier; The target virtual item is determined based on the third reconciliation result.
6. The method according to claim 5, characterized in that, The determination of the target virtual item based on the third reconciliation result includes: If the third reconciliation result is that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item, then the target virtual item is determined from each of the second virtual items whose inventory quantity is greater than the preset quantity.
7. The method according to claim 1, characterized in that, Before obtaining the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier, the method further includes: Obtain a first disconnection request in response to the virtual item acquisition request, generate a virtual item acquisition retry prompt, and instruct the target object to re-initiate the virtual item acquisition request.
8. The method according to claim 1, characterized in that, After obtaining the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier, the method further includes: Query the second request identifier; If the query result for the second request identifier is: the second request identifier is not found, then the step of obtaining the first reconciliation result based on the first request identifier is re-executed.
9. The method according to claim 1, characterized in that, After determining the target virtual item of the target object based on the target probability strategy, the method further includes: Query the item distribution identifier corresponding to the target virtual item. The item distribution identifier is generated after the target virtual item is successfully distributed to the target object. If the query result for the item distribution identifier is: the item distribution identifier is not found, the target virtual item is re-distributed to the target object.
10. A virtual item determination device, characterized in that, The device includes: The acquisition module is used to acquire virtual item acquisition requests from a target object. The virtual item acquisition request carries a business type, a first request identifier, and object information of the target object. The strategy determination module is used to obtain a target probability strategy that matches the virtual item acquisition request based on the business type and the object information, as well as the pre-configured correspondence between business type, object type and probability strategy. The reconciliation result acquisition module is used to acquire a first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier; the virtual item acquisition parameters include an acquireable value; the preset virtual item acquisition conditions include a preset acquisition value; the acquireable value is the maximum value of the target object's virtual item acquisition operation; The virtual item determination module is used for the following specific steps for the first reconciliation result: the obtainable value is greater than or equal to the preset obtainable value; the latest virtual resource value is obtained based on the obtainable value; a first virtual item is determined based on the target probability strategy according to a pre-configured probability strategy and the correspondence between virtual items; and a second reconciliation result is determined based on the relationship between the item value of the first virtual item and the latest virtual resource value according to a second request identifier, wherein the second request identifier is associated with the first request identifier; and the target virtual item is determined based on the second reconciliation result.
11. The apparatus according to claim 10, characterized in that, The virtual item determination module is specifically used to determine the target virtual item based on the first virtual item if the second reconciliation result is that the latest virtual resource value is greater than or equal to the item value of the first virtual item.
12. The apparatus according to claim 10, characterized in that, The virtual item determination module is specifically used to determine the target virtual item from among the specified virtual items whose item value is less than the latest virtual resource value if the second reconciliation result is that the latest virtual resource value is less than the item value of the first virtual item.
13. The apparatus according to claim 12, characterized in that, The virtual item determination module is specifically used to determine the target virtual item as the specified virtual item whose item value is the smallest difference between its item value and the latest virtual resource value among all specified virtual items whose item value is less than the latest virtual resource value.
14. The apparatus according to claim 11, characterized in that, The virtual item determination module is specifically used to determine a first virtual item and a target quantity of the first virtual item based on the target probability strategy according to the pre-configured probability strategy and the correspondence between virtual items; and to obtain a third reconciliation result between the target quantity of the first virtual item and the inventory quantity of the first virtual item according to the third request identifier, wherein the third request identifier is associated with the first request identifier and the second request identifier. The target virtual item is determined based on the third reconciliation result.
15. The apparatus according to claim 14, characterized in that, The virtual item determination module is specifically used to determine the target virtual item from each of the second virtual items whose inventory quantity is greater than a preset quantity if the third reconciliation result is that the target quantity of the first virtual item is greater than the inventory quantity of the first virtual item.
16. The apparatus according to claim 10, characterized in that, The acquisition module is further configured to acquire a first disconnection request for the virtual item acquisition request and generate a virtual item acquisition retry prompt before the reconciliation result acquisition module acquires the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier. The virtual item acquisition retry prompt is used to instruct the target object to re-initiate the virtual item acquisition request.
17. The apparatus according to claim 10, characterized in that, The acquisition module is further configured to query the second request identifier after the reconciliation result acquisition module acquires the first reconciliation result between the virtual item acquisition parameters of the target object and the preset virtual item acquisition conditions based on the first request identifier; If the query result for the second request identifier is: the second request identifier is not found, then the step of obtaining the first reconciliation result based on the first request identifier is re-executed.
18. The apparatus according to claim 10, characterized in that, The virtual item determination device also includes a virtual item distribution module; The virtual item distribution module is used to query the item distribution identifier corresponding to the target virtual item after the virtual item determination module determines the target virtual item of the target object based on the target probability strategy. The item distribution identifier is generated after the target virtual item is successfully distributed to the target object. If the query result of the item distribution identifier is that the item distribution identifier is not found, the target virtual item is re-distributed to the target object.
19. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
21. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Lottery management method and device, server and storage medium
CN111681045A