CN113315981B - Task data updating method, device and system, electronic equipment and storage medium - Google Patents

Task data updating method, device and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113315981B
CN113315981B CN202110459968.0A CN202110459968A CN113315981B CN 113315981 B CN113315981 B CN 113315981B CN 202110459968 A CN202110459968 A CN 202110459968A CN 113315981 B CN113315981 B CN 113315981B
Authority
CN
China
Prior art keywords
task
target
live broadcasting
information
broadcasting room
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110459968.0A
Other languages
Chinese (zh)
Other versions
CN113315981A (en
Inventor
张浩文
谭培强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110459968.0A priority Critical patent/CN113315981B/en
Publication of CN113315981A publication Critical patent/CN113315981A/en
Application granted granted Critical
Publication of CN113315981B publication Critical patent/CN113315981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client

Abstract

The present disclosure relates to a task data updating method, device, system, electronic equipment and storage medium, wherein the method includes determining task identification information of a target task of a target live broadcasting room corresponding to a target resource adding message under the condition that the target resource adding message is included in a preset message queue; updating task progress information corresponding to the target task based on the task identification information; under the condition that the task data updating time corresponding to the target live broadcasting room is reached, generating target task data of the target live broadcasting room based on the task progress information; and transmitting the target task data to a terminal corresponding to the target living broadcast room, so that the terminal updates the task data displayed in the target living broadcast room based on the target task data. By utilizing the embodiment of the invention, the resource consumption in the task data updating process can be reduced, the load pressure of the server is reduced, and the updating efficiency of the task data is further improved.

Description

Task data updating method, device and system, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a task data updating method, device, system, electronic equipment and storage medium.
Background
In some internet platforms, in order to attract more users to access information in the platform and increase access, some resource distribution activities based on task execution and distributing virtual resources such as electronic coupons and virtual currencies to users are often performed. In the related art, after a task is started, task data such as task progress and the like are updated to corresponding terminals in a mode of issuing a pendant and the like, but mass online terminals are used in an activity period, the resource consumption is large, larger load pressure is brought to a server, and the server is easy to fail.
Disclosure of Invention
The disclosure provides a task data updating method, device, system, electronic equipment and storage medium, so as to at least solve the problems of high resource consumption, high server load pressure and the like in the task data updating process in the related technology. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a task data update method including:
under the condition that a preset message queue comprises a target resource adding message, determining task identification information of a target task of a target live broadcasting room corresponding to the target resource adding message;
Updating task progress information corresponding to the target task based on the task identification information;
generating target task data of the target live broadcasting room based on the task progress information under the condition that the task data updating time corresponding to the target live broadcasting room is reached;
and transmitting the target task data to a terminal corresponding to the target live broadcasting room, so that the terminal updates the task data displayed in the target live broadcasting room based on the target task data.
Optionally, the updating the task progress information corresponding to the target task based on the task identification information includes:
acquiring resource increment information corresponding to the target resource adding message;
and updating task progress information corresponding to the task identification information based on the resource increment information.
Optionally, before the obtaining the resource increment information corresponding to the target resource adding message, the method further includes:
acquiring task execution information of the target live broadcasting room;
and executing the step of acquiring the resource increment information corresponding to the target resource adding message under the condition that the task execution information indicates that the target live broadcasting room executes the target task.
Optionally, the method further comprises:
and storing the task progress information into a storage module.
Optionally, the generating the target task data of the target live broadcasting room based on the task progress information includes:
acquiring the task progress information from the storage module;
and generating the target task data based on the task progress information.
Optionally, the method further comprises:
acquiring task association information of the target live broadcasting room;
the generating the target task data based on the task progress information includes: and generating the target task data based on the task progress information and the task association information.
Optionally, before generating the target task data of the target live broadcast room based on the task progress information when the task data update time corresponding to the target live broadcast room is reached, the method further includes:
acquiring update index data of task data corresponding to a live broadcasting room to be screened, wherein the update index data represents the update frequency of the task data corresponding to the live broadcasting room to be screened;
filtering the live broadcasting room to be screened based on the update index data to determine an update live broadcasting room;
And under the condition that the target live broadcasting room is included in the updated live broadcasting room, determining the current time as the task data updating time.
Optionally, the obtaining the update index data of the task data corresponding to the live broadcasting room to be screened includes:
sending a viewer number query request to a live broadcast server, wherein the viewer number query request comprises identification information corresponding to the live broadcast room to be screened; the live broadcast server determines the number of online audience of the live broadcast room to be screened based on the identification information;
receiving the number of the online audience sent by the live broadcast server;
the update index data is generated based on the number of online viewers.
Optionally, the method further comprises:
sending an online live broadcasting room query request to a live broadcasting server;
and receiving target identification information of the online living broadcast room sent by the living broadcast server.
Optionally, before the obtaining the update index data of the task data corresponding to the live broadcasting room to be screened, the method further includes:
sending a permission query request corresponding to the online live broadcasting room to a live broadcasting server, wherein the permission query request comprises the target identification information; the live broadcast server determines task authority information corresponding to the target identification information based on preset authority mapping information, wherein the task authority information characterizes the authority of executing a target task in a corresponding live broadcast room;
Receiving the task permission information sent by the live broadcast server;
determining the live broadcasting room to be screened from the online live broadcasting rooms based on the task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, which is pre-constructed by the live broadcasting server.
Optionally, the online live broadcasting room includes a plurality of live broadcasting rooms, and the sending, to the live broadcasting server, the permission query request corresponding to the online live broadcasting room includes:
and sending the permission query requests corresponding to the live broadcasting rooms to the live broadcasting server based on a parallel strategy, wherein the parallel strategy characterizes the strategy of sending the permission query requests corresponding to the live broadcasting rooms based on a plurality of threads in parallel.
Optionally, the issuing the target task data to the terminal corresponding to the target live broadcasting room includes:
calling a preset remote issuing service;
and transmitting the target task data to a terminal corresponding to the target live broadcasting room based on the preset remote transmitting service.
According to a second aspect of the embodiments of the present disclosure, there is provided a task data updating device including:
The task identification information determining module is configured to determine task identification information of a target task of a target live broadcasting room corresponding to a target resource adding message under the condition that the target resource adding message is included in a preset message queue;
a task progress information updating module configured to perform updating of task progress information corresponding to the target task based on the task identification information;
the target task data generation module is configured to execute the task data generation of the target live broadcasting room based on the task progress information under the condition that the task data update time corresponding to the target live broadcasting room is reached;
and the target task data issuing module is configured to execute issuing of the target task data to a terminal corresponding to the target live broadcasting room, so that the terminal updates the task data displayed in the target live broadcasting room based on the target task data.
Optionally, the task progress information updating module includes:
a resource increment information acquisition unit configured to perform acquisition of resource increment information corresponding to the target resource addition message;
and the task progress information updating unit is configured to execute updating of task progress information corresponding to the task identification information based on the resource increment information.
Optionally, the apparatus further includes:
the task execution information acquisition module is configured to acquire task execution information of the target live broadcasting room before acquiring the resource increment information corresponding to the target resource increment information;
the resource increment information obtaining unit is further configured to obtain resource increment information corresponding to the target resource adding message when the task execution information indicates that the target live broadcasting room executes the target task.
Optionally, the apparatus further includes:
and the task progress information storage module is configured to store the task progress information to the storage module.
Optionally, the target task data generating module includes:
a task progress information acquisition unit configured to perform acquisition of the task progress information from the storage module;
and a target task data generation unit configured to perform generation of the target task data based on the task progress information.
Optionally, the target task data generating module further includes:
a task association information acquisition unit configured to perform acquisition of task association information of the target live broadcasting room;
the target task data generation unit is further configured to perform generation of the target task data based on the task progress information and the task association information.
Optionally, the apparatus further includes:
the update index data acquisition module is configured to acquire update index data of task data corresponding to a live broadcasting room to be screened before generating target task data of the target live broadcasting room based on the task progress information under the condition that task data update time corresponding to the target live broadcasting room is reached, wherein the update index data represents task data update frequency corresponding to the live broadcasting room to be screened;
the live broadcasting room filtering module is configured to perform filtering on the live broadcasting room to be screened based on the updating index data and determine an updating live broadcasting room;
and the task data updating time determining module is configured to determine that the current time is the task data updating time when the target live broadcasting room is included in the updating live broadcasting room.
Optionally, the update index data acquisition module includes:
a viewer number query request sending unit configured to send a viewer number query request to a live broadcast server, where the viewer number query request includes identification information corresponding to the live broadcast room to be screened; the live broadcast server determines the number of online audience of the live broadcast room to be screened based on the identification information;
An online audience quantity receiving unit configured to perform receiving the online audience quantity transmitted by the live broadcast server;
an update index data generation unit configured to perform generation of the update index data based on the number of online viewers.
Optionally, the apparatus further includes:
the online live broadcast room query request sending module is configured to send an online live broadcast room query request to the live broadcast server;
and the target identification information receiving module is configured to receive the target identification information of the online live broadcasting room sent by the live broadcasting server.
Optionally, the apparatus further includes:
the permission query request sending module is configured to send a permission query request corresponding to the online live broadcasting room to a live broadcasting server before the update index data of the task data corresponding to the live broadcasting room to be screened is acquired, wherein the permission query request comprises the target identification information; the live broadcast server determines task authority information corresponding to the target identification information based on preset authority mapping information, wherein the task authority information characterizes the authority of executing a target task in a corresponding live broadcast room;
the task permission information receiving module is configured to receive the task permission information sent by the live broadcast server;
A live broadcast room to be screened determining module configured to perform determining the live broadcast room to be screened from the online live broadcast rooms based on the task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, which is pre-constructed by the live broadcasting server.
Optionally, the online live broadcasting room comprises a plurality of live broadcasting rooms, the permission query request sending module is further configured to send permission query requests corresponding to the plurality of live broadcasting rooms to the live broadcasting server based on a parallel policy, and the parallel policy characterizes a policy of sending the permission query requests corresponding to the plurality of live broadcasting rooms based on a plurality of threads in parallel.
Optionally, the target task data issuing module includes:
the preset remote issuing service calling unit is configured to execute calling of the preset remote issuing service;
and the target task data issuing unit is configured to execute issuing of the target task data to the terminal corresponding to the target live broadcasting room based on the preset remote issuing service.
According to a third aspect of an embodiment of the present disclosure, there is provided a task data update system including: the task issuing update server and the terminal;
The task issuing update server is configured to execute task identification information of a target task of a target live broadcasting room corresponding to a target resource adding message when the target resource adding message is monitored to be included in a preset message queue; and configured to perform updating task progress information corresponding to the target task based on the task identification information; and configured to execute the target task data of the target live broadcasting room based on the task progress information when the task data update time corresponding to the target live broadcasting room is reached; the terminal is configured to execute the task data downloading to the terminal corresponding to the target live broadcasting room;
the terminal is configured to execute the task data displayed in the target living broadcast room based on the target task data update.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any of the first aspects above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of any one of the first aspects of embodiments of the present disclosure.
According to a sixth aspect of 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 the method of any one of the first aspects of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by monitoring the preset message queue, under the condition that the target resource adding message is monitored, the task progress information corresponding to the target task is asynchronously updated in combination with the task identification information of the corresponding target task, so that decoupling of task progress information updating and subsequent task data issuing updating is realized. And under the condition that the task data updating time corresponding to the target live broadcasting room is reached, the target task data is generated by combining the task progress information and updated to the corresponding terminal, so that the resource consumption in the task data updating process can be reduced, the load pressure of the server is reduced, and the updating efficiency of the task data is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an application environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of task data update according to an example embodiment;
FIG. 3 is a flowchart illustrating another method of task data update according to an example embodiment;
FIG. 4 is a flowchart illustrating another method of task data update, according to an example embodiment;
FIG. 5 is a flowchart illustrating a task delivery update server obtaining update index data for task data corresponding to a live broadcast room to be screened according to an example embodiment;
FIG. 6 is a schematic diagram of a terminal page showing targeted task data, according to an example embodiment;
FIG. 7 is a flowchart illustrating a task data update according to an example embodiment;
FIG. 8 is a block diagram of a task data update device, according to an example embodiment;
FIG. 9 is a block diagram of an electronic device for task data update, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment according to an exemplary embodiment, and as shown in fig. 1, the application environment may include a task delivery update server 100, a task update record server 200, a live server 300, a terminal 400, and a storage module 500.
In an alternative embodiment, the task delivery update server 100 may be configured to update task data of a corresponding terminal of the target live room. In a specific embodiment, the task update record server 200 may monitor a target resource adding message corresponding to a target task in combination with a message queue, and further may trigger updating task data such as task progress information, task related information, and the like of the target task in the corresponding living broadcast room based on the target resource adding message, and timely store the task data such as the task progress information, the task related information, and the like in the storage module 500, and accordingly, the task issuing update server 100 obtains task data such as the task progress information, the task related information, and the like from the storage module 500 and issues the task data to the terminal 400 corresponding to the living broadcast room when the task data is required to be issued. In an alternative embodiment, the live server 300 may be configured to provide data support for the target live room where the task delivery update server 100 determines that the task data needs to be updated in conjunction with the actual application requirements. In an alternative embodiment, the terminal 400 may be configured to provide, for the user, related services of the live broadcast service, and update the target task data issued by the task issue update server 100 to the corresponding live broadcast room for presentation. In a specific embodiment, the terminal 400 may include a viewer end in a live scene, or may be a live end in a live scene, or the like.
In an alternative embodiment, the storage module 500 may be configured to store task data such as task progress information, task association information, and the like.
In an alternative embodiment, the servers (the task delivery update server 100, the task update record server 200, and the live broadcast server 300) may be independent physical servers, may be a server cluster or a distributed system formed by a plurality of physical servers, and may also be cloud servers that provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), and basic cloud computing services such as big data and artificial intelligence platforms.
In an alternative embodiment, the terminal 400 may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and the like. Alternatively, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
In an alternative embodiment, the storage module 500 may be a database or a cache.
In addition, it should be noted that, fig. 1 is only an application environment provided by the present disclosure, and in practical applications, other application environments may also be included, for example, the task delivery update server 100 and the task update record server 200 may be one server, and optionally, the functions of the task update record server 200 may be integrated on the task delivery update server 100.
In the embodiment of the present disclosure, the task delivery update server 100, the task update record server 200, the live broadcast server 300, the terminal 400, and the storage module 500 may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
Fig. 2 is a flowchart illustrating a task data update method according to an exemplary embodiment, which may include the following steps, as shown in fig. 2.
In step S201, when the task delivery update server monitors that the preset message queue includes the target resource adding message, the task delivery update server determines task identification information of a target task in the target live broadcast room corresponding to the target resource adding message.
In practical application, a viewer in a living broadcast room can trigger a message (resource adding message) for giving virtual resources to a host through a corresponding terminal (viewer end); correspondingly, the task update record server can update the task progress information of the target task in the live broadcasting room in real time by monitoring the resource adding message. In a specific embodiment, in order to reduce consumption pressure of the message, the resource adding message may be stored in a preset message queue, and accordingly, the resource adding message in the preset message queue may be monitored, and when the preset message queue includes the target resource adding message, task identification information of a target task in the target living room corresponding to the target resource adding message may be determined.
In a specific embodiment, the target resource augmentation message may be a resource augmentation message corresponding to the target task. Specifically, taking the example that the audience terminal of the target task as the living broadcast room gives away the good news (virtual resource) to the anchor terminal, the target resource adding message can be a message that the audience terminal gives away the good news to the anchor terminal. In a specific embodiment, the task identification information may be identification information for distinguishing target tasks in different live rooms. Specifically, task identification information of a target task in each living broadcast room participating in the target task can be set in advance for the living broadcast room; correspondingly, under the condition that the target resource adding message is detected, determining a target live broadcasting room corresponding to the target resource adding message, and acquiring task identification information of a target task in the target live broadcasting room.
In step S203, the task issuing update server updates task progress information corresponding to the target task based on the task identification information;
in a specific embodiment, the task scheduling update server may update task progress information corresponding to the target task based on the task identification information, where the task scheduling update server may include:
the task issuing update server acquires the resource increment information corresponding to the target resource adding message;
the task issuing updating server updates task progress information corresponding to the task identification information based on the resource increment information.
In a specific embodiment, the resource increment information may add the amount of resource increment from the message to the target resource. The target resource adding messages triggered by different audience terminals can have the same or different corresponding resource increasing amounts, and can be specifically set in combination with practical application. Optionally, in the case that the target resource adding messages triggered by different audience terminals have the same corresponding resource increasing amounts, the resource increasing amounts corresponding to the target resource adding messages may be preset. Optionally, under the condition that the resource increment corresponding to the target resource increment message triggered by different audience terminals is different, a trigger control corresponding to the target resource increment message with different resource increment can be set at the audience terminal, a resource increment configuration area can also be set at the audience terminal, and accordingly, when the target resource increment message is triggered, a user can perform resource increment configuration in the resource increment configuration area.
In an alternative embodiment, the target task may correspond to one virtual resource, or may correspond to at least two virtual resources. In a specific embodiment, it is assumed that the target task corresponds to two virtual resources, where one virtual resource is a first virtual resource that is given away by the viewer (for example, the foregoing benefit), and the other virtual resource may be a second virtual resource that is automatically triggered to give away if the viewer triggers the first virtual resource. Optionally, the second virtual resource may be a virtual resource presented by the platform, and optionally, the amount of resources corresponding to the second virtual resource and whether to trigger presentation of the second virtual resource may be determined by combining information such as activity of the audience terminal in the platform, where the higher the general activity is, the higher the probability of triggering presentation of the second virtual resource is, and the higher the amount of resources corresponding to the second virtual resource is.
In an optional embodiment, the task update issuing server obtaining the resource amount corresponding to the target resource adding message may include obtaining respective resource increment amounts of at least two virtual resources corresponding to the target resource adding message; accordingly, task progress information of the target task of the corresponding living room can be updated based on the respective resource increment amounts of the at least two virtual resources. Specifically, the respective resource increment amounts of the at least two virtual resources may be added to the corresponding cumulative resource amounts of the virtual resources, and accordingly, the target task may be determined to be completed when the cumulative resource amounts of the at least two virtual resources reach the corresponding preset resource amounts (the preset resource amounts are the resource amount lower limit values corresponding to the completion target task).
In a specific embodiment, the specific representation of the task progress information may include, but is not limited to, a ratio of the accumulated resource amount to the preset resource amount, a difference between the preset resource amount and the accumulated resource amount, and the like.
In the above embodiment, the task progress information of the target task in the target living broadcast room is updated by combining the task identification information and the resource increment corresponding to the target resource increment message, so that the task progress information can be updated in time, the issuing speed of the subsequent task data is ensured, and the accuracy of the task progress information is effectively improved.
In a specific embodiment, before the task delivery update server obtains the resource increment information corresponding to the target resource increment message, the method further includes:
the task issuing update server acquires task execution information of a target live broadcasting room;
and the task issuing update server executes the step of acquiring the resource increment information corresponding to the target resource adding message under the condition that the task execution information indicates the target live broadcasting room to execute the target task.
In practical application, considering that the audience terminal in some living broadcast rooms triggers the target resource adding message, but there may be a situation that the living broadcast room does not start the target task, correspondingly, before task progress information updating is performed based on the resource quantity corresponding to the target resource adding message, task execution information corresponding to the target living broadcast room of the target resource adding message may be obtained, and when the task execution information indicates that the target living broadcast room is executing the target task, the task issuing updating server executes the step of obtaining the resource increment information corresponding to the target resource adding message, so as to update the task progress information of the target task in the target living broadcast room based on the resource increment information corresponding to the target resource adding message.
In the above embodiment, before the task progress information is updated, the live broadcasting room that is executing the target task can be effectively identified by combining the task execution information of the live broadcasting room, so that the task progress information of the live broadcasting room that is executing the target task can be accurately updated.
In an alternative embodiment, as shown in fig. 3, the method may further include the steps of:
in step S211, the task delivery update server stores the task progress information to the storage module.
In a specific embodiment, by storing the task progress information in the storage module, task progress information can be obtained in time when task data is required to be issued later, and then task data can be generated in time.
In the above embodiment, by storing the task progress information in the storage module, it is convenient to acquire the task progress information in time when the task data is issued and updated, so that the efficiency of issuing and updating the task data is improved.
In a specific embodiment, the steps S201 to S203 and the steps executed by the task delivery update server in the related refinement steps of steps S201 to S203 may also be executed by the task update record server, so as to better reduce the system pressure of the task delivery update server.
In step S205, when the task data update time corresponding to the target live broadcast room is reached, the task delivery update server generates target task data of the target live broadcast room based on the task progress information;
in an alternative embodiment, in conjunction with fig. 3, the generating, by the task delivery update server, target task data of the target live broadcast room based on the task progress information may include the following steps:
in step S2051, the task issuing update server acquires task progress information from the storage module;
in step S2053, the task delivery update server generates target task data based on the task progress information.
In an alternative embodiment, the target task data may include task progress information, and in particular, the target task data may include, but is not limited to, being delivered to the corresponding terminal in a picture form; correspondingly, a picture comprising task progress information can be generated to obtain the target task data.
In the above embodiment, when task data is issued and updated, task progress information which is generated in advance is directly obtained from the storage module, so that target task data can be quickly generated, decoupling of task progress information updating and task data issuing is realized, and the speed of issuing and updating the target task data and the pressure of a server in the process of issuing the target task data can be greatly improved.
In an alternative embodiment, the method may further include:
the task issuing update server acquires task association information of a target live broadcasting room;
the task issuing update server generating target task data based on the task progress information comprises the following steps: the task issuing update server generates target task data based on the task progress information and the task association information.
In a specific embodiment, the task related information may include information related to tasks other than task progress information, and in a specific embodiment, the task related information may include information such as a remaining execution duration of the target task, a ranking of task progress in the entire platform, and the like. In a specific embodiment, the task related information may also be updated in real time to the storage module during the task execution, and accordingly, when the task data needs to be issued, the task related information may be obtained, and target task data including the task progress information and the task related information may be generated. Optionally, the task related information and the task progress information may be stored in the same storage module, or may be stored in other storage modules, and specifically, may be set in combination with actual application requirements.
In the embodiment, the task related information is integrated into the target task data, so that the task data displayed on the terminal can be better enriched, further, a user can be better stimulated to complete the task, and the task participation degree is improved.
In an alternative embodiment, before the task delivery update server generates the target task data of the target live broadcast room based on the task progress information in the case that the corresponding task data update time of the target live broadcast room is reached, as shown in fig. 4, the method may further include the following steps:
in step S213, the task issuing update server acquires update index data of task data corresponding to the live broadcasting room to be screened;
in step S215, the task delivery update server filters the live broadcasting room to be screened based on the update index data, and determines to update the live broadcasting room;
in step S217, in the case where the target live room is included in the update live room, the task delivery update server determines the current time as the task data update time.
In a specific embodiment, the update index data may represent an update frequency of task data corresponding to the live broadcast room to be screened. In a specific embodiment, the task data corresponding to the live broadcast room to be screened may be task data of a target task executed in the live broadcast room to be screened. In a particular embodiment, the task data may include task progress information. In a specific embodiment, the target task executed in the living broadcast room may be different according to the actual application requirement, and optionally, the target task may give away the benefits (virtual resources) to the anchor side for the audience side of the living broadcast room. Specifically, a preset air quantity corresponding to the target task can be preset, and accordingly, task progress information of the target task is determined by combining the accumulated air quantity and the preset air quantity presented to the anchor terminal by the audience terminal of the living broadcast room. Specifically, the task data update frequency may be an update frequency of task data presented at the terminal.
In an optional embodiment, the live broadcast room to be screened may be an online live broadcast room, and optionally, in practical application, the designated online live broadcast room may also be selected as the live broadcast room to be screened in combination with practical application requirements.
In an alternative embodiment, the method may further include:
the task issuing update server sends an online live broadcasting room query request to the live broadcasting server;
and the live broadcast server sends the target identification information of the online live broadcast room to the task issuing update server.
In a particular embodiment, the online live room may be a live room in a live state. Specifically, the live broadcast server side can update the identification information of the online live broadcast room in real time by combining whether different live broadcast rooms are in a live broadcast state or not, and can determine the identification information of the online live broadcast room by combining whether the live broadcast room is in a live broadcast state or not after receiving the online live broadcast room query request.
In the above embodiment, the target identification information of the online live broadcast room is obtained from the live broadcast server, so that the live broadcast room which needs to update the task data at present can be determined in time, and data support is provided for the issuing update of the follow-up task data.
In an optional embodiment, before the task delivery update server obtains update index data of task data corresponding to the live broadcasting room to be screened, the method further includes:
the task issuing update server sends a permission query request corresponding to the online live broadcasting room to the live broadcasting server, wherein the permission query request comprises target identification information;
the live broadcast server determines task authority information corresponding to the target identification information based on preset authority mapping information, wherein the task authority information characterizes the authority of executing the target task in the corresponding live broadcast room;
the live broadcast server transmits task authority information to a task issuing update server;
the task issuing update server determines a live broadcasting room to be screened from the online live broadcasting rooms based on task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, and the mapping relation is pre-constructed by the live broadcasting server.
In a specific embodiment, the task permission information may represent permission to execute the target task in the corresponding living broadcast room, and optionally, the task permission information may be permission to execute the target task in the corresponding living broadcast room or may not be permission to execute the target task in the corresponding living broadcast room. In an alternative embodiment, task authority information of a live broadcasting room in the live broadcasting platform can be preset according to actual application conditions, in an alternative embodiment, task authority information which does not have authority to execute a target task in a corresponding live broadcasting room can be set for an official live broadcasting room, an entertainment star live broadcasting room and a game live broadcasting room, and task authority information which has authority to execute the target task in the corresponding live broadcasting room can be set for a live broadcasting room except the official live broadcasting room, the entertainment star live broadcasting room and the game live broadcasting room in the live broadcasting platform. Accordingly, the online live broadcast room with the authority of executing the target task in the corresponding live broadcast room can be the live broadcast room to be screened.
In a specific embodiment, after the task permission information is set, in order to improve the confirmation efficiency of the subsequent permission of the live broadcasting room to execute the target task, the live broadcasting server may be pre-configured to obtain the mapping relationship between the task permission information of the live broadcasting room and the identification information of the live broadcasting room, so as to obtain the preset permission mapping information.
In the above embodiment, by pre-constructing the preset authority mapping information including the mapping relationship between the task authority information of the live broadcasting room and the identification information of the live broadcasting room, the efficiency of the live broadcasting room to be screened can be determined in the task data updating process, and further the task data issuing updating efficiency can be improved.
In an alternative embodiment, as shown in fig. 5, the obtaining, by the task delivery update server, update index data of task data corresponding to a live broadcast room to be screened may include:
in step S501, a task issuing update server sends a viewer number query request to a live broadcast server, where the viewer number query request includes identification information corresponding to a live broadcast room to be screened;
in step S503, the live broadcast server determines the number of online viewers in the live broadcast room to be screened based on the identification information corresponding to the live broadcast room to be screened;
In step S505, the live broadcast server transmits the number of online viewers to the task delivery update server;
in step S507, the task delivery update server generates update index data based on the number of online viewers.
In a specific embodiment, the audience number query may include identification information corresponding to the live broadcast room to be screened, and optionally, the identification information may be account information corresponding to the live broadcast end, and the like. Optionally, the number of online audience in different online living rooms can be updated in real time in the living broadcast server; accordingly, after receiving the audience inquiry request, the corresponding online audience quantity can be determined based on the identification information of the live broadcasting room to be screened, and the online audience quantity is fed back to the task issuing update server, so that the task issuing update server generates corresponding update index data based on the online audience quantity.
In the embodiment of the specification, the update index data which can represent the update frequency of the task data corresponding to the live broadcasting room to be screened can be determined by combining the number of online audiences in different online live broadcasting rooms. In a specific embodiment, an online audience number threshold may be preset. Optionally, if the number of online viewers of a to-be-screened live broadcast room a in the current task data issuing and updating round is greater than or equal to the threshold value of the number of online viewers, the task data updating frequency corresponding to the to-be-screened live broadcast room a may be set to be updated 1 time per round, and correspondingly, the update index data corresponding to the to-be-screened live broadcast room a in the current task data issuing and updating round may be updated; otherwise, if the number of online audiences of a live broadcasting room B to be screened in the current task data issuing and updating turn is smaller than the threshold value of the number of online audiences, the task data updating frequency corresponding to the live broadcasting room B to be screened can be reduced by combining with the performance of a server, for example, the task data updating frequency is set to be 1 time per two turns, and correspondingly, whether the update index data corresponding to the live broadcasting room A to be screened in the current task data issuing and updating turn is updated or not can be determined by combining with the condition of whether the task data of the previous turn is updated.
In the above embodiment, the number of online viewers in the online live broadcasting room is used to generate the update index data which can represent the update frequency of the task data corresponding to the live broadcasting room to be screened, so that the task data in the online live broadcasting room with higher participation of the target task can be updated in time while the load pressure of the task issuing update server is effectively reduced, and the reasonability of task data update is improved.
In a specific embodiment, the live broadcasting room update may be a live broadcasting room in which task data update is required currently, which is determined after filtering the live broadcasting room to be screened based on update index data; in a specific embodiment, taking the live broadcasting room B to be screened as an example, under the condition that the update index data of the live broadcasting room B to be screened is not updated in the current task data update round, the live broadcasting room B to be screened can be filtered, and the update index data is updated live broadcasting room to be screened as the updated live broadcasting room.
In a specific embodiment, in the case that the target live broadcast room is included in the update live broadcast room, the current time may be determined as the task data update time corresponding to the target live broadcast room, and further, the task data update of the target live broadcast room may be performed.
In the above embodiment, the live broadcasting room which needs to issue the update task data at present is screened out by the update index data which can represent the update frequency of the task data corresponding to the live broadcasting room to be screened, so that the task data in the live broadcasting room with higher participation of the update target task can be issued while the load pressure and the resource consumption of the task issue update server are effectively reduced, and the reasonability of task data update is further improved.
In an actual application, the online live broadcast room may include a plurality of live broadcast rooms, and the sending, by the task delivery update server, the permission query request corresponding to the online live broadcast room to the live broadcast server may include: and sending permission query requests corresponding to the plurality of living rooms to the living server based on the parallel strategy.
In a specific embodiment, the parallel policy may characterize a policy that sends permission query requests corresponding to multiple living rooms based on multiple threads being executed in parallel.
In a specific embodiment, a plurality of threads may be started to execute the task data issuing update operation in each live broadcasting room, that is, starting from the step of sending the permission query request corresponding to the online live broadcasting room to the live broadcasting server, completing the task data issuing update of each round based on the parallel policy, and starting the task data issuing update of the next round after completing the task data issuing update of one round based on the parallel policy.
In the above embodiment, the task data issuing and updating of each round are completed through the parallel strategy, so that the task data issuing and updating speed can be greatly improved, and further the user experience is improved.
In step S207, the task delivery update server delivers the target task data to the terminal corresponding to the target live broadcasting room.
In a specific embodiment, the task delivery update server delivering the target task data to the terminal corresponding to the target live broadcast room may include: the task issuing update server invokes a preset remote issuing service; and the task issuing update server issues the target task data to the terminal corresponding to the target live broadcasting room based on the preset remote issuing service.
In a specific embodiment, the preset remote issuing service may be a preset service for issuing the target task data.
In the above embodiment, the target task data is issued to the terminal by presetting the remote issuing service, so that the expandability, maintainability and high availability of the task issuing update server can be improved.
In step S209, the terminal updates the task data presented at the target live broadcasting room based on the target task data.
In a specific embodiment, taking the target live broadcast room as a live broadcast room in a live broadcast state, taking a terminal as an audience terminal as an example, assuming that the target task is that the audience terminal of the live broadcast room gives away good news to the anchor terminal, correspondingly, as shown in fig. 6, fig. 6 is a schematic diagram showing a terminal page displaying target task data according to an exemplary embodiment. Specifically, the target task data 601 includes a count-down time of 11 minutes 36 seconds (task remaining execution time), and a well-being value of 1150 (task progress information).
In an alternative embodiment, relevant information required for executing the task (such as the air control 602 in fig. 6 for triggering task execution) may be issued in conjunction with the actual task requirement, so that after the terminal is displayed, the user on the terminal side may execute the corresponding task.
In an optional embodiment, under the condition that the target task is completed, a corresponding reward (virtual resource) may be issued to the audience terminal of the target living broadcast room, optionally, identification information of the user giving the most virtual resource in the process of executing the target task may be displayed in a trigger page for issuing the corresponding reward, optionally, the identification information of the user giving the most virtual resource may be updated in real time to the storage module after the target resource adding message is monitored.
According to the technical scheme provided by the embodiment of the specification, the task progress information corresponding to the target task is asynchronously updated by combining the task identification information of the corresponding target task under the condition that the target resource adding message is monitored through monitoring the preset message queue, so that decoupling of task progress information updating and subsequent task data issuing updating is realized. And under the condition that the task data updating time corresponding to the target live broadcasting room is reached, the target task data is generated by combining the task progress information and updated to the corresponding terminal, so that the resource consumption in the task data updating process can be reduced, the load pressure of the server is reduced, and the updating efficiency of the task data is further improved.
The following describes a task data update method provided by the embodiments of the present disclosure with a task issuing update server as an execution body, and specifically, as shown in fig. 7, fig. 7 is a flowchart of task data update according to an exemplary embodiment, and specifically, the method may include the following steps:
in step S701, when the preset message queue is monitored to include the target resource adding message, task identification information of a target task in the target live broadcasting room corresponding to the target resource adding message is determined;
in step S703, task progress information corresponding to the target task is updated based on the task identification information;
in step S705, when the task data update time corresponding to the target live broadcast room is reached, generating target task data of the target live broadcast room based on the task progress information;
in step S707, the target task data is issued to the terminal corresponding to the target live broadcast room, so that the terminal updates the task data displayed in the target live broadcast room based on the target task data.
Optionally, updating task progress information corresponding to the target task based on the task identification information includes:
acquiring resource increment information corresponding to the target resource adding message;
And updating task progress information corresponding to the task identification information based on the resource increment information.
Optionally, before obtaining the resource increment information corresponding to the target resource adding message, the method further includes:
acquiring task execution information of a target live broadcasting room;
and executing the step of acquiring the resource increment information corresponding to the target resource adding message under the condition that the task execution information indicates that the target live broadcasting room executes the target task.
Optionally, the method further comprises:
and storing the task progress information to a storage module.
Optionally, generating the target task data of the target live broadcasting room based on the task progress information includes:
acquiring task progress information from a storage module;
target task data is generated based on the task progress information.
Optionally, the method further comprises:
acquiring task association information of a target live broadcasting room;
generating target task data based on the task progress information includes: target task data is generated based on the task progress information and the task association information.
Optionally, before generating the target task data of the target live broadcast room based on the task progress information when the task data update time corresponding to the target live broadcast room is reached, the method further includes:
Acquiring update index data of task data corresponding to a live broadcasting room to be screened, wherein the update index data represents the update frequency of the task data corresponding to the live broadcasting room to be screened;
filtering the live broadcasting room to be screened based on the update index data, and determining an update live broadcasting room;
and in the case that the target live broadcasting room is included in the updated live broadcasting room, determining the current time as the task data updating time.
Optionally, obtaining update index data of task data corresponding to the live broadcasting room to be screened includes:
sending a viewer number query request to a live broadcast server, wherein the viewer number query request comprises identification information corresponding to a live broadcast room to be screened; the live broadcast server determines the number of online audience of the live broadcast room to be screened based on the identification information;
receiving the number of online audiences sent by a live broadcast server;
update index data is generated based on the number of online viewers.
Optionally, the method further comprises:
sending an online live broadcasting room query request to a live broadcasting server;
and receiving target identification information of the online living broadcast room sent by the living broadcast server.
Optionally, before acquiring the update index data of the task data corresponding to the live broadcasting room to be screened, the method further includes:
sending a permission query request corresponding to the online live broadcasting room to a live broadcasting server, wherein the permission query request comprises target identification information; the method comprises the steps that a live broadcast server determines task authority information corresponding to target identification information based on preset authority mapping information, and the task authority information characterizes the authority of executing a target task in a corresponding live broadcast room;
Receiving task permission information sent by a live broadcast server;
determining a live broadcasting room to be screened from the online live broadcasting rooms based on task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, and the mapping relation is pre-constructed by the live broadcasting server.
Optionally, the online live broadcasting room includes a plurality of live broadcasting rooms, and sending the permission query request corresponding to the online live broadcasting room to the live broadcasting server includes:
and sending the permission query requests corresponding to the plurality of living rooms to the living server based on a parallel policy, wherein the parallel policy characterizes the policy of sending the permission query requests corresponding to the plurality of living rooms based on parallel execution of the plurality of threads.
Optionally, the step of issuing the target task data to the terminal corresponding to the target live broadcasting room includes:
calling a preset remote issuing service;
and transmitting the target task data to a terminal corresponding to the target live broadcasting room based on a preset remote transmitting service.
The specific manner in which the operations of the steps are performed in the above-described embodiments of the method on the interactive side has been described in detail in the above-described embodiments, and will not be described in detail herein.
The embodiment of the disclosure also provides a task data updating system, which specifically may include: the task issuing update server and the terminal;
The task issuing update server is configured to execute task identification information of a target task of a target live broadcasting room corresponding to the target resource adding message under the condition that the target resource adding message is included in the preset message queue; and configured to perform updating of task progress information corresponding to the target task based on the task identification information; and configured to perform generating target task data of the target live broadcasting room based on the task progress information in case that a task data update time corresponding to the target live broadcasting room is reached; the terminal is configured to execute the task data issuing to the corresponding terminal of the target live broadcasting room;
and the terminal is configured to execute the task data which is displayed in the target live broadcasting room based on the target task data.
The specific manner in which the individual steps of the system of the above embodiments are described in detail in relation to the embodiments of the method will not be explained in detail here.
Fig. 8 is a block diagram of a task data update device, according to an example embodiment. Referring to fig. 8, the apparatus includes:
a task identification information determining module 810 configured to determine task identification information of a target task of a target live room corresponding to a target resource addition message if it is monitored that the target resource addition message is included in a preset message queue;
A task progress information updating module 820 configured to perform updating of task progress information corresponding to the target task based on the task identification information;
a target task data generation module 830 configured to generate target task data of the target live broadcast room based on task progress information in case that a task data update time corresponding to the target live broadcast room is reached;
the target task data issuing module 840 is configured to issue target task data to a terminal corresponding to the target live broadcasting room, so that the terminal updates task data displayed in the target live broadcasting room based on the target task data.
Optionally, the task progress information updating module 820 includes:
a resource increment information acquisition unit configured to perform acquisition of resource increment information corresponding to the target resource addition message;
and the task progress information updating unit is configured to execute updating of task progress information corresponding to the task identification information based on the resource increment information.
Optionally, the apparatus further includes:
the task execution information acquisition module is configured to acquire task execution information of the target live broadcasting room before acquiring the resource increment information corresponding to the target resource addition message;
The resource increment information acquisition unit is further configured to acquire resource increment information corresponding to the target resource addition message when the task execution information indicates that the target live broadcasting room is executing the target task.
Optionally, the apparatus further includes:
and the task progress information storage module is configured to store the task progress information to the storage module.
Optionally, the target task data generation module 830 includes:
a task progress information acquisition unit configured to perform acquisition of task progress information from the storage module;
and a target task data generation unit configured to perform generation of target task data based on the task progress information.
Optionally, the target task data generation module 830 further includes:
the task related information acquisition unit is configured to acquire task related information of the target live broadcasting room;
the target task data generation unit is further configured to perform generation of target task data based on the task progress information and the task association information.
Optionally, the apparatus further includes:
the update index data acquisition module is configured to acquire update index data of task data corresponding to the live broadcasting room to be screened before generating target task data of the target live broadcasting room based on task progress information under the condition that task data update time corresponding to the target live broadcasting room is reached, wherein the update index data represents update frequency of the task data corresponding to the live broadcasting room to be screened;
The live broadcast room filtering module is configured to perform filtering on the live broadcast rooms to be screened based on the update index data and determine an updated live broadcast room;
and the task data updating time determining module is configured to determine the current time as the task data updating time in the case that the target live broadcasting room is included in the updating live broadcasting room.
Optionally, the update index data acquisition module includes:
the audience number query request sending unit is configured to send an audience number query request to the live broadcast server, wherein the audience number query request comprises identification information corresponding to a live broadcast room to be screened; the live broadcast server determines the number of online audience of the live broadcast room to be screened based on the identification information;
an online audience number receiving unit configured to perform receiving the online audience number transmitted by the live broadcast server;
and an update index data generation unit configured to perform generation of update index data based on the number of online viewers.
Optionally, the apparatus further includes:
the online live broadcast room query request sending module is configured to send an online live broadcast room query request to the live broadcast server;
and the target identification information receiving module is configured to receive the target identification information of the online live broadcasting room sent by the live broadcasting server.
Optionally, the apparatus further includes:
the permission query request sending module is configured to send a permission query request corresponding to the online live broadcasting room to the live broadcasting server before acquiring the update index data of the task data corresponding to the live broadcasting room to be screened, wherein the permission query request comprises target identification information; the method comprises the steps that a live broadcast server determines task authority information corresponding to target identification information based on preset authority mapping information, and the task authority information characterizes the authority of executing a target task in a corresponding live broadcast room;
the task permission information receiving module is configured to execute and receive task permission information sent by the live broadcast server;
the live broadcasting room to be screened determining module is configured to determine the live broadcasting room to be screened from the online live broadcasting rooms based on the task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, and the mapping relation is pre-constructed by the live broadcasting server.
Optionally, the online live broadcasting room comprises a plurality of live broadcasting rooms, and the permission query request sending module is further configured to send permission query requests corresponding to the plurality of live broadcasting rooms to the live broadcasting server based on a parallel policy, wherein the parallel policy characterizes a policy of sending the permission query requests corresponding to the plurality of live broadcasting rooms based on a plurality of threads in parallel.
Optionally, the target task data issuing module 840 includes:
the preset remote issuing service calling unit is configured to execute calling of the preset remote issuing service;
and the target task data issuing unit is configured to execute issuing of target task data to a terminal corresponding to the target live broadcasting room based on the preset remote issuing service.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 9 is a block diagram illustrating an electronic device for task data update, which may be a server, and an internal structure diagram thereof may be as shown in fig. 9, according to an exemplary embodiment. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a task data update method.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the disclosed aspects and is not limiting of the electronic device to which the disclosed aspects apply, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the task data update method as in the embodiments of the present disclosure.
In an exemplary embodiment, a computer readable storage medium is also provided, which when executed by a processor of an electronic device, enables the electronic device to perform the task data update method in the embodiments of the present disclosure.
In an exemplary embodiment, a computer program product containing instructions that, when run on a computer, cause the computer to perform the task data update method in the embodiments of the present disclosure is also provided.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (25)

1. A method for updating task data, comprising:
under the condition that a preset message queue comprises a target resource adding message, determining task identification information of a target task of a target live broadcasting room corresponding to the target resource adding message;
updating task progress information corresponding to the target task based on the task identification information;
Generating target task data of the target live broadcasting room based on the task progress information under the condition that the task data updating time corresponding to the target live broadcasting room is reached; the task data updating time is obtained by adopting the following method: acquiring update index data of task data corresponding to a live broadcasting room to be screened, wherein the update index data is positively correlated with the number of online audience of the live broadcasting room to be screened; the update index data represents the update frequency of the task data corresponding to the live broadcasting room to be screened; filtering the live broadcasting room to be screened based on the update index data to determine an update live broadcasting room; under the condition that the target live broadcasting room is included in the updated live broadcasting room, determining the current time as the task data updating time;
and transmitting the target task data to a terminal corresponding to the target live broadcasting room, so that the terminal updates the task data displayed in the target live broadcasting room based on the target task data.
2. The task data updating method according to claim 1, wherein the updating task progress information corresponding to the target task based on the task identification information includes:
Acquiring resource increment information corresponding to the target resource adding message;
and updating task progress information corresponding to the task identification information based on the resource increment information.
3. The task data updating method according to claim 2, characterized in that before the obtaining the resource increment information corresponding to the target resource addition message, the method further comprises:
acquiring task execution information of the target live broadcasting room;
and executing the step of acquiring the resource increment information corresponding to the target resource adding message under the condition that the task execution information indicates that the target live broadcasting room executes the target task.
4. The task data updating method according to claim 1, characterized in that the method further comprises:
and storing the task progress information into a storage module.
5. The task data updating method according to claim 4, wherein the generating the target task data of the target living room based on the task progress information includes:
acquiring the task progress information from the storage module;
and generating the target task data based on the task progress information.
6. The task data updating method according to claim 1, characterized in that the method further comprises:
Acquiring task association information of the target live broadcasting room;
the generating the target task data based on the task progress information includes: and generating the target task data based on the task progress information and the task association information.
7. The task data updating method according to any one of claims 1 to 6, wherein the obtaining update index data of task data corresponding to a live broadcasting room to be screened includes:
sending a viewer number query request to a live broadcast server, wherein the viewer number query request comprises identification information corresponding to the live broadcast room to be screened; the live broadcast server determines the number of online audience of the live broadcast room to be screened based on the identification information;
receiving the number of the online audience sent by the live broadcast server;
the update index data is generated based on the number of online viewers.
8. The task data updating method according to any one of claims 1 to 6, characterized in that the method further comprises:
sending an online live broadcasting room query request to a live broadcasting server;
and receiving target identification information of the online living broadcast room sent by the living broadcast server.
9. The task data updating method according to claim 8, wherein before the update index data of the task data corresponding to the live broadcasting room to be screened is obtained, the method further comprises:
Sending a permission query request corresponding to the online live broadcasting room to a live broadcasting server, wherein the permission query request comprises the target identification information; the live broadcast server determines task authority information corresponding to the target identification information based on preset authority mapping information, wherein the task authority information characterizes the authority of executing a target task in a corresponding live broadcast room;
receiving the task permission information sent by the live broadcast server;
determining the live broadcasting room to be screened from the online live broadcasting rooms based on the task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, which is pre-constructed by the live broadcasting server.
10. The method for updating task data according to claim 9, wherein the online live room comprises a plurality of live rooms, and the sending the permission query request corresponding to the online live room to the live server comprises:
and sending the permission query requests corresponding to the live broadcasting rooms to the live broadcasting server based on a parallel strategy, wherein the parallel strategy characterizes the strategy of sending the permission query requests corresponding to the live broadcasting rooms based on a plurality of threads in parallel.
11. The task data updating method according to any one of claims 1 to 6, wherein the issuing the target task data to the terminal corresponding to the target live broadcasting room includes:
calling a preset remote issuing service;
and transmitting the target task data to a terminal corresponding to the target live broadcasting room based on the preset remote transmitting service.
12. A task data updating device, characterized by comprising:
the task identification information determining module is configured to determine task identification information of a target task of a target live broadcasting room corresponding to a target resource adding message under the condition that the target resource adding message is included in a preset message queue;
a task progress information updating module configured to perform updating of task progress information corresponding to the target task based on the task identification information;
the target task data generation module is configured to execute the task data generation of the target live broadcasting room based on the task progress information under the condition that the task data update time corresponding to the target live broadcasting room is reached; the task data updating time is determined by adopting the following modules: the system comprises an update index data acquisition module, a display module and a display module, wherein the update index data acquisition module is configured to execute the update index data for acquiring task data corresponding to a live broadcasting room to be screened, and the update index data is positively correlated with the number of online audience of the live broadcasting room to be screened; the update index data represents the update frequency of the task data corresponding to the live broadcasting room to be screened; the live broadcasting room filtering module is configured to perform filtering on the live broadcasting room to be screened based on the updating index data and determine an updating live broadcasting room; a task data update time determination module configured to perform determining that a current time is the task data update time in a case where the target live room is included in the update live room;
And the target task data issuing module is configured to execute issuing of the target task data to a terminal corresponding to the target live broadcasting room, so that the terminal updates the task data displayed in the target live broadcasting room based on the target task data.
13. The task data updating device according to claim 12, wherein the task progress information updating module includes:
a resource increment information acquisition unit configured to perform acquisition of resource increment information corresponding to the target resource addition message;
and the task progress information updating unit is configured to execute updating of task progress information corresponding to the task identification information based on the resource increment information.
14. The task data updating device according to claim 13, characterized in that the device further comprises:
the task execution information acquisition module is configured to acquire task execution information of the target live broadcasting room before acquiring the resource increment information corresponding to the target resource increment information;
the resource increment information obtaining unit is further configured to obtain resource increment information corresponding to the target resource adding message when the task execution information indicates that the target live broadcasting room executes the target task.
15. The task data updating device according to claim 12, characterized in that the device further comprises:
and the task progress information storage module is configured to store the task progress information to the storage module.
16. The task data updating device according to claim 15, wherein the target task data generation module includes:
a task progress information acquisition unit configured to perform acquisition of the task progress information from the storage module;
and a target task data generation unit configured to perform generation of the target task data based on the task progress information.
17. The task data updating device according to claim 13, wherein the target task data generation module further comprises:
a task association information acquisition unit configured to perform acquisition of task association information of the target live broadcasting room;
the target task data generation unit is further configured to perform generation of the target task data based on the task progress information and the task association information.
18. The task data updating device according to any one of claims 12 to 17, wherein the update index data acquisition module includes:
A viewer number query request sending unit configured to send a viewer number query request to a live broadcast server, where the viewer number query request includes identification information corresponding to the live broadcast room to be screened; the live broadcast server determines the number of online audience of the live broadcast room to be screened based on the identification information;
an online audience quantity receiving unit configured to perform receiving the online audience quantity transmitted by the live broadcast server;
an update index data generation unit configured to perform generation of the update index data based on the number of online viewers.
19. The task data updating device according to claim 17, characterized in that the device further comprises:
the online live broadcast room query request sending module is configured to send an online live broadcast room query request to the live broadcast server;
and the target identification information receiving module is configured to receive the target identification information of the online live broadcasting room sent by the live broadcasting server.
20. The task data updating device according to claim 19, characterized in that the device further comprises:
the permission query request sending module is configured to send a permission query request corresponding to the online live broadcasting room to a live broadcasting server before the update index data of the task data corresponding to the live broadcasting room to be screened is acquired, wherein the permission query request comprises the target identification information; the live broadcast server determines task authority information corresponding to the target identification information based on preset authority mapping information, wherein the task authority information characterizes the authority of executing a target task in a corresponding live broadcast room;
The task permission information receiving module is configured to receive the task permission information sent by the live broadcast server;
a live broadcast room to be screened determining module configured to perform determining the live broadcast room to be screened from the online live broadcast rooms based on the task authority information;
the preset authority mapping information is a mapping relation between task authority information of the live broadcasting room and identification information of the live broadcasting room, which is pre-constructed by the live broadcasting server.
21. The task data updating device of claim 20, wherein the online living room comprises a plurality of living rooms, the permission query request sending module is further configured to execute sending permission query requests corresponding to the plurality of living rooms to the living server based on a parallel policy, the parallel policy characterizing that policies for sending permission query requests corresponding to the plurality of living rooms are executed in parallel based on a plurality of threads.
22. The task data updating device according to any one of claims 12 to 17, wherein the target task data delivery module includes:
the preset remote issuing service calling unit is configured to execute calling of the preset remote issuing service;
And the target task data issuing unit is configured to execute issuing of the target task data to the terminal corresponding to the target live broadcasting room based on the preset remote issuing service.
23. A task data update system, comprising: the task issuing update server and the terminal;
the task issuing update server is configured to execute task identification information of a target task of a target live broadcasting room corresponding to a target resource adding message when the target resource adding message is monitored to be included in a preset message queue; and configured to perform updating task progress information corresponding to the target task based on the task identification information; and configured to execute the target task data of the target live broadcasting room based on the task progress information when the task data update time corresponding to the target live broadcasting room is reached; the terminal is configured to execute the task data downloading to the terminal corresponding to the target live broadcasting room; the task data updating time is obtained by adopting the following method: acquiring update index data of task data corresponding to a live broadcasting room to be screened, wherein the update index data is positively correlated with the number of online audience of the live broadcasting room to be screened; the update index data represents the update frequency of the task data corresponding to the live broadcasting room to be screened; filtering the live broadcasting room to be screened based on the update index data to determine an update live broadcasting room; under the condition that the target live broadcasting room is included in the updated live broadcasting room, determining the current time as the task data updating time;
The terminal is configured to execute the task data displayed in the target living broadcast room based on the target task data update.
24. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the task data update method of any one of claims 1 to 11.
25. A computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the task data update method of any one of claims 1 to 11.
CN202110459968.0A 2021-04-27 2021-04-27 Task data updating method, device and system, electronic equipment and storage medium Active CN113315981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110459968.0A CN113315981B (en) 2021-04-27 2021-04-27 Task data updating method, device and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110459968.0A CN113315981B (en) 2021-04-27 2021-04-27 Task data updating method, device and system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113315981A CN113315981A (en) 2021-08-27
CN113315981B true CN113315981B (en) 2023-09-05

Family

ID=77371140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110459968.0A Active CN113315981B (en) 2021-04-27 2021-04-27 Task data updating method, device and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113315981B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245162A (en) * 2021-12-14 2022-03-25 北京达佳互联信息技术有限公司 Live broadcast room task processing method and device, server and storage medium
CN116366874A (en) * 2023-05-24 2023-06-30 北京达佳互联信息技术有限公司 Resource distribution method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019088721A1 (en) * 2017-11-02 2019-05-09 네이버 주식회사 Open live broadcasting platform
CN110958462A (en) * 2019-11-28 2020-04-03 广州市百果园信息技术有限公司 Live broadcast activity page display method and device, storage medium and live broadcast system
CN111628913A (en) * 2020-05-29 2020-09-04 北京字节跳动网络技术有限公司 Online time length determining method and device, readable medium and electronic equipment
CN112468835A (en) * 2020-11-17 2021-03-09 北京达佳互联信息技术有限公司 Task processing method and device, server, electronic equipment and storage medium
CN112616068A (en) * 2020-12-31 2021-04-06 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019088721A1 (en) * 2017-11-02 2019-05-09 네이버 주식회사 Open live broadcasting platform
CN110958462A (en) * 2019-11-28 2020-04-03 广州市百果园信息技术有限公司 Live broadcast activity page display method and device, storage medium and live broadcast system
CN111628913A (en) * 2020-05-29 2020-09-04 北京字节跳动网络技术有限公司 Online time length determining method and device, readable medium and electronic equipment
CN112468835A (en) * 2020-11-17 2021-03-09 北京达佳互联信息技术有限公司 Task processing method and device, server, electronic equipment and storage medium
CN112616068A (en) * 2020-12-31 2021-04-06 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113315981A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN112616068A (en) Task processing method and device, electronic equipment and storage medium
CN113315981B (en) Task data updating method, device and system, electronic equipment and storage medium
CN113709508B (en) Associated object adding method and device, electronic equipment and storage medium
CN109905738B (en) Video advertisement abnormal display monitoring method and device, storage medium and electronic equipment
CN110659121A (en) Task data acquisition method and device, task configuration method and device and server
CN112311684B (en) Burst traffic processing method, computer device and readable storage medium
CN111625353B (en) Virtual resource distribution processing method, device, server and storage medium
CN113949697B (en) Data distribution method, device, electronic equipment and storage medium
CN111970529A (en) Information processing method and device for live broadcast room, storage medium and electronic device
CN113051458A (en) Data processing method and device, electronic equipment and storage medium
CN108174227B (en) Virtual article display method and device and storage medium
CN111652643A (en) Resource delivery method
WO2022222469A1 (en) Resource distribution method and apparatus
CN113949941A (en) Object delivery processing method and device, electronic equipment and storage medium
US20220303324A1 (en) Method and system for multi-service processing
CN113469736A (en) Resource distribution control method, device, system, electronic device and storage medium
CN113805991A (en) Object prompting method and device, electronic equipment and storage medium
CN113329232B (en) Resource distribution method and device, electronic equipment and storage medium
CN115412774A (en) Interactive processing method, device, electronic equipment, storage medium and program product
CN113630612B (en) Data processing and data displaying method and device, electronic equipment and medium
CN114584807A (en) Skin setting method and device, and skin display method and device
CN111489195B (en) Method, device, system and storage medium for controlling distribution of articles
CN113360806A (en) Live broadcast page display method and device
CN114095740B (en) Information processing method, information processing device, electronic equipment and storage medium
CN113688334A (en) Content display method and device and computer readable storage medium

Legal Events

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