WO2022222469A1 - Resource distribution method and apparatus - Google Patents

Resource distribution method and apparatus Download PDF

Info

Publication number
WO2022222469A1
WO2022222469A1 PCT/CN2021/132980 CN2021132980W WO2022222469A1 WO 2022222469 A1 WO2022222469 A1 WO 2022222469A1 CN 2021132980 W CN2021132980 W CN 2021132980W WO 2022222469 A1 WO2022222469 A1 WO 2022222469A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
virtual
terminal
type identifier
information
Prior art date
Application number
PCT/CN2021/132980
Other languages
French (fr)
Chinese (zh)
Inventor
闫亚辉
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022222469A1 publication Critical patent/WO2022222469A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4784Supplemental services, e.g. displaying phone caller identification, shopping application receiving rewards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Definitions

  • the present disclosure relates to the technical field of resource distribution, and in particular, to a resource distribution method, apparatus, system, electronic device, and storage medium.
  • some Internet platforms in order to attract more users to access the information on the platform and thereby increase the number of visits, some Internet platforms often hold some resource distribution activities to distribute virtual resources such as electronic coupons and virtual currency to users.
  • virtual resources such as electronic coupons and virtual currency
  • the same type of virtual resources are often randomly distributed to users, resulting in a single distribution method of virtual resources in the related art, and poor user participation enthusiasm, which will also lead to resource distribution. low efficiency.
  • the present disclosure provides a resource distribution method, apparatus, system, electronic device, and storage medium.
  • a resource distribution method including:
  • the resource type identifier represents resource type information of virtual resources that the terminal can claim
  • the extracting virtual resources for the terminal based on the resource type identifier includes:
  • the resource type identifier is the first identifier
  • the sending the resource extraction result information to the terminal includes: sending the resource extraction success result to the terminal.
  • the extracting virtual resources for the terminal based on the resource type identifier further includes:
  • the resource type identifier is a second identifier
  • the sending the resource extraction result information to the terminal includes: sending the resource extraction result of the second virtual resource to the terminal;
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the method further includes:
  • the resource acquisition request includes the resource type identifier
  • the acquiring the resource type identifier corresponding to the terminal includes:
  • the resource type identifier is extracted from the resource acquisition request.
  • the generating the resource type identifier corresponding to the terminal based on the task execution information includes:
  • a second identifier is generated for the terminal.
  • the acquiring the resource type identifier corresponding to the terminal includes:
  • a resource type identifier corresponding to the terminal is generated based on the task execution information.
  • the method further includes:
  • the resource type identifier is a second identifier
  • the sending the resource extraction result information to the terminal includes: sending the resource extraction result of the second virtual resource to the terminal;
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the method further includes:
  • the preset configuration information represents the proportion of the first virtual resource in the target virtual resource
  • the method further includes:
  • the virtual resource whose resource amount is greater than the first virtual resource is compared with the first virtual resource. A virtual resource is replaced.
  • the method further includes:
  • the extracting virtual resources for the terminal based on the resource type identifier includes:
  • virtual resources are extracted for the terminal based on the resource type identifier.
  • the method further includes:
  • the extracted virtual resources are distributed to the terminal.
  • the distributing the extracted virtual resources to the terminal includes:
  • a successful extraction message corresponding to the virtual resource is sent to the message queue, and the extracted virtual resource is distributed to the terminal in response to the resource distribution server monitoring the successful extraction message.
  • a resource distribution apparatus including:
  • the resource acquisition request receiving module is configured to receive the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
  • a resource type identifier acquisition module configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that can be claimed by the terminal;
  • a virtual resource extraction module configured to extract virtual resources for the terminal based on the resource type identifier
  • a resource extraction result information sending module configured to send resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page
  • the virtual resource extraction module includes:
  • a first virtual resource extraction unit configured to extract a first virtual resource for the terminal when the resource type identifier is the first identifier, and the first virtual resource is the virtual resource to be extracted with the largest amount of resources virtual resources;
  • the resource extraction result information sending module is configured to send the resource extraction success result to the terminal.
  • the apparatus further includes:
  • a second virtual resource extraction module configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
  • the resource extraction result sending module is configured to send the resource extraction result of the second virtual resource to the terminal;
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the apparatus further includes:
  • an identification acquisition request receiving module configured to receive a resource type identification acquisition request sent by the terminal
  • a task execution information obtaining module configured to obtain task execution information of a preset task of the target object corresponding to the terminal
  • a resource type identifier generation module configured to generate a resource type identifier corresponding to the terminal based on the task execution information
  • the resource type identifier sending module is configured to send the resource type identifier to the terminal.
  • the resource acquisition request includes the resource type identifier
  • the resource type identifier acquisition module is configured to extract the resource type identifier from the resource acquisition request.
  • the resource type identifier generation module includes:
  • a first identification generating unit configured to generate a first identification for the terminal when the task execution information is completed
  • the second identification generating unit is configured to generate a second identification for the terminal when the task execution information is incomplete.
  • the resource type identifier acquisition module includes:
  • a task execution information acquisition unit configured as task execution information of a preset task of the target object corresponding to the terminal
  • the resource type identifier generating unit is configured to generate a resource type identifier corresponding to the terminal based on the task execution information.
  • the virtual resource extraction module further includes:
  • a second virtual resource extraction unit configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
  • the resource extraction result information sending module is configured to send the resource extraction result of the second virtual resource to the terminal, so that the terminal displays the resource extraction result on the target page;
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the apparatus further includes:
  • a target virtual resource generation module configured to generate a target virtual resource in response to a resource generation instruction corresponding to the target page
  • a preset configuration information acquisition module configured to acquire preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource;
  • a first virtual resource splitting module configured to split the first virtual resource from the target virtual resource based on the preset configuration information
  • the second virtual resource splitting module is configured to split the remaining virtual resources into a preset number of second virtual resources, where the remaining virtual resources are the target virtual resources after the first virtual resources are split virtual resource.
  • the apparatus further includes:
  • a resource replacement module configured to replace the resource amount greater than the first virtual resource with the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource The virtual resource is replaced with the first virtual resource.
  • the apparatus further includes:
  • a virtual resource storage module configured to store the first virtual resource and the preset number of second virtual resources in a target database
  • the virtual resource extraction module is configured to extract virtual resources for the terminal from the target database based on the resource type identifier.
  • the apparatus further includes:
  • the virtual resource distribution module is configured to distribute the extracted virtual resources to the terminal when the virtual resources are extracted.
  • the virtual resource distribution module is configured to send a successful extraction message corresponding to the virtual resource to a message queue, and in response to the resource distribution server monitoring the successful extraction message, distribute the extracted message to the terminal. virtual resource.
  • a resource distribution system may include: a terminal and a service server;
  • the terminal is configured to display a target page including resource claim information, and is configured to send a resource acquisition request to the service server in response to a resource claim instruction triggered based on the resource claim information;
  • the page displays the resource extraction result information;
  • the service server is configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can receive; and is configured to identify the resource type based on the resource type identifier for the
  • the terminal extracts virtual resources; and is configured to send resource extraction result information to the terminal.
  • the terminal is further configured to send a resource type identifier acquisition request to the service server;
  • the service server is further configured to acquire task execution information of a preset task of the target object corresponding to the terminal; and generate a resource type identifier corresponding to the terminal based on the task execution information; and assign the resource type identifier to the sent to the terminal;
  • the sending the resource acquisition request to the service server includes sending the resource acquisition request including the resource type identifier to the service server.
  • the service server is further configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is a second identifier; and sending the resource extraction result of the second virtual resource to the terminal;
  • the terminal is further configured to display the resource extraction result on the target page
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • system further includes: a resource creation server and a resource management server;
  • the resource creation server configured to generate a target virtual resource in response to a resource creation instruction corresponding to the target page, and send the target virtual resource to the resource management server;
  • the resource management server is configured to obtain preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource; and configured to obtain the preset configuration information from the Splitting the first virtual resource from the target virtual resource; and being configured to split the remaining virtual resource into a preset number of second virtual resources, where the remaining virtual resource is split from the target virtual resource The virtual resource after the first virtual resource is described.
  • the resource management server is further configured to, when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, A virtual resource whose resource amount is greater than the first virtual resource is replaced with the first virtual resource.
  • the resource management server is further configured to store the first virtual resource and the preset number of second virtual resources in a target database
  • the extracting virtual resources for the terminal based on the resource type identifier includes: extracting virtual resources for the terminal based on the resource type identifier from the target database.
  • the service server is further configured to distribute the extracted virtual resource to the terminal when the extracted virtual resource is obtained.
  • system further includes a message queue and a resource distribution server
  • the service server is further configured to send a successful extraction message corresponding to the virtual resource to the message queue;
  • the resource distribution server is configured to distribute the extracted virtual resource to the terminal in response to monitoring the successful extraction message.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to achieve The method of any one of the first aspects above.
  • a computer-readable storage medium when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the first embodiment of the present disclosure.
  • a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the methods described in the first aspect of the embodiments of the present disclosure.
  • the corresponding type of virtual resources can be extracted from the virtual resources to be extracted in a targeted manner, thereby increasing the diversity of distributed virtual resources. It can better arouse users' interest and enthusiasm for participation, which in turn can improve the efficiency of resource distribution.
  • FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment
  • FIG. 2 is a flowchart of a method for distributing resources according to an exemplary embodiment
  • FIG. 3 is a schematic diagram of a target page including resource claim information according to an exemplary embodiment
  • FIG. 4 is a schematic flowchart of a preparation operation for a resource distribution activity according to an exemplary embodiment
  • FIG. 5 is a flowchart of a method for distributing resources according to an exemplary embodiment
  • FIG. 6 is a schematic diagram of a target page showing a successful result of resource extraction according to an exemplary embodiment
  • FIG. 7 is a flowchart of a method for distributing resources according to an exemplary embodiment
  • FIG. 8 is a block diagram of a resource distribution apparatus according to an exemplary embodiment
  • Fig. 9 is a block diagram of an electronic device for resource distribution according to an exemplary embodiment.
  • the user information including but not limited to user equipment information, user personal information, etc.
  • data including but not limited to display data, analysis data, etc.
  • FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment.
  • the application environment may include a resource creation server 100, a resource management server 200, a resource distribution server 300, a service The server 400 and the terminal 500.
  • the resource creation server 100 may be a server corresponding to a certain resource distribution activity, and is used to provide a background service for resource distribution.
  • the resource management server 200 may be used to manage target virtual resources corresponding to resource distribution activities.
  • the resource distribution server 300 may be used to distribute virtual resources.
  • the terminal 500 may be used to provide users with information browsing services.
  • the terminal 500 may be a viewer in a live broadcast service.
  • the terminal 500 may be used for a viewer in a live broadcast service. , to provide services during the live broadcast.
  • the service server 400 may be a server corresponding to the terminal 500 for providing background services for the terminal 500 .
  • the above-mentioned servers may be independent physical servers, or may be server clusters or distributed systems composed of multiple physical servers , can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data Cloud servers for basic cloud computing services such as artificial intelligence platforms.
  • cloud databases cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data Cloud servers for basic cloud computing services such as artificial intelligence platforms.
  • the above-mentioned terminal 500 may include, but is not limited to, smartphones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR)/virtual reality (VR) devices , smart wearable devices and other types of electronic devices.
  • the operating system running on the electronic device may include, but is not limited to, the Android system, the IOS system, linux, windows, and the like.
  • FIG. 1 is only an application environment provided by the present disclosure, and in practical applications, other application environments may also be included, such as the above-mentioned resource creation server 100 , resource management server 200 , and resource distribution server. 300 and the service server 400 are the same server. In some embodiments, the above service functions of the resource creation server 100 , the resource management server 200 , and the resource distribution server 300 may be integrated into the above service server 400 .
  • resource creation server 100 may be directly or indirectly connected through wired or wireless communication.
  • resource management server 200 may be directly or indirectly connected through wired or wireless communication.
  • resource distribution server 300 may be directly or indirectly connected through wired or wireless communication.
  • Fig. 2 is a flowchart of a method for distributing resources according to an exemplary embodiment.
  • the method may include the following steps: S201, the terminal displays a target page including resource claim information; S203, in response to the resource claim based on In the resource acquisition instruction triggered by the information, the terminal sends a resource acquisition request to the service server; S205, the service server acquires the resource type identifier corresponding to the terminal; S207, extracts virtual resources for the terminal based on the resource type identifier; S209, the service server sends the resource extraction result to the terminal information; S211, the terminal displays resource extraction result information on the target page.
  • step S201 the terminal displays a target page including resource claim information.
  • the above-mentioned target page may be an information browsing page.
  • the target page may be a live broadcast page of the viewer.
  • the resource claim information may be used to trigger a claim instruction of the first virtual resource.
  • the resource claim information may be a resource claim control.
  • a corresponding task can be set in advance for a certain resource distribution activity in the live broadcast room according to the actual application requirements.
  • the resource collection can be displayed on the corresponding live broadcast page. information so that users can participate in the corresponding resource distribution activities.
  • the above-mentioned tasks set for the live room may include tasks set for the host (ie, the information publisher) of the live room.
  • the task corresponding to the host may reach a preset amount of the preset virtual items received by the host, and may be set according to actual application requirements.
  • the above-mentioned tasks set for the live room may include tasks set for viewers of the live room.
  • the task corresponding to the viewer may be that the viewing duration of the viewer reaches a preset duration, which may be set according to actual application requirements.
  • a resource generation instruction may be triggered to trigger the display of resource claim information.
  • the above-mentioned displaying the target page including the resource claim information may include: displaying the target page in response to the live page loading instruction; and displaying the resource claim information on the target page in response to the resource generation instruction.
  • the resource claim information may be displayed on the target page by means of a pop-up window, as shown in FIG. 3 , which is a schematic diagram of a target page including resource claim information according to an exemplary embodiment.
  • the resource generation instruction triggered by the completion of the task may also be used to trigger the background server to perform a preparation operation for the resource distribution activity.
  • the above method may further include: the preparation operation for the resource distribution activity (creating virtual resources and disassembling virtual resources) operation of dividing virtual resources), in some embodiments, the preparation operation of the resource distribution activity may include: the service server generates a target virtual resource in response to a resource generation instruction corresponding to the target page; the service server obtains preset configuration information; the service server The first virtual resource is split from the target virtual resource based on the preset configuration information; the service server splits the remaining virtual resource into a preset number of second virtual resources, and the remaining virtual resource is the first virtual resource split from the target virtual resource Virtual resource after virtual resource.
  • the resource generation instruction is triggered to generate the target virtual resource.
  • the target virtual resource may include, but is not limited to, virtual currency with a preset resource amount, electronic coupons, and the like.
  • each anchor can correspond to target virtual resources with different resource amounts, which can be set in combination with practical applications.
  • the target virtual resource may be split into a first virtual resource and a preset number of second virtual resources.
  • the first virtual resource is the virtual resource with the largest amount of resources among the virtual resources to be extracted (the split first virtual resource and the preset number of second virtual resources).
  • the first virtual resource may be One, or multiple virtual resources with the largest resources.
  • the first virtual resource may be split from the target virtual resource in combination with the preset configuration information.
  • the preset configuration information may represent the proportion of the first virtual resource in the target virtual resource.
  • the second virtual resource may be split in combination with the historical live broadcast information of the host, so as to better ensure that the audience in the live broadcast room can receive the virtual resource.
  • the historical live broadcast information may be information that can represent the number of online viewers of the anchor during the historical live broadcast process. In some embodiments, it may be the number of online viewers of the anchor during multiple historical live broadcasts. In some embodiments, the average number of online viewers during multiple live broadcasts of the host may be calculated, and the average number of online viewers may be used as a preset number.
  • the average number of online viewers per hour during multiple live broadcasts of the host may be calculated.
  • the product of the live broadcast duration of the current live broadcast and the above-mentioned hourly average number of online viewers is calculated. as a preset amount.
  • whether the target virtual resource corresponding to the host can be split into the first virtual resource may be determined in combination with the personal attribute information of the host in the platform.
  • the personal attribute information of the host may include, but is not limited to, the number of fans of the host, the amount of product promotion, etc.
  • the target virtual resource corresponding to the host whose number of fans or product promotion exceeds a corresponding threshold can be obtained from the host.
  • a first virtual resource and a preset number of second virtual resources are split out.
  • the resource amount of the target virtual resource from which the first virtual resource can be split is often larger than the resource amount of the target virtual resource that cannot be split from the first virtual resource.
  • a certain number of second virtual resources may be split in combination with the historical live broadcast information corresponding to the host.
  • the creation and splitting of the target virtual resource is performed in advance, and the first virtual resource and a preset number of virtual resources are split from one target virtual resource.
  • the second virtual resource realizes the distribution of multiple virtual resources in one resource distribution activity.
  • the above method may further include: when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the resource amount may be greater than the first virtual resource.
  • the virtual resource is replaced with the first virtual resource.
  • the resource amount of any virtual resource in the preset number of second virtual resources is greater than the first virtual resource.
  • the virtual resource with the resource amount greater than the first virtual resource can be replaced with the first virtual resource, thereby ensuring that the first virtual resource is the virtual resource with the largest resource amount among the virtual resources to be extracted, improving the performance of the virtual resource.
  • the accuracy of resource splitting is the case of the resource amount of the virtual resource.
  • the above method may further include: storing the first virtual resource and a preset number of second virtual resources in the target database.
  • storing the first virtual resource and the preset number of second virtual resources in the target data may include, but is not limited to, storing the identification information and attribute information of the first virtual resource and the preset number of second virtual resources stored in the target database.
  • the attribute information may include, but is not limited to, resource amount, identification information, resource type (belonging to the first virtual resource or the second virtual resource), resource status information, and the like.
  • resource status information may include, but is not limited to, creation status, extraction status (the virtual resource has been extracted but not distributed to the corresponding viewer), and distribution status (the virtual resource has been distributed to the corresponding viewer).
  • the preparation operation for the above resource distribution activity may also include the following steps:
  • step S401 the resource creation server generates the target virtual resource in response to the resource generation instruction corresponding to the target page;
  • step S403 the resource creation server sends the target virtual resource to the resource management server;
  • step S405 the resource management server obtains preset configuration information
  • step S407 the resource management server splits the first virtual resource from the target virtual resource based on the preset configuration information
  • step S409 the resource management server divides the remaining virtual resources into a preset number of second virtual resources, and the remaining virtual resources are virtual resources obtained by dividing the first virtual resources from the target virtual resources.
  • the above method may further include the following steps:
  • step S411 when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the resource management server compares the virtual resource whose resource amount is greater than the first virtual resource with the first virtual resource. A virtual resource is replaced.
  • the above method may further include the following steps:
  • step S413 the resource management server stores the first virtual resource and a preset number of second virtual resources in the target database.
  • the service server side can set up a message queue, and when the task corresponding to the resource distribution activity is completed, a message that can indicate the completion of the task is sent to the message queue, thereby triggering the resource generation instruction, and at the same time, the resource creation The server can respond to the resource generation instruction in time by monitoring the message queue to generate the target virtual resource.
  • the creation and splitting of target virtual resources are separated from the service server, which can effectively reduce the system pressure of the service server and improve the fluency in the information browsing process.
  • step S203 in response to a resource acquisition instruction triggered based on the resource acquisition information, the terminal sends a resource acquisition request to the service server.
  • a resource claiming instruction may be triggered by a user's active operation, for example, triggering operations such as clicking on resource claiming information.
  • an automatic triggering method can also be used to trigger the resource claiming instruction, for example, by setting a timed task, the resource claiming instruction is automatically triggered after a preset time after the resource claiming information is displayed.
  • step S205 the service server obtains the resource type identifier corresponding to the terminal.
  • the resource type identifier represents resource type information of virtual resources available to the terminal. In some embodiments, obtaining the resource type identifier corresponding to the terminal by the service server includes:
  • the service server obtains task execution information of the preset task of the target object corresponding to the terminal;
  • the service server generates a resource type identifier corresponding to the terminal based on the task execution information.
  • the target object corresponding to the terminal may be the audience corresponding to the target page.
  • a task (preset task) may be preset for identifying whether the object has the task of claiming the first virtual resource qualification.
  • the target object that completes the preset task may have the qualification to receive the first virtual resource; conversely, the target object that has not completed the preset task may not have the qualification to receive the first virtual resource, but can participate in receiving the second virtual resource. resource.
  • the task execution information may represent the completion of a preset task, and in some embodiments, the task execution information may include completed or incomplete.
  • a first identifier may be generated for the terminal
  • a second identifier is generated for the terminal.
  • the first identifier may represent that the resource type of the virtual resource available to the terminal is the first virtual resource
  • the second identifier may represent that the resource type of the virtual resource available to the terminal is the second virtual resource
  • the task execution information of the preset task is used to distinguish the resource type identifiers corresponding to different terminals, and on the basis of introducing a variety of virtual resources in a resource activity process, the virtual resources can be distributed in a targeted manner, and then the virtual resources can be distributed. It can improve the accuracy of resource distribution on the basis of better arousing the interest of users.
  • the above method further includes:
  • step S513 the terminal sends a resource type identifier acquisition request to the service server;
  • step S515 the service server obtains task execution information of the preset task of the target object corresponding to the terminal;
  • step S517 the service server generates a resource type identifier corresponding to the terminal based on the task execution information
  • step S519 the service server sends the resource type identifier to the terminal.
  • the terminal sending the resource acquisition request to the service server may include: the terminal sending the resource acquisition request including the resource type identifier to the service server.
  • acquiring the resource type identifier corresponding to the terminal by the service server includes extracting the resource type identifier from the resource acquisition request by the service server.
  • generating the resource type identifier corresponding to the terminal by the service server based on the task execution information may include: when the task execution information is completed, generating a first identifier for the terminal; when the task execution information is incomplete , and generate a second identifier for the terminal.
  • pre-distributing resource type identifiers by pre-distributing resource type identifiers, it can be ensured that qualified users can receive the first virtual resource, and the service server remains highly available, which greatly improves the stability of the service server and the efficiency of resource distribution.
  • step S207 virtual resources are extracted for the terminal based on the resource type identifier.
  • the foregoing extracting virtual resources for the terminal based on the resource type identifier may include:
  • the resource type identifier is the first identifier
  • extract a first virtual resource for the terminal and in some embodiments, the first virtual resource may be the virtual resource with the largest amount of resources among the virtual resources to be extracted;
  • the type identifier for terminal extraction of virtual resources may also include:
  • the resource type identifier is the second identifier
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the probability of the user extracting the virtual resource can be guaranteed, thereby better stimulating the It can arouse users' interest and enthusiasm for participation, which in turn can improve the efficiency of resource distribution.
  • the service server extracting the virtual resource for the terminal based on the resource type identifier may include: the service server extracting the virtual resource for the terminal based on the resource type identifier from the target database.
  • the above method may further include:
  • the service server distributes the extracted virtual resources to the terminal.
  • the service server distributing the extracted virtual resources to the terminal may include:
  • the service server sends a successful extraction message corresponding to the virtual resource to the message queue, and in response to the resource distribution server monitoring the successful extraction message, distributes the extracted virtual resource to the terminal.
  • the resource distribution server may monitor the successful extraction of messages by subscribing to messages in the message queue; correspondingly, in response to monitoring the successful extraction of messages, it may distribute the extracted virtual resources to the terminal.
  • the task of resource distribution is separated from the service server in combination with the message queue, which can effectively reduce the system pressure of the service server, improve the fluency of the information browsing process, and improve the efficiency of resource distribution. Speed and reliability.
  • the successfully extracted messages in response to the business server extracting the first virtual resource, can be backed up to a certain database, so that the resource distribution server can monitor the database regularly. to successfully extract messages to improve the accuracy of resource distribution.
  • step S209 the service server sends resource extraction result information to the terminal.
  • the service server sending the resource extraction result information to the terminal may include sending the resource extraction successful result of the first virtual resource to the terminal, so that the terminal displays the resource extraction successful result on the target page.
  • the above-mentioned service sending resource extraction result information to the terminal includes sending the resource extraction result of the second virtual resource to the terminal, so that the terminal can display the resource extraction result on the target page. Resource extraction results.
  • step S211 the terminal displays resource extraction result information on the target page.
  • the resource extraction result information is displayed on the target page in the form of a pop-up window.
  • the extraction result information may include the resource amount of the extracted virtual resources, or information such as prompt information that the virtual resources have not been extracted.
  • FIG. 6 is a schematic diagram of a target page showing a successful result of resource extraction according to an exemplary embodiment.
  • this specification obtains resource type identifiers that can represent the resource type information of the virtual resources that the terminal can receive, and can extract the virtual resources to be extracted in a targeted manner.
  • Corresponding types of virtual resources thereby increasing the diversity of distributed virtual resources, can better stimulate users' interest and enthusiasm for participation, and further improve the efficiency of resource distribution.
  • step S701 receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
  • step S703 a resource type identifier corresponding to the terminal is obtained, where the resource type identifier represents resource type information of virtual resources that the terminal can receive;
  • step S705 extract virtual resources for the terminal based on the resource type identifier
  • step S707 the resource extraction result information is sent to the terminal, so that the terminal displays the resource extraction result information on the target page.
  • extracting virtual resources for the terminal based on the resource type identifier includes:
  • the resource type identifier is the first identifier
  • extract the first virtual resource for the terminal and the first virtual resource is the virtual resource with the largest amount of resources among the virtual resources to be extracted;
  • sending the resource extraction result information to the terminal includes sending the resource extraction success result to the terminal.
  • extracting virtual resources for the terminal based on the resource type identifier further includes:
  • the resource type identifier is the second identifier
  • Sending the resource extraction result information to the terminal includes sending the resource extraction result of the second virtual resource to the terminal;
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the above method further includes:
  • the resource type identifier is sent to the terminal.
  • the resource acquisition request includes a resource type identifier
  • the acquisition of the resource type identifier corresponding to the terminal includes: extracting the resource type identifier from the resource acquisition request.
  • generating the resource type identifier corresponding to the terminal based on the task execution information includes:
  • a second identifier is generated for the terminal.
  • acquiring the resource type identifier corresponding to the terminal includes:
  • the resource type identifier corresponding to the terminal is generated based on the task execution information.
  • the above method further includes:
  • the preset configuration information represents the proportion of the first virtual resource in the target virtual resource
  • the remaining virtual resources are divided into a preset number of second virtual resources, and the remaining virtual resources are virtual resources after the first virtual resources are divided from the target virtual resources.
  • the above method further includes:
  • the virtual resource whose resource amount is greater than the first virtual resource is replaced with the first virtual resource.
  • the above method further includes:
  • Extracting virtual resources for terminals based on resource type identifiers includes:
  • virtual resources are extracted for the terminal based on the resource type identifier.
  • the above method when the first virtual resource is extracted, the above method further includes:
  • distributing the extracted virtual resources to the terminal includes:
  • the successful extraction message corresponding to the virtual resource is sent to the message queue, so that the resource distribution server distributes the extracted virtual resource to the terminal after monitoring the successful extraction message.
  • Embodiments of the present disclosure further provide a resource distribution system.
  • the system may include: a terminal and a service server;
  • a terminal configured to display a target page including resource claim information, and configured to send a resource capture request to the service server in response to a resource claim instruction triggered based on the resource claim information; and configured to display resource extraction result information on the target page ;
  • a service server configured to obtain a resource type identifier corresponding to the terminal, the resource type identifier representing resource type information of virtual resources that the terminal can receive; and configured to extract virtual resources for the terminal based on the resource type identifier; and configured to send to the terminal Resource extraction result information.
  • the terminal is further configured to send a resource type identifier acquisition request to the service server;
  • the service server is further configured to obtain task execution information of a preset task of the target object corresponding to the terminal; and generate a resource type identifier corresponding to the terminal based on the task execution information; and send the resource type identifier to the terminal;
  • Sending the resource acquisition request to the service server includes sending the resource acquisition request including the resource type identifier to the service server.
  • the service server is further configured to extract the second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier; and send the second virtual resource to the terminal the resource extraction results;
  • the terminal is also configured to display the resource extraction result on the target page
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the above system further includes: a resource creation server and a resource management server;
  • a resource creation server configured to generate a target virtual resource in response to a resource creation instruction corresponding to the target page, and send the target virtual resource to the resource management server;
  • a resource management server configured to obtain preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource; and configured to split the first virtual resource from the target virtual resource based on the preset configuration information resources; and is configured to split the remaining virtual resources into a preset number of second virtual resources, and the remaining virtual resources are virtual resources after the first virtual resources are split from the target virtual resources.
  • the resource management server is further configured to, in the case that the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the resource amount is greater than the first virtual resource.
  • the virtual resource of the resource is replaced with the first virtual resource.
  • the resource management server is further configured to store the first virtual resource and a preset number of second virtual resources in the target database.
  • Extracting virtual resources for the terminal based on the resource type identifier includes: extracting virtual resources for the terminal based on the resource type identifier from the target database.
  • the service server is further configured to distribute the extracted virtual resource to the terminal when the first virtual resource is extracted.
  • the above system further includes a message queue and a resource distribution server.
  • the service server is further configured to send a successful extraction message corresponding to the virtual resource to the message queue.
  • the resource distribution server is configured to distribute the extracted virtual resources to the terminal after monitoring the successful extraction message.
  • Fig. 8 is a block diagram of a resource distribution apparatus according to an exemplary embodiment.
  • the device includes:
  • the resource acquisition request receiving module 810 is configured to receive the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
  • the resource type identifier acquiring module 820 is configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can receive;
  • a virtual resource extraction module 830 configured to extract virtual resources for the terminal based on the resource type identifier
  • the resource extraction result information sending module 840 is configured to send resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page
  • virtual resource extraction module 830 includes:
  • a first virtual resource extraction unit configured to extract a first virtual resource for the terminal when the resource type identifier is the first identifier, and the first virtual resource is the virtual resource with the largest resource amount among the virtual resources to be extracted;
  • the resource extraction result information sending module 840 is configured to send the resource extraction success result to the terminal.
  • the above virtual resource extraction module 830 further includes:
  • the second virtual resource extraction unit is configured to extract the second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
  • the above-mentioned resource extraction result information sending module 840 is configured to send the resource extraction result of the second virtual resource to the terminal;
  • the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  • the above-mentioned apparatus further comprises:
  • an identification acquisition request receiving module configured to receive a resource type identification acquisition request sent by the terminal
  • a task execution information obtaining module configured to obtain task execution information of a preset task of the target object corresponding to the terminal
  • the resource type identifier generation module is configured to generate the resource type identifier corresponding to the terminal based on the task execution information
  • a resource type identifier sending module configured to send the resource type identifier to the terminal
  • the resource acquisition request includes a resource type identifier
  • the resource type identifier acquisition module is configured to extract the resource type identifier from the resource acquisition request.
  • the resource type identifier generation module includes:
  • a first identification generation unit configured to generate a first identification for the terminal when the task execution information is completed
  • the second identification generating unit is configured to generate a second identification for the terminal when the task execution information is incomplete.
  • the resource type identification obtaining module 820 includes:
  • the task execution information acquisition and acquisition unit is configured as task execution information of the preset task of the target object corresponding to the terminal;
  • the resource type identifier generating unit is configured to generate a resource type identifier corresponding to the terminal based on the task execution information.
  • the above-mentioned apparatus further comprises:
  • a target virtual resource generation module configured to generate a target virtual resource in response to a resource generation instruction corresponding to the target page
  • a preset configuration information acquisition module configured to acquire preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource;
  • a first virtual resource splitting module configured to split the first virtual resource from the target virtual resource based on preset configuration information
  • the second virtual resource splitting module is configured to split the remaining virtual resources into a preset number of second virtual resources, and the remaining virtual resources are virtual resources obtained by splitting the first virtual resources from the target virtual resources.
  • the above-mentioned apparatus further comprises:
  • the resource replacement module is configured to, when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, replace the virtual resource whose resource amount is greater than the first virtual resource with the first virtual resource. Virtual resources are replaced.
  • the above-mentioned apparatus further comprises:
  • a virtual resource storage module configured to store the first virtual resource and a preset number of second virtual resources in the target database
  • the virtual resource extraction module 830 is configured to extract virtual resources for the terminal based on the resource type identification from the target database.
  • the above-mentioned apparatus further comprises:
  • the virtual resource distribution module is configured to distribute the extracted virtual resource to the terminal when the first virtual resource is extracted.
  • the virtual resource distribution module is configured to send a successful extraction message corresponding to the virtual resource to the message queue, and in response to the resource distribution server monitoring the successful extraction message, distribute the extracted virtual resource to the terminal.
  • FIG. 9 is a block diagram of an electronic device for resource distribution according to an exemplary embodiment.
  • the electronic device may be a server, and its internal structure diagram may be as shown in FIG. 9 .
  • the electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities.
  • the memory of the electronic device includes a non-volatile storage medium and an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the electronic device is used to communicate with an external terminal through a network connection.
  • the computer program when executed by a processor, implements a resource distribution method.
  • FIG. 9 is only a block diagram of a part of the structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied.
  • the electronic device may include more than More or fewer components are shown in the figures, either in combination or with different arrangements of components.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure
  • the resource distribution method in the example comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure
  • a computer-readable storage medium is also provided, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the resource distribution method in the embodiment of the present disclosure.
  • a computer program product comprising instructions which, when executed on a computer, cause the computer to perform the resource distribution method in the embodiments of the present disclosure.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to the technical field of resource distribution, and relates to a resource distribution method, apparatus and system, an electronic device, and a storage medium. The method comprises: receiving a resource acquisition request sent by a terminal in response to a resource pick-up instruction triggered on the basis of resource pick-up information in a target page; acquiring a resource type identifier corresponding to the terminal, the resource type identifier representing resource type information of a virtual resource that can be picked by the terminal; selecting the virtual resource for the terminal on the basis of the resource type identifier; and sending resource selection result information to the terminal, such that the terminal displays the resource selection result information on the target page.

Description

资源分发方法及装置Resource distribution method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202110425923.1、申请日为2021年04月20日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number of 202110425923.1 and the filing date of April 20, 2021, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本公开涉及资源分发技术领域,尤其涉及一种资源分发方法、装置、系统、电子设备及存储介质。The present disclosure relates to the technical field of resource distribution, and in particular, to a resource distribution method, apparatus, system, electronic device, and storage medium.
背景技术Background technique
在一些互联网平台中,为了吸引更多用户来访问平台中的信息,从而提高访问量,一些互联网平台常常会举行一些向用户分发电子优惠券、虚拟货币等虚拟资源的资源分发活动。相关技术中,在一个资源分发活动的虚拟资源分发过程中,往往随机的向用户分发同一类型的虚拟资源,导致相关技术中的虚拟资源的分发方式单一,用户参与积极性差,也会导致资源分发效率低。In some Internet platforms, in order to attract more users to access the information on the platform and thereby increase the number of visits, some Internet platforms often hold some resource distribution activities to distribute virtual resources such as electronic coupons and virtual currency to users. In the related art, in the virtual resource distribution process of a resource distribution activity, the same type of virtual resources are often randomly distributed to users, resulting in a single distribution method of virtual resources in the related art, and poor user participation enthusiasm, which will also lead to resource distribution. low efficiency.
发明内容SUMMARY OF THE INVENTION
本公开提供一种资源分发方法、装置、系统、电子设备及存储介质。The present disclosure provides a resource distribution method, apparatus, system, electronic device, and storage medium.
根据本公开实施例的第一方面,提供一种资源分发方法,包括:According to a first aspect of the embodiments of the present disclosure, a resource distribution method is provided, including:
接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;Receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;obtaining a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can claim;
基于所述资源类型标识为所述终端抽取虚拟资源;Extracting virtual resources for the terminal based on the resource type identifier;
向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息。Sending resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page.
在一些实施例中,所述基于所述资源类型标识为所述终端抽取虚拟资源包括:In some embodiments, the extracting virtual resources for the terminal based on the resource type identifier includes:
在所述资源类型标识为第一标识的情况下,为所述终端抽取第一虚拟资源,所述第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资源;In the case that the resource type identifier is the first identifier, extracting a first virtual resource for the terminal, where the first virtual resource is the virtual resource with the largest amount of resources among the virtual resources to be extracted;
在抽取到虚拟资源的情况下,所述向所述终端发送资源抽取结果信息包括:向所述终端发送资源抽取成功结果。In the case that the virtual resource is extracted, the sending the resource extraction result information to the terminal includes: sending the resource extraction success result to the terminal.
在一些实施例中,所述基于所述资源类型标识为所述终端抽取虚拟资源还包括:In some embodiments, the extracting virtual resources for the terminal based on the resource type identifier further includes:
在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;In the case that the first virtual resource is not extracted, or the resource type identifier is a second identifier, extract a second virtual resource for the terminal;
所述向所述终端发送资源抽取结果信息包括:向所述终端发送所述第二虚拟资源的 资源抽取结果;The sending the resource extraction result information to the terminal includes: sending the resource extraction result of the second virtual resource to the terminal;
其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
接收所述终端发送的资源类型标识获取请求;receiving a resource type identifier acquisition request sent by the terminal;
获取所述终端对应的目标对象的预设任务的任务执行信息;acquiring task execution information of a preset task of the target object corresponding to the terminal;
基于所述任务执行信息生成所述终端对应的资源类型标识;generating a resource type identifier corresponding to the terminal based on the task execution information;
将所述资源类型标识发送给所述终端。sending the resource type identifier to the terminal.
在一些实施例中,所述资源获取请求包括所述资源类型标识,所述获取所述终端对应的资源类型标识包括:In some embodiments, the resource acquisition request includes the resource type identifier, and the acquiring the resource type identifier corresponding to the terminal includes:
从所述资源获取请求中提取所述资源类型标识。The resource type identifier is extracted from the resource acquisition request.
在一些实施例中,所述基于所述任务执行信息生成所述终端对应的资源类型标识包括:In some embodiments, the generating the resource type identifier corresponding to the terminal based on the task execution information includes:
在所述任务执行信息为已完成的情况下,为所述终端生成第一标识;In the case that the task execution information is completed, generating a first identifier for the terminal;
在所述任务执行信息为未完成的情况下,为所述终端生成第二标识。In the case that the task execution information is incomplete, a second identifier is generated for the terminal.
在一些实施例中,所述获取所述终端对应的资源类型标识包括:In some embodiments, the acquiring the resource type identifier corresponding to the terminal includes:
获取所述终端对应的目标对象的预设任务的任务执行信息;acquiring task execution information of a preset task of the target object corresponding to the terminal;
基于所述任务执行信息生成所述终端对应的资源类型标识。A resource type identifier corresponding to the terminal is generated based on the task execution information.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;In the case that the first virtual resource is not extracted, or the resource type identifier is a second identifier, extract a second virtual resource for the terminal;
所述向所述终端发送资源抽取结果信息包括:向所述终端发送所述第二虚拟资源的资源抽取结果;The sending the resource extraction result information to the terminal includes: sending the resource extraction result of the second virtual resource to the terminal;
其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于与所述目标页面对应的资源生成指令,生成目标虚拟资源;generating a target virtual resource in response to a resource generation instruction corresponding to the target page;
获取预设配置信息,所述预设配置信息表征第一虚拟资源在所述目标虚拟资源中的比例;acquiring preset configuration information, where the preset configuration information represents the proportion of the first virtual resource in the target virtual resource;
基于所述预设配置信息从所述目标虚拟资源中拆分出所述第一虚拟资源;Splitting the first virtual resource from the target virtual resource based on the preset configuration information;
将剩余虚拟资源拆分成预设数量个第二虚拟资源,所述剩余虚拟资源为所述目标虚拟资源中拆分出所述第一虚拟资源后的虚拟资源。Splitting the remaining virtual resources into a preset number of second virtual resources, where the remaining virtual resources are virtual resources after the first virtual resources are split from the target virtual resources.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
在所述预设数量个第二虚拟资源中任一虚拟资源的资源量大于所述第一虚拟资源的资源量的情况下,将资源量大于所述第一虚拟资源的虚拟资源与所述第一虚拟资源进行替换处理。In the case that the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the virtual resource whose resource amount is greater than the first virtual resource is compared with the first virtual resource. A virtual resource is replaced.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
将所述第一虚拟资源和所述预设数量个第二虚拟资源存储到目标数据库中;storing the first virtual resource and the preset number of second virtual resources in a target database;
所述基于所述资源类型标识为所述终端抽取虚拟资源包括:The extracting virtual resources for the terminal based on the resource type identifier includes:
从所述目标数据库,基于所述资源类型标识为所述终端抽取虚拟资源。From the target database, virtual resources are extracted for the terminal based on the resource type identifier.
在一些实施例中,在抽取到虚拟资源的情况下,所述方法还包括:In some embodiments, in the case of extracting virtual resources, the method further includes:
向所述终端分发抽取到的虚拟资源。The extracted virtual resources are distributed to the terminal.
在一些实施例中,所述向所述终端分发抽取到的虚拟资源包括:In some embodiments, the distributing the extracted virtual resources to the terminal includes:
向消息队列发送所述虚拟资源对应的成功抽取消息,响应于资源分发服务器监测到所述成功抽取消息,向所述终端分发抽取到的虚拟资源。A successful extraction message corresponding to the virtual resource is sent to the message queue, and the extracted virtual resource is distributed to the terminal in response to the resource distribution server monitoring the successful extraction message.
根据本公开实施例的第二方面,提供一种资源分发装置,包括:According to a second aspect of the embodiments of the present disclosure, a resource distribution apparatus is provided, including:
资源获取请求接收模块,被配置为接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;The resource acquisition request receiving module is configured to receive the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
资源类型标识获取模块,被配置为获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;a resource type identifier acquisition module, configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that can be claimed by the terminal;
虚拟资源抽取模块,被配置为基于所述资源类型标识为所述终端抽取虚拟资源;a virtual resource extraction module, configured to extract virtual resources for the terminal based on the resource type identifier;
资源抽取结果信息发送模块,被配置为向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息A resource extraction result information sending module, configured to send resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page
在一些实施例中,所述虚拟资源抽取模块包括:In some embodiments, the virtual resource extraction module includes:
第一虚拟资源抽取单元,被配置为在所述资源类型标识为第一标识的情况下,为所述终端抽取第一虚拟资源,所述第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资源;A first virtual resource extraction unit, configured to extract a first virtual resource for the terminal when the resource type identifier is the first identifier, and the first virtual resource is the virtual resource to be extracted with the largest amount of resources virtual resources;
在抽取到虚拟资源的情况下,所述资源抽取结果信息发送模块被配置为向所述终端发送资源抽取成功结果。In the case that the virtual resource is extracted, the resource extraction result information sending module is configured to send the resource extraction success result to the terminal.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
第二虚拟资源抽取模块,被配置为在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;A second virtual resource extraction module, configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
资源抽取结果发送模块被配置为向所述终端发送所述第二虚拟资源的资源抽取结果;The resource extraction result sending module is configured to send the resource extraction result of the second virtual resource to the terminal;
其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
标识获取请求接收模块,被配置为接收所述终端发送的资源类型标识获取请求;an identification acquisition request receiving module, configured to receive a resource type identification acquisition request sent by the terminal;
任务执行信息获取模块,被配置为获取所述终端对应的目标对象的预设任务的任务执行信息;a task execution information obtaining module, configured to obtain task execution information of a preset task of the target object corresponding to the terminal;
资源类型标识生成模块,被配置为基于所述任务执行信息生成所述终端对应的资源类型标识;a resource type identifier generation module, configured to generate a resource type identifier corresponding to the terminal based on the task execution information;
资源类型标识发送模块,被配置为将所述资源类型标识发送给所述终端。The resource type identifier sending module is configured to send the resource type identifier to the terminal.
在一些实施例中,所述资源获取请求包括所述资源类型标识,所述资源类型标识获取模块被配置为从所述资源获取请求中提取所述资源类型标识。In some embodiments, the resource acquisition request includes the resource type identifier, and the resource type identifier acquisition module is configured to extract the resource type identifier from the resource acquisition request.
在一些实施例中,所述资源类型标识生成模块包括:In some embodiments, the resource type identifier generation module includes:
第一标识生成单元,被配置为在所述任务执行信息为已完成的情况下,为所述终端生成第一标识;a first identification generating unit, configured to generate a first identification for the terminal when the task execution information is completed;
第二标识生成单元,被配置为在所述任务执行信息为未完成的情况下,为所述终端生成第二标识。The second identification generating unit is configured to generate a second identification for the terminal when the task execution information is incomplete.
在一些实施例中,所述资源类型标识获取模块包括:In some embodiments, the resource type identifier acquisition module includes:
任务执行信获取获取单元,被配置为所述终端对应的目标对象的预设任务的任务执行信息;a task execution information acquisition unit, configured as task execution information of a preset task of the target object corresponding to the terminal;
资源类型标识生成单元,被配置为基于所述任务执行信息生成所述终端对应的资源类型标识。The resource type identifier generating unit is configured to generate a resource type identifier corresponding to the terminal based on the task execution information.
在一些实施例中,所述虚拟资源抽取模块还包括:In some embodiments, the virtual resource extraction module further includes:
第二虚拟资源抽取单元,被配置为在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;A second virtual resource extraction unit, configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
所述资源抽取结果信息发送模块被配置为向所述终端发送所述第二虚拟资源的资源抽取结果,以使所述终端在所述目标页面展示所述资源抽取结果;The resource extraction result information sending module is configured to send the resource extraction result of the second virtual resource to the terminal, so that the terminal displays the resource extraction result on the target page;
其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
目标虚拟资源生成模块,被配置为响应于与所述目标页面对应的资源生成指令,生成目标虚拟资源;a target virtual resource generation module, configured to generate a target virtual resource in response to a resource generation instruction corresponding to the target page;
预设配置信息获取模块,被配置为获取预设配置信息,所述预设配置信息表征第一虚拟资源在所述目标虚拟资源中的比例;a preset configuration information acquisition module, configured to acquire preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource;
第一虚拟资源拆分模块,被配置为基于所述预设配置信息从所述目标虚拟资源中拆分出所述第一虚拟资源;a first virtual resource splitting module, configured to split the first virtual resource from the target virtual resource based on the preset configuration information;
第二虚拟资源拆分模块,被配置为将剩余虚拟资源拆分成预设数量个第二虚拟资源,所述剩余虚拟资源为所述目标虚拟资源中拆分出所述第一虚拟资源后的虚拟资源。The second virtual resource splitting module is configured to split the remaining virtual resources into a preset number of second virtual resources, where the remaining virtual resources are the target virtual resources after the first virtual resources are split virtual resource.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
资源替换模块,被配置为在所述预设数量个第二虚拟资源中任一虚拟资源的资源量大于所述第一虚拟资源的资源量的情况下,将资源量大于所述第一虚拟资源的虚拟资源与所述第一虚拟资源进行替换处理。A resource replacement module, configured to replace the resource amount greater than the first virtual resource with the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource The virtual resource is replaced with the first virtual resource.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
虚拟资源存储模块,被配置为将所述第一虚拟资源和所述预设数量个第二虚拟资源存储到目标数据库中;a virtual resource storage module, configured to store the first virtual resource and the preset number of second virtual resources in a target database;
所述虚拟资源抽取模块被配置为从所述目标数据库,基于所述资源类型标识为所述终端抽取虚拟资源。The virtual resource extraction module is configured to extract virtual resources for the terminal from the target database based on the resource type identifier.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
虚拟资源分发模块,被配置为在抽取到虚拟资源的情况下,向所述终端分发抽取到 的虚拟资源。The virtual resource distribution module is configured to distribute the extracted virtual resources to the terminal when the virtual resources are extracted.
在一些实施例中,所述虚拟资源分发模块被配置为向消息队列发送所述虚拟资源对应的成功抽取消息,响应于资源分发服务器监测到所述成功抽取消息,向所述终端分发抽取到的虚拟资源。In some embodiments, the virtual resource distribution module is configured to send a successful extraction message corresponding to the virtual resource to a message queue, and in response to the resource distribution server monitoring the successful extraction message, distribute the extracted message to the terminal. virtual resource.
根据本公开实施例的第三方面,提供一种资源分发系统,该系统可以包括:终端和业务服务器;According to a third aspect of the embodiments of the present disclosure, a resource distribution system is provided, and the system may include: a terminal and a service server;
所述终端,被配置为显示包括资源领取信息的目标页面,以及被配置为响应于基于资源领取信息触发的资源领取指令,向所述业务服务器发送资源获取请求;以及被配置为在所述目标页面展示资源抽取结果信息;The terminal is configured to display a target page including resource claim information, and is configured to send a resource acquisition request to the service server in response to a resource claim instruction triggered based on the resource claim information; The page displays the resource extraction result information;
所述业务服务器,被配置为获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;以及被配置为基于所述资源类型标识为所述终端抽取虚拟资源;以及被配置为向所述终端发送资源抽取结果信息。The service server is configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can receive; and is configured to identify the resource type based on the resource type identifier for the The terminal extracts virtual resources; and is configured to send resource extraction result information to the terminal.
在一些实施例中,所述终端,还被配置为向所述业务服务器发送资源类型标识获取请求;In some embodiments, the terminal is further configured to send a resource type identifier acquisition request to the service server;
所述业务服务器,还被配置为获取所述终端对应的目标对象的预设任务的任务执行信息;以及基于所述任务执行信息生成所述终端对应的资源类型标识;以及将所述资源类型标识发送给所述终端;The service server is further configured to acquire task execution information of a preset task of the target object corresponding to the terminal; and generate a resource type identifier corresponding to the terminal based on the task execution information; and assign the resource type identifier to the sent to the terminal;
所述向业务服务器发送资源获取请求包括向业务服务器发送包括所述资源类型标识的资源获取请求。The sending the resource acquisition request to the service server includes sending the resource acquisition request including the resource type identifier to the service server.
在一些实施例中,所述业务服务器,还被配置为在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;以及向所述终端发送所述第二虚拟资源的资源抽取结果;In some embodiments, the service server is further configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is a second identifier; and sending the resource extraction result of the second virtual resource to the terminal;
所述终端,还被配置为在所述目标页面展示所述资源抽取结果;The terminal is further configured to display the resource extraction result on the target page;
其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,所述系统还包括:资源创建服务器和资源管理服务器;In some embodiments, the system further includes: a resource creation server and a resource management server;
所述资源创建服务器,被配置为响应于与所述目标页面对应的资源生成指令,生成目标虚拟资源,以及将所述目标虚拟资源发送给所述资源管理服务器;the resource creation server, configured to generate a target virtual resource in response to a resource creation instruction corresponding to the target page, and send the target virtual resource to the resource management server;
所述资源管理服务器,被配置为获取预设配置信息,所述预设配置信息表征第一虚拟资源在所述目标虚拟资源中的比例;以及被配置为基于所述预设配置信息从所述目标虚拟资源中拆分出所述第一虚拟资源;以及被配置为将剩余虚拟资源拆分成预设数量个第二虚拟资源,所述剩余虚拟资源为所述目标虚拟资源中拆分出所述第一虚拟资源后的虚拟资源。The resource management server is configured to obtain preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource; and configured to obtain the preset configuration information from the Splitting the first virtual resource from the target virtual resource; and being configured to split the remaining virtual resource into a preset number of second virtual resources, where the remaining virtual resource is split from the target virtual resource The virtual resource after the first virtual resource is described.
在一些实施例中,所述资源管理服务器,还被配置为在所述预设数量个第二虚拟资源中任一虚拟资源的资源量大于所述第一虚拟资源的资源量的情况下,将资源量大于所述第一虚拟资源的虚拟资源与所述第一虚拟资源进行替换处理。In some embodiments, the resource management server is further configured to, when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, A virtual resource whose resource amount is greater than the first virtual resource is replaced with the first virtual resource.
在一些实施例中,所述资源管理服务器,还被配置为将所述第一虚拟资源和所述预 设数量个第二虚拟资源存储到目标数据库中;In some embodiments, the resource management server is further configured to store the first virtual resource and the preset number of second virtual resources in a target database;
所述基于所述资源类型标识为所述终端抽取虚拟资源包括:从所述目标数据库,基于所述资源类型标识为所述终端抽取虚拟资源。The extracting virtual resources for the terminal based on the resource type identifier includes: extracting virtual resources for the terminal based on the resource type identifier from the target database.
在一些实施例中,所述业务服务器,还被配置为在抽取到虚拟资源的情况下,向所述终端分发抽取到的虚拟资源。In some embodiments, the service server is further configured to distribute the extracted virtual resource to the terminal when the extracted virtual resource is obtained.
在一些实施例中,所述系统还包括消息队列和资源分发服务器;In some embodiments, the system further includes a message queue and a resource distribution server;
所述业务服务器还被配置为向所述消息队列发送所述虚拟资源对应的成功抽取消息;The service server is further configured to send a successful extraction message corresponding to the virtual resource to the message queue;
所述资源分发服务器被配置为响应于监测到所述成功抽取消息,向所述终端分发抽取到的虚拟资源。The resource distribution server is configured to distribute the extracted virtual resource to the terminal in response to monitoring the successful extraction message.
根据本公开实施例的第四方面,提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如上述第一方面中任一项所述的方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to achieve The method of any one of the first aspects above.
根据本公开实施例的第五方面,提供一种计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行本公开实施例的第一方面中任一所述方法。According to a fifth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the first embodiment of the present disclosure. The method of any of the aspects.
根据本公开实施例的第六方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本公开实施例的第一方面中任一所述方法。According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the methods described in the first aspect of the embodiments of the present disclosure.
通过在资源分发过程中,获取能够表征终端可领取的虚拟资源的资源类型信息的资源类型标识,可以有针对的从待抽取虚拟资源中抽取相应类型的虚拟资源,进而提升分发的虚拟资源的多元性,可以更好激发起用户的兴趣和参与积极性,进而也可以提升资源分发效率。By acquiring the resource type identifier that can represent the resource type information of the virtual resources available to the terminal during the resource distribution process, the corresponding type of virtual resources can be extracted from the virtual resources to be extracted in a targeted manner, thereby increasing the diversity of distributed virtual resources. It can better arouse users' interest and enthusiasm for participation, which in turn can improve the efficiency of resource distribution.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种应用环境的示意图;FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种资源分发方法的流程图;FIG. 2 is a flowchart of a method for distributing resources according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种包括资源领取信息的目标页面的示意图;3 is a schematic diagram of a target page including resource claim information according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种资源分发活动的准备操作的流程示意图;4 is a schematic flowchart of a preparation operation for a resource distribution activity according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种资源分发方法的流程图;5 is a flowchart of a method for distributing resources according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种展示有资源抽取成功结果的目标页面的示意图;6 is a schematic diagram of a target page showing a successful result of resource extraction according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种资源分发方法的流程图;FIG. 7 is a flowchart of a method for distributing resources according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种资源分发装置框图;8 is a block diagram of a resource distribution apparatus according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种用于资源分发的电子设备的框图。Fig. 9 is a block diagram of an electronic device for resource distribution according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
需要说明的是,本公开所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于展示的数据、分析的数据等),均为经用户授权或者经过各方充分授权的信息和数据。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to display data, analysis data, etc.) involved in this disclosure are all authorized by the user or information and data fully authorized by the parties.
请参阅图1,图1是根据一示例性实施例示出的一种应用环境的示意图,如图1所示,该应用环境可以包括资源创建服务器100、资源管理服务器200、资源分发服务器300、业务服务器400和终端500。Please refer to FIG. 1, which is a schematic diagram of an application environment according to an exemplary embodiment. As shown in FIG. 1, the application environment may include a resource creation server 100, a resource management server 200, a resource distribution server 300, a service The server 400 and the terminal 500.
在实际应用中,一些直播平台常常会通过向观众端分发虚拟资源的方式来引流,相应的,不同的资源分发活动可以对应不同的后台服务。资源创建服务器100可以为某一资源分发活动对应的服务器,用于提供资源分发的后台服务。资源管理服务器200可以用于对资源分发活动对应的目标虚拟资源进行管理。资源分发服务器300可以用于进行虚拟资源的分发。In practical applications, some live broadcast platforms often divert traffic by distributing virtual resources to viewers. Correspondingly, different resource distribution activities can correspond to different background services. The resource creation server 100 may be a server corresponding to a certain resource distribution activity, and is used to provide a background service for resource distribution. The resource management server 200 may be used to manage target virtual resources corresponding to resource distribution activities. The resource distribution server 300 may be used to distribute virtual resources.
在一些实施例中,终端500可以用于面向用户,提供信息浏览服务,在一些实施例中,终端500可以为直播业务中的观众端,相应的,终端500可以用于面向直播服务中的观众,提供直播过程中的服务。在一些实施例中,业务服务器400可以为,终端500对应的服务器,用于为终端500提供后台服务。In some embodiments, the terminal 500 may be used to provide users with information browsing services. In some embodiments, the terminal 500 may be a viewer in a live broadcast service. Correspondingly, the terminal 500 may be used for a viewer in a live broadcast service. , to provide services during the live broadcast. In some embodiments, the service server 400 may be a server corresponding to the terminal 500 for providing background services for the terminal 500 .
在一些实施例中,上述服务器(资源创建服务器100、资源管理服务器200、资源分发服务器300和业务服务器400)可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。In some embodiments, the above-mentioned servers (the resource creation server 100, the resource management server 200, the resource distribution server 300, and the service server 400) may be independent physical servers, or may be server clusters or distributed systems composed of multiple physical servers , can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data Cloud servers for basic cloud computing services such as artificial intelligence platforms.
在一些实施例中,上述终端500可以包括但不限于智能手机、台式计算机、平板电脑、笔记本电脑、智能音箱、数字助理、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、智能可穿戴设备等类型的电子设备。在一些实施例中,电子设备上 运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows等。In some embodiments, the above-mentioned terminal 500 may include, but is not limited to, smartphones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR)/virtual reality (VR) devices , smart wearable devices and other types of electronic devices. In some embodiments, the operating system running on the electronic device may include, but is not limited to, the Android system, the IOS system, linux, windows, and the like.
此外,需要说明的是,图1所示的仅仅是本公开提供的一种应用环境,在实际应用中,还可以包括其他应用环境,例如上述资源创建服务器100、资源管理服务器200、资源分发服务器300和业务服务器400为同一服务器,在一些实施例中,可以将资源创建服务器100、资源管理服务器200、资源分发服务器300的上述服务功能均集成在上述业务服务器400。In addition, it should be noted that what is shown in FIG. 1 is only an application environment provided by the present disclosure, and in practical applications, other application environments may also be included, such as the above-mentioned resource creation server 100 , resource management server 200 , and resource distribution server. 300 and the service server 400 are the same server. In some embodiments, the above service functions of the resource creation server 100 , the resource management server 200 , and the resource distribution server 300 may be integrated into the above service server 400 .
本说明书实施例中,上述资源创建服务器100、资源管理服务器200、资源分发服务器300、业务服务器400和终端500间可以通过有线或无线通信方式进行直接或间接地连接。In the embodiment of this specification, the above-mentioned resource creation server 100 , resource management server 200 , resource distribution server 300 , service server 400 and terminal 500 may be directly or indirectly connected through wired or wireless communication.
图2是根据一示例性实施例示出的一种资源分发方法的流程图,如图2所示,可以包括以下步骤:S201,终端显示包括资源领取信息的目标页面;S203,响应于基于资源领取信息触发的资源领取指令,终端向业务服务器发送资源获取请求;S205,业务服务器获取终端对应的资源类型标识;S207,基于资源类型标识为终端抽取虚拟资源;S209,业务服务器向终端发送资源抽取结果信息;S211,终端在目标页面展示资源抽取结果信息。Fig. 2 is a flowchart of a method for distributing resources according to an exemplary embodiment. As shown in Fig. 2, the method may include the following steps: S201, the terminal displays a target page including resource claim information; S203, in response to the resource claim based on In the resource acquisition instruction triggered by the information, the terminal sends a resource acquisition request to the service server; S205, the service server acquires the resource type identifier corresponding to the terminal; S207, extracts virtual resources for the terminal based on the resource type identifier; S209, the service server sends the resource extraction result to the terminal information; S211, the terminal displays resource extraction result information on the target page.
在步骤S201中,终端显示包括资源领取信息的目标页面。In step S201, the terminal displays a target page including resource claim information.
在一些实施例中,上述目标页面可以为信息浏览页面,在一些实施例中,以直播业务为例,目标页面可以为观众端的直播页面。在一些实施例中,资源领取信息可以用于触发第一虚拟资源的领取指令。在一些实施例中,资源领取信息可以为资源领取控件。In some embodiments, the above-mentioned target page may be an information browsing page. In some embodiments, taking the live broadcast service as an example, the target page may be a live broadcast page of the viewer. In some embodiments, the resource claim information may be used to trigger a claim instruction of the first virtual resource. In some embodiments, the resource claim information may be a resource claim control.
在一些实施例中,以直播业务为例,可以结合实际应用需求,预先为直播间中的某一资源分发活动设置相应的任务,在任务完成的情况下,可以在相应的直播页面展示资源领取信息,以便用户可以参与相应的资源分发活动。In some embodiments, taking the live broadcast service as an example, a corresponding task can be set in advance for a certain resource distribution activity in the live broadcast room according to the actual application requirements. When the task is completed, the resource collection can be displayed on the corresponding live broadcast page. information so that users can participate in the corresponding resource distribution activities.
在一些实施例中,上述为直播间设置的任务可以包括为直播间的主播(即信息发布者)设置的任务。在一些实施例中,主播端对应的任务可以为主播端收到的预设虚拟物品达到预设量,可以结合实际应用需求进行设置。In some embodiments, the above-mentioned tasks set for the live room may include tasks set for the host (ie, the information publisher) of the live room. In some embodiments, the task corresponding to the host may reach a preset amount of the preset virtual items received by the host, and may be set according to actual application requirements.
在一些实施例中,上述为直播间设置的任务可以包括为直播间的观众设置的任务。在一些实施例中,观众端对应的任务可以为观众端的观看时长达到预设时长,,可以结合实际应用需求进行设置。In some embodiments, the above-mentioned tasks set for the live room may include tasks set for viewers of the live room. In some embodiments, the task corresponding to the viewer may be that the viewing duration of the viewer reaches a preset duration, which may be set according to actual application requirements.
在一些实施例中,在直播过程中,响应于任务完成,可以触发一个资源生成指令,以用于触发资源领取信息的展示。相应的,上述显示包括资源领取信息的目标页面可以包括:响应于直播页面加载指令,显示目标页面;响应于资源生成指令,在目标页面展示资源领取信息。In some embodiments, during the live broadcast, in response to the completion of the task, a resource generation instruction may be triggered to trigger the display of resource claim information. Correspondingly, the above-mentioned displaying the target page including the resource claim information may include: displaying the target page in response to the live page loading instruction; and displaying the resource claim information on the target page in response to the resource generation instruction.
在一些实施例中,资源领取信息可以通过弹窗的方式展示在目标页面中,如图3所示,图3是根据一示例性实施例示出的一种包括资源领取信息的目标页面的示意图。In some embodiments, the resource claim information may be displayed on the target page by means of a pop-up window, as shown in FIG. 3 , which is a schematic diagram of a target page including resource claim information according to an exemplary embodiment.
在一些实施例中,任务完成所触发的资源生成指令还可以用于触发后台服务器进行 资源分发活动的准备操作,相应的,上述方法还可以包括:资源分发活动的准备操作(创建虚拟资源和拆分虚拟资源的操作),在一些实施例中,资源分发活动的准备操作可以包括:业务服务器响应于与目标页面对应的资源生成指令,生成目标虚拟资源;业务服务器获取预设配置信息;业务服务器基于预设配置信息从目标虚拟资源中拆分出第一虚拟资源;业务服务器将剩余虚拟资源拆分成预设数量个第二虚拟资源,上述剩余虚拟资源为目标虚拟资源中拆分出第一虚拟资源后的虚拟资源。In some embodiments, the resource generation instruction triggered by the completion of the task may also be used to trigger the background server to perform a preparation operation for the resource distribution activity. Correspondingly, the above method may further include: the preparation operation for the resource distribution activity (creating virtual resources and disassembling virtual resources) operation of dividing virtual resources), in some embodiments, the preparation operation of the resource distribution activity may include: the service server generates a target virtual resource in response to a resource generation instruction corresponding to the target page; the service server obtains preset configuration information; the service server The first virtual resource is split from the target virtual resource based on the preset configuration information; the service server splits the remaining virtual resource into a preset number of second virtual resources, and the remaining virtual resource is the first virtual resource split from the target virtual resource Virtual resource after virtual resource.
在一些实施例中,在资源分发活动相应的任务完成的情况下,触发资源生成指令,以生成目标虚拟资源。在一些实施例中,目标虚拟资源可以包括但不限于预设资源量的虚拟货币、电子优惠券等形式。在实际应用中,每个主播可以对应不同资源量的目标虚拟资源,可以结合实际应用进行设置。在一些实施例中,目标虚拟资源可以拆分出第一虚拟资源和预设数量个第二虚拟资源。其中,第一虚拟资源为待抽取虚拟资源(拆分后的第一虚拟资源和预设数量个第二虚拟资源)中资源量最大的虚拟资源,在一些实施例中,第一虚拟资源可以为一个,也可以为多个资源量均最大的虚拟资源。In some embodiments, when the task corresponding to the resource distribution activity is completed, the resource generation instruction is triggered to generate the target virtual resource. In some embodiments, the target virtual resource may include, but is not limited to, virtual currency with a preset resource amount, electronic coupons, and the like. In practical applications, each anchor can correspond to target virtual resources with different resource amounts, which can be set in combination with practical applications. In some embodiments, the target virtual resource may be split into a first virtual resource and a preset number of second virtual resources. The first virtual resource is the virtual resource with the largest amount of resources among the virtual resources to be extracted (the split first virtual resource and the preset number of second virtual resources). In some embodiments, the first virtual resource may be One, or multiple virtual resources with the largest resources.
在一些实施例中,可以结合预设配置信息从目标虚拟资源中拆分出第一虚拟资源,在一些实施例中,预设配置信息可以表征第一虚拟资源在目标虚拟资源中的比例,在一些实施例中,第二虚拟资源可以结合主播的历史直播信息来进行拆分,以更好保证直播间观众可以领取到虚拟资源。在一些实施例中,历史直播信息可以为能够表征主播在历史直播过程中的在线观众数情况的信息,在一些实施例中,可以为主播多场历史直播过程中的在线观众数。在一些实施例中,可以计算主播多场直播过程中的平均在线观众数,将该平均在线观众数作为预设数量。在一些实施例中,可以计算主播多场直播过程中的每小时的平均在线观众数,相应的,结合当前直播的直播时长,将当前直播的直播时长与上述每小时的平均在线观众数的乘积作为预设数量。In some embodiments, the first virtual resource may be split from the target virtual resource in combination with the preset configuration information. In some embodiments, the preset configuration information may represent the proportion of the first virtual resource in the target virtual resource. In some embodiments, the second virtual resource may be split in combination with the historical live broadcast information of the host, so as to better ensure that the audience in the live broadcast room can receive the virtual resource. In some embodiments, the historical live broadcast information may be information that can represent the number of online viewers of the anchor during the historical live broadcast process. In some embodiments, it may be the number of online viewers of the anchor during multiple historical live broadcasts. In some embodiments, the average number of online viewers during multiple live broadcasts of the host may be calculated, and the average number of online viewers may be used as a preset number. In some embodiments, the average number of online viewers per hour during multiple live broadcasts of the host may be calculated. Correspondingly, in combination with the live broadcast duration of the current live broadcast, the product of the live broadcast duration of the current live broadcast and the above-mentioned hourly average number of online viewers is calculated. as a preset amount.
在一些实施例中,可以结合平台内主播的个人属性信息来确定该主播对应目标虚拟资源是否可以拆分出第一虚拟资源。在一些实施例中,主播的个人属性信息可以包括但不限于主播的粉丝量、产品推广量等,在一些实施例中,可以从粉丝量或产品推广量超出相应的阈值的主播对应目标虚拟资源中拆分出第一虚拟资源和预设数量个第二虚拟资源。在一些实施例中,可以拆分出第一虚拟资源的目标虚拟资源的资源量往往大于不能超分出第一虚拟资源的目标虚拟资源的资源量。相应的,对于不能拆分出第一虚拟资源的目标虚拟资源可以结合主播对应的历史直播信息拆分出一定数量的第二虚拟资源。In some embodiments, whether the target virtual resource corresponding to the host can be split into the first virtual resource may be determined in combination with the personal attribute information of the host in the platform. In some embodiments, the personal attribute information of the host may include, but is not limited to, the number of fans of the host, the amount of product promotion, etc. In some embodiments, the target virtual resource corresponding to the host whose number of fans or product promotion exceeds a corresponding threshold can be obtained from the host. A first virtual resource and a preset number of second virtual resources are split out. In some embodiments, the resource amount of the target virtual resource from which the first virtual resource can be split is often larger than the resource amount of the target virtual resource that cannot be split from the first virtual resource. Correspondingly, for the target virtual resource that cannot be split into the first virtual resource, a certain number of second virtual resources may be split in combination with the historical live broadcast information corresponding to the host.
在一些实施例中,在资源分发活动对应的任务完成的情况下,预先进行目标虚拟资源的创建与拆分,且通过将从一个目标虚拟资源中拆分出来第一虚拟资源和预设数量个第二虚拟资源,实现了一种资源分发活动中进行多种虚拟资源的分发,在有效提升后续资源分发的效率的基础上,大大提升资源分发的多元性,进而更好的激发起用户的兴趣,提高活动参与率和平台内的访问量。In some embodiments, when the task corresponding to the resource distribution activity is completed, the creation and splitting of the target virtual resource is performed in advance, and the first virtual resource and a preset number of virtual resources are split from one target virtual resource. The second virtual resource realizes the distribution of multiple virtual resources in one resource distribution activity. On the basis of effectively improving the efficiency of subsequent resource distribution, the diversity of resource distribution is greatly improved, thereby better arousing the interest of users , to increase activity participation rates and traffic within the platform.
在一些实施例中,上述方法还可以包括:在预设数量个第二虚拟资源中任一虚拟资源的资源量大于第一虚拟资源的资源量的情况下,可以将资源量大于第一虚拟资源的虚 拟资源与第一虚拟资源进行替换处理。In some embodiments, the above method may further include: when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the resource amount may be greater than the first virtual resource. The virtual resource is replaced with the first virtual resource.
在一些实施例中,通过对拆分好的第一虚拟资源和预设数量个第二虚拟资源的资源量比较,在预设数量个第二虚拟资源中任一虚拟资源的资源量大于第一虚拟资源的资源量的情况下,可以将资源量大于第一虚拟资源的虚拟资源与第一虚拟资源进行替换处理,进而保证第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资源,提升资源拆分的精准性。In some embodiments, by comparing the resource amount of the split first virtual resource and the preset number of second virtual resources, the resource amount of any virtual resource in the preset number of second virtual resources is greater than the first virtual resource. In the case of the resource amount of the virtual resource, the virtual resource with the resource amount greater than the first virtual resource can be replaced with the first virtual resource, thereby ensuring that the first virtual resource is the virtual resource with the largest resource amount among the virtual resources to be extracted, improving the performance of the virtual resource. The accuracy of resource splitting.
在一些实施例中,上述方法还可以包括:将第一虚拟资源和预设数量个第二虚拟资源存储到目标数据库中。在一些实施例中,将第一虚拟资源和预设数量个第二虚拟资源存储到目标数据可以包括但不限于将第一虚拟资源和预设数量个第二虚拟资源的标识信息,以及属性信息存储到目标数据库。在一些实施例中,属性信息可以包括但不限于资源量、标识信息、资源类型(属于第一虚拟资源或第二虚拟资源)和资源状态信息等。在一些实施例中,资源状态信息可以包括但不限于创建状态、抽取状态(虚拟资源已经被抽取但还没有分发给相应的观众端),分发状态(虚拟资源已经分发给相应的观众端)。In some embodiments, the above method may further include: storing the first virtual resource and a preset number of second virtual resources in the target database. In some embodiments, storing the first virtual resource and the preset number of second virtual resources in the target data may include, but is not limited to, storing the identification information and attribute information of the first virtual resource and the preset number of second virtual resources stored in the target database. In some embodiments, the attribute information may include, but is not limited to, resource amount, identification information, resource type (belonging to the first virtual resource or the second virtual resource), resource status information, and the like. In some embodiments, resource status information may include, but is not limited to, creation status, extraction status (the virtual resource has been extracted but not distributed to the corresponding viewer), and distribution status (the virtual resource has been distributed to the corresponding viewer).
在一些实施例中,通过将拆分好的虚拟资源存储到目标数据库,可以实现对拆分好的虚拟资源的有效管理。In some embodiments, by storing the split virtual resources in the target database, effective management of the split virtual resources can be achieved.
在一些实施例中,如图4所示,上述资源分发活动的准备操作也可以包括以下步骤:In some embodiments, as shown in FIG. 4 , the preparation operation for the above resource distribution activity may also include the following steps:
在步骤S401中,资源创建服务器响应于与目标页面对应的资源生成指令,生成目标虚拟资源;In step S401, the resource creation server generates the target virtual resource in response to the resource generation instruction corresponding to the target page;
在步骤S403中,资源创建服务器向资源管理服务器发送目标虚拟资源;In step S403, the resource creation server sends the target virtual resource to the resource management server;
在步骤S405中,资源管理服务器获取预设配置信息;In step S405, the resource management server obtains preset configuration information;
在步骤S407中,资源管理服务器基于预设配置信息从目标虚拟资源中拆分出第一虚拟资源;In step S407, the resource management server splits the first virtual resource from the target virtual resource based on the preset configuration information;
在步骤S409中,资源管理服务器将剩余虚拟资源拆分成预设数量个第二虚拟资源,剩余虚拟资源为目标虚拟资源中拆分出第一虚拟资源后的虚拟资源。In step S409, the resource management server divides the remaining virtual resources into a preset number of second virtual resources, and the remaining virtual resources are virtual resources obtained by dividing the first virtual resources from the target virtual resources.
在一些实施例中,如图4所示,上述方法还可以包括以下步骤:In some embodiments, as shown in FIG. 4 , the above method may further include the following steps:
在步骤S411中,资源管理服务器在预设数量个第二虚拟资源中任一虚拟资源的资源量大于第一虚拟资源的资源量的情况下,将资源量大于第一虚拟资源的虚拟资源与第一虚拟资源进行替换处理。In step S411, when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the resource management server compares the virtual resource whose resource amount is greater than the first virtual resource with the first virtual resource. A virtual resource is replaced.
在一些实施例中,如图4所示,上述方法还可以包括以下步骤:In some embodiments, as shown in FIG. 4 , the above method may further include the following steps:
在步骤S413中,资源管理服务器将第一虚拟资源和预设数量个第二虚拟资源存储到目标数据库中。In step S413, the resource management server stores the first virtual resource and a preset number of second virtual resources in the target database.
在一些实施例中,业务服务器侧可以设置一个消息队列,在资源分发活动相应的任务完成的情况下,向该消息队列发送可以表征该任务完成的消息,进而触发资源生成指令,同时,资源创建服务器可以通过监听消息队列的方式来及时响应资源生成指令,以生成目标虚拟资源。In some embodiments, the service server side can set up a message queue, and when the task corresponding to the resource distribution activity is completed, a message that can indicate the completion of the task is sent to the message queue, thereby triggering the resource generation instruction, and at the same time, the resource creation The server can respond to the resource generation instruction in time by monitoring the message queue to generate the target virtual resource.
在一些实施例中,步骤S403至S413的具体细化,可以参见上述以业务服务器为执 行的相关步骤的细化,在此不再赘述。In some embodiments, for the specific refinement of steps S403 to S413, reference may be made to the refinement of the above-mentioned related steps performed by the service server, which will not be repeated here.
在一些实施例中,将目标虚拟资源的创建和拆分从业务服务器中分离处理,可以有效降低业务服务器的系统压力,提升信息浏览过程中流畅性。In some embodiments, the creation and splitting of target virtual resources are separated from the service server, which can effectively reduce the system pressure of the service server and improve the fluency in the information browsing process.
返回参照图2,在步骤S203中,响应于基于资源领取信息触发的资源领取指令,终端向业务服务器发送资源获取请求。Referring back to FIG. 2 , in step S203, in response to a resource acquisition instruction triggered based on the resource acquisition information, the terminal sends a resource acquisition request to the service server.
在一些实施例中,可以通过用户主动操作来触发资源领取指令,例如点击资源领取信息等触发操作。In some embodiments, a resource claiming instruction may be triggered by a user's active operation, for example, triggering operations such as clicking on resource claiming information.
在一些实施例中,也可以采用自动触发的方式来触发资源领取指令,例如通过设置一个定时任务,在资源领取信息展示后的预设时间后自动触发资源领取指令。In some embodiments, an automatic triggering method can also be used to trigger the resource claiming instruction, for example, by setting a timed task, the resource claiming instruction is automatically triggered after a preset time after the resource claiming information is displayed.
在步骤S205中,业务服务器获取终端对应的资源类型标识。In step S205, the service server obtains the resource type identifier corresponding to the terminal.
在一些实施例中,资源类型标识表征终端可领取的虚拟资源的资源类型信息。在一些实施例中,业务服务器获取终端对应的资源类型标识包括:In some embodiments, the resource type identifier represents resource type information of virtual resources available to the terminal. In some embodiments, obtaining the resource type identifier corresponding to the terminal by the service server includes:
业务服务器获取终端对应的目标对象的预设任务的任务执行信息;The service server obtains task execution information of the preset task of the target object corresponding to the terminal;
业务服务器基于任务执行信息生成终端对应的资源类型标识。The service server generates a resource type identifier corresponding to the terminal based on the task execution information.
在一些实施例中,终端对应的目标对象可以为目标页面对应的观众。在一些实施例中,可以预先设置一个任务(预设任务)用于识别对象是否具有领取第一虚拟资源资格的任务。相应的,完成该预设任务的目标对象可以具有领取第一虚拟资源的资格;反之,未完成该预设任务的目标对象可以不具有领取第一虚拟资源的资格,但可以参与领取第二虚拟资源。In some embodiments, the target object corresponding to the terminal may be the audience corresponding to the target page. In some embodiments, a task (preset task) may be preset for identifying whether the object has the task of claiming the first virtual resource qualification. Correspondingly, the target object that completes the preset task may have the qualification to receive the first virtual resource; conversely, the target object that has not completed the preset task may not have the qualification to receive the first virtual resource, but can participate in receiving the second virtual resource. resource.
在一些实施例中,任务执行信息可以表征预设任务的完成情况,在一些实施例中,任务执行信息可以包括已完成或未完成。In some embodiments, the task execution information may represent the completion of a preset task, and in some embodiments, the task execution information may include completed or incomplete.
在一些实施例中,在任务执行信息为已完成的情况下,可以为终端生成第一标识;In some embodiments, when the task execution information is completed, a first identifier may be generated for the terminal;
在任务执行信息为未完成的情况下,为终端生成第二标识。In the case that the task execution information is incomplete, a second identifier is generated for the terminal.
在一些实施例中,第一标识可以表征终端可领取的虚拟资源的资源类型为第一虚拟资源,第二标识可以表征终端可领取的虚拟资源的资源类型为第二虚拟资源。In some embodiments, the first identifier may represent that the resource type of the virtual resource available to the terminal is the first virtual resource, and the second identifier may represent that the resource type of the virtual resource available to the terminal is the second virtual resource.
上述实施例中,通过预设任务的任务执行信息来区分不同终端对应的资源类型标识,可以在一个资源活动过程中引入多种虚拟资源的基础上,有针对性的进行虚拟资源的分发,进而可以在更好激发起用户的兴趣的基础上,提升资源分发精准性。In the above embodiment, the task execution information of the preset task is used to distinguish the resource type identifiers corresponding to different terminals, and on the basis of introducing a variety of virtual resources in a resource activity process, the virtual resources can be distributed in a targeted manner, and then the virtual resources can be distributed. It can improve the accuracy of resource distribution on the basis of better arousing the interest of users.
在一些实施例中,如图5所示,上述方法还包括:In some embodiments, as shown in FIG. 5 , the above method further includes:
在步骤S513中,终端向业务服务器发送资源类型标识获取请求;In step S513, the terminal sends a resource type identifier acquisition request to the service server;
在步骤S515中,业务服务器获取终端对应的目标对象的预设任务的任务执行信息;In step S515, the service server obtains task execution information of the preset task of the target object corresponding to the terminal;
在步骤S517中,业务服务器基于任务执行信息生成终端对应的资源类型标识;In step S517, the service server generates a resource type identifier corresponding to the terminal based on the task execution information;
在步骤S519中,业务服务器将资源类型标识发送给终端。In step S519, the service server sends the resource type identifier to the terminal.
相应的,在步骤S203中终端向业务服务器发送资源获取请求可以包括:终端向业 务服务器发送包括资源类型标识的资源获取请求。在步骤S205中,业务服务器获取终端对应的资源类型标识包括业务服务器从资源获取请求中提取资源类型标识。Correspondingly, in step S203, the terminal sending the resource acquisition request to the service server may include: the terminal sending the resource acquisition request including the resource type identifier to the service server. In step S205, acquiring the resource type identifier corresponding to the terminal by the service server includes extracting the resource type identifier from the resource acquisition request by the service server.
在一些实施例中,业务服务器基于任务执行信息生成终端对应的资源类型标识可以包括:在任务执行信息为已完成的情况下,为终端生成第一标识;在任务执行信息为未完成的情况下,为终端生成第二标识。In some embodiments, generating the resource type identifier corresponding to the terminal by the service server based on the task execution information may include: when the task execution information is completed, generating a first identifier for the terminal; when the task execution information is incomplete , and generate a second identifier for the terminal.
在一些实施例中,通过预先下发资源类型标识,可以保证符合条件的用户能够进行第一虚拟资源的领取基础上,业务服务器依然保持高可用,大大提升业务服务器的稳定和资源分发的效率。In some embodiments, by pre-distributing resource type identifiers, it can be ensured that qualified users can receive the first virtual resource, and the service server remains highly available, which greatly improves the stability of the service server and the efficiency of resource distribution.
在步骤S207中,基于资源类型标识为终端抽取虚拟资源。In step S207, virtual resources are extracted for the terminal based on the resource type identifier.
在一些实施例中,上述基于资源类型标识为终端抽取虚拟资源可以包括:In some embodiments, the foregoing extracting virtual resources for the terminal based on the resource type identifier may include:
在资源类型标识为第一标识的情况下,为终端抽取第一虚拟资源,在一些实施例中,该第一虚拟资源可以为待抽取虚拟资源中资源量最大的虚拟资源;In the case that the resource type identifier is the first identifier, extract a first virtual resource for the terminal, and in some embodiments, the first virtual resource may be the virtual resource with the largest amount of resources among the virtual resources to be extracted;
在实际应用中,由于第一虚拟资源的数量有限,在为终端从目标数据库中抽取第一虚拟资源的情况下,存在未抽取到第一虚拟资源的情况,在一些实施例中,上述基于资源类型标识为终端抽取虚拟资源还可以包括:In practical applications, due to the limited number of first virtual resources, when the first virtual resource is extracted from the target database for the terminal, there is a situation that the first virtual resource is not extracted. In some embodiments, the above-mentioned resource-based The type identifier for terminal extraction of virtual resources may also include:
在未抽取到第一虚拟资源,或资源类型标识为第二标识的情况下,为终端抽取第二虚拟资源;In the case that the first virtual resource is not extracted, or the resource type identifier is the second identifier, extract the second virtual resource for the terminal;
其中,第一虚拟资源的资源量大于第二虚拟资源的资源量。The resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
上述实施例中,在未抽取到第一虚拟资源,或资源类型标识为第二标识的情况下,通过为终端抽取第二虚拟资源,可以保证用户抽取到虚拟资源的概率,进而更好的激发起用户的兴趣和参与积极性,进而也可以提升资源分发效率。In the above embodiment, in the case where the first virtual resource is not extracted, or the resource type identifier is the second identifier, by extracting the second virtual resource for the terminal, the probability of the user extracting the virtual resource can be guaranteed, thereby better stimulating the It can arouse users' interest and enthusiasm for participation, which in turn can improve the efficiency of resource distribution.
在一些实施例中,业务服务器基于资源类型标识为终端抽取虚拟资源可以包括:业务服务器从目标数据库,基于资源类型标识为终端抽取虚拟资源。In some embodiments, the service server extracting the virtual resource for the terminal based on the resource type identifier may include: the service server extracting the virtual resource for the terminal based on the resource type identifier from the target database.
在一些实施例中,在抽取到虚拟资源(第一虚拟资源或第二虚拟资源)的情况下,上述方法还可以包括:In some embodiments, in the case of extracting a virtual resource (the first virtual resource or the second virtual resource), the above method may further include:
业务服务器向终端分发抽取到的虚拟资源。The service server distributes the extracted virtual resources to the terminal.
在一些实施例中,业务服务器向终端分发抽取到的虚拟资源可以包括:In some embodiments, the service server distributing the extracted virtual resources to the terminal may include:
业务服务器向消息队列发送虚拟资源对应的成功抽取消息,响应于资源分发服务器监测到成功抽取消息,向终端分发抽取到的虚拟资源。The service server sends a successful extraction message corresponding to the virtual resource to the message queue, and in response to the resource distribution server monitoring the successful extraction message, distributes the extracted virtual resource to the terminal.
在一些实施例中,资源分发服务器可以通过订阅消息队列中消息的方式来监测成功抽取消息;相应的,响应于监测到成功抽取消息,可以向终端分发抽取到的虚拟资源。In some embodiments, the resource distribution server may monitor the successful extraction of messages by subscribing to messages in the message queue; correspondingly, in response to monitoring the successful extraction of messages, it may distribute the extracted virtual resources to the terminal.
在一些实施例中,在虚拟资源分发过程中,结合消息队列将资源分发的任务从业务服务器中分离处理,可以在有效降低业务服务器的系统压力,提升信息浏览过程中流畅性并提升资源分发的速度和可靠性。In some embodiments, in the process of virtual resource distribution, the task of resource distribution is separated from the service server in combination with the message queue, which can effectively reduce the system pressure of the service server, improve the fluency of the information browsing process, and improve the efficiency of resource distribution. Speed and reliability.
在一些实施例中,为了避免消息队列故障,带来资源漏发的情况,响应于业务服务 器抽取第一虚拟资源,可以将成功抽取消息备份至某一数据库,以便资源分发服务器可以定时从数据库监听到成功抽取消息,以提升资源分发的准确性。In some embodiments, in order to avoid the failure of message queues and the situation of missing resources, in response to the business server extracting the first virtual resource, the successfully extracted messages can be backed up to a certain database, so that the resource distribution server can monitor the database regularly. to successfully extract messages to improve the accuracy of resource distribution.
在步骤S209中,业务服务器向终端发送资源抽取结果信息。In step S209, the service server sends resource extraction result information to the terminal.
在抽取到第一虚拟资源的情况下,上述业务服务器向终端发送资源抽取结果信息可以包括向终端发送第一虚拟资源的资源抽取成功结果,以使终端在目标页面展示该资源抽取成功结果。When the first virtual resource is extracted, the service server sending the resource extraction result information to the terminal may include sending the resource extraction successful result of the first virtual resource to the terminal, so that the terminal displays the resource extraction successful result on the target page.
在未抽取到第一虚拟资源,或资源类型标识为第二标识的情况下,上述业务向终端发送资源抽取结果信息包括向终端发送第二虚拟资源的资源抽取结果,以使终端在目标页面展示资源抽取结果。When the first virtual resource is not extracted, or the resource type identifier is the second identifier, the above-mentioned service sending resource extraction result information to the terminal includes sending the resource extraction result of the second virtual resource to the terminal, so that the terminal can display the resource extraction result on the target page. Resource extraction results.
在步骤S211中,终端在目标页面展示资源抽取结果信息。In step S211, the terminal displays resource extraction result information on the target page.
在一些实施例中,资源抽取结果信息以弹窗的形式展示在目标页面中。在一些实施例中,抽取结果信息中可以包括抽取的虚拟资源的资源量,或未抽取到虚拟资源的提示信息等信息。In some embodiments, the resource extraction result information is displayed on the target page in the form of a pop-up window. In some embodiments, the extraction result information may include the resource amount of the extracted virtual resources, or information such as prompt information that the virtual resources have not been extracted.
在一些实施例中,以直播业务为例,如图6所示,图6是根据一示例性实施例示出的一种展示有资源抽取成功结果的目标页面的示意图。In some embodiments, taking the live broadcast service as an example, as shown in FIG. 6 , FIG. 6 is a schematic diagram of a target page showing a successful result of resource extraction according to an exemplary embodiment.
由以上本说明书实施例提供的技术方案可见,本说明书通过在资源分发过程中,获取能够表征终端可领取的虚拟资源的资源类型信息的资源类型标识,可以有针对的从待抽取虚拟资源中抽取相应类型的虚拟资源,进而提升分发的虚拟资源的多元性,可以更好激发起用户的兴趣和参与积极性,进而也可以提升资源分发效率。It can be seen from the technical solutions provided by the above embodiments of this specification that, in the process of resource distribution, this specification obtains resource type identifiers that can represent the resource type information of the virtual resources that the terminal can receive, and can extract the virtual resources to be extracted in a targeted manner. Corresponding types of virtual resources, thereby increasing the diversity of distributed virtual resources, can better stimulate users' interest and enthusiasm for participation, and further improve the efficiency of resource distribution.
以下以服务器为执行主体,介绍本公开实施例的一种资源分发方法,在一些实施例中,如图7所示,可以包括以下步骤:The following describes a resource distribution method according to an embodiment of the present disclosure with the server as the execution body. In some embodiments, as shown in FIG. 7 , the following steps may be included:
在步骤S701中,接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;In step S701, receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
在步骤S703中,获取终端对应的资源类型标识,该资源类型标识表征终端可领取的虚拟资源的资源类型信息;In step S703, a resource type identifier corresponding to the terminal is obtained, where the resource type identifier represents resource type information of virtual resources that the terminal can receive;
在步骤S705中,基于资源类型标识为终端抽取虚拟资源;In step S705, extract virtual resources for the terminal based on the resource type identifier;
在步骤S707中,向终端发送资源抽取结果信息,以使终端在目标页面展示资源抽取结果信息。In step S707, the resource extraction result information is sent to the terminal, so that the terminal displays the resource extraction result information on the target page.
在一些实施例中,基于资源类型标识为终端抽取虚拟资源包括:In some embodiments, extracting virtual resources for the terminal based on the resource type identifier includes:
在资源类型标识为第一标识的情况下,为终端抽取第一虚拟资源,第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资源;In the case that the resource type identifier is the first identifier, extract the first virtual resource for the terminal, and the first virtual resource is the virtual resource with the largest amount of resources among the virtual resources to be extracted;
在抽取到第一虚拟资源的情况下,向终端发送资源抽取结果信息包括向终端发送资源抽取成功结果。In the case that the first virtual resource is extracted, sending the resource extraction result information to the terminal includes sending the resource extraction success result to the terminal.
在一些实施例中,基于资源类型标识为终端抽取虚拟资源还包括:In some embodiments, extracting virtual resources for the terminal based on the resource type identifier further includes:
在未抽取到第一虚拟资源,或资源类型标识为第二标识的情况下,为终端抽取第二虚拟资源;In the case that the first virtual resource is not extracted, or the resource type identifier is the second identifier, extract the second virtual resource for the terminal;
向终端发送资源抽取结果信息包括向终端发送第二虚拟资源的资源抽取结果;Sending the resource extraction result information to the terminal includes sending the resource extraction result of the second virtual resource to the terminal;
其中,第一虚拟资源的资源量大于第二虚拟资源的资源量。The resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
接收终端发送的资源类型标识获取请求;receiving the resource type identifier acquisition request sent by the terminal;
获取终端对应的目标对象的预设任务的任务执行信息;Obtain task execution information of the preset task of the target object corresponding to the terminal;
基于任务执行信息生成终端对应的资源类型标识;Generate a resource type identifier corresponding to the terminal based on the task execution information;
将资源类型标识发送给终端。The resource type identifier is sent to the terminal.
在一些实施例中,上述资源获取请求包括资源类型标识,上述获取终端对应的资源类型标识包括:从资源获取请求中提取资源类型标识。In some embodiments, the resource acquisition request includes a resource type identifier, and the acquisition of the resource type identifier corresponding to the terminal includes: extracting the resource type identifier from the resource acquisition request.
在一些实施例中,基于任务执行信息生成终端对应的资源类型标识包括:In some embodiments, generating the resource type identifier corresponding to the terminal based on the task execution information includes:
在任务执行信息为已完成的情况下,为终端生成第一标识;In the case that the task execution information is completed, generate a first identifier for the terminal;
在任务执行信息为未完成的情况下,为终端生成第二标识。In the case that the task execution information is incomplete, a second identifier is generated for the terminal.
在一些实施例中,获取终端对应的资源类型标识包括:In some embodiments, acquiring the resource type identifier corresponding to the terminal includes:
获取终端对应的目标对象的预设任务的任务执行信息;Obtain task execution information of the preset task of the target object corresponding to the terminal;
基于任务执行信息生成终端对应的资源类型标识。The resource type identifier corresponding to the terminal is generated based on the task execution information.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
响应于与目标页面对应的资源生成指令,生成目标虚拟资源;generating a target virtual resource in response to a resource generation instruction corresponding to the target page;
获取预设配置信息,上述预设配置信息表征第一虚拟资源在目标虚拟资源中的比例;acquiring preset configuration information, where the preset configuration information represents the proportion of the first virtual resource in the target virtual resource;
基于预设配置信息从目标虚拟资源中拆分出第一虚拟资源;Splitting the first virtual resource from the target virtual resource based on the preset configuration information;
将剩余虚拟资源拆分成预设数量个第二虚拟资源,剩余虚拟资源为目标虚拟资源中拆分出第一虚拟资源后的虚拟资源。The remaining virtual resources are divided into a preset number of second virtual resources, and the remaining virtual resources are virtual resources after the first virtual resources are divided from the target virtual resources.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
在预设数量个第二虚拟资源中任一虚拟资源的资源量大于第一虚拟资源的资源量的情况下,将资源量大于第一虚拟资源的虚拟资源与第一虚拟资源进行替换处理。When the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the virtual resource whose resource amount is greater than the first virtual resource is replaced with the first virtual resource.
在一些实施例中,上述方法还包括:In some embodiments, the above method further includes:
将第一虚拟资源和预设数量个第二虚拟资源存储到目标数据库中;storing the first virtual resource and a preset number of second virtual resources in the target database;
基于资源类型标识为终端抽取虚拟资源包括:Extracting virtual resources for terminals based on resource type identifiers includes:
从目标数据库,基于资源类型标识为终端抽取虚拟资源。From the target database, virtual resources are extracted for the terminal based on the resource type identifier.
在一些实施例中,在抽取到第一虚拟资源的情况下,上述方法还包括:In some embodiments, when the first virtual resource is extracted, the above method further includes:
向终端分发抽取到的虚拟资源。Distribute the extracted virtual resources to the terminal.
在一些实施例中,向终端分发抽取到的虚拟资源包括:In some embodiments, distributing the extracted virtual resources to the terminal includes:
向消息队列发送虚拟资源对应的成功抽取消息,以使资源分发服务器在监测到成功抽取消息后,向终端分发抽取到的虚拟资源。The successful extraction message corresponding to the virtual resource is sent to the message queue, so that the resource distribution server distributes the extracted virtual resource to the terminal after monitoring the successful extraction message.
关于上述实施例中的方法,其中各个步骤的实现方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the method in the above-mentioned embodiment, the implementation manner of each step has been described in detail in the embodiment of the method, and will not be described in detail here.
本公开实施例还提供一种资源分发系统,在一些实施例中,该系统可以包括:终端和业务服务器;Embodiments of the present disclosure further provide a resource distribution system. In some embodiments, the system may include: a terminal and a service server;
终端,被配置为显示包括资源领取信息的目标页面,以及被配置为响应于基于资源领取信息触发的资源领取指令,向业务服务器发送资源获取请求;以及被配置为在目标页面展示资源抽取结果信息;a terminal, configured to display a target page including resource claim information, and configured to send a resource capture request to the service server in response to a resource claim instruction triggered based on the resource claim information; and configured to display resource extraction result information on the target page ;
业务服务器,被配置为获取终端对应的资源类型标识,资源类型标识表征终端可领取的虚拟资源的资源类型信息;以及被配置为基于资源类型标识为终端抽取虚拟资源;以及被配置为向终端发送资源抽取结果信息。a service server, configured to obtain a resource type identifier corresponding to the terminal, the resource type identifier representing resource type information of virtual resources that the terminal can receive; and configured to extract virtual resources for the terminal based on the resource type identifier; and configured to send to the terminal Resource extraction result information.
在一些实施例中,终端,还被配置为向业务服务器发送资源类型标识获取请求;In some embodiments, the terminal is further configured to send a resource type identifier acquisition request to the service server;
业务服务器,还被配置为获取终端对应的目标对象的预设任务的任务执行信息;以及基于任务执行信息生成终端对应的资源类型标识;以及将资源类型标识发送给终端;The service server is further configured to obtain task execution information of a preset task of the target object corresponding to the terminal; and generate a resource type identifier corresponding to the terminal based on the task execution information; and send the resource type identifier to the terminal;
向业务服务器发送资源获取请求包括向业务服务器发送包括资源类型标识的资源获取请求。Sending the resource acquisition request to the service server includes sending the resource acquisition request including the resource type identifier to the service server.
在一些实施例中,业务服务器,还被配置为在未抽取到第一虚拟资源,或资源类型标识为第二标识的情况下,为终端抽取第二虚拟资源;以及向终端发送第二虚拟资源的资源抽取结果;In some embodiments, the service server is further configured to extract the second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier; and send the second virtual resource to the terminal the resource extraction results;
终端,还被配置为在目标页面展示资源抽取结果;The terminal is also configured to display the resource extraction result on the target page;
其中,第一虚拟资源的资源量大于第二虚拟资源的资源量。The resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,上述系统还包括:资源创建服务器和资源管理服务器;In some embodiments, the above system further includes: a resource creation server and a resource management server;
资源创建服务器,被配置为响应于与目标页面对应的资源生成指令,生成目标虚拟资源,以及将目标虚拟资源发送给资源管理服务器;a resource creation server, configured to generate a target virtual resource in response to a resource creation instruction corresponding to the target page, and send the target virtual resource to the resource management server;
资源管理服务器,被配置为获取预设配置信息,预设配置信息表征第一虚拟资源在目标虚拟资源中的比例;以及被配置为基于预设配置信息从目标虚拟资源中拆分出第一虚拟资源;以及被配置为将剩余虚拟资源拆分成预设数量个第二虚拟资源,剩余虚拟资源为目标虚拟资源中拆分出第一虚拟资源后的虚拟资源。a resource management server, configured to obtain preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource; and configured to split the first virtual resource from the target virtual resource based on the preset configuration information resources; and is configured to split the remaining virtual resources into a preset number of second virtual resources, and the remaining virtual resources are virtual resources after the first virtual resources are split from the target virtual resources.
在一些实施例中,资源管理服务器,还被配置为在预设数量个第二虚拟资源中任一虚拟资源的资源量大于第一虚拟资源的资源量的情况下,将资源量大于第一虚拟资源的虚拟资源与第一虚拟资源进行替换处理。In some embodiments, the resource management server is further configured to, in the case that the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the resource amount is greater than the first virtual resource. The virtual resource of the resource is replaced with the first virtual resource.
在一些实施例中,资源管理服务器,还被配置为将第一虚拟资源和预设数量个第二虚拟资源存储到目标数据库中。In some embodiments, the resource management server is further configured to store the first virtual resource and a preset number of second virtual resources in the target database.
基于资源类型标识为终端抽取虚拟资源包括:从目标数据库,基于资源类型标识为终端抽取虚拟资源。Extracting virtual resources for the terminal based on the resource type identifier includes: extracting virtual resources for the terminal based on the resource type identifier from the target database.
在一些实施例中,业务服务器,还被配置为在抽取到第一虚拟资源的情况下,向终端分发抽取到的虚拟资源。In some embodiments, the service server is further configured to distribute the extracted virtual resource to the terminal when the first virtual resource is extracted.
在一些实施例中,上述系统还包括消息队列和资源分发服务器。In some embodiments, the above system further includes a message queue and a resource distribution server.
业务服务器还被配置为向消息队列发送虚拟资源对应的成功抽取消息。The service server is further configured to send a successful extraction message corresponding to the virtual resource to the message queue.
资源分发服务器被配置为在监测到成功抽取消息后,向终端分发抽取到的虚拟资源。The resource distribution server is configured to distribute the extracted virtual resources to the terminal after monitoring the successful extraction message.
关于上述实施例中的系统,其中各个执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the system in the above-mentioned embodiments, the specific manners of each performing operation have been described in detail in the embodiments of the method, and will not be described in detail here.
图8是根据一示例性实施例示出的一种资源分发装置框图。参照图8,该装置包括:Fig. 8 is a block diagram of a resource distribution apparatus according to an exemplary embodiment. Referring to Figure 8, the device includes:
资源获取请求接收模块810,被配置为接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;The resource acquisition request receiving module 810 is configured to receive the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
资源类型标识获取模块820,被配置为获取终端对应的资源类型标识,资源类型标识表征终端可领取的虚拟资源的资源类型信息;The resource type identifier acquiring module 820 is configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can receive;
虚拟资源抽取模块830,被配置为基于资源类型标识为终端抽取虚拟资源;a virtual resource extraction module 830, configured to extract virtual resources for the terminal based on the resource type identifier;
资源抽取结果信息发送模块840,被配置为向终端发送资源抽取结果信息,以使终端在目标页面展示资源抽取结果信息The resource extraction result information sending module 840 is configured to send resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page
在一些实施例中,虚拟资源抽取模块830包括:In some embodiments, virtual resource extraction module 830 includes:
第一虚拟资源抽取单元,被配置为在资源类型标识为第一标识的情况下,为终端抽取第一虚拟资源,第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资源;a first virtual resource extraction unit, configured to extract a first virtual resource for the terminal when the resource type identifier is the first identifier, and the first virtual resource is the virtual resource with the largest resource amount among the virtual resources to be extracted;
在抽取到第一虚拟资源的情况下,资源抽取结果信息发送模块840被配置为向终端发送资源抽取成功结果。In the case that the first virtual resource is extracted, the resource extraction result information sending module 840 is configured to send the resource extraction success result to the terminal.
在一些实施例中,上述虚拟资源抽取模块830还包括:In some embodiments, the above virtual resource extraction module 830 further includes:
第二虚拟资源抽取单元,被配置为在未抽取到第一虚拟资源,或资源类型标识为第二标识的情况下,为终端抽取第二虚拟资源;The second virtual resource extraction unit is configured to extract the second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
上述资源抽取结果信息发送模块840被配置为向终端发送第二虚拟资源的资源抽取结果;The above-mentioned resource extraction result information sending module 840 is configured to send the resource extraction result of the second virtual resource to the terminal;
其中,第一虚拟资源的资源量大于第二虚拟资源的资源量。The resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
在一些实施例中,上述装置还包括:In some embodiments, the above-mentioned apparatus further comprises:
标识获取请求接收模块,被配置为接收终端发送的资源类型标识获取请求;an identification acquisition request receiving module, configured to receive a resource type identification acquisition request sent by the terminal;
任务执行信息获取模块,被配置为获取终端对应的目标对象的预设任务的任务执行信息;a task execution information obtaining module, configured to obtain task execution information of a preset task of the target object corresponding to the terminal;
资源类型标识生成模块,被配置为基于任务执行信息生成终端对应的资源类型标识;The resource type identifier generation module is configured to generate the resource type identifier corresponding to the terminal based on the task execution information;
资源类型标识发送模块,被配置为将资源类型标识发送给终端;a resource type identifier sending module, configured to send the resource type identifier to the terminal;
在一些实施例中,资源获取请求包括资源类型标识,资源类型标识获取模块被配置为从资源获取请求中提取资源类型标识。In some embodiments, the resource acquisition request includes a resource type identifier, and the resource type identifier acquisition module is configured to extract the resource type identifier from the resource acquisition request.
在一些实施例中,资源类型标识生成模块包括:In some embodiments, the resource type identifier generation module includes:
第一标识生成单元,被配置为在任务执行信息为已完成的情况下,为终端生成第一标识;a first identification generation unit, configured to generate a first identification for the terminal when the task execution information is completed;
第二标识生成单元,被配置为在任务执行信息为未完成的情况下,为终端生成第二标识。The second identification generating unit is configured to generate a second identification for the terminal when the task execution information is incomplete.
在一些实施例中,资源类型标识获取模块820包括:In some embodiments, the resource type identification obtaining module 820 includes:
任务执行信获取获取单元,被配置为终端对应的目标对象的预设任务的任务执行信息;The task execution information acquisition and acquisition unit is configured as task execution information of the preset task of the target object corresponding to the terminal;
资源类型标识生成单元,被配置为基于任务执行信息生成终端对应的资源类型标识。The resource type identifier generating unit is configured to generate a resource type identifier corresponding to the terminal based on the task execution information.
在一些实施例中,上述装置还包括:In some embodiments, the above-mentioned apparatus further comprises:
目标虚拟资源生成模块,被配置为响应于与目标页面对应的资源生成指令,生成目标虚拟资源;a target virtual resource generation module, configured to generate a target virtual resource in response to a resource generation instruction corresponding to the target page;
预设配置信息获取模块,被配置为获取预设配置信息,预设配置信息表征第一虚拟资源在目标虚拟资源中的比例;a preset configuration information acquisition module configured to acquire preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource;
第一虚拟资源拆分模块,被配置为基于预设配置信息从目标虚拟资源中拆分出第一虚拟资源;a first virtual resource splitting module, configured to split the first virtual resource from the target virtual resource based on preset configuration information;
第二虚拟资源拆分模块,被配置为将剩余虚拟资源拆分成预设数量个第二虚拟资源,剩余虚拟资源为目标虚拟资源中拆分出第一虚拟资源后的虚拟资源。The second virtual resource splitting module is configured to split the remaining virtual resources into a preset number of second virtual resources, and the remaining virtual resources are virtual resources obtained by splitting the first virtual resources from the target virtual resources.
在一些实施例中,上述装置还包括:In some embodiments, the above-mentioned apparatus further comprises:
资源替换模块,被配置为在预设数量个第二虚拟资源中任一虚拟资源的资源量大于第一虚拟资源的资源量的情况下,将资源量大于第一虚拟资源的虚拟资源与第一虚拟资源进行替换处理。The resource replacement module is configured to, when the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, replace the virtual resource whose resource amount is greater than the first virtual resource with the first virtual resource. Virtual resources are replaced.
在一些实施例中,上述装置还包括:In some embodiments, the above-mentioned apparatus further comprises:
虚拟资源存储模块,被配置为将第一虚拟资源和预设数量个第二虚拟资源存储到目标数据库中;a virtual resource storage module, configured to store the first virtual resource and a preset number of second virtual resources in the target database;
虚拟资源抽取模块830被配置为从目标数据库,基于资源类型标识为终端抽取虚拟资源。The virtual resource extraction module 830 is configured to extract virtual resources for the terminal based on the resource type identification from the target database.
在一些实施例中,上述装置还包括:In some embodiments, the above-mentioned apparatus further comprises:
虚拟资源分发模块,被配置为在抽取到第一虚拟资源的情况下,向终端分发抽取到的虚拟资源。The virtual resource distribution module is configured to distribute the extracted virtual resource to the terminal when the first virtual resource is extracted.
在一些实施例中,虚拟资源分发模块被配置为向消息队列发送虚拟资源对应的成功抽取消息,响应于资源分发服务器监测到成功抽取消息,向终端分发抽取到的虚拟资源。In some embodiments, the virtual resource distribution module is configured to send a successful extraction message corresponding to the virtual resource to the message queue, and in response to the resource distribution server monitoring the successful extraction message, distribute the extracted virtual resource to the terminal.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
图9是根据一示例性实施例示出的一种用于资源分发的电子设备的框图,该电子设备可以是服务器,其内部结构图可以如图9所示。该电子设备包括通过系统总线连接的 处理器、存储器和网络接口。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种资源分发方法。FIG. 9 is a block diagram of an electronic device for resource distribution according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. 9 . The electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. The computer program, when executed by a processor, implements a resource distribution method.
本领域技术人员可以理解,图9中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的电子设备的限定,电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 9 is only a block diagram of a part of the structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied. The electronic device may include more than More or fewer components are shown in the figures, either in combination or with different arrangements of components.
在示例性实施例中,还提供了一种电子设备,包括:处理器;用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如本公开实施例中的资源分发方法。In an exemplary embodiment, there is also provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure The resource distribution method in the example.
在示例性实施例中,还提供了一种计算机可读存储介质,当该存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例中的资源分发方法。In an exemplary embodiment, a computer-readable storage medium is also provided, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the resource distribution method in the embodiment of the present disclosure.
在示例性实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本公开实施例中的资源分发方法。In an exemplary embodiment, there is also provided a computer program product comprising instructions which, when executed on a computer, cause the computer to perform the resource distribution method in the embodiments of the present disclosure.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the protection scope required by the present disclosure.

Claims (34)

  1. 一种资源分发方法,包括:A resource distribution method, comprising:
    接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;Receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
    获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;obtaining a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can claim;
    基于所述资源类型标识为所述终端抽取虚拟资源;Extracting virtual resources for the terminal based on the resource type identifier;
    向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息。Sending resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page.
  2. 根据权利要求1所述的资源分发方法,其中,所述基于所述资源类型标识为所述终端抽取虚拟资源包括:The resource distribution method according to claim 1, wherein the extracting virtual resources for the terminal based on the resource type identifier comprises:
    在所述资源类型标识为第一标识的情况下,为所述终端抽取第一虚拟资源,所述第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资源;In the case that the resource type identifier is the first identifier, extracting a first virtual resource for the terminal, where the first virtual resource is the virtual resource with the largest amount of resources among the virtual resources to be extracted;
    在抽取到虚拟资源的情况下,所述向所述终端发送资源抽取结果信息包括:向所述终端发送资源抽取成功结果。In the case that the virtual resource is extracted, the sending the resource extraction result information to the terminal includes: sending the resource extraction success result to the terminal.
  3. 根据权利要求2所述的资源分发方法,其中,所述基于所述资源类型标识为所述终端抽取虚拟资源还包括:The resource distribution method according to claim 2, wherein the extracting virtual resources for the terminal based on the resource type identifier further comprises:
    在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;In the case that the first virtual resource is not extracted, or the resource type identifier is a second identifier, extract a second virtual resource for the terminal;
    所述向所述终端发送资源抽取结果信息包括:向所述终端发送所述第二虚拟资源的资源抽取结果;The sending the resource extraction result information to the terminal includes: sending the resource extraction result of the second virtual resource to the terminal;
    其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  4. 根据权利要求1所述的资源分发方法,还包括:The resource distribution method according to claim 1, further comprising:
    接收所述终端发送的资源类型标识获取请求;receiving a resource type identifier acquisition request sent by the terminal;
    获取所述终端对应的目标对象的预设任务的任务执行信息;acquiring task execution information of a preset task of the target object corresponding to the terminal;
    基于所述任务执行信息生成所述终端对应的资源类型标识;generating a resource type identifier corresponding to the terminal based on the task execution information;
    将所述资源类型标识发送给所述终端。sending the resource type identifier to the terminal.
  5. 根据权利要求4所述的资源分发方法,其中,所述资源获取请求包括所述资源类型标识,所述获取所述终端对应的资源类型标识包括:The resource distribution method according to claim 4, wherein the resource acquisition request includes the resource type identifier, and the acquiring the resource type identifier corresponding to the terminal comprises:
    从所述资源获取请求中提取所述资源类型标识。The resource type identifier is extracted from the resource acquisition request.
  6. 根据权利要求4所述的资源分发方法,其中,所述基于所述任务执行信息生成所述终端对应的资源类型标识包括:The resource distribution method according to claim 4, wherein the generating the resource type identifier corresponding to the terminal based on the task execution information comprises:
    在所述任务执行信息为已完成的情况下,为所述终端生成第一标识;In the case that the task execution information is completed, generating a first identifier for the terminal;
    在所述任务执行信息为未完成的情况下,为所述终端生成第二标识。In the case that the task execution information is incomplete, a second identifier is generated for the terminal.
  7. 根据权利要求1所述的资源分发方法,其中,所述获取所述终端对应的资源类型 标识包括:The resource distribution method according to claim 1, wherein the acquiring the resource type identifier corresponding to the terminal comprises:
    获取所述终端对应的目标对象的预设任务的任务执行信息;acquiring task execution information of a preset task of the target object corresponding to the terminal;
    基于所述任务执行信息生成所述终端对应的资源类型标识。A resource type identifier corresponding to the terminal is generated based on the task execution information.
  8. 根据权利要求1至7任一所述的资源分发方法,还包括:The resource distribution method according to any one of claims 1 to 7, further comprising:
    响应于与所述目标页面对应的资源生成指令,生成目标虚拟资源;generating a target virtual resource in response to a resource generation instruction corresponding to the target page;
    获取预设配置信息,所述预设配置信息表征第一虚拟资源在所述目标虚拟资源中的比例;acquiring preset configuration information, where the preset configuration information represents the proportion of the first virtual resource in the target virtual resource;
    基于所述预设配置信息从所述目标虚拟资源中拆分出所述第一虚拟资源;Splitting the first virtual resource from the target virtual resource based on the preset configuration information;
    将剩余虚拟资源拆分成预设数量个第二虚拟资源,所述剩余虚拟资源为所述目标虚拟资源中拆分出所述第一虚拟资源后的虚拟资源。Splitting the remaining virtual resources into a preset number of second virtual resources, where the remaining virtual resources are virtual resources after the first virtual resources are split from the target virtual resources.
  9. 根据权利要求8所述的资源分发方法,还包括:The resource distribution method according to claim 8, further comprising:
    在所述预设数量个第二虚拟资源中任一虚拟资源的资源量大于所述第一虚拟资源的资源量的情况下,将资源量大于所述第一虚拟资源的虚拟资源与所述第一虚拟资源进行替换处理。In the case that the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource, the virtual resource whose resource amount is greater than the first virtual resource is compared with the first virtual resource. A virtual resource is replaced.
  10. 根据权利要求9所述的资源分发方法,还包括:The resource distribution method according to claim 9, further comprising:
    将所述第一虚拟资源和所述预设数量个第二虚拟资源存储到目标数据库中;storing the first virtual resource and the preset number of second virtual resources in a target database;
    所述基于所述资源类型标识为所述终端抽取虚拟资源包括:The extracting virtual resources for the terminal based on the resource type identifier includes:
    从所述目标数据库,基于所述资源类型标识为所述终端抽取虚拟资源。From the target database, virtual resources are extracted for the terminal based on the resource type identifier.
  11. 根据权利要求1至7任一所述的资源分发方法,其中,在抽取到虚拟资源的情况下,所述方法还包括:The resource distribution method according to any one of claims 1 to 7, wherein, in the case of extracting virtual resources, the method further comprises:
    向所述终端分发抽取到的虚拟资源。The extracted virtual resources are distributed to the terminal.
  12. 根据权利要求11所述的资源分发方法,其中,所述向所述终端分发抽取到的虚拟资源包括:The resource distribution method according to claim 11, wherein the distribution of the extracted virtual resources to the terminal comprises:
    向消息队列发送所述虚拟资源对应的成功抽取消息;sending a successful extraction message corresponding to the virtual resource to the message queue;
    响应于监测到所述成功抽取消息,向所述终端分发抽取到的虚拟资源。In response to monitoring the successful extraction message, the extracted virtual resource is distributed to the terminal.
  13. 一种资源分发装置,包括:A resource distribution device, comprising:
    资源获取请求接收模块,被配置为接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;The resource acquisition request receiving module is configured to receive the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
    资源类型标识获取模块,被配置为获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;a resource type identifier acquisition module, configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that can be claimed by the terminal;
    虚拟资源抽取模块,被配置为基于所述资源类型标识为所述终端抽取虚拟资源;a virtual resource extraction module, configured to extract virtual resources for the terminal based on the resource type identifier;
    资源抽取结果信息发送模块,被配置为向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息。The resource extraction result information sending module is configured to send the resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page.
  14. 根据权利要求13所述的资源分发装置,其中,所述虚拟资源抽取模块包括:The resource distribution apparatus according to claim 13, wherein the virtual resource extraction module comprises:
    第一虚拟资源抽取单元,被配置为在所述资源类型标识为第一标识的情况下,为所述终端抽取第一虚拟资源,所述第一虚拟资源为待抽取虚拟资源中资源量最大的虚拟资 源;A first virtual resource extraction unit, configured to extract a first virtual resource for the terminal when the resource type identifier is the first identifier, and the first virtual resource is the virtual resource to be extracted with the largest amount of resources virtual resources;
    在抽取到所述第一虚拟资源的情况下,所述资源抽取结果信息发送模块被配置为向所述终端发送资源抽取成功结果。When the first virtual resource is extracted, the resource extraction result information sending module is configured to send a resource extraction success result to the terminal.
  15. 根据权利要求14所述的资源分发装置,其中,所述虚拟资源抽取模块还包括:The resource distribution apparatus according to claim 14, wherein the virtual resource extraction module further comprises:
    第二虚拟资源抽取单元,被配置为在未抽取到所述第一虚拟资源,或所述资源类型标识为第二标识的情况下,为所述终端抽取第二虚拟资源;A second virtual resource extraction unit, configured to extract a second virtual resource for the terminal when the first virtual resource is not extracted, or the resource type identifier is the second identifier;
    所述资源抽取结果信息发送模块被配置为向所述终端发送所述第二虚拟资源的资源抽取结果;The resource extraction result information sending module is configured to send the resource extraction result of the second virtual resource to the terminal;
    其中,所述第一虚拟资源的资源量大于所述第二虚拟资源的资源量。Wherein, the resource amount of the first virtual resource is greater than the resource amount of the second virtual resource.
  16. 根据权利要求13所述的资源分发装置,还包括:The resource distribution device according to claim 13, further comprising:
    标识获取请求接收模块,被配置为接收所述终端发送的资源类型标识获取请求;an identification acquisition request receiving module, configured to receive a resource type identification acquisition request sent by the terminal;
    任务执行信息获取模块,被配置为获取所述终端对应的目标对象的预设任务的任务执行信息;a task execution information obtaining module, configured to obtain task execution information of a preset task of the target object corresponding to the terminal;
    资源类型标识生成模块,被配置为基于所述任务执行信息生成所述终端对应的资源类型标识;a resource type identifier generation module, configured to generate a resource type identifier corresponding to the terminal based on the task execution information;
    资源类型标识发送模块,被配置为将所述资源类型标识发送给所述终端。The resource type identifier sending module is configured to send the resource type identifier to the terminal.
  17. 根据权利要求16所述的资源分发装置,其中,所述资源获取请求包括所述资源类型标识,所述资源类型标识获取模块被配置为从所述资源获取请求中提取所述资源类型标识。The resource distribution apparatus according to claim 16, wherein the resource acquisition request includes the resource type identifier, and the resource type identifier acquisition module is configured to extract the resource type identifier from the resource acquisition request.
  18. 根据权利要求16所述的资源分发装置,其中,所述资源类型标识生成模块包括:The resource distribution apparatus according to claim 16, wherein the resource type identifier generation module comprises:
    第一标识生成单元,被配置为在所述任务执行信息为已完成的情况下,为所述终端生成第一标识;a first identification generating unit, configured to generate a first identification for the terminal when the task execution information is completed;
    第二标识生成单元,被配置为在所述任务执行信息为未完成的情况下,为所述终端生成第二标识。The second identification generating unit is configured to generate a second identification for the terminal when the task execution information is incomplete.
  19. 根据权利要求13所述的资源分发装置,其中,所述资源类型标识获取模块包括:The resource distribution apparatus according to claim 13, wherein the resource type identifier acquisition module comprises:
    任务执行信获取获取单元,被配置为所述终端对应的目标对象的预设任务的任务执行信息;a task execution information acquisition unit, configured as task execution information of a preset task of the target object corresponding to the terminal;
    资源类型标识生成单元,被配置为基于所述任务执行信息生成所述终端对应的资源类型标识。The resource type identifier generating unit is configured to generate a resource type identifier corresponding to the terminal based on the task execution information.
  20. 根据权利要求13至19任一所述的资源分发装置,还包括:The resource distribution device according to any one of claims 13 to 19, further comprising:
    目标虚拟资源生成模块,被配置为响应于与所述目标页面对应的资源生成指令,生成目标虚拟资源;a target virtual resource generation module, configured to generate a target virtual resource in response to a resource generation instruction corresponding to the target page;
    预设配置信息获取模块,被配置为获取预设配置信息,所述预设配置信息表征第一虚拟资源在所述目标虚拟资源中的比例;a preset configuration information acquisition module, configured to acquire preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource;
    第一虚拟资源拆分模块,被配置为基于所述预设配置信息从所述目标虚拟资源中拆分出所述第一虚拟资源;a first virtual resource splitting module, configured to split the first virtual resource from the target virtual resource based on the preset configuration information;
    第二虚拟资源拆分模块,被配置为将剩余虚拟资源拆分成预设数量个第二虚拟资源,所述剩余虚拟资源为所述目标虚拟资源中拆分出所述第一虚拟资源后的虚拟资源。The second virtual resource splitting module is configured to split the remaining virtual resources into a preset number of second virtual resources, where the remaining virtual resources are the target virtual resources after the first virtual resources are split virtual resource.
  21. 根据权利要求20所述的资源分发装置,还包括:The resource distribution device according to claim 20, further comprising:
    资源替换模块,被配置为在所述预设数量个第二虚拟资源中任一虚拟资源的资源量大于所述第一虚拟资源的资源量的情况下,将资源量大于所述第一虚拟资源的虚拟资源与所述第一虚拟资源进行替换处理。A resource replacement module, configured to replace the resource amount greater than the first virtual resource with the resource amount of any virtual resource in the preset number of second virtual resources is greater than the resource amount of the first virtual resource The virtual resource is replaced with the first virtual resource.
  22. 根据权利要求21所述的资源分发装置,还包括:The resource distribution apparatus according to claim 21, further comprising:
    虚拟资源存储模块,被配置为将所述第一虚拟资源和所述预设数量个第二虚拟资源存储到目标数据库中;a virtual resource storage module, configured to store the first virtual resource and the preset number of second virtual resources in a target database;
    所述虚拟资源抽取模块被配置为从所述目标数据库,基于所述资源类型标识为所述终端抽取虚拟资源。The virtual resource extraction module is configured to extract virtual resources for the terminal from the target database based on the resource type identifier.
  23. 根据权利要求13至19任一所述的资源分发装置,还包括:The resource distribution device according to any one of claims 13 to 19, further comprising:
    虚拟资源分发模块,被配置为在抽取到虚拟资源的情况下,向所述终端分发抽取到的虚拟资源。The virtual resource distribution module is configured to distribute the extracted virtual resources to the terminal when the virtual resources are extracted.
  24. 根据权利要求23所述的资源分发装置,其中,所述虚拟资源分发模块被配置为向消息队列发送所述虚拟资源对应的成功抽取消息,响应于资源分发服务器监测到所述成功抽取消息,向所述终端分发抽取到的虚拟资源。The resource distribution apparatus according to claim 23, wherein the virtual resource distribution module is configured to send a successful extraction message corresponding to the virtual resource to a message queue, and in response to the resource distribution server monitoring the successful extraction message, send a message to the message queue. The terminal distributes the extracted virtual resources.
  25. 一种资源分发系统,包括:终端和业务服务器;A resource distribution system, comprising: a terminal and a service server;
    所述终端,被配置为显示包括资源领取信息的目标页面,以及被配置为响应于基于资源领取信息触发的资源领取指令,向所述业务服务器发送资源获取请求;以及被配置为在所述目标页面展示资源抽取结果信息;The terminal is configured to display a target page including resource claim information, and is configured to send a resource acquisition request to the service server in response to a resource claim instruction triggered based on the resource claim information; The page displays the resource extraction result information;
    所述业务服务器,被配置为获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;以及被配置为基于所述资源类型标识为所述终端抽取虚拟资源;以及被配置为向所述终端发送资源抽取结果信息。The service server is configured to acquire a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can receive; and is configured to identify the resource type based on the resource type identifier for the The terminal extracts virtual resources; and is configured to send resource extraction result information to the terminal.
  26. 根据权利要求25所述的资源分发系统,其中,所述终端,还被配置为向所述业务服务器发送资源类型标识获取请求;The resource distribution system according to claim 25, wherein the terminal is further configured to send a resource type identifier acquisition request to the service server;
    所述业务服务器,还被配置为获取所述终端对应的目标对象的预设任务的任务执行信息;以及基于所述任务执行信息生成所述终端对应的资源类型标识;以及将所述资源类型标识发送给所述终端;The service server is further configured to acquire task execution information of a preset task of the target object corresponding to the terminal; and generate a resource type identifier corresponding to the terminal based on the task execution information; and assign the resource type identifier to the sent to the terminal;
    所述向业务服务器发送资源获取请求包括向业务服务器发送包括所述资源类型标识的资源获取请求。The sending the resource acquisition request to the service server includes sending the resource acquisition request including the resource type identifier to the service server.
  27. 根据权利要求25至26任一所述的资源分发系统,还包括:资源创建服务器和资源管理服务器;The resource distribution system according to any one of claims 25 to 26, further comprising: a resource creation server and a resource management server;
    所述资源创建服务器,被配置为响应于与所述目标页面对应的资源生成指令,生成目标虚拟资源,以及将所述目标虚拟资源发送给所述资源管理服务器;the resource creation server, configured to generate a target virtual resource in response to a resource creation instruction corresponding to the target page, and send the target virtual resource to the resource management server;
    所述资源管理服务器,被配置为获取预设配置信息,所述预设配置信息表征第一虚 拟资源在所述目标虚拟资源中的比例;以及被配置为基于所述预设配置信息从所述目标虚拟资源中拆分出所述第一虚拟资源;以及被配置为将剩余虚拟资源拆分成预设数量个第二虚拟资源,所述剩余虚拟资源为所述目标虚拟资源中拆分出所述第一虚拟资源后的虚拟资源。The resource management server is configured to obtain preset configuration information, the preset configuration information representing the proportion of the first virtual resource in the target virtual resource; and configured to obtain the preset configuration information from the Splitting the first virtual resource from the target virtual resource; and being configured to split the remaining virtual resource into a preset number of second virtual resources, where the remaining virtual resource is split from the target virtual resource The virtual resource after the first virtual resource is described.
  28. 根据权利要求27所述的资源分发系统,其中,所述资源管理服务器,还被配置为在所述预设数量个第二虚拟资源中任一虚拟资源的资源量大于所述第一虚拟资源的资源量的情况下,将资源量大于所述第一虚拟资源的虚拟资源与所述第一虚拟资源进行替换处理。The resource distribution system according to claim 27, wherein the resource management server is further configured such that the resource amount of any virtual resource in the preset number of second virtual resources is greater than that of the first virtual resource In the case of the resource amount, a virtual resource whose resource amount is greater than the first virtual resource is replaced with the first virtual resource.
  29. 根据权利要求28所述的资源分发系统,其中,所述资源管理服务器,还被配置为将所述第一虚拟资源和所述预设数量个第二虚拟资源存储到目标数据库中;The resource distribution system according to claim 28, wherein the resource management server is further configured to store the first virtual resource and the preset number of second virtual resources in a target database;
    所述基于所述资源类型标识为所述终端抽取虚拟资源包括:从所述目标数据库,基于所述资源类型标识为所述终端抽取虚拟资源。The extracting virtual resources for the terminal based on the resource type identifier includes: extracting virtual resources for the terminal based on the resource type identifier from the target database.
  30. 根据权利要求25至26任一所述的资源分发系统,其中,所述业务服务器,还被配置为在抽取到虚拟资源的情况下,向所述终端分发抽取到的虚拟资源。The resource distribution system according to any one of claims 25 to 26, wherein the service server is further configured to distribute the extracted virtual resource to the terminal when the virtual resource is extracted.
  31. 根据权利要求30所述的资源分发系统,还包括消息队列和资源分发服务器;The resource distribution system according to claim 30, further comprising a message queue and a resource distribution server;
    所述业务服务器还被配置为向所述消息队列发送所述虚拟资源对应的成功抽取消息;The service server is further configured to send a successful extraction message corresponding to the virtual resource to the message queue;
    所述资源分发服务器被配置为响应于监测到所述成功抽取消息,向所述终端分发抽取到的虚拟资源。The resource distribution server is configured to distribute the extracted virtual resource to the terminal in response to monitoring the successful extraction message.
  32. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:wherein the processor is configured to execute the instructions to implement the following steps:
    接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;Receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
    获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;obtaining a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can claim;
    基于所述资源类型标识为所述终端抽取虚拟资源;Extracting virtual resources for the terminal based on the resource type identifier;
    向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息。Sending resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page.
  33. 一种计算机可读存储介质,其特征在于,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:A computer-readable storage medium, characterized in that, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the following steps:
    接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;Receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
    获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;obtaining a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can claim;
    基于所述资源类型标识为所述终端抽取虚拟资源;Extracting virtual resources for the terminal based on the resource type identifier;
    向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息。Sending resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page.
  34. 一种计算机程序产品,包括计算机指令,其特征在于,所述计算机指令被处理器执行时实现以下步骤:A computer program product, comprising computer instructions, characterized in that, when the computer instructions are executed by a processor, the following steps are implemented:
    接收终端响应于基于目标页面中资源领取信息触发的资源领取指令,发送的资源获取请求;Receiving the resource acquisition request sent by the terminal in response to the resource acquisition instruction triggered based on the resource acquisition information in the target page;
    获取所述终端对应的资源类型标识,所述资源类型标识表征所述终端可领取的虚拟资源的资源类型信息;obtaining a resource type identifier corresponding to the terminal, where the resource type identifier represents resource type information of virtual resources that the terminal can claim;
    基于所述资源类型标识为所述终端抽取虚拟资源;Extracting virtual resources for the terminal based on the resource type identifier;
    向所述终端发送资源抽取结果信息,以使所述终端在所述目标页面展示所述资源抽取结果信息。Sending resource extraction result information to the terminal, so that the terminal displays the resource extraction result information on the target page.
PCT/CN2021/132980 2021-04-20 2021-11-25 Resource distribution method and apparatus WO2022222469A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110425923.1A CN113329231A (en) 2021-04-20 2021-04-20 Resource distribution method, device, system, electronic equipment and storage medium
CN202110425923.1 2021-04-20

Publications (1)

Publication Number Publication Date
WO2022222469A1 true WO2022222469A1 (en) 2022-10-27

Family

ID=77414938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132980 WO2022222469A1 (en) 2021-04-20 2021-11-25 Resource distribution method and apparatus

Country Status (2)

Country Link
CN (1) CN113329231A (en)
WO (1) WO2022222469A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329231A (en) * 2021-04-20 2021-08-31 北京达佳互联信息技术有限公司 Resource distribution method, device, system, electronic equipment and storage medium
CN117273816A (en) * 2022-09-21 2023-12-22 支付宝(杭州)信息技术有限公司 Resource lottery processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130066750A1 (en) * 2008-03-21 2013-03-14 Dressbot, Inc. System and method for collaborative shopping, business and entertainment
US20160210602A1 (en) * 2008-03-21 2016-07-21 Dressbot, Inc. System and method for collaborative shopping, business and entertainment
CN108665294A (en) * 2017-03-30 2018-10-16 阿里巴巴集团控股有限公司 Virtual resource object processing method, device and computer system
CN111494964A (en) * 2020-06-30 2020-08-07 腾讯科技(深圳)有限公司 Virtual article recommendation method, model training method, device and storage medium
CN112040262A (en) * 2020-08-31 2020-12-04 腾讯科技(深圳)有限公司 Virtual resource object processing method and device
CN112100204A (en) * 2020-09-18 2020-12-18 广州华多网络科技有限公司 Virtual resource regulation and control method and device, computer equipment and storage medium
CN112188299A (en) * 2020-10-13 2021-01-05 北京达佳互联信息技术有限公司 Virtual resource processing method, device, terminal and storage medium
CN113329231A (en) * 2021-04-20 2021-08-31 北京达佳互联信息技术有限公司 Resource distribution method, device, system, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100832A (en) * 2014-04-24 2015-11-25 海信集团有限公司 Multimedia resource pushing method and device
WO2018108035A1 (en) * 2016-12-13 2018-06-21 腾讯科技(深圳)有限公司 Information processing and virtual resource exchange method, apparatus, and device
CN107979525A (en) * 2017-10-11 2018-05-01 上海掌门科技有限公司 A kind of red packet distribution method, equipment and medium
CN112616068A (en) * 2020-12-31 2021-04-06 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130066750A1 (en) * 2008-03-21 2013-03-14 Dressbot, Inc. System and method for collaborative shopping, business and entertainment
US20160210602A1 (en) * 2008-03-21 2016-07-21 Dressbot, Inc. System and method for collaborative shopping, business and entertainment
CN108665294A (en) * 2017-03-30 2018-10-16 阿里巴巴集团控股有限公司 Virtual resource object processing method, device and computer system
CN111494964A (en) * 2020-06-30 2020-08-07 腾讯科技(深圳)有限公司 Virtual article recommendation method, model training method, device and storage medium
CN112040262A (en) * 2020-08-31 2020-12-04 腾讯科技(深圳)有限公司 Virtual resource object processing method and device
CN112100204A (en) * 2020-09-18 2020-12-18 广州华多网络科技有限公司 Virtual resource regulation and control method and device, computer equipment and storage medium
CN112188299A (en) * 2020-10-13 2021-01-05 北京达佳互联信息技术有限公司 Virtual resource processing method, device, terminal and storage medium
CN113329231A (en) * 2021-04-20 2021-08-31 北京达佳互联信息技术有限公司 Resource distribution method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113329231A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
WO2022222469A1 (en) Resource distribution method and apparatus
CN110351363B (en) Data backup method, device and computer readable storage medium
CN110620812A (en) Interactive information pushing method and device, computer equipment and storage medium
CN113329232B (en) Resource distribution method and device, electronic equipment and storage medium
CN108933994B (en) Short message distribution processing method and device, computer equipment and storage medium
US20230171289A1 (en) Multiple personality deception systems
CN113949697B (en) Data distribution method, device, electronic equipment and storage medium
CN113051458A (en) Data processing method and device, electronic equipment and storage medium
CN113469736A (en) Resource distribution control method, device, system, electronic device and storage medium
CN111768238A (en) Channel tracking method, device, equipment and storage medium
US20220303324A1 (en) Method and system for multi-service processing
CN105072608A (en) Method and device for managing authentication token
CN113867782A (en) Gray scale distribution method and device, computer equipment and storage medium
CN113315981B (en) Task data updating method, device and system, electronic equipment and storage medium
US11418553B2 (en) Video connection method and apparatus, and non-transitory computer-readable storage medium
CN115480987A (en) Link data display method and device and computer equipment
CN107612882B (en) User behavior identification method and device based on intermediate log
US20220405147A1 (en) Task processing method, electronic device and storage medium
CN113630612B (en) Data processing and data displaying method and device, electronic equipment and medium
CN113420236B (en) Method and device for displaying list data, electronic equipment and storage medium
CN113238860B (en) Task request processing method and device, electronic equipment and storage medium
CN113254335B (en) Test data processing method and device, server and storage medium
CN115412774A (en) Interactive processing method, device, electronic equipment, storage medium and program product
CN114217919A (en) Task processing method and device, electronic equipment and storage medium
CN113469735B (en) Resource processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21937691

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21937691

Country of ref document: EP

Kind code of ref document: A1