Method, device, system, apparatus and storage medium for issuing virtual resources

By displaying resource distribution controls in the product application and automatically binding accounts, the process of distributing virtual resources is simplified, solving the problem of cumbersome operations when switching between different applications, and improving distribution efficiency and user experience.

CN123140946APending Publication Date: 2026-11-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510652758.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, users need to switch between product applications and virtual environment applications when distributing virtual resources, which results in cumbersome operations, low efficiency, and a poor user experience.

Method used

By displaying resource distribution controls in the product application, responding to user triggers and automatically binding accounts, the distribution results are displayed directly in the product application, simplifying the user operation process and realizing the automatic distribution of virtual resources.

Benefits of technology

It improved the efficiency of virtual resource distribution, reduced application switching steps, and enhanced user interaction experience and human-computer interaction rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140946A_ABST
    Figure CN123140946A_ABST
Patent Text Reader

Abstract

The application discloses a method, device, system, equipment and storage medium for issuing virtual resources, and belongs to the technical field of computers. The method comprises the following steps: in response to an operation of participating in a resource issuing activity based on a commodity order, displaying a resource issuing control in a first application, the resource issuing control being used for issuing virtual resources used in a virtual environment application, the first application and the virtual environment application being different applications; in the case that a triggering operation for the resource issuing control is detected and a first account has been bound to a second account, acquiring a resource issuing result, the first account being an account generating the commodity order, and the second account being an account of the virtual environment application; and displaying prompt information of the resource issuing result in the first application. The method, device, system, equipment and storage medium have high efficiency in issuing virtual resources, and are beneficial to improving the human-computer interaction rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, system, device, and storage medium for distributing virtual resources. Background Technology

[0002] With the development of computer technology, more and more users will interact with virtual environment applications. One way users interact with virtual environment applications is by using virtual resources within the application; these virtual resources refer to the virtual resources issued by the server to the virtual environment application account.

[0003] In some scenarios, virtual environment applications can be co-operated with e-commerce platforms, enabling servers to distribute virtual resources to the virtual environment application accounts of users who purchase goods on the e-commerce platform.

[0004] In related technologies, the process of a server issuing virtual resources to a virtual environment application account includes: after purchasing goods, the user obtains a virtual resource redemption code through a product application or a QR code scanning application; then, the user opens the virtual environment application logged in with the virtual environment application account, enters the virtual resource redemption code in the redemption portal of the virtual environment application, the terminal sends a redemption request to the server, and the server issues the virtual resources corresponding to the virtual resource redemption code to the virtual environment application account based on the redemption request.

[0005] In the above method, users need to first open the product application or scan application, then switch to the virtual environment application, and enter the virtual resource redemption code in the redemption portal of the virtual environment application before the server can issue virtual resources to the virtual environment application account. The user's operation is relatively cumbersome and inconvenient, resulting in low efficiency in issuing virtual resources. Summary of the Invention

[0006] This application provides a method, apparatus, system, device, and storage medium for distributing virtual resources, which can be used to improve the efficiency of distributing virtual resources. The technical solution is as follows:

[0007] On one hand, embodiments of this application provide a method for distributing virtual resources, the method comprising:

[0008] In response to an operation involving resource distribution based on a product order, a resource distribution control is displayed in a first application. The resource distribution control is used to distribute virtual resources used in a virtual environment application. The first application and the virtual environment application are different applications.

[0009] If a trigger operation is detected for the resource distribution control and the first account is bound to the second account, the resource distribution result is obtained. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0010] The first application displays a notification message indicating the resource allocation result.

[0011] This application embodiment also provides a method for distributing virtual resources, the method comprising:

[0012] The terminal receives a first resource allocation request. The first resource allocation request is sent by the terminal when it detects a trigger operation on the resource allocation control displayed in the first application and the first account is bound to the second account. The first account is the account that generates the product order, and the second account is the account of the virtual environment application. The resource allocation control is used to allocate virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0013] The first resource allocation request is validated, and the validation result is obtained.

[0014] If the verification result is successful, the resource distribution result is obtained. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account.

[0015] The resource allocation result is sent to the terminal.

[0016] On the other hand, embodiments of this application also provide an apparatus for distributing virtual resources, the apparatus comprising:

[0017] The display module is used to respond to the operation of participating in resource distribution activities based on product orders and display resource distribution controls in a first application. The resource distribution controls are used to distribute virtual resources used in a virtual environment application. The first application and the virtual environment application are different applications.

[0018] The acquisition module is used to acquire the resource allocation result when a trigger operation for the resource allocation control is detected and the first account is bound to the second account. The resource allocation result is used to indicate the result of allocating the virtual resource corresponding to the resource allocation control to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0019] The display module is also used to display a prompt message about the resource allocation result in the first application.

[0020] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: triggering the jump entry in the order page of the product order.

[0021] In one possible implementation, the operation of participating in resource distribution activities based on commodity orders includes: an operation to identify the activity information carried by the associated items of the commodity order.

[0022] In one possible implementation, the activity information includes an image code generated based on an activity link of the resource distribution activity; or, the activity information includes a communication tag generated based on an activity link of the resource distribution activity.

[0023] In one possible implementation, the associated items include at least one of the following: a paper voucher for the product order, packaging of the product corresponding to the product order, or a complimentary item corresponding to the product order.

[0024] In one possible implementation, the display module is further configured to send a page display request to the server, the page display request carrying the account identifier of the first account, the page display request being used by the server to return display resources for the resource distribution page corresponding to the first account; based on the display resources, the resource distribution page is displayed in the first application, the resource distribution page displaying the resource distribution control.

[0025] In one possible implementation, the display module is further configured to display an account binding page, which is used to indicate the input of the account identifier of the second account; obtain the account identifier of the second account input through the account binding page; and display a prompt that the first account and the second account have been successfully bound.

[0026] In one possible implementation, if the first account is not bound to the second account, the display module is further configured to display an account binding entry in the first application; and in response to a triggering operation of the account binding entry, to display the account binding page.

[0027] In one possible implementation, the display module is further configured to display a resource viewing control in the first application; and in response to a triggering operation of the resource viewing control, to display a resource identifier of the virtual resource that has been successfully issued to the second account in the first application.

[0028] In one possible implementation, the display module is further configured to display at least one of an activity viewing entry or a version viewing entry in the first application; wherein the activity viewing entry is used to view activities in the virtual environment application, and the version viewing entry is used to view version information of the virtual environment application.

[0029] In one possible implementation, the product order is an order generated through a product application, and the first account is an account of the product application; or,

[0030] The product order is an order generated offline and paid for using an electronic payment account, where the first account is the account corresponding to the electronic payment account; or,

[0031] The product order is an order generated offline and paid for using physical currency, and the first account is the generated account.

[0032] This application embodiment also provides an apparatus for distributing virtual resources, the apparatus comprising:

[0033] The receiving module is used to receive a first resource distribution request. The first resource distribution request is sent by the terminal when it detects a trigger operation on the resource distribution control displayed in the first application and the first account is bound to the second account. The first account is the account that generates the product order, and the second account is the account of the virtual environment application. The resource distribution control is used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0034] The verification module is used to perform verification on the first resource issuance request and obtain the verification result;

[0035] The acquisition module is used to acquire the resource distribution result when the verification result is successful. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account.

[0036] The sending module is used to send the resource allocation result to the terminal.

[0037] In one possible implementation, the acquisition module is configured to send a second resource allocation request to a first backend server, the second resource allocation request being used by the first backend server to allocate the virtual resources to the second account; and to acquire the resource allocation result based on the allocation response returned by the first backend server.

[0038] In one possible implementation, the verification module is configured to send a validity verification request to a second backend server, the validity verification request being used by the second backend server to verify the validity of the product order; and to obtain the verification result based on the validity verification response returned by the second backend server.

[0039] In one possible implementation, the verification result is "verification passed" if the validity verification response indicates that the product order is valid and the product order meets the constraints; wherein, the product order meets the constraints, including at least one of the following: the time interval between the current time and the time the product order was generated is not greater than an interval threshold; the activity participation qualification of the product order has not been used.

[0040] In one possible implementation, the receiving module is further configured to receive a page display request sent by the terminal, the page display request carrying the account identifier of the first account;

[0041] The acquisition module is further configured to acquire the display resources of the resource distribution page corresponding to the first account based on the page display request;

[0042] The sending module is also used to send the display resources to the terminal.

[0043] On the other hand, embodiments of this application also provide a system for distributing virtual resources, the system including a terminal and a server;

[0044] The terminal is configured to respond to an operation involving resource distribution based on a product order, displaying a resource distribution control in a first application. The resource distribution control is used to distribute virtual resources used in a virtual environment application, wherein the first application and the virtual environment application are different applications. Upon detecting a trigger operation on the resource distribution control and the first account being bound to a second account, the terminal sends a first resource distribution request to the server. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0045] The server is configured to receive the first resource allocation request; perform verification on the first resource allocation request and obtain a verification result; if the verification result is successful, obtain a resource allocation result, wherein the resource allocation result is used to indicate the result of allocating the virtual resource corresponding to the resource allocation control to the second account; and send the resource allocation result to the terminal.

[0046] The terminal is also used to obtain the resource allocation result and display a prompt message about the resource allocation result in the first application.

[0047] On the other hand, embodiments of this application also provide a computer device, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the computer device to implement any of the above-described methods for distributing virtual resources.

[0048] On the other hand, embodiments of this application also provide a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to enable a computer to implement any of the above-described methods for distributing virtual resources.

[0049] On the other hand, embodiments of this application also provide a computer program or computer program product, the computer program or computer program product including computer instructions, the computer instructions being loaded and executed by a processor to enable a computer to implement any of the above-described methods for distributing virtual resources.

[0050] The technical solution provided in this application has at least the following beneficial effects:

[0051] The technical solution provided in this application embodiment allows users who purchase goods to participate in resource distribution activities simply by triggering the resource distribution control displayed in the first application. This enables the server to distribute virtual resources to the second account. The user operation required to distribute virtual resources to the second account is relatively simple, which helps improve the efficiency of distributing virtual resources to the second account, increases the interaction interest of users who purchase goods, and thus improves the human-computer interaction rate. In addition, the process of distributing virtual resources to the second account does not require switching from the first application to the virtual environment application, reducing application switching and improving the smoothness of terminal operation. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a schematic diagram of a computer system provided in an embodiment of this application;

[0054] Figure 2 This is a flowchart illustrating a method for distributing virtual resources according to an embodiment of this application;

[0055] Figure 3 This is a schematic diagram of an order page for a product order provided in an embodiment of this application;

[0056] Figure 4 This is a schematic diagram of an associated item carrying an image code provided in an embodiment of this application;

[0057] Figure 5 This is a schematic diagram of a resource distribution page provided in an embodiment of this application;

[0058] Figure 6 This is a schematic diagram of another resource distribution page provided in an embodiment of this application;

[0059] Figure 7 This is a schematic diagram of an account binding page provided in an embodiment of this application;

[0060] Figure 8 This is a schematic diagram of another account binding page provided in an embodiment of this application;

[0061] Figure 9 This is a schematic diagram of another account binding page provided in an embodiment of this application;

[0062] Figure 10 This is a schematic diagram of another account binding page provided in an embodiment of this application;

[0063] Figure 11 This is a flowchart of another method for distributing virtual resources provided in an embodiment of this application;

[0064] Figure 12 This is a flowchart of another method for distributing virtual resources provided in an embodiment of this application;

[0065] Figure 13 This is a flowchart of another method for distributing virtual resources provided in an embodiment of this application;

[0066] Figure 14 This is a schematic diagram of a device for distributing virtual resources provided in an embodiment of this application;

[0067] Figure 15 This is a schematic diagram of another device for distributing virtual resources provided in an embodiment of this application;

[0068] Figure 16 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;

[0069] Figure 17 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0070] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0071] For ease of understanding, the terms used in this application are explained here.

[0072] Account: A user's personal identifier. Accounts have functions such as identifying users, managing user information, and providing personalized services to users.

[0073] An application (APP) is a computer program developed and running on an operating system to accomplish one or more specific tasks. It is a type of software that, through interaction with computer hardware systems and other software, provides users with a variety of functional services. In some embodiments, an application may also be called an application program, client, etc.

[0074] Virtual environment applications: Applications that provide virtual environments. The types of virtual environment applications may include, but are not limited to: VR (Virtual Reality) applications, AR (Augmented Reality) applications, 3D mapping applications, game applications, social applications, interactive entertainment applications, etc. Virtual environment applications can be applications that require downloading and installation, or they can be small programs that depend on a host program to run; this application embodiment does not limit this.

[0075] Virtual environment: A virtual environment is the virtual environment provided by an application when it runs on a terminal. This virtual environment can be a simulation of a real-world environment, a semi-simulated / semi-fictional environment, or a purely fictional environment. A virtual environment can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional.

[0076] Virtual Character: A virtual character refers to a movable object in a virtual environment. This movable object can be at least one of a virtual person, virtual animal, or virtual vehicle. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character is a three-dimensional model created based on animation skeletal technology. Each virtual character has its own shape, volume, and orientation in the three-dimensional virtual environment and occupies a portion of the space within the three-dimensional virtual environment. In some embodiments, a virtual character may also be referred to as a virtual object.

[0077] Product Application: An application specifically designed for users to obtain goods online. This application does not limit the types of goods offered by the product application. For example, the types of goods offered by the product application may include, but are not limited to, clothing, food (e.g., milk tea, desserts), furniture, cosmetics, toys, musical instruments, books, etc. For example, the product application can provide food delivery services. Food delivery services refer to a service model where users place orders, merchants prepare goods based on order information, and delivery personnel deliver the goods to the user's designated location. In some embodiments, the product application may also be called a shopping application, etc. The product application can be an application that needs to be downloaded and installed, or it can be a small program that depends on a host program to run; this application does not limit this.

[0078] Image code scanning applications: Applications that can scan image codes. An image code is a black-and-white geometric image. Image codes use specific encoding algorithms to convert information into binary data that computers can recognize, and present it as a black-and-white geometric pattern. Users scan image codes using image code scanning applications, which then restore the information from the image code to the original data, thus enabling rapid information transmission and retrieval. For example, an image code can be a QR code or a barcode, etc.

[0079] Account Binding: The server provides a mini-program that is launched by the product platform (e.g., a milk tea platform). The product platform account information is passed in. The user selects the virtual environment application (e.g., a game application) account information in the mini-program. The mini-program binds and associates the product platform account information with the virtual environment application account information and stores it in the server's database for subsequent data requests between the two platforms (product platform and virtual environment application platform).

[0080] Mini-programs are applications developed using programming languages ​​and that rely on a host application to run. Mini-programs do not require downloading or installation; they simply load dynamically into the host application to run. Users can find the mini-programs they need through search, scanning, or other methods, and simply open and apply them. They do not consume device memory after use and are closed, making them very convenient. In some embodiments, mini-programs can also be called embedded programs.

[0081] In some scenarios, virtual environment applications can be jointly operated with e-commerce platforms. For example, taking a game as the virtual environment application and a milk tea platform as the e-commerce platform, with the rapid expansion of milk tea shops, there are almost always one or more milk tea shops within a 1-kilometer radius of every public place, and young people also love this type of drink. As another form of entertainment for young people, games also need this kind of traffic, so games will cooperate with various milk tea brands to achieve joint operation between games and milk tea platforms.

[0082] By linking virtual environment applications with e-commerce platforms, servers can distribute virtual resources to the virtual environment application accounts of users who purchase goods on the e-commerce platform. Virtual resources are resources used in virtual environment applications, and the types of virtual resources can include, but are not limited to, virtual coins, virtual equipment, virtual items, and virtual characters.

[0083] For example, taking a virtual environment application as a game, virtual resources can be game resources, and the types of game resources can include, but are not limited to, game coins, game props, game equipment, game characters, etc.

[0084] In some embodiments, game resources may be resources that can be used in the game and are associated with a product platform, thereby improving the joint operation effect between the game and the product platform. For example, associating with a product platform may mean associating with products provided by the product platform, associating with activities held by the product platform, or associating with the platform icon of the product platform, etc.

[0085] For example, taking the association of game resources with products provided by a product platform as an example, game resources may include game props with the same shape as the products provided by the product platform, game characters holding virtual models corresponding to the products provided by the product platform, etc. For example, taking a milk tea platform as an example, game props with the same shape as the products provided by the product platform may be throwing props shaped like milk tea, and game characters holding virtual models corresponding to the products provided by the product platform may be game characters holding virtual models of milk tea.

[0086] For example, when associating game resources with an event held by a product platform, the game resources may include game items marked with promotional information about the event held by the product platform, game characters whose appearance matches the promotional figures of the event held by the product platform, etc. For example, when associating game resources with the platform icon of a product platform, the game resources may include game items marked with the platform icon of the product platform, game equipment, etc.

[0087] In some embodiments, where the game resource is a resource associated with a product platform and usable in the game, using such a game resource in the game can produce specific effects. For example, these specific effects can be used to promote the product platform. For instance, the specific effects could include displaying the product platform's icon, displaying promotional information for events held by the product platform, or displaying lighting effects with colors matching the product platform.

[0088] In other embodiments, game resources may also be unrelated to the e-commerce platform.

[0089] In related technologies, the process of a server issuing virtual resources to a virtual environment application account includes: after purchasing goods, the user obtains a virtual resource redemption code through a product application or a QR code scanning application; then, the user opens the virtual environment application logged in with the virtual environment application account, enters the virtual resource redemption code in the redemption portal of the virtual environment application, the terminal sends a redemption request to the server, and the server issues the virtual resources corresponding to the virtual resource redemption code to the virtual environment application account based on the redemption request.

[0090] In the above method, users need to first open the product application or scan application, then switch to the virtual environment application, and enter the virtual resource redemption code in the redemption portal of the virtual environment application before the server can issue virtual resources to the virtual environment application account. The user's operation is relatively cumbersome and inconvenient, resulting in low efficiency in issuing virtual resources.

[0091] Taking a product platform as a milk tea platform, a virtual environment application as a game, and virtual resources as game resources as an example, the solutions in the relevant technologies are further described.

[0092] The game generates a batch of game resource CDK (Compact Disc Key) numbers in advance and provides them to the milk tea brand. The milk tea brand provides the CDK numbers to users on paper orders or online platforms and explains how to redeem game resources in the game based on the CDK number. Users obtain the CDK number by scanning the QR code on the paper order or through the milk tea platform application. Then, following the prompts, they open the game, find the entry point to redeem game resources, enter the CDK number, and the server issues the game resources to the user's game account.

[0093] This method of distributing game resources to game accounts is cumbersome, resulting in high costs for users, a poor user experience, and potential waste of game resources if the user is not a gamer. Furthermore, since the CDK number is a string of code and has no connection to the game account before redemption, unfamiliar milk tea shop customers may carelessly discard their receipts, leading to the loss of CDK numbers and the creation of a secondary market (e.g., collection or resale by illegal individuals). This allows criminals to acquire large amounts of game resources at no cost, significantly impacting the in-game economy, reducing the balance of game resources, and ultimately negating the purpose of co-operating with the milk tea platform.

[0094] Please refer to Figure 1 The diagram illustrates a computer system provided in an embodiment of this application. The computer system may include a terminal 11 and a server 12.

[0095] For example, terminal 11 can be any electronic product capable of human-computer interaction with a user through one or more methods such as a keyboard, touchpad, touchscreen, remote control, voice interaction, or handwriting device, such as PC (Personal Computer), mobile phone, smartphone, PDA (Personal Digital Assistant), wearable device, PPC (Pocket PC), tablet computer, smart car system, smart TV, smart speaker, in-vehicle terminal, etc. Server 12 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Terminal 11 and server 12 establish a communication connection through wired or wireless network.

[0096] In this embodiment, terminal 11 can trigger the process of distributing virtual resources, and server 12 can provide services for the process of distributing virtual resources. In some embodiments, server 12 is a server set up independently of the first backend server and the second backend server; that is, server 12 can act as an intermediary layer between terminal 11 and the backend servers (the first backend server and / or the second backend server). The first backend server is a server used to provide backend services for virtual environment applications, and the second backend server is a server used to provide backend services for product orders. In some embodiments, server 12 can establish a communication connection with the first backend server via a wired or wireless network, and server 12 can also establish a communication connection with the second backend server via a wired or wireless network.

[0097] For example, terminal 11 implements the process of distributing virtual resources by interacting with server 12, see [link to relevant documentation]. Figure 1 The process includes: in response to the triggering operation of the jump entry 13 on the order page of the product order, the terminal 11 displays the resource distribution control 14 in the product application. The resource distribution control 14 is used to distribute virtual resources used in the virtual environment application. The product application and the virtual environment application are different applications. When the triggering operation for the resource distribution control 14 is detected and the first account is bound to the second account, the terminal 11 sends a first resource distribution request to the server 12. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0098] Server 12 receives a first resource allocation request, verifies the request, and obtains a verification result. If the verification result is successful, it obtains the resource allocation result, which indicates the result of allocating the virtual resource corresponding to the resource allocation control to the second account, and sends the resource allocation result to the terminal. Terminal 11 receives the resource allocation result sent by the server and displays a prompt message 15 of the resource allocation result in the product application.

[0099] Those skilled in the art should understand that the above-described terminal 11 and server 12 are merely examples. Other existing or future terminals or servers that are applicable to this application should also be included within the scope of protection of this application, and are hereby incorporated by reference.

[0100] This application provides a method for distributing virtual resources, which can be applied to the above-mentioned... Figure 1 The computer system shown. Taking the method executed interactively by the terminal and server as an example, such as... Figure 2 As shown, the method for distributing virtual resources provided in this application embodiment may include the following steps 201 to 207.

[0101] In step 201, in response to the operation of participating in resource distribution activities based on product orders, the terminal displays a resource distribution control in the first application. The resource distribution control is used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0102] In this embodiment, the terminal can trigger the process of distributing virtual resources. This embodiment does not limit the type of virtual resources, as long as they can be used in the virtual environment application. The type of virtual resources can be set based on experience, or flexibly adjusted according to the version and operating status of the virtual environment application. In some embodiments, the type of virtual resources may include, but is not limited to, virtual coins, virtual equipment, virtual items, and virtual characters.

[0103] The terminal triggers the process of distributing virtual resources as follows: In response to an operation involving participation in a resource distribution activity based on a product order, the terminal displays a resource distribution control in the first application. A product order can be any order for acquiring goods. Participating in a resource distribution activity based on a product order means participating in the activity on the basis of the product order. For example, the product order qualifies for participation, and participating in the resource distribution activity based on the product order can mean participating in the activity by using the activity participation qualification granted by the product order. A resource distribution activity refers to the activity of distributing virtual resources used in a virtual environment application. This application embodiment does not limit the type of resource distribution activity, as long as it supports the distribution of virtual resources. For example, the resource distribution activity can be flexibly set according to the version and operating status of the virtual environment application.

[0104] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: triggering the jump entry in the order page of the product order.

[0105] In some embodiments, the order page for a product order is a page displayed in a product application associated with the product order. The product application is the application used to generate product orders online. In some embodiments, a product application runs on the terminal, allowing users to select desired products online and generate product orders. The product application can be an application that requires downloading and installation, or a mini-program that relies on a host program to run; this application does not limit this. The product application can be the embodiment of a product platform on the terminal side. The product platform is a platform used to provide products. This application does not limit the types of products provided by the product platform. For example, the types of products provided by the product application can include, but are not limited to, clothing, food, furniture, cosmetics, toys, musical instruments, books, etc. In some embodiments, the product platform can be a milk tea platform, and the products provided by the milk tea platform can include milk tea, desserts, etc.

[0106] The product application can display product information provided by the product platform to users for selection. Product information describes the product; this application embodiment does not limit the content of the product information. Exemplarily, product information may include at least one of the following: product identification information, product name, product image, product feature description, product sales volume, product resource value, product reviews, and product inventory quantity. Users can browse product information in the product application and add products of interest to their shopping cart. Users can also trigger the checkout control corresponding to the shopping cart to generate a product order for the products added to the cart.

[0107] In applications where a product order is generated, the terminal can display the order page within the product application after successful payment. The order page is associated with the product order and allows users to view relevant order information.

[0108] For example, order-related information may include, but is not limited to, at least one of the following: basic order information, product details information, total order price information, address information, and payment information. Basic order information may include at least one of the following: order identifier, order creation time, and order status; product details information may include at least one of the following: product image, product name, unit price, quantity, specifications, and attributes; total order price information may include at least one of the following: total price, discount information, delivery fee, and packaging fee; address information may include delivery address information or self-pickup address information; and payment information may include at least one of the following: payment method, payment time, and payment amount.

[0109] In an exemplary embodiment, a redirect entry can be displayed on the order page of a product order. This redirect entry serves as an entry point for participating in resource distribution activities based on the product order. This application embodiment does not limit the form of the redirect entry; exemplarily, the redirect entry can be a button; exemplarily, the redirect entry can also be a link.

[0110] The display position of the jump entry on the order page can be set based on experience or flexibly adjusted according to the application scenario, and this application embodiment does not limit it in this regard. For example, the display position of the jump entry on the order page can be the lower right corner area of ​​the order page, the middle area of ​​the order page, or the upper left corner area of ​​the order page, etc.

[0111] In some embodiments, first guidance information may also be displayed on the order page. The first guidance information may be displayed in the area surrounding the jump entry. The first guidance information is used to indicate the function of the jump entry in order to guide users to participate in the resource distribution activity by triggering the jump entry.

[0112] For cases where a redirect entry is displayed on the order page, the operation of participating in the resource distribution activity based on the product order includes: triggering the redirect entry on the order page. In other words, in response to the triggering operation of the redirect entry on the order page in the product application, the terminal obtains the operation of participating in the resource distribution activity based on the product order. For example, the triggering operation of the redirect entry may include a single click, double click, or touch operation on the redirect entry.

[0113] For example, the order page for a product order can be like this: Figure 3 As shown, in Figure 3 The order page shown has a button-like jump entry 301 in the lower right corner. In response to the triggering operation of the jump entry 301, the terminal obtains the operation of participating in the resource distribution activity based on the product order.

[0114] The action of participating in resource distribution activities based on product orders can be triggered by a redirect entry on the product order page. This method is highly convenient and improves the efficiency of displaying resource distribution controls, thereby increasing the efficiency of virtual resource distribution. Furthermore, the redirect entry provides a more intuitive guide for users to participate in resource distribution activities, enhancing the user's visual experience and increasing the human-computer interaction rate.

[0115] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: identifying the activity information carried by the associated items of the product order. This operation can also be generated by identifying the activity information carried by the associated items of the product order, making it more convenient and improving the efficiency of distributing virtual resources.

[0116] The associated items of a product order refer to physical items related to the product order. For example, the associated items of a product order include at least one of the following: the paper voucher of the product order, the packaging of the product corresponding to the product order, or the complimentary items corresponding to the product order.

[0117] A paper receipt for a product order refers to a physical proof of purchase provided by the retail store to the user. This receipt contains information about the order, such as the retail store's information, product details, and transaction information. In some embodiments, the paper receipt may also be referred to as a shopping voucher or a receipt. For example, a retail store can provide paper receipts for both offline orders and orders generated through a product application.

[0118] The packaging of goods corresponding to a product order refers to the container that carries the goods. This application does not limit the type of packaging for goods. For example, the type of packaging for goods may include, but is not limited to, cardboard packaging, plastic packaging, metal packaging, glass packaging, etc.

[0119] Gifts included with a product order refer to items provided by the platform to users after they place an order, in order to enhance user engagement and encourage spending. Examples of gifts included with a product order may include, but are not limited to, keychains, plush toys, stickers, postcards, and coupons.

[0120] The product order has a variety of associated items, and users can participate in resource distribution activities by identifying the activity information carried by various associated items. This high flexibility helps to improve the user's interactive experience and thus increase the human-computer interaction rate.

[0121] The activity information carried by associated items is information carried by associated items that allows users to participate in resource distribution activities.

[0122] In an exemplary embodiment, the activity information carried by the associated item includes an image code, which is generated based on the activity link of the resource distribution activity.

[0123] An image code is a black-and-white geometric image. Image codes use specific encoding algorithms to convert information into binary data that computers can recognize, and present it as a black-and-white geometric pattern. Users scan the image code using an image code scanning application, which then restores the information from the image code to the original data, thereby enabling rapid information transmission and retrieval. This application does not limit the form of the image code; for example, the image code can be a QR code or a barcode.

[0124] For example, the image code is generated based on the activity link of a resource distribution activity. This application does not limit the implementation method of generating image codes based on activity links of resource distribution activities. For example, an image code generation tool or image code generation library can be used to convert the activity link into an image code. For example, the activity link can be generated by a server. In some embodiments, the activity link can also be called a gift package link.

[0125] For example, the image code can be generated by the server based on the activity link of the resource distribution activity and sent to the POS terminal of the retail store, or it can be generated by the POS terminal of the retail store based on the activity link of the resource distribution activity sent by the server. The server is used to provide services for the process of distributing virtual resources, and the server is set up independently of the first backend server and the second backend server. The first backend server is a server used to provide backend services for virtual environment applications, and the second backend server is a server used to provide backend services for product orders.

[0126] For example, after acquiring the image code, the POS terminal prints or affixes it to the associated items of the order, so that the associated items carry the image code. For instance, it can be printed or affixed to the paper receipt of the order, printed or affixed to the packaging of the corresponding product, or printed or affixed to a complimentary item. The position of the image code in the associated items can be set based on experience or flexibly adjusted according to the application scenario. For example, the image code can be located in the lower area of ​​the paper receipt, at the top of the packaging of the corresponding product, or on any part of the body of the complimentary toy.

[0127] For example, associated items carrying image codes can be like... Figure 4 As shown. In Figure 4 In (1), a QR code image code 401 exists in the lower area of ​​the paper voucher; Figure 4 In (2), the cup of milk tea has a QR code image code 402 printed on it.

[0128] When the activity information carried by the associated item includes an image code, the identification operation of the activity information can be an image code scanning operation. The image code scanning operation can refer to scanning the image code using an image code scanning application. The image code scanning application can be any application with image code scanning functionality; this application does not limit the type of image code scanning application. In some embodiments, if the image code carried by the associated item needs to be scanned using a specific application, then the image code scanning application is that specific application.

[0129] By scanning the image code on the associated item using an image code scanning application, the activity link of the resource distribution activity can be triggered, thereby generating an action to participate in the resource distribution activity based on the product order.

[0130] In some embodiments, the associated item may also carry second guidance information, which may be displayed in the area surrounding the image code. This second guidance information indicates the function of the image code to guide the user to participate in resource distribution activities by scanning it. In some embodiments, where the image code requires scanning with a specific application, application guidance information may also be displayed in the area surrounding the image code. This application guidance information indicates the specific application required to scan the image code.

[0131] The operation of participating in resource distribution activities based on product orders can be generated by scanning the image code on the associated item of the product order. This method is highly convenient and helps improve the efficiency of distributing virtual resources. Furthermore, whether a product order is generated through a product application or offline, it can correspond to an associated item. This method of generating operations based on product orders is applicable to both online and offline product purchase scenarios, thus enriching the applicability of the virtual resource distribution method provided in this application.

[0132] In an exemplary embodiment, the activity information carried by the associated item includes a communication tag, which is generated based on the activity link of the resource distribution activity.

[0133] A communication tag is a tag that a terminal can read information from. For example, a communication tag can be an NFC (Near Field Communication) tag. An NFC tag is a miniature wireless communication device based on NFC technology. Essentially, it is a contactless radio frequency identification (RFID) tag that has the ability to store data and communicate with devices equipped with NFC reading capabilities over short distances. NFC tags work by exchanging data with reading devices within a few centimeters using electromagnetic induction coupling technology. They operate without a power source (passive tag), have a simple structure, and are inexpensive.

[0134] For example, the communication tag is generated based on the activity link of a resource distribution activity. The communication tag carries indication information of the activity link of the resource distribution activity. For example, the indication information can be the activity link itself, or identification information used to identify the activity link. The process of generating a communication tag based on the activity link of a resource distribution activity includes: writing the indication information of the activity link of the resource distribution activity into a blank tag to obtain the communication tag. For example, the process of writing the indication information of the activity link of the resource distribution activity into a blank tag can be implemented using a communication tag generation tool or software.

[0135] For example, the communication tag can be generated by the POS terminal of a retail store based on the activity link of a resource distribution activity sent by the server.

[0136] For example, after acquiring the communication tag, the POS terminal prints, affixes, or embeds the communication tag in the associated items of the order, so that the associated items carry the communication tag. For instance, it can be printed or affixed to the paper receipt of the order, printed or affixed to the packaging of the corresponding product, or printed, affixed, or embedded in the complimentary item. The position of the communication tag in the associated item can be set based on experience or flexibly adjusted according to the application scenario. For example, the communication tag can be located in the lower area of ​​the paper receipt, at the top of the packaging of the corresponding product, or inside the complimentary item.

[0137] For example, when the activity information carried by the associated item includes a communication tag, the activity information identification operation can be a communication tag reading operation, which is used to read the information carried by the communication tag (i.e., the indication information of the activity link). For example, the terminal has the function of reading the communication tag; when the associated item carrying the communication tag approaches or comes into contact with the terminal, the terminal can automatically read the information carried by the communication tag. For instance, taking an NFC tag as an example, the terminal has an NFC reading function; when the associated item carrying the communication tag approaches the terminal, the terminal's NFC reading function can automatically read the information carried by the communication tag.

[0138] By reading the communication tags carried by associated items, it is possible to trigger the activity link of resource distribution activities, thereby generating operations based on product orders to participate in resource distribution activities.

[0139] In some embodiments, the associated item may also carry third guidance information, which may be displayed in the area surrounding the communication tag. The third guidance information is used to indicate the function of the communication tag in order to guide the user to participate in resource distribution activities by reading the communication tag.

[0140] The operation of participating in resource distribution activities based on product orders can be generated by reading the communication tags carried by the associated items in the product order. This method is highly convenient and helps improve the efficiency of distributing virtual resources. Furthermore, whether a product order is generated through a product application or offline, it can correspond to an associated item. This method of generating operations based on product orders is applicable to both online and offline product purchase scenarios, thus enriching the applicability of the virtual resource distribution method provided in this application.

[0141] After obtaining the operation to participate in the resource distribution activity based on the product order, a resource distribution control is displayed in the first application. The first application is different from the virtual environment application. For example, the first application refers to an application for users to participate in the resource distribution activity. This application embodiment does not limit the type of the first application, as long as it is different from the virtual environment application.

[0142] In some embodiments, the first application can be a product application. For example, if the operation of participating in a resource distribution activity based on a product order triggers a jump entry on the order page, or if the operation of participating in a resource distribution activity based on a product order involves the terminal reading the communication tag carried by the associated item, then after obtaining the operation of participating in a resource distribution activity based on a product order, a resource distribution control can be displayed in the product application.

[0143] In other embodiments, the first application may also be a browser application. For example, if the operation of participating in a resource distribution activity based on a product order triggers a redirection entry on the order page, or if the operation of participating in a resource distribution activity based on a product order identifies activity information carried by associated items, a resource distribution control can be displayed in the browser application after obtaining the operation of participating in a resource distribution activity based on a product order.

[0144] In other embodiments, the first application may also be an image code scanning application. For example, in the case where the operation of participating in a resource distribution activity based on a product order is to scan the image code carried by the associated item using an image code scanning application, resource distribution controls can be displayed in the image code scanning application after obtaining the operation of participating in the resource distribution activity based on the product order.

[0145] For example, the resource distribution control is a control corresponding to the first account that generates the product order; that is, the resource distribution control is bound to the first account. In some embodiments, triggering the resource distribution control can be considered as a triggering operation generated by the first account.

[0146] In an exemplary embodiment, the terminal displays the resource distribution controls in the first application by displaying a resource distribution page within the first application, which contains the resource distribution controls. The resource distribution page is used to distribute virtual resources used in the virtual environment application; that is, it is a page for users to participate in resource distribution activities. In some embodiments, the resource distribution page carries the account identifier of the first account, and any operation or request generated based on the resource distribution page can be considered as an operation or request generated by the first account.

[0147] The account identifier of the first account is information used to identify the first account. In this application embodiment, the type of the account identifier of the first account is not limited. For example, the account identifier of the first account can be the first account itself, or the communication number, email address or ID card number bound to the first account, or the username of the first account, or the encrypted text of the first account, etc.

[0148] In one possible implementation, the terminal displays the resource allocation page in the first application based on the display resources of the resource allocation page. That is, before displaying the resource allocation page in the first application, the terminal needs to obtain the display resources of the resource allocation page. The display resources of the resource allocation page are the resources required by the terminal to display the resource allocation page; in other words, the display resources of the resource allocation page are used to indicate the display content of the resource allocation page.

[0149] In an exemplary embodiment, the process of a terminal obtaining display resources from a resource allocation page includes: the terminal sending a page display request to a server, the page display request carrying the account identifier of a first account; the server receiving the page display request sent by the terminal; the server obtaining display resources from the resource allocation page corresponding to the first account based on the page display request, and sending the display resources to the terminal; and the terminal receiving the display resources.

[0150] For example, the terminal sends a page display request to the server in the following manner: the terminal responds to the operation of participating in the resource distribution activity based on the product order and sends a page display request to the server.

[0151] The page display request carries the account identifier of the first account. The server can determine the first account based on the account identifier and then obtain the display resources for the resource distribution page corresponding to the first account. For example, the process of the server obtaining the display resources for the resource distribution page corresponding to the first account includes: the server determining whether the first account is bound to a second account; if the first account is bound to a second account, the first resource is used as the display resource; if the first account is not bound to a second account, the second resource is used as the display resource. The first resource is the resource required to display the resource distribution page when the first account is bound to a second account, and the second resource is the resource required to display the resource distribution page when the second account is not bound to a second account.

[0152] The second account is an account for the virtual environment application. For example, the second account can be an account that the user has already registered in the virtual environment application, or it can be a newly registered account for the virtual environment application. If the first account is already bound to the second account, the server will record the binding relationship between the first and second accounts. By checking whether there is a second account that is bound to the first account, it can be determined whether the first account is bound to the second account.

[0153] For example, the first account and the second account are different accounts. The account identifier of the first account and the account identifier of the second account may be the same or different.

[0154] The first resource and the second resource are different. The content displayed on the resource distribution page based on the first resource is not entirely the same as the content displayed on the resource distribution page based on the second resource. In other words, the content displayed on the resource distribution page can intuitively distinguish whether the first account is bound to the second account. The content of the first resource and the second resource can be set based on experience, or can be flexibly adjusted according to the version and running status of the virtual environment application. This application embodiment does not limit this.

[0155] In some embodiments, both the first resource and the second resource include virtual environment application-related resources and account-related resources. The virtual environment application-related resources are used to indicate the content related to the virtual environment application that needs to be displayed on the resource distribution page. For example, the content related to the virtual environment application includes resource distribution controls. The account-related resources are used to indicate content related to the binding status of the first account.

[0156] For example, the virtual environment application resources included in the first resource are the same as those included in the second resource, but the account-related resources included in the first resource are different from those included in the second resource. For example, the account-related resources included in the first resource are used to indicate the display of a binding notification message on the resource distribution page, which indicates that a second account has been bound. For example, the binding notification message may include information related to the second account, such as the second account itself, the account identifier of the second account, and the avatar of the second account. The account-related resources included in the second resource are used to indicate the display of an account binding entry on the resource distribution page, which is used to bind the second account.

[0157] After obtaining the display resources for the resource distribution page corresponding to the first account, the server sends the display resources to the terminal. Upon receiving the display resources, the terminal renders and displays the resource distribution page in the first application according to the display content indicated by the display resources. The resource distribution page displays resource distribution controls.

[0158] The resource allocation control is displayed on the resource allocation page. The terminal obtains the display resources required to display the resource allocation page by interacting with the server, which helps to save the terminal's computing resources and improve the smoothness of the terminal's operation.

[0159] The content displayed on the resource allocation page on the terminal depends on the resources displayed on the resource allocation page. This application embodiment does not limit this, as long as the resource allocation control is displayed on the resource allocation page.

[0160] The resource distribution page displays at least one resource distribution control, and different resource distribution controls within that control are used to distribute different virtual resources. The number of resource distribution controls can be set based on experience or flexibly adjusted according to the application scenario; this embodiment does not limit this. Having multiple resource distribution controls provides greater flexibility in distributing virtual resources.

[0161] For example, at least one resource distribution control is the display content under the resource distribution entry point on the resource distribution page. For example, the resource distribution page may display the display content under the resource distribution entry point by default, or it may display the display content under the resource distribution entry point after the resource distribution entry point is triggered.

[0162] For example, on the resource distribution page, each resource distribution control corresponds to a display item, which includes the resource distribution control and related content of the virtual resource corresponding to the resource distribution control. The related content of the virtual resource corresponding to the resource distribution control may include, but is not limited to, the introduction information of the virtual resource corresponding to the resource distribution control, the qualification acquisition entry, and the resource viewing entry.

[0163] The description information for the virtual resource corresponding to the resource distribution control describes the virtual resource that can be distributed by triggering the control. For example, the description information may include the image of the virtual resource, its name, and the method by which the second account becomes eligible to obtain the virtual resource (e.g., following certain accounts, performing certain specific operations in an application or mini-program). The eligibility acquisition entry redirects to the page that qualifies the second account to obtain the virtual resource corresponding to the resource distribution control. The resource viewing entry allows users to view the status of the virtual resource distribution control being distributed to the second account (e.g., whether it has been distributed, the quantity distributed, etc.).

[0164] In one possible implementation, the method further includes displaying at least one of an activity viewing entry or a version viewing entry in the first application. The activity viewing entry is used to view activities in the virtual environment application, and the version viewing entry is used to view version information of the virtual environment application.

[0165] Activities within a virtual environment application refer to various activities that users can participate in, such as recruitment events, recharge events, lottery events, competition events, and treasure hunt events. In response to the triggering of the activity viewing entry, introductory information about the activities within the virtual environment application is displayed in the first application.

[0166] Version information for virtual environment applications may include, but is not limited to, the application's version number, update details, and version type. In response to a trigger action from the version viewing entry, the virtual environment application's version information is displayed in the first application.

[0167] In an exemplary embodiment, at least one of the activity viewing entry or the version viewing entry is displayed on the resource distribution page; in other words, at least one of the activity viewing entry or the version viewing entry is displayed on the resource distribution page of the first application.

[0168] By displaying activity viewing and / or version viewing entries, users can directly view activity and / or version information in the virtual environment application without opening the virtual environment application in the first application. This helps improve the user's interactive experience and thus increases the human-computer interaction rate.

[0169] In an exemplary embodiment, when the first account is not bound to the second account, the method further includes: displaying an account binding entry point in the first application. Exemplarily, displaying the account binding entry point in the first application is implemented by displaying the account binding entry point on the resource distribution page of the first application. This account binding entry point is used to bind the second account. In some embodiments, fourth guidance information may also be displayed in the area surrounding the binding entry point, the fourth guidance information being used to instruct the user to bind the second account by triggering the account binding entry point.

[0170] In an exemplary embodiment, when the first account is already bound to the second account, the method further includes: displaying a binding notification message in the first application. For example, displaying the binding notification message in the first application is implemented by displaying the binding notification message on the resource distribution page of the first application. The binding notification message is used to indicate that the second account has been bound. For example, the binding notification message may include information related to the second account, such as the second account itself, the account identifier of the second account, the avatar of the second account, etc.

[0171] In an exemplary embodiment, the method further includes: displaying at least one of a rule viewing entry or a sharing control in a first application, wherein the rule viewing entry is used to view the activity rules of the resource distribution activity, and the sharing control is used to share the resource distribution activity, so that more users can participate in the resource distribution activity by generating product orders. Exemplarily, displaying at least one of the rule viewing entry or the sharing control in the first application includes: displaying at least one of the rule viewing entry or the sharing control on the resource distribution page of the first application.

[0172] In an exemplary embodiment, the resource distribution page may also display the logo image of the virtual environment application, the activity name of the resource distribution activity, and the activity image of the resource distribution activity. In some embodiments, the resource distribution page may also be referred to as the activity page of the resource distribution activity.

[0173] For example, if the first account is not linked to a second account, the resource distribution page can be displayed as follows: Figure 5 As shown. In Figure 5 The resource distribution page 500 shown includes a resource distribution entry 510. Under the resource distribution entry 510, at least one display item 501 is displayed. Display item 501 includes a resource distribution control 502, description information 503 of the virtual resource corresponding to the resource distribution control 502, a qualification acquisition entry 504, and a resource viewing entry 505. Figure 5The resource distribution page 500 also displays an activity viewing entry 520, a version viewing entry 530, an account binding entry 540, a rule viewing entry 550, a sharing control 560, an identification image of the virtual environment application 570, the activity name of the resource distribution activity 580, and an activity image of the resource distribution activity 590.

[0174] For example, if the first account is already linked to the second account, the resource distribution page can be like this: Figure 6 As shown. In Figure 6 The resource distribution page 600 shown includes a resource distribution entry 610. Under the resource distribution entry 610, at least one display item 601 is displayed. Display item 601 includes a resource distribution control 602, description information 603 of the virtual resource corresponding to the resource distribution control 602, a qualification acquisition entry 604, and a resource viewing entry 605. Figure 6 The resource distribution page 600 also displays an activity viewing entry 620, a version viewing entry 630, a binding notification message 640, a rule viewing entry 650, a sharing control 660, an identification image of the virtual environment application 670, the activity name of the resource distribution activity 680, and the activity image of the resource distribution activity 690.

[0175] In step 202, when the terminal detects a trigger operation on the resource allocation control and the first account is already bound to the second account, it sends a first resource allocation request to the server. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0176] The first resource allocation request is used by the server to send the resource allocation result to the terminal.

[0177] In one possible implementation, there is at least one resource distribution control, and the triggering operation of the resource distribution control refers to the triggering operation of any one of the at least one resource distribution controls. The triggering operation of any resource distribution control may include, but is not limited to, a single click operation, a double click operation, a touch operation, etc. of any resource distribution control.

[0178] After receiving the trigger operation of the resource allocation control, the terminal checks whether the first account is bound to the second account. The first account is the one that generated the product order, and the second account is the account for the virtual environment application.

[0179] The first account can be used to identify the user who placed the order for the goods. Different users will have different first accounts. In some embodiments, even if the users who placed the orders are the same, the first accounts may be the same or different. This application does not limit the type of the first account. For example, the type of the first account can be a communication number, or an account consisting of at least one of letters, numbers, and words.

[0180] The situation of the first account varies depending on the different circumstances under which a product order is generated. The following will explain the situation of the first account in light of the three circumstances under which a product order is generated.

[0181] Scenario 1: The product order is generated through the product application.

[0182] Orders generated through a product application can also be referred to as online orders. In the case of orders generated through a product application, the primary account is the product application account. A product application account refers to the information a user registers within the product application to identify themselves.

[0183] It should be noted that for orders placed online through the product app, after the order is placed, the user can pay for the order using any online payment method supported by the product app. Only after successful payment can the user receive the corresponding product. Methods for users to receive the corresponding product may include, but are not limited to: the product being delivered to the user by the product's retail store, or the user picking up the product from the product's retail store themselves.

[0184] Scenario 2: Orders that were generated offline and paid for using an electronic payment account.

[0185] In addition to placing orders online through product applications, users can also place orders offline. The process of placing an offline order involves the user selecting products at the store, then informing the cashier of the desired items. The cashier then enters the product information into the in-store POS terminal, generating an order.

[0186] After placing an order offline, the user needs to pay for it. Once payment is successful, the store clerk will deliver the corresponding goods to the user. For offline orders, users can also pay using their electronic payment account. An electronic payment account is a virtual account opened by the user on an electronic payment platform for storing funds and making electronic transactions. This account can be a third-party payment platform account, a bank electronic account, or an e-wallet account, etc.

[0187] For orders placed offline and paid for using an electronic payment account, the first account is the account corresponding to the electronic payment account. The account corresponding to the electronic payment account refers to the account used on the electronic payment platform to identify the user, link user funds, and record transaction history. The form of the account corresponding to the electronic payment account may include, but is not limited to, a contact number, an email address, or a unique ID (identity) generated by the electronic payment platform.

[0188] Scenario 3: Orders for goods are generated offline and paid for using physical currency.

[0189] For offline orders, users can also pay for them using physical currency. Physical currency payment is a traditional and direct payment method that allows transactions to be completed smoothly even without electronic devices or internet access.

[0190] In the case of orders generated offline and paid for using physical currency, the first account is the generated account. Since physical currency payment is not associated with any user identification information, an account is generated to identify the user who generated the order; this account is the first account that generated the order. For example, the first account is generated by a second backend server, which is a server providing backend services for product orders. These backend services may include, but are not limited to, receiving and parsing new product orders, classifying and tagging product orders, updating the status of product orders in a timely manner, and verifying the validity of product orders. In some embodiments, the second backend server is the manifestation of the product platform in the backend.

[0191] This application does not limit the implementation method of the second backend server generating the first account, as long as it ensures that the first account generated for different product orders is different. For example, the second backend server can use a random number generation function to randomly generate the first account.

[0192] In some embodiments, after generating the first account, the second backend server can return the first account to the POS terminal of the sales store, so that the POS terminal of the sales store can obtain the first account and establish a binding relationship between the first account and the product order.

[0193] In various scenarios where product orders are generated, each product order has a corresponding primary account. Therefore, the method for distributing virtual resources provided in this application is applicable to scenarios where product orders are generated in multiple ways, thereby enabling the convenient and rapid distribution of virtual resources in various scenarios.

[0194] When the terminal detects a trigger operation on the resource allocation control and the first account is already bound to the second account, it sends a first resource allocation request to the server. If the terminal detects a trigger operation on the resource allocation control but the first account is not bound to the second account, it displays a first error message indicating that virtual resources cannot be allocated because the second account is not bound.

[0195] For example, the operation of binding the first account and the second account is performed by the server. After establishing the binding relationship between the first account and the second account, the server returns a binding success response to the terminal. This binding success response indicates that the first account has been bound to the second account. In other words, the terminal can detect whether the first account is bound to the second account by checking whether a binding success response is stored.

[0196] In an exemplary embodiment, when the terminal detects a trigger operation on the resource distribution control and the first account is bound to the second account, it can further determine the state of the triggered resource distribution control. The state of the triggered resource distribution control may be unobtainable, obtainable, or obtained. If the state of the triggered resource distribution control is unobtainable, it means that the second account is not qualified to obtain the virtual resource corresponding to the triggered resource distribution control; if the state of the triggered resource distribution control is obtainable, it means that the second account is qualified to obtain the virtual resource corresponding to the triggered resource distribution control, and the virtual resource corresponding to the triggered resource distribution control has not been distributed to the second account; if the state of the triggered resource distribution control is obtained, it means that the second account is qualified to obtain the virtual resource corresponding to the triggered resource distribution control, and the virtual resource corresponding to the triggered resource distribution control has been distributed to the second account.

[0197] If the triggered resource distribution control is in an "available" state, a first resource distribution request is sent to the server; if the triggered resource distribution control is in an "unavailable" state, a second error message is displayed, indicating that the virtual resource cannot be distributed because the user is not qualified to receive it; if the triggered resource distribution control is in a "acquired" state, a third error message is displayed, indicating that the virtual resource corresponding to the triggered resource distribution control has been distributed to the second account.

[0198] Sending the first resource distribution request to the server when the second account is qualified to obtain the virtual resource corresponding to the triggered resource distribution control, but the server has not distributed the virtual resource corresponding to the triggered resource distribution control to the second account, is beneficial to improving the success rate of the server distributing virtual resources to the second account according to the first resource distribution request.

[0199] In an exemplary embodiment, if the second account does not have the qualification to obtain the virtual resources corresponding to the resource distribution control, the user can trigger the qualification acquisition entry to enter the page that enables the second account to obtain the virtual resources corresponding to the resource distribution control, and then enable the second account to obtain the virtual resources corresponding to the resource distribution control through the page.

[0200] For example, when the first account is already bound to the second account, the server can determine the state of each resource distribution control during the process of acquiring display resources, and carry the state of each resource distribution control in the display resources. The terminal can then know the state of each resource distribution control based on the display resources. After displaying the resource distribution page, if the user triggers the qualification acquisition entry to grant the second account the qualification to acquire the virtual resource corresponding to a certain resource distribution control, the server will return relevant indication information to the terminal to update the state of each resource distribution control. If a virtual resource corresponding to a certain resource distribution control has already been distributed to the second account, the server will also return relevant indication information to the terminal to update the state of each resource distribution control.

[0201] In some embodiments, resource distribution controls in different states can be displayed in different ways to intuitively indicate their status, resulting in better visual effects and thus improving human-computer interaction. For example, a resource distribution control in an unclaimable state may display the text "Claim Now" with a gray background; a resource distribution control in an available state may display the text "Claim Now" with a blue background; and a resource distribution control in a claimed state may display the text "Claimed".

[0202] Of course, in some embodiments, resource allocation controls in different states can also be displayed in the same way to simplify the terminal's rendering logic.

[0203] As described above, the prerequisite for implementing the method for distributing virtual resources provided in this application embodiment is that the first account has been bound to the second account. The process of binding the first account to the second account will be described below.

[0204] In one possible implementation, the process of binding the first account to the second account may include: the terminal displaying an account binding page, which instructs the user to enter the account identifier of the second account to establish a binding relationship between the first account and the second account; the terminal obtaining the account identifier of the second account entered through the account binding page; and the terminal displaying a message indicating that the first account and the second account have been successfully bound.

[0205] By displaying an account binding page for users to bind their accounts, the process becomes more convenient, increasing user interest and thus improving human-computer interaction, account binding success rate, and the success rate of distributing virtual resources.

[0206] In an exemplary embodiment, when the first account is not bound to the second account, an account binding entry is displayed in the first application on the terminal. For example, the account binding entry is displayed on the resource distribution page of the first application. The timing for displaying the account binding page includes: displaying the account binding page in response to a triggering operation of the account binding entry.

[0207] Displaying an account binding entry point provides a clear visual cue that users haven't bound a second account yet, improving user interaction and increasing the human-computer interaction rate. Furthermore, the account binding page is easily accessible by triggering this entry point, enhancing the efficiency of displaying and binding accounts, and consequently, improving the efficiency of distributing virtual resources.

[0208] In an exemplary embodiment, the account binding page may also be displayed when the triggering operation of the resource distribution control is detected and the first account is not bound to the second account.

[0209] The account binding page is used to instruct users to enter the account identifier of the second account to establish a binding relationship between the first account and the second account. The account identifier of the second account is used to identify the information of the second account. This application embodiment does not limit the type of account identifier. For example, the account identifier can be the second account itself, or it can be the communication number, email address, or ID card number bound to the second account, or it can be the username of the second account, etc.

[0210] In some embodiments, displaying the account binding page can be achieved by directly displaying the account binding page in the first application. Based on this, account binding can be implemented directly in the first application. The first application and the virtual environment application are different applications; for example, the first application may be a product application or an image code scanning application.

[0211] In other embodiments, the account binding page can be displayed by jumping from the first application to the account binding application, where the account binding page is displayed. The account binding application is a platform used to bind the first account to an account corresponding to at least one application; the account binding application is a different application from the first application. The account binding application can be an application that needs to be downloaded and installed, or a small program that depends on a host program to run; this embodiment does not limit this. The specific type and number of the at least one application can be set by the developer of the account binding application, as long as at least one application includes a virtual environment application. Based on this, account binding is achieved by jumping from the first application to the account binding application.

[0212] Whether the account binding page is displayed in the first application or in the account binding application, the terminal can obtain the account identifier of the second account entered through the account binding page.

[0213] In an exemplary embodiment, the account binding page directly displays an account identifier input box, which is used for the user to enter the account identifier of the second account. In this case, the account identifier of the second account entered through the account binding page refers to the account identifier entered in the account identifier input box on the account binding page.

[0214] For example, in the case where an account identifier input box is displayed on the account binding page, an input confirmation control and a toggle control may also be displayed. The input confirmation control is used to confirm the information entered on the account binding page, and the toggle control is used to switch the input mode on the account binding page. The input modes on the account binding page include a password input mode and a verification code input mode.

[0215] In password input mode, the account binding page displays an account identifier input box, an input confirmation control, a toggle control, and a password input box. In verification code input mode, the account binding page displays an account identifier input box, an input confirmation control, a toggle control, a verification code input box, and a get verification code control. The get verification code control is used to retrieve the verification code corresponding to the communication number.

[0216] For example, the account binding page in password input mode can be like this: Figure 7 Page 710 in the image shows the account binding page in verification code input mode. Figure 8 Page 810 is shown in the image.

[0217] In an exemplary embodiment, the account binding page displays identification information for at least one application and a binding entry point corresponding to that application. The at least one application includes a virtual environment application. In response to a triggering operation of the binding entry point of the virtual environment application among the at least one application, an account binding window corresponding to the virtual environment application is displayed. The account binding window displays an account identifier input box for the user to input an account identifier for a second account. In this case, the account identifier of the second account entered through the account binding page refers to the account identifier entered in the account identifier input box of the account binding window.

[0218] For example, such as Figure 9 As shown, the account binding page 910 displays the identification information of three applications (virtual environment application, live streaming application, and short video application) and their respective binding entry points. In response to the triggering operation of the binding entry point 901 corresponding to the virtual environment application, the account binding window for the virtual environment application is displayed. The content displayed in the account binding window for the virtual environment application is... Figure 7 and Figure 8 The content displayed on the account binding page shown in the image is similar, so it will not be described again here.

[0219] For example, an input confirmation control is displayed on the account binding page or in the account binding window. Before an account identifier is entered into the account identifier input box on the account binding page or in the account identifier input box in the account binding window, the input confirmation control is in a non-triggerable state. After an account identifier is entered into the account identifier input box on the account binding page or in the account identifier input box in the account binding window, the input confirmation control becomes triggerable. For example, in response to the triggering operation of the input confirmation control on the account binding page or in the account binding window, the terminal obtains the account identifier of the second account entered through the account binding page.

[0220] In an exemplary embodiment, the account binding page displays selection controls for at least two candidate platforms. Each candidate platform selection control is used to select the account identifier corresponding to that candidate platform as the account identifier for the second account. The number of candidate platforms can be set based on experience or flexibly adjusted according to the application scenario; this embodiment does not limit this selection.

[0221] In response to the triggering operation of the selection control of any candidate platform, display the user's registered account on that candidate platform and the selection confirmation control; in response to the triggering operation of the selection confirmation control, confirm the user's registered account on that candidate platform.

[0222] In some embodiments, the account registered by the user on any of the candidate platforms is directly used as the account identifier of the second account, and the terminal obtains the account identifier of the second account entered through the account binding page.

[0223] In some embodiments, the virtual environment application corresponds to multiple backend servers, and the process of the second account controlling the activities of a virtual character within the virtual environment is provided by one of the backend servers of the virtual environment application. Different backend servers of the virtual environment application correspond to different regions (which may be referred to as major regions). The virtual character controlled by the second account and active in the virtual environment is one of the multiple virtual characters corresponding to a single backend server. Based on this, after determining the user's registered account on any candidate platform, a role selection page is displayed. The role selection page displays a region selection control, a role selection control, and a role confirmation control. The region selection control is used to select a backend server, and the role selection control is used to select a virtual character. In response to the triggering operation of the role confirmation control, the user's registered account on any candidate platform, along with the backend server and virtual character selected by the user, are used as the account identifier for the second account.

[0224] For example, such as Figure 10 As shown in (1), the account binding page displays a selection control 1001 for candidate platform 1 and a selection control 1002 for candidate platform 2. When the user triggers the selection control 1001, the account registered by the user in candidate platform 1 is determined. When the user triggers the selection control 1002, the account registered by the user in candidate platform 2 is determined.

[0225] See Figure 10 In step (2), after confirming the user's registered account on any candidate platform, a role selection page is displayed, which includes a server selection control 1003, a role selection control 1004, and a role confirmation control 1005. In response to the triggering operation of the role confirmation control 1005, the user's registered account on any candidate platform, along with the user's selected backend server and virtual role, are used as the account identifier for the second account.

[0226] In one possible implementation, after obtaining the account identifier of the second account entered through the account binding page, the method further includes: sending a verification request to the server, the verification request being used by the server to verify the account identifier of the second account; if the account identifier of the second account is successfully verified, returning a verification success response; and determining that the account identifier of the second account has been successfully verified based on the verification success response sent by the server. The terminal determines whether the account identifier of the second account has been successfully verified by interacting with the server. The process of verifying the account identifier of the second account is performed by the server, which helps save the terminal's computing resources and improves the smoothness of terminal operation.

[0227] The process by which the server verifies the account identifier of the second account entered through the account binding page includes: the server receiving a verification request sent by the terminal, verifying the account identifier of the second account based on the verification request, and sending a verification success response to the terminal if the account identifier of the second account is successfully verified. This application embodiment does not limit the method by which the server verifies the account identifier of the second account.

[0228] In an exemplary embodiment, after the server verifies the account identifier of the second account, it sends a verification pass response to the terminal so that the terminal can determine that the account identifier of the second account has been verified based on the verification pass response.

[0229] In an exemplary embodiment, the server can also send a verification failure response to the terminal if the account identifier verification fails, so that the terminal can determine that the account identifier verification of the second account has failed based on the verification failure response.

[0230] In one possible implementation, the verification request also carries the account identifier of the first account. If the account identifier of the second account is verified successfully, the server directly binds the first account to the second account. For example, the server can bind the first account to the second account by writing the binding relationship between the first and second accounts into a database. For example, after binding the first account to the second account, the server sends a binding success response to the terminal. This binding success response indicates that the first account and the second account have been successfully bound, and the terminal can determine that the first account has been bound to the second account based on this binding success response.

[0231] After receiving the successful binding response, the terminal displays a notification that the first account and the second account have been successfully bound, to inform the user that the first account has been successfully bound to the second account. This application embodiment does not limit the display location of the notification of successful binding of the first and second accounts. For example, the notification can be displayed in either the first application or the account binding application.

[0232] For example, the notification that the first and second accounts have been successfully linked disappears automatically after a certain period of time. For example, after receiving a close operation, the notification that the first and second accounts have been successfully linked is canceled.

[0233] In one possible implementation, the method further includes: displaying the first account, the second account, and a binding confirmation control when the account identifier of the second account entered through the account binding page is verified; wherein the first account and the second account are bound based on the triggering operation of the binding confirmation control.

[0234] If the account identifier of the second account entered on the account binding page is verified successfully, a binding confirmation control is displayed for the user to confirm whether to bind the first account and the second account. This helps reduce the possibility of binding the wrong account and improves the reliability of account binding.

[0235] In some embodiments, if the account identifier of the second account entered on the account binding page is successfully verified, a binding confirmation page is displayed. The binding confirmation page displays the association information of the first account, the association information of the second account, and a binding confirmation control. Exemplarily, the binding confirmation page can be displayed in the first application or the account binding application; this embodiment of the application does not limit this to either.

[0236] The association information of the first account is information associated with the first account, and the association information of the first account includes the first account. For example, the association information of the first account may also include at least one of the first account's profile picture and the identifier of the application to which the first account belongs. The association information of the second account is information associated with the second account, and the association information of the second account includes the second account. For example, the association information of the second account may also include at least one of the second account, the second account's profile picture, and the identifier of the application to which the second account belongs.

[0237] For example, the binding confirmation page may also display a switching entry, which allows users to switch to the second account bound to the first account.

[0238] For example, the process of binding the first account and the second account is performed by the server. After the terminal receives the trigger operation of the binding confirmation control, it sends a binding request to the server. The binding request includes the account identifiers of the first account and the second account. After receiving the binding request, the server binds the first account and the second account and sends a binding success response to the terminal. After receiving the binding success response, the terminal displays a prompt indicating that the first account and the second account have been successfully bound.

[0239] For example, the process of binding the first account and the second account can also be performed by the terminal. That is, after the terminal obtains the trigger operation of the binding confirmation control, it directly binds the first account and the second account, and then displays a prompt that the first account and the second account are successfully bound.

[0240] For example, in the case of jumping from a first application displaying a resource distribution control to an account binding application, and displaying an account binding page in the account binding application, the process of jumping from the first application to the account binding application includes: the terminal sending an application launch request to the server, the application launch request including information specified in the protocol for launching the account binding application; the server determining the display information of the account binding page according to the application launch request, and sending a confirmation launch response carrying the display information of the account binding page to the terminal; the terminal launching the account binding application according to the confirmation launch response, and displaying the account binding page in the account binding application.

[0241] For example, the application launch request may include at least one of the following: the account identifier of the first account, the application identifier of the first application, the application identifier of the account-bound application, the path information of the account-bound page, and the version information of the account-bound page. The application identifier of the first application is information used to identify the first application, and the application identifier of the account-bound application is information used to identify the account-bound application. This application embodiment does not limit the type of application identifier.

[0242] When the terminal detects a triggered operation on the resource allocation control and the first account is already bound to the second account, it sends a first resource allocation request to the server. For example, the first resource request carries information such as the account identifier of the first account and the order identifier of the product order.

[0243] In an exemplary embodiment, the server provides a first distribution interface. The terminal sends a first resource distribution request to the server by calling the first distribution interface. For example, the terminal calls the first distribution interface to send the first resource distribution request to the server using the GET request method. The GET request method is a request method in HTTP (Hypertext Transfer Protocol) used to obtain information from the server; in this case, it obtains the resource distribution result.

[0244] In step 203, the server receives the first resource allocation request.

[0245] The first resource allocation request is sent by the terminal when it detects a trigger operation on the resource allocation control displayed in the first application and the first account is bound to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application. The resource allocation control is used to allocate virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0246] After the terminal sends a first resource allocation request to the server, the server receives the first resource allocation request. For example, the server receives the first resource allocation request sent by the terminal through a first allocation interface.

[0247] In step 204, the server performs verification on the first resource issuance request and obtains the verification result.

[0248] After receiving the first resource allocation request, the server performs a verification on the request and obtains a verification result. The verification result is either successful or unsuccessful.

[0249] In one possible implementation, the process of the server performing verification on the first resource issuance request and obtaining the verification result includes: the server sending a validity verification request to a second backend server, the validity verification request being used by the second backend server to verify the validity of the product order; and obtaining the verification result based on the validity verification response returned by the second backend server.

[0250] The second backend server is a server used to provide backend services for product orders.

[0251] In an exemplary embodiment, the first resource distribution request carries an order identifier for the product order and an account identifier for the first account. The order identifier for the product order is information used to identify the product order, and different product orders have different order identifiers. This application embodiment does not limit the content of the order identifier for the product order; exemplarily, the order identifier for the product order may refer to the order number of the product order.

[0252] In an exemplary embodiment, the second backend server provides an order viewing interface, which is used by the server to verify whether a product order is valid. The server can send a validity verification request to the second backend server by calling the order viewing interface provided by the second backend server.

[0253] For example, the validity verification request carries the order identifier of the product order and the first account, which is determined by the server based on the account identifier of the first account carried in the first resource distribution request.

[0254] After receiving a validity verification request, the second backend server verifies the validity of the product order based on the validity verification request. For example, the second backend server stores the order identifiers of each product order and the accounts that generated each product order. The process of the second backend server verifying the validity of the product order based on the validity verification request includes: the second backend server checks whether the order identifier carried in the validity verification request has been stored. If the order identifier carried in the validity verification request has not been stored, a response indicating that the product order is invalid will be used as the validity verification response. If the order identifier carried in the validity verification request has been stored, it determines whether the account corresponding to the product order with the stored order identifier is the same as the first account. If the account corresponding to the product order with the stored order identifier is different from the first account, a response indicating that the product order is invalid will be used as the validity verification response. If the account corresponding to the product order with the stored order identifier is the same as the first account, a response indicating that the product order is valid will be used as the validity verification response.

[0255] After determining the validity verification response, the second backend server sends a validity verification response to the server. This application embodiment does not limit the content of the validity verification response, as long as it indicates whether the product order is valid. For example, the validity verification response may include a status code and a status description. The status code indicates whether the validity verification was successfully performed, and the status description describes the meaning of the status code.

[0256] For example, when the validity verification response indicates that the product order is valid, the validity verification response may also include relevant information about the product order. For example, the relevant information about the product order may include the order identifier, the status of the product order, the time the product order was generated, the time the status of the product order was updated, etc.

[0257] After receiving the validity verification response from the second backend server, the server obtains the verification result based on the validity verification response, which is either verification passed or verification failed.

[0258] The server obtains the verification result of the first resource allocation request based on the validity verification response returned by the second backend server. This helps ensure the reliability of the verification result, thereby improving the reliability of virtual resource allocation. Furthermore, the process of verifying the validity of product orders is executed by the second backend server. The second backend server is a server that provides backend services for product orders. The second backend server itself has the function of validating product orders; that is, the process of obtaining the verification result is implemented by reusing the validity verification function of the second backend server, making the implementation logic relatively simple. Moreover, product order-related information is always maintained by the second backend server, which helps ensure the security of product order-related information.

[0259] In one possible implementation, if the validity verification response indicates that the product order is invalid, the verification result is "verification failed"; if the validity verification response indicates that the product order is valid, the verification result is "verification passed".

[0260] In another possible implementation, if the validity verification response indicates that the order is invalid, the verification result is "verification failed"; if the validity verification response indicates that the order is valid, it is further determined whether the order meets the constraints. If the validity verification response indicates that the order is valid and the order meets the constraints, the verification result is "verification passed"; if the validity verification response indicates that the order is valid but the order does not meet the constraints, the verification result is "verification failed".

[0261] For example, a product order meets constraints including at least one of the following: the time interval between the current time and the time the product order was generated is not greater than an interval threshold; or the product order's eligibility to participate in the activity has not been used.

[0262] For example, the server can extract the order creation time from the validity verification response sent by the second backend server, then calculate the time interval between the current time and the order creation time, and compare the time interval with an interval threshold. The interval threshold can be set based on experience or flexibly adjusted according to the application scenario, and this embodiment does not limit it. For example, the interval threshold can be 10 minutes or 20 minutes, etc.

[0263] The fact that the eligibility for participating in the activity for a product order has not been used indicates that no user has participated in the resource distribution activity based on that product order. The server records eligibility identifiers for each product order, which are either a first identifier or a second identifier. The first identifier indicates that the eligibility for participating in the activity for a product order has not been used, while the second identifier indicates that the eligibility for participating in the activity for a product order has been used. The server can determine whether the eligibility for participating in the activity for a product order has been used based on the eligibility identifier.

[0264] For example, if the eligibility for participating in an activity based on a product order is not used, after the server determines that virtual resources have been issued to the second account based on the product order, the server changes the eligibility identifier of the product order from the first identifier to the second identifier. For example, if the first identifier is 0, changing the first identifier to the second identifier can be achieved by incrementing the first identifier by 1.

[0265] It should be noted that, for cases where the constraints of a product order are met, including the time interval between the current time and the time the product order was generated not being greater than the interval threshold and the product order's eligibility to participate in the activity not being used, the execution order of the first step and the second step in this application embodiment is not limited. The first step is to determine whether the time interval is greater than the interval threshold, and the second step is to determine whether the product order's eligibility to participate in the activity has been used.

[0266] If the product order is valid, the first resource allocation request is verified by further determining whether the product order meets the constraints. The process of determining the verification result of the first resource allocation request takes into account a wealth of information, which helps to improve the verification reliability of the first resource allocation request and thus improves the reliability of the allocation of virtual resources.

[0267] If the verification result of the first resource distribution request is successful, proceed to step 205.

[0268] If the verification result of the first resource allocation request is unsuccessful, the server sends an unverified response to the terminal, indicating that the first resource allocation request failed verification. Upon receiving the unverified response, the terminal can display a fourth error message, indicating that virtual resources cannot be allocated to the second account. For example, depending on the reason for the unverified request, the content of the unverified response and the content of the fourth error message can vary, thus indicating the reason why the first resource allocation request failed verification.

[0269] In step 205, if the verification result is successful, the server obtains the resource allocation result, which is used to indicate the result of allocating the virtual resources corresponding to the resource allocation control to the second account.

[0270] In one possible implementation, the server has the function of distributing virtual resources to a second account. The process of the server obtaining the resource distribution result includes: the server distributing the virtual resources corresponding to the resource distribution control to the second account and obtaining the resource distribution result.

[0271] In another possible implementation, the process of the server obtaining the resource allocation result includes: the server sending a second resource allocation request to the first backend server, the second resource allocation request being used by the first backend server to allocate virtual resources to the second account; and obtaining the resource allocation result based on the allocation response returned by the first backend server.

[0272] The first backend server is a server used to provide backend services for virtual environment applications. For example, in the case where there are multiple backend servers for a virtual environment application, the first backend server may refer to a server used to provide backend services for virtual environment applications logged in through a second account.

[0273] For example, the first backend server provides a second distribution interface. The server sends a second resource distribution request to the first backend server by calling the second distribution interface. For example, the server calls the second distribution interface and sends the second resource distribution request to the first backend server using the GET (get) request method.

[0274] For example, the second resource allocation request carries the resource identifier of the virtual resource corresponding to the resource allocation control. The resource identifier is information used to identify the virtual resource. For example, the virtual resource may be in different resource packages, and the second resource allocation request also carries the resource package identifier of the resource package to which the virtual resource belongs. The resource package identifier is information used to identify the resource package.

[0275] After the first backend server distributes virtual resources to the second account, it sends a distribution response to the server. The distribution response indicates whether the virtual resources were successfully distributed to the second account. In some embodiments, the distribution response includes a status code and a status description. The status code identifies whether the second resource distribution request was successfully processed, and the status description describes the meaning of the status code.

[0276] In some embodiments, when the issuance response is used to indicate that the virtual resource has been successfully issued to the second account, the issuance response may also include information such as the issuance serial number of the virtual resource and the issuance status of the virtual resource.

[0277] The operation of distributing virtual resources to the second account is performed by the first backend server. The first backend server is a server used to provide backend services for virtual environment applications. The first backend server itself has the function of distributing virtual resources to accounts of virtual environment applications. That is, the process of distributing virtual resources is achieved by reusing the virtual resource distribution function of the first backend server, and the implementation logic is relatively simple.

[0278] After receiving the allocation response from the primary backend server, the server obtains the resource allocation result based on the allocation response.

[0279] For example, if the distribution response instruction successfully distributes virtual resources to the second account, the first distribution result is taken as the resource distribution result; if the distribution response instruction fails to distribute virtual resources to the second account, the second distribution result is taken as the resource distribution result. The first distribution result is used to indicate that the distribution of virtual resources to the second account was successful, and the second distribution result is used to indicate that the distribution of virtual resources to the second account was unsuccessful.

[0280] For example, the solution provided in this application requires a server as an intermediary layer between the terminal and the backend servers (first backend server and second backend server), providing a complete SDK (Software Development Kit) for the first application and the virtual environment application to access. This SDK can be accessed by any first application or virtual environment application. After access, the first application can initiate account binding and cooperation with the virtual environment application in any scenario. The virtual environment application can distribute virtual resources to the virtual environment application accounts of users who purchase goods through an interface. The aforementioned first distribution interface, order viewing interface, and second distribution interface are all functions included in this SDK.

[0281] In step 206, the server sends the resource allocation result to the terminal.

[0282] After obtaining the resource allocation result, the server sends the resource allocation result to the terminal. For example, the resource allocation result is either a first allocation result or a second allocation result.

[0283] The first distribution result indicates that the distribution of virtual resources to the second account was successful, while the second distribution result indicates that the distribution of virtual resources to the second account was unsuccessful.

[0284] This application does not limit the content of the resource allocation result, as long as it can indicate the result of allocating virtual resources to the second account. For example, the content of the resource allocation result may include a status code and a status description. The status code indicates whether the first resource allocation request was successfully executed, and the status description describes the meaning of the status code.

[0285] For example, in the case where the resource allocation result is the first allocation result, the resource allocation result may further include first indication information and second indication information. The first indication information is used to indicate that the product order is valid, and the second indication information is used to indicate that the product order meets the constraints. For example, the second indication information includes first sub-information and second sub-information. The first sub-information is used to indicate that the time interval between the current time and the time when the product order was generated is not greater than an interval threshold, and the second sub-information is used to indicate that the activity participation qualification of the product order has not been used.

[0286] For example, in the case where the resource distribution result is the second distribution result, the resource distribution result may also include failure reason indication information, which is used to indicate the reason why the result of distributing virtual resources to the second account failed.

[0287] In step 207, the terminal obtains the resource allocation result and displays a prompt message about the resource allocation result in the first application.

[0288] After receiving the resource allocation result from the server, the terminal displays a prompt message in the first application to inform the user whether the virtual resources have been successfully allocated to the second account.

[0289] For example, when the resource distribution result is the first distribution result, the terminal displays a prompt message for the first distribution result in the first application. The prompt message for the first distribution result is used to indicate that the virtual resource has been successfully distributed to the second account. The content of the prompt message for the second distribution result can be set based on experience or flexibly adjusted according to the application scenario. This application embodiment does not limit this.

[0290] If the resource distribution result is the second distribution result, the terminal displays a prompt message for the second distribution result in the first application. The prompt message for the second distribution result is used to indicate that the virtual resources were not successfully distributed to the second account. The content of the prompt message for the second distribution result can be set based on experience or can be flexibly adjusted according to the application scenario. This application embodiment does not limit this.

[0291] In one possible implementation, the method further includes: the terminal displaying a resource viewing control in a first application; and in response to a triggering operation of the resource viewing control, displaying a resource identifier of the virtual resource successfully issued to the second account in the first application. The resource identifier of the virtual resource is information used to identify the virtual resource. This application embodiment does not limit the resource identifier of the virtual resource; exemplarily, the resource identifier may include the name of the virtual resource, the number of the virtual resource, the resource code of the virtual resource, etc.

[0292] For example, a resource viewing control is displayed on the resource distribution page in the first application.

[0293] For example, in a scenario where multiple resource distribution controls are displayed on the resource distribution page, the resource viewing entry in the display item of each resource distribution control can serve as a resource viewing control. Each resource viewing control is used to view the resource identifier of the target virtual resource that has been successfully distributed to the second account. The target virtual resource refers to the virtual resource corresponding to the resource distribution control corresponding to that resource viewing control.

[0294] For example, a resource viewing control can be displayed on the resource distribution page, which is used to view the resource identifiers of all virtual resources that have been successfully distributed to the second account.

[0295] Users can view the virtual resources successfully distributed to the second account directly in the first application without having to open the virtual environment application, which helps improve the user's interactive experience and thus increases the human-computer interaction rate.

[0296] In this embodiment, the server is only requested to issue virtual resources to the second account if the first account that generated the product order is already bound to the second account. This ensures that only the second account, which is bound to the first account that generated the product order, can obtain the virtual resources. This improves the standardization of virtual resource issuance, reduces the possibility of virtual resources being stolen, and avoids the phenomenon of using stolen virtual resources in virtual environment applications to affect the fairness of interaction in virtual environment applications, thereby improving the fairness of interaction in virtual environment applications.

[0297] For example, taking a game as the virtual environment application and a product order as a product order generated on a milk tea platform, the method for distributing virtual resources provided in this application embodiment can be regarded as a solution for joint operation of games and milk tea platforms based on account binding. It can provide games with a one-stop tool for account binding and virtual resource distribution on milk tea platforms, thereby minimizing secondary market risks and allowing real game users to obtain virtual resources such as game props, thus promoting various operational indicators of the game.

[0298] Based on the solution provided in this application, after a product order is placed on a milk tea platform, the user first completes the game account binding on the resource distribution page to prove they have a game account. After binding, clicking the resource distribution control allows the server to verify the timeliness of the product order when distributing virtual resources. If the timeliness is verified, the virtual resources are directly distributed to the game account; otherwise, an error message is displayed. This solution provides a high level of security for the game and can distribute different virtual resources according to the game's pace (e.g., different game versions), ensuring a better user experience while co-operating with the milk tea platform.

[0299] Based on the method provided in this application embodiment, the activity linkage between milk tea platform and game can be effectively solved, which is conducive to increasing the convenience of users' game and life, improving game stickiness, enhancing game experience, increasing the operational capabilities of milk tea platform, providing more new and active users for game, providing users with more cross-platform linkage gameplay, solving the secondary market problem outside the game scene, and maximizing the cost reduction and efficiency improvement of game, avoiding the waste of game resources.

[0300] In this embodiment, after a user who purchases goods participates in a resource distribution activity based on a goods order, they only need to trigger the resource distribution control displayed in the first application to enable the server to distribute virtual resources to the second account. The user operation required to distribute virtual resources to the second account is relatively simple, which helps to improve the efficiency of distributing virtual resources to the second account, increases the interaction interest of users who purchase goods, and thus improves the human-computer interaction rate. In addition, the process of distributing virtual resources to the second account does not require switching from the first application to the virtual environment application, reducing the switching between applications and improving the smoothness of terminal operation.

[0301] For example, the method for distributing virtual resources can be executed interactively by a terminal, a server, a first backend server, and a second backend server, see [link to relevant documentation]. Figure 11 The method for distributing virtual resources may include steps 1101 to 1120.

[0302] Step 1101: In response to the operation of participating in the resource distribution activity based on the product order, the terminal sends a page display request to the server. The page display request carries the account identifier of the first account.

[0303] For example, the operation of participating in resource distribution activities based on product orders includes: triggering the jump entry in the order page of the product order.

[0304] For example, the operation of participating in resource distribution activities based on product orders includes: the identification operation of activity information carried by the associated items of the product order.

[0305] For example, the activity information includes an image code generated based on the activity link of the resource distribution activity; or, the activity information includes a communication tag generated based on the activity link of the resource distribution activity.

[0306] For example, associated items include at least one of the following: a paper receipt for the order, the packaging of the goods corresponding to the order, or a complimentary item corresponding to the order.

[0307] Step 1102: The server receives the page display request sent by the terminal; based on the page display request, it obtains the display resources of the resource distribution page corresponding to the first account.

[0308] Step 1103: The server sends display resources to the terminal.

[0309] Step 1104: Based on the display resources, the terminal displays a resource allocation page in the first application. The resource allocation page displays a resource allocation control, which is used to allocate virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0310] Step 1105: The terminal displays the account binding entry on the resource distribution page in the first application, and displays the account binding page in response to the triggering operation of the account binding entry.

[0311] Step 1106: The terminal obtains the account identifier of the second account entered through the account binding page; and displays a message indicating that the first account and the second account have been successfully bound.

[0312] Step 1107: When the terminal detects a trigger operation on the resource distribution control and the first account is already bound to the second account, it sends a first resource acquisition request to the server.

[0313] Step 1108: The server receives the first resource allocation request.

[0314] Step 1109: The server sends a validity verification request to the second backend server.

[0315] Step 1110: The second backend server verifies the validity of the product order based on the validity verification request.

[0316] Step 1111: The second backend server returns a validity verification response to the server.

[0317] Step 1112: The server obtains the verification result based on the validity verification response returned by the second backend server.

[0318] For example, if the validity verification response indicates that the product order is valid and the product order meets the constraints, the verification result is "verification passed"; wherein, the product order meets the constraints, including at least one of the following: the time interval between the current time and the time when the product order was generated is not greater than the interval threshold; the activity participation qualification of the product order has not been used.

[0319] Step 1113: If the verification result is successful, the server sends a second resource allocation request to the first backend server.

[0320] Step 1114: The first backend server distributes virtual resources to the second account based on the second resource distribution request.

[0321] Step 1115: The first backend server returns a distribution response to the server.

[0322] Step 1116: The server obtains the resource allocation result based on the allocation response returned by the first backend server.

[0323] Step 1117: The server sends the resource allocation result to the terminal.

[0324] Step 1118: The terminal displays a prompt message indicating the resource allocation result in the first application.

[0325] Step 1119: The terminal displays a resource viewing control in the first application; in response to the triggering operation of the resource viewing control, the resource identifier of the virtual resource that has been successfully issued to the second account is displayed in the first application.

[0326] Step 1120: The terminal displays at least one of the activity viewing entry or the version viewing entry in the first application; wherein, the activity viewing entry is used to view the activities in the virtual environment application, and the version viewing entry is used to view the version information of the virtual environment application.

[0327] The implementation methods for steps 1101 to 1120 above can be found in [reference needed]. Figure 2 The embodiments shown are not limited to those described herein.

[0328] This application provides a method for distributing virtual resources, which can be applied to the above-mentioned... Figure 1 The computer system shown. Taking the method executed by the terminal as an example, as... Figure 12 As shown, the method for distributing virtual resources provided in this application embodiment may include the following steps 1201 to 1203.

[0329] In step 1201, in response to the operation of participating in the resource distribution activity based on the product order, a resource distribution control is displayed in the first application. The resource distribution control is used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0330] In step 1202, when a trigger operation for the resource distribution control is detected and the first account is bound to the second account, the resource distribution result is obtained. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0331] In step 1203, a prompt message indicating the resource allocation result is displayed in the first application.

[0332] The implementation methods for steps 1201 to 1203 above can be found in [reference]. Figure 2 The steps performed by the terminal in the illustrated embodiment will not be described again here.

[0333] This application provides a method for distributing virtual resources, which can be applied to the above-mentioned... Figure 1 The computer system shown. Taking the method executed by the server as an example, such as... Figure 13 As shown, the method for distributing virtual resources provided in this application embodiment may include the following steps 1301 to 1304.

[0334] In step 1301, a first resource allocation request is received. The first resource allocation request is sent by the terminal when it detects a trigger operation on the resource allocation control displayed in the first application and the first account is bound to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application. The resource allocation control is used to allocate virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0335] In step 1302, the first resource issuance request is verified, and the verification result is obtained.

[0336] In step 1303, if the verification result is successful, the resource allocation result is obtained. The resource allocation result is used to indicate the result of allocating the virtual resources corresponding to the resource allocation control to the second account.

[0337] In step 1304, the resource allocation result is sent to the terminal.

[0338] The implementation methods for steps 1301 to 1304 above can be found in [reference]. Figure 2 The steps performed by the server in the illustrated embodiment will not be described again here.

[0339] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0340] See Figure 14 This application provides an apparatus for distributing virtual resources, the apparatus comprising:

[0341] Display module 1401 is used to respond to the operation of participating in resource distribution activities based on commodity orders, and to display resource distribution controls in the first application. The resource distribution controls are used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0342] The acquisition module 1402 is used to acquire the resource allocation result when a trigger operation for the resource allocation control is detected and the first account is bound to the second account. The resource allocation result is used to indicate the result of allocating the virtual resources corresponding to the resource allocation control to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0343] The display module 1401 is also used to display a prompt message about the resource allocation result in the first application.

[0344] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: triggering the jump entry in the order page of the product order.

[0345] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: the identification of activity information carried by the associated items of the product order.

[0346] In one possible implementation, the activity information includes an image code generated based on an activity link of the resource distribution activity; or, the activity information includes a communication tag generated based on an activity link of the resource distribution activity.

[0347] In one possible implementation, the associated items include at least one of the following: a paper receipt for the order, packaging of the goods corresponding to the order, or a complimentary item corresponding to the order.

[0348] In one possible implementation, the display module 1401 is further configured to send a page display request to the server. The page display request carries the account identifier of the first account. The page display request is used by the server to return the display resources of the resource distribution page corresponding to the first account. Based on the display resources, the resource distribution page is displayed in the first application, and the resource distribution page displays resource distribution controls.

[0349] In one possible implementation, the display module 1401 is further configured to display an account binding page, which indicates the account identifier of the second account to be entered; obtain the account identifier of the second account entered through the account binding page; and display a message indicating that the first account and the second account have been successfully bound.

[0350] In one possible implementation, if the first account is not bound to the second account, the display module 1401 is also used to display the account binding entry in the first application; and to display the account binding page in response to the triggering operation of the account binding entry.

[0351] In one possible implementation, the display module 1401 is further configured to display a resource viewing control in the first application; in response to a triggering operation of the resource viewing control, the resource identifier of the virtual resource that has been successfully issued to the second account is displayed in the first application.

[0352] In one possible implementation, the display module 1401 is further configured to display at least one of an activity viewing entry or a version viewing entry in the first application; wherein the activity viewing entry is used to view activities in the virtual environment application, and the version viewing entry is used to view version information of the virtual environment application.

[0353] In one possible implementation, the product order is an order generated through the product application, and the first account is the product application account; or,

[0354] For orders placed offline and paid for using an electronic payment account, the first account is the account number corresponding to the electronic payment account; or,

[0355] The product order is an order generated offline and paid for using physical currency; the first account is the account that was generated.

[0356] See Figure 15 This application also provides an apparatus for distributing virtual resources, the apparatus comprising:

[0357] The receiving module 1501 is used to receive a first resource distribution request. The first resource distribution request is sent by the terminal when it detects a trigger operation on the resource distribution control displayed in the first application and the first account is bound to the second account. The first account is the account that generates the product order, and the second account is the account of the virtual environment application. The resource distribution control is used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications.

[0358] Verification module 1502 is used to perform verification on the first resource issuance request and obtain the verification result;

[0359] The acquisition module 1503 is used to acquire the resource distribution result when the verification result is successful. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account.

[0360] The sending module 1504 is used to send the resource allocation result to the terminal.

[0361] In one possible implementation, the acquisition module 1503 is used to send a second resource allocation request to the first backend server, the second resource allocation request being used by the first backend server to allocate virtual resources to the second account; and to acquire the resource allocation result based on the allocation response returned by the first backend server.

[0362] In one possible implementation, the verification module 1502 is used to send a validity verification request to the second backend server, the validity verification request being used by the second backend server to verify the validity of the product order; and to obtain the verification result based on the validity verification response returned by the second backend server.

[0363] In one possible implementation, the verification result is "verification passed" if the validity verification response indicates that the product order is valid and the product order meets the constraints; wherein, the product order meets the constraints, including at least one of the following: the time interval between the current time and the time when the product order was generated is not greater than the interval threshold; the activity participation qualification of the product order has not been used.

[0364] In one possible implementation, the receiving module 1501 is further configured to receive a page display request sent by the terminal, the page display request carrying the account identifier of the first account;

[0365] The acquisition module 1503 is also used to acquire the display resources of the resource distribution page corresponding to the first account based on the page display request;

[0366] The sending module 1504 is also used to send display resources to the terminal.

[0367] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process and beneficial effects are detailed in the method embodiments, which will not be repeated here.

[0368] In an exemplary embodiment, this application also provides a system for distributing virtual resources, the system including a terminal and a server;

[0369] The terminal is used to respond to operations related to resource distribution activities based on product orders. It displays a resource distribution control in a first application, which is used to distribute virtual resources used in a virtual environment application. The first application and the virtual environment application are different applications. When a trigger operation on the resource distribution control is detected and the first account is bound to a second account, a first resource distribution request is sent to the server. The first account is the account that generated the product order, and the second account is the account of the virtual environment application.

[0370] The server is used to receive a first resource allocation request; perform verification on the first resource allocation request and obtain a verification result; if the verification result is successful, obtain the resource allocation result, which is used to indicate the result of allocating the virtual resource corresponding to the resource allocation control to the second account; and send the resource allocation result to the terminal.

[0371] The terminal is also used to obtain resource allocation results and display prompts about the resource allocation results in the first application.

[0372] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: triggering the jump entry in the order page of the product order.

[0373] In one possible implementation, the operation of participating in resource distribution activities based on product orders includes: the identification of activity information carried by the associated items of the product order.

[0374] In one possible implementation, the activity information includes an image code generated based on an activity link of the resource distribution activity; or, the activity information includes a communication tag generated based on an activity link of the resource distribution activity.

[0375] In one possible implementation, the associated items include at least one of the following: a paper receipt for the order, packaging of the goods corresponding to the order, or a complimentary item corresponding to the order.

[0376] In one possible implementation, the terminal is used to send a page display request to the server, the page display request carrying the account identifier of the first account;

[0377] The server is used to receive page display requests sent by the terminal; based on the page display request, it obtains the display resources of the resource distribution page corresponding to the first account and sends the display resources to the terminal.

[0378] The terminal is used to display a resource allocation page in the first application based on display resources. The resource allocation page displays resource allocation controls.

[0379] In one possible implementation, the terminal is also used to display an account binding page, which indicates the account identifier of the second account to be entered; obtain the account identifier of the second account entered through the account binding page; and display a message indicating that the first account and the second account have been successfully bound.

[0380] In one possible implementation, the terminal is also used to display an account binding entry in the first application when the first account is not bound to the second account; and to display the account binding page in response to the triggering operation of the account binding entry.

[0381] In one possible implementation, the terminal is also used to display a resource viewing control in the first application; in response to a triggering operation of the resource viewing control, the terminal displays a resource identifier of the virtual resource that has been successfully issued to the second account in the first application.

[0382] In one possible implementation, the terminal is further configured to display at least one of an activity viewing entry or a version viewing entry in the first application; wherein the activity viewing entry is used to view activities in the virtual environment application, and the version viewing entry is used to view version information of the virtual environment application.

[0383] In one possible implementation, the product order is an order generated through the product application, and the first account is the product application account; or,

[0384] For orders placed offline and paid for using an electronic payment account, the first account is the account number corresponding to the electronic payment account; or,

[0385] The product order is an order generated offline and paid for using physical currency; the first account is the account that was generated.

[0386] In one possible implementation, a server is used to send a second resource allocation request to a first backend server, the second resource allocation request being used by the first backend server to allocate virtual resources to a second account; and the resource allocation result is obtained based on the allocation response returned by the first backend server.

[0387] In one possible implementation, the server sends a validity verification request to the second backend server, which verifies the validity of the product order; and obtains the verification result based on the validity verification response returned by the second backend server.

[0388] In one possible implementation, the verification result is "verification passed" if the validity verification response indicates that the product order is valid and the product order meets the constraints; wherein, the product order meets the constraints, including at least one of the following: the time interval between the current time and the time when the product order was generated is not greater than the interval threshold; the activity participation qualification of the product order has not been used.

[0389] The implementation principle of the system for distributing virtual resources is the same as that of the method for distributing virtual resources described above, and will not be repeated here.

[0390] In an exemplary embodiment, a computer device is also provided, comprising a processor and a memory storing at least one computer program. The at least one computer program is loaded and executed by one or more processors to enable the computer device to implement any of the methods for distributing virtual resources described above. The computer device can be a terminal or a server; the structures of terminals and servers will be described below.

[0391] Figure 16 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names. The terminal can be... Figure 1 The terminal 11 in the implementation environment shown is used to implement the steps executed by the terminal in the method for distributing virtual resources provided in the above embodiments.

[0392] Typically, a terminal includes a processor 1601 and a memory 1602.

[0393] Processor 1601 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0394] The memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1602 are used to store at least one instruction, which is executed by the processor 1601 to cause the terminal to implement the method for distributing virtual resources provided in the method embodiments of this application.

[0395] In some embodiments, the terminal may also optionally include: a peripheral device interface 1603 and at least one peripheral device. The processor 1601, memory 1602, and peripheral device interface 1603 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1604, a display screen 1605, a camera assembly 1606, an audio circuit 1607, and a power supply 1608.

[0396] Peripheral interface 1603 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1601 and memory 1602. In some embodiments, processor 1601, memory 1602 and peripheral interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1601, memory 1602 and peripheral interface 1603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0397] The radio frequency (RF) circuit 1604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1604 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1604 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1604 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0398] Display screen 1605 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1605 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1601 for processing. In this case, display screen 1605 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, display screen 1605 can be a single screen, located on the front panel of the terminal; in other embodiments, display screen 1605 can be at least two screens, respectively located on different surfaces of the terminal or in a folded design; in other embodiments, display screen 1605 can be a flexible display screen, located on a curved or folded surface of the terminal. Furthermore, display screen 1605 can be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 1605 can be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).

[0399] The camera assembly 1606 is used to acquire images or videos. Optionally, the camera assembly 1606 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1606 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0400] The audio circuit 1607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1601 for processing, or input to the radio frequency circuit 1604 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1607 may also include a headphone jack.

[0401] The power supply 1608 is used to power the various components in the terminal. The power supply 1608 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When the power supply 1608 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0402] In some embodiments, the terminal further includes one or more sensors 1609. The one or more sensors 1609 include, but are not limited to: an accelerometer 1610, a gyroscope 1611, a pressure sensor 1612, an optical sensor 1613, and a proximity sensor 1614.

[0403] Accelerometer 1610 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by the terminal. For example, accelerometer 1610 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1601 can control display screen 1605 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1610. Accelerometer 1610 can also be used for games or for acquiring user motion data.

[0404] The gyroscope sensor 1611 can detect the terminal's orientation and rotation angle. The gyroscope sensor 1611 can work in conjunction with the accelerometer sensor 1610 to collect the user's 3D movements on the terminal. Based on the data collected by the gyroscope sensor 1611, the processor 1601 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0405] The pressure sensor 1612 can be disposed on the side bezel of the terminal and / or the lower layer of the display screen 1605. When the pressure sensor 1612 is disposed on the side bezel of the terminal, it can detect the user's grip signal on the terminal, and the processor 1601 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1612. When the pressure sensor 1612 is disposed on the lower layer of the display screen 1605, the processor 1601 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1605. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0406] Optical sensor 1613 is used to collect ambient light intensity. In one embodiment, processor 1601 can control the display brightness of display screen 1605 based on the ambient light intensity collected by optical sensor 1613. Specifically, when the ambient light intensity is high, the display brightness of display screen 1605 is increased; when the ambient light intensity is low, the display brightness of display screen 1605 is decreased. In another embodiment, processor 1601 can also dynamically adjust the shooting parameters of camera assembly 1606 based on the ambient light intensity collected by optical sensor 1613.

[0407] The proximity sensor 1614, also known as a distance sensor, is typically installed on the front panel of the terminal. The proximity sensor 1614 is used to detect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1614 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 1601 controls the display screen 1605 to switch from a screen-on state to a screen-off state; when the proximity sensor 1614 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 1601 controls the display screen 1605 to switch from a screen-off state to a screen-on state.

[0408] Those skilled in the art will understand that Figure 16 The structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0409] Figure 17 This is a schematic diagram of the structure of a server provided in an embodiment of this application. The terminal can be... Figure 1The server 12 in the illustrated implementation environment is used to implement the steps executed by the server in the method for distributing virtual resources provided in the above embodiments. This server can vary significantly due to differences in configuration or performance, and may include one or more Central Processing Units (CPUs) 1701 and one or more memories 1702. The one or more memories 1702 store at least one computer program, which is loaded and executed by the one or more processors 1701 to enable the server to implement the method for distributing virtual resources provided in the various method embodiments described above. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input / output. The server may also include other components for implementing device functions, which will not be elaborated here.

[0410] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one computer program that is loaded and executed by a processor of a computer device to enable the computer to implement any of the methods for distributing virtual resources described above.

[0411] In one possible implementation, the aforementioned computer-readable storage medium can be a read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), compact disc read-only memory (CD-ROM), magnetic tape, floppy disks, and optical data storage devices, etc. The random access memory can include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).

[0412] In an exemplary embodiment, a computer program or computer program product is also provided, the computer program or computer program product including computer instructions that are loaded and executed by a processor to enable a computer to implement any of the above-described methods for distributing virtual resources.

[0413] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the triggering operations and requests involved in this application were all obtained under full authorization.

[0414] In other words, the collection and processing of relevant data (such as triggering operations, requests, etc.) in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0415] It should be noted that the terms "first," "second," etc., used in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The implementation methods described in the above exemplary embodiments do not represent all implementation methods consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0416] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0417] Furthermore, the step numbers described herein are merely illustrative of one possible execution order between steps. In some other embodiments, the steps may not be executed in the order of their numbers, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.

[0418] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. Optionally, the program is stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0419] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for distributing virtual resources, characterized in that, The method includes: In response to an operation involving resource distribution based on a product order, a resource distribution control is displayed in a first application. The resource distribution control is used to distribute virtual resources used in a virtual environment application. The first application and the virtual environment application are different applications. If a trigger operation is detected for the resource distribution control and the first account is bound to the second account, the resource distribution result is obtained. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application. The first application displays a notification message indicating the resource allocation result.

2. The method according to claim 1, characterized in that, The operation of participating in the resource distribution activity based on the product order includes: triggering the jump entry in the order page of the product order.

3. The method according to claim 1, characterized in that, The operation of participating in resource distribution activities based on product orders includes: the identification of activity information carried by the associated items of the product order.

4. The method according to claim 3, characterized in that, The activity information includes an image code, which is generated based on the activity link of the resource distribution activity; or... The activity information includes a communication tag, which is generated based on the activity link of the resource distribution activity.

5. The method according to claim 3, characterized in that, The associated items include at least one of the following: the paper voucher for the product order, the packaging of the product corresponding to the product order, or the complimentary item corresponding to the product order.

6. The method according to claim 1, characterized in that, Before displaying the resource allocation control in the first application, the method further includes: Send a page display request to the server. The page display request carries the account identifier of the first account. The page display request is used by the server to return the display resources of the resource distribution page corresponding to the first account. The step of displaying the resource allocation control in the first application includes: Based on the displayed resources, the resource distribution page is displayed in the first application, and the resource distribution page displays the resource distribution control.

7. The method according to claim 1, characterized in that, The method further includes: The account binding page is displayed, which is used to indicate the account identifier of the second account; Obtain the account identifier of the second account entered through the account binding page; Display a message indicating that the first account and the second account have been successfully linked.

8. The method according to claim 7, characterized in that, If the first account is not linked to the second account, the method further includes: The account binding entry is displayed in the first application; The account binding page includes: In response to the triggered operation of the account binding entry, the account binding page is displayed.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Display the resource viewing control in the first application; In response to the triggering operation of the resource viewing control, the resource identifier of the virtual resource that has been successfully issued to the second account is displayed in the first application.

10. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Display at least one of the activity viewing entry or the version viewing entry in the first application; The activity viewing entry is used to view the activities in the virtual environment application, and the version viewing entry is used to view the version information of the virtual environment application.

11. The method according to any one of claims 1 to 8, characterized in that, The product order is an order generated through the product application, and the first account is the account of the product application; or, The product order is an order generated offline and paid for using an electronic payment account, where the first account is the account corresponding to the electronic payment account; or, The product order is an order generated offline and paid for using physical currency, and the first account is the generated account.

12. A method for distributing virtual resources, characterized in that, The method includes: The terminal receives a first resource allocation request. The first resource allocation request is sent by the terminal when it detects a trigger operation on the resource allocation control displayed in the first application and the first account is bound to the second account. The first account is the account that generates the product order, and the second account is the account of the virtual environment application. The resource allocation control is used to allocate virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications. The first resource allocation request is validated, and the validation result is obtained. If the verification result is successful, the resource distribution result is obtained. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account. The resource allocation result is sent to the terminal.

13. The method according to claim 12, characterized in that, The acquisition of resource allocation results includes: Send a second resource allocation request to the first backend server. The second resource allocation request is used by the first backend server to allocate the virtual resources to the second account. Based on the allocation response returned by the first backend server, the resource allocation result is obtained.

14. The method according to claim 12, characterized in that, The verification of the first resource allocation request, and the resulting verification result, includes: A validity verification request is sent to the second backend server, the validity verification request being used by the second backend server to verify the validity of the product order; The verification result is obtained based on the validity verification response returned by the second backend server.

15. The method according to claim 14, characterized in that, If the validity verification response indicates that the product order is valid and the product order meets the constraints, the verification result is "verification passed". The product order must meet at least one of the following constraints: The time interval between the current time and the time when the order for the product was generated is not greater than the interval threshold; The eligibility for the activity based on the product order was not used.

16. The method according to any one of claims 12 to 15, characterized in that, The method further includes: Receive a page display request sent by the terminal, wherein the page display request carries the account identifier of the first account; Based on the page display request, the display resources of the resource distribution page corresponding to the first account are obtained, and the display resources are sent to the terminal.

17. A device for distributing virtual resources, characterized in that, The device includes: The display module is used to respond to the operation of participating in resource distribution activities based on product orders, and to display resource distribution controls in the first application. The resource distribution controls are used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications. The acquisition module is used to acquire the resource allocation result when a trigger operation for the resource allocation control is detected and the first account is bound to the second account. The resource allocation result is used to indicate the result of allocating the virtual resource corresponding to the resource allocation control to the second account. The first account is the account that generated the product order, and the second account is the account of the virtual environment application. The display module is also used to display a prompt message about the resource allocation result in the first application.

18. A device for distributing virtual resources, characterized in that, The device includes: The receiving module is used to receive a first resource distribution request. The first resource distribution request is sent by the terminal when it detects a trigger operation on the resource distribution control displayed in the first application and the first account is bound to the second account. The first account is the account that generates the product order, and the second account is the account of the virtual environment application. The resource distribution control is used to distribute virtual resources used in the virtual environment application. The first application and the virtual environment application are different applications. The verification module is used to perform verification on the first resource issuance request and obtain the verification result; The acquisition module is used to acquire the resource distribution result when the verification result is successful. The resource distribution result is used to indicate the result of distributing the virtual resources corresponding to the resource distribution control to the second account. The sending module is used to send the resource allocation result to the terminal.

19. A system for distributing virtual resources, characterized in that, The system includes a terminal and a server; The terminal is configured to respond to an operation involving resource distribution based on a product order, displaying a resource distribution control in the first application. The resource distribution control is used to distribute virtual resources used in a virtual environment application, wherein the first application and the virtual environment application are different applications. Upon detecting a trigger operation on the resource distribution control and the first account being bound to a second account, the terminal sends a first resource distribution request to the server. The first account is the account that generated the product order, and the second account is the account of the virtual environment application. The server is used to receive the first resource allocation request; The first resource allocation request is verified to obtain a verification result; if the verification result is successful, a resource allocation result is obtained, which indicates the result of allocating the virtual resource corresponding to the resource allocation control to the second account; the resource allocation result is then sent to the terminal. The terminal is also used to obtain the resource allocation result and display a prompt message about the resource allocation result in the first application.

20. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the computer device to implement the method of distributing virtual resources as described in any one of claims 1 to 11, or the method of distributing virtual resources as described in any one of claims 12 to 16.

21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to enable a computer to implement the method of distributing virtual resources as described in any one of claims 1 to 11, or the method of distributing virtual resources as described in any one of claims 12 to 16.

22. A computer program product, characterized in that, The computer program product includes computer instructions that are loaded and executed by a processor to enable a computer to implement the method of distributing virtual resources as described in any one of claims 1 to 11, or the method of distributing virtual resources as described in any one of claims 12 to 16.