CN112468833B - Live broadcast interactive information processing method, device, terminal, server and storage medium - Google Patents
Live broadcast interactive information processing method, device, terminal, server and storage medium Download PDFInfo
- Publication number
- CN112468833B CN112468833B CN202011159795.2A CN202011159795A CN112468833B CN 112468833 B CN112468833 B CN 112468833B CN 202011159795 A CN202011159795 A CN 202011159795A CN 112468833 B CN112468833 B CN 112468833B
- Authority
- CN
- China
- Prior art keywords
- account
- server
- allocation
- client
- resource allocation
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/33—User authentication using certificates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0635—Risk analysis of enterprise or organisation activities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2541—Rights Management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/262—Content 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/26283—Content 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 associating distribution time parameters to content, e.g. to generate electronic program guide data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4627—Rights management associated to the content
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Human Resources & Organizations (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Game Theory and Decision Science (AREA)
- Educational Administration (AREA)
- Operations Research (AREA)
- Computer Hardware Design (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present disclosure relates to a live interactive information processing method, device, terminal, server and storage medium, the method comprising: the client displays a live broadcast room interface, and distribution countdown information of the target virtual resource is displayed on the live broadcast room interface; before the countdown is finished, sending an authentication request to a server, wherein the authentication request is used for requesting the server to determine distribution authority information, and the distribution authority information is authority information of an account of a client when participating in target virtual resource distribution; after the countdown is finished, if target operation triggered on a live broadcast interface is detected, sending a resource allocation request to a server, wherein the resource allocation request is used for requesting the server to allocate target virtual resources to the account; and displaying a resource allocation result corresponding to the target virtual resource. By implementing the method, the calculated amount of the server can be dispersed to a plurality of time periods, so that the time required by the virtual resource processing process of the live broadcast room is shortened, the response speed is improved, and the processing efficiency is further improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a live broadcast interactive information processing method, apparatus, terminal, server, and storage medium.
Background
With the rapid development of internet technology, live webcasting is used as a new technical field to enter the public visual field, and live webcasting watching is also gradually called an important recreational mode for the public. At present, in order to increase the interest of live broadcast and the user participation degree, a user can provide and receive virtual resources such as red packets and the like in a live webcast room. However, in the related art, the processing process of virtual resources such as red packets in the live broadcast room is long in time consumption and low in efficiency.
Disclosure of Invention
The present disclosure provides a live broadcast interactive information processing method, device, terminal, server and storage medium, so as to at least solve the technical problems of long time consumption and low efficiency in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a live broadcast interactive information processing method is provided, which is applied to a client, and the method includes:
displaying a live broadcasting room interface, wherein allocation countdown information of the target virtual resource is displayed on the live broadcasting room interface;
before the countdown is finished, sending an authentication request to a server, wherein the authentication request is used for requesting the server to determine distribution authority information, and the distribution authority information is authority information of the account of the client when participating in target virtual resource distribution;
after the countdown is finished, if a target operation triggered on the live broadcast interface is detected, sending a resource allocation request to the server, wherein the resource allocation request is used for requesting the server to allocate the target virtual resource to the account;
and displaying a resource allocation result corresponding to the target virtual resource.
Optionally, as an embodiment, the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
Optionally, as an embodiment, before the step of sending the resource allocation request to the server, the method further includes:
receiving the distribution authority information returned by the server;
the step of sending a resource allocation request to the server includes:
and if the account is determined to have the target virtual resource allocation authority according to the allocation authority information, sending a resource allocation request to the server.
Optionally, as an embodiment, the method further includes:
and if the account does not have the target virtual resource allocation authority according to the allocation authority information, not sending a resource allocation request to the server.
According to a second aspect of the embodiments of the present disclosure, there is provided a live broadcast interactive information processing method applied to a server, the method including:
receiving an authentication request sent by a client, wherein the sending opportunity of the authentication request is before the distribution countdown of the target virtual resource is ended;
determining distribution authority information according to the authentication request, wherein the distribution authority information is authority information of an account of the client when participating in target virtual resource distribution;
receiving a resource allocation request sent by the client;
responding to the resource allocation request, allocating the target virtual resource to the account according to the allocation authority information, and returning a resource allocation result corresponding to the target virtual resource to the client.
Optionally, as an embodiment, the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is the risk account, the account does not have the distribution authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
Optionally, as an embodiment, before the step of receiving the resource allocation request sent by the client, the method further includes:
returning the distribution authority information to the client;
the allocation authority information is the information according to whether the client sends the resource allocation request.
According to a third aspect of the embodiments of the present disclosure, there is provided a live interactive information processing apparatus, applied to a client, the apparatus including:
a first display unit configured to display a live broadcast room interface on which allocation countdown information of a target virtual resource is displayed;
a first sending unit, configured to send an authentication request to a server before the countdown ends, where the authentication request is used to request the server to determine allocation permission information, and the allocation permission information is permission information of an account of the client when participating in target virtual resource allocation;
a second sending unit, configured to send a resource allocation request to the server if a target operation triggered on the live broadcast interface is detected after the countdown is finished, where the resource allocation request is used to request the server to allocate the target virtual resource to the account;
and the second display unit is configured to display the resource allocation result corresponding to the target virtual resource.
Optionally, as an embodiment, the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
Optionally, as an embodiment, the apparatus further includes:
a first receiving unit configured to receive the distribution authority information returned by the server;
the second transmission unit includes:
and the resource allocation request sending subunit is configured to send a resource allocation request to the server if the account is determined to have the target virtual resource allocation authority according to the allocation authority information.
Optionally, as an embodiment, the apparatus further includes:
and the control unit is configured to not send a resource allocation request to the server if the account is determined not to have the target virtual resource allocation authority according to the allocation authority information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a live interactive information processing apparatus, applied to a server, the apparatus including:
a second receiving unit, configured to receive an authentication request sent by a client, where a sending timing of the authentication request is before an allocation countdown of a target virtual resource ends;
a determining unit, configured to determine allocation authority information according to the authentication request, wherein the allocation authority information is authority information of an account of the client when participating in target virtual resource allocation;
a third receiving unit configured to receive a resource allocation request sent by the client;
and the allocation unit is configured to respond to the resource allocation request, allocate the target virtual resource to the account according to the allocation authority information, and return a resource allocation result corresponding to the target virtual resource to the client.
Optionally, as an embodiment, the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
Optionally, as an embodiment, the apparatus further includes:
a third sending unit configured to return the distribution authority information to the client;
the allocation authority information is the information according to whether the client sends the resource allocation request.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live interactive information processing method as described in the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live interactive information processing method as described in the second aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a storage medium, where instructions are executed by a processor of a terminal, so that the terminal can perform the live interactive information processing method as described in the first aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a server, enable the server to perform the live interactive information processing method as described in the second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the embodiment of the present disclosure, the client may send an authentication request to the server before the countdown of the target virtual resource is finished, where the authentication request is used to request the server to determine allocation permission information for the account of the client to participate in allocation of the target virtual resource; and when target operation triggered on a live broadcast interface is detected, sending a resource allocation request to a server, wherein the resource allocation request is used for requesting the server to allocate target virtual resources to the account according to allocation permission information, and displaying a resource allocation result corresponding to the target virtual resources. Compared with the prior art, in the embodiment of the disclosure, before the virtual resource is preempted, the server determines the allocation authority information of the accounts of the clients in the live broadcast room participating in the target virtual resource allocation in advance, and after the virtual resource is preempted, the virtual resource is allocated to the accounts of the clients in the live broadcast room directly according to the determined allocation authority information, that is, the calculated amount in the virtual resource processing process is dispersed to different time periods, so that the virtual resource processing process is prevented from being concentrated to one time period, the time required by the virtual resource processing process in the live broadcast room is shortened, the response speed of the server is improved, and the processing efficiency is 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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method of live interactive information processing in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method of live interactive information processing, according to an example embodiment;
fig. 3 is a signaling flow diagram illustrating a method of live interactive information processing in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating a live interactive information processing apparatus in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating another live interactive information processing apparatus in accordance with an illustrative embodiment;
FIG. 6 is a block diagram of a terminal shown in accordance with an exemplary embodiment;
fig. 7 is a schematic diagram illustrating a configuration of a server according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in other sequences than those illustrated or described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
When processing virtual resources in a live broadcast room, taking a live broadcast room red packet processing process as an example, currently, in the related art, the live broadcast room red packet processing process mainly includes the following procedures: 1. a user A issues a red packet in a live broadcast room through a terminal; 2. a red envelope grabbing interface is displayed on a terminal of a user B in the live broadcast room; 3. after the countdown for opening and robbing the red envelope on the red envelope robbing interface is finished, the user B triggers the red envelope robbing operation, and the terminal of the user B sends a red envelope robbing request to the server; 4. the server receives the red packet robbing request, determines the allocation qualification information of the user B by carrying out risk control, priority control and random screening control on the user B, and allocates the red packet to the user B if the allocation qualification information indicates that the user B has the allocation qualification.
Because the server needs to perform risk control, priority control and random screening control on the user in the process of processing the red packet robbing request, the steps are time-consuming, and the total time consumption of the red packet robbing request is greatly increased. In addition, most users in the live broadcast room usually click to grab the red envelope at the moment when the red envelope opening and grabbing countdown is finished, and trigger to send a red envelope grabbing request to the server, so that the server can receive a large number of red envelope grabbing requests in a short time, and the server needs to perform a large amount of calculation in a short time, so that the time consumption of the red envelope processing process in the live broadcast room is long, the response speed of the server is reduced, and the efficiency is low.
In order to solve the technical problem, the embodiments of the present disclosure provide a live interactive information processing method, device, terminal, server, and storage medium.
First, a live broadcast interactive information processing method provided by the embodiment of the present disclosure is described below.
Fig. 1 is a flowchart illustrating a live interactive information processing method, which is performed by a client according to an exemplary embodiment, and as shown in fig. 1, the method may include the following steps: step 101, step 102, step 103 and step 104, wherein,
in step 101, a live-air interface is displayed, wherein allocation countdown information of the target virtual resource is displayed on the live-air interface.
In one example, in a live broadcast room red envelope grabbing scene, a red envelope icon may be displayed on the live broadcast room interface, and a red envelope grabbing countdown may be displayed on the red envelope icon.
In another example, in a live broadcast room red packet robbing scene, the user a inputs red packet issuing information (red packet issuing amount, red packet number, red packet issuing time, and the like) corresponding to the target virtual red packet in the live broadcast room of the client a; the client A generates a red packet sending request based on the red packet sending information input by the user A and sends the red packet sending request to the server; the server creates a target virtual red packet based on the red packet sending request and sends a red packet display instruction to a client B of a user B in the live broadcast room; and the client B receives the red packet display instruction and displays a red packet robbing interface of the live broadcast room.
In step 102, before the countdown is finished, an authentication request is sent to the server, where the authentication request is used to request the server to determine allocation permission information, where the allocation permission information is permission information of an account of the client when participating in allocation of the target virtual resource.
In the embodiment of the present disclosure, the client may randomly select a time point within one minute before the countdown is finished, and send an authentication request to the server. Because the number of the clients participating in the target virtual resource allocation in the live broadcast room is usually multiple, each client sends the authentication request by randomly selecting a time point, the concurrency of the authentication requests can be reduced, and the processing pressure of the server is further reduced.
In the embodiment of the present disclosure, the allocation permission information is information on which the server is based when actually allocating the target virtual resource to the account of the client in the live broadcast room.
In the embodiment of the present disclosure, the authentication request may carry a software identifier of the client, specifically, the authentication request carries a token parameter of the client, that is, a token parameter of the client; or, the authentication request may carry a hardware identifier of the terminal corresponding to the client, specifically, the authentication request carries an equipment identifier of the terminal corresponding to the client.
In this disclosure, when the authentication request carries a token parameter of the client, the token parameter is used for the server to determine the distribution authority information based on a preset distribution policy, and specifically, the preset distribution policy may include: a risk control strategy, a priority control strategy and a random screening control strategy; the risk control strategy is used for determining whether an account is a risk account, and if the account is the risk account, the account does not have distribution authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority according to the probability. Correspondingly, the distribution authority information is information obtained after risk control, priority control and random screening control processing are carried out on the account of the client by the server.
In the embodiment of the disclosure, the risk control policy includes an identification rule of a risk account, the priority control policy includes a resource allocation priority rule of the account, and the random screening control policy includes a calculation rule of a resource allocation probability.
In the embodiment of the disclosure, whether the account is a risk account may be identified according to an identification rule of the risk account in the risk control policy, if the account is a risk account, it is determined that the account does not have an allocation authority, and if the account is a non-risk account, it is determined that the account has an allocation authority.
In the embodiment of the application, the resource allocation priority of the account can be determined according to the resource allocation priority rule of the account in the priority control policy, if the resource allocation priority of the account is high, it is determined that the account has the authority to allocate more resource amount, and if the resource allocation priority of the account is low, it is determined that the account has the authority to allocate less resource amount.
In the embodiment of the application, a probability can be randomly calculated for the account according to a calculation rule of resource allocation probability in a random screening control strategy, if the probability is greater than a certain threshold, the account has allocation authority, and if the probability is less than the certain threshold, the account does not have allocation authority.
In the embodiment of the present disclosure, in consideration of the response speed, the token parameter carried in the authentication request may not be encrypted; alternatively, in consideration of security, the token parameter carried in the authentication request may be encrypted, where the encryption algorithm may be any one of the encryption algorithms in the related art, which is not limited in this disclosure.
In the embodiment of the disclosure, when the authentication request carries token parameters, after receiving the authentication request from the client, the server first determines whether the token parameters carried in the authentication request are encrypted, if not, locally searches account data corresponding to the client according to the token parameters, if so, decrypts, locally searches the account data corresponding to the client according to a decryption result, matches the account data with a preset allocation policy, and obtains allocation permission information of the account of the client participating in target virtual resource allocation.
In the embodiment of the disclosure, when the authentication request carries the device identifier, after receiving the authentication request from the client, the server locally searches account data corresponding to the client according to the device identifier, and matches the account data with a preset allocation policy to obtain allocation permission information of the client for the account to participate in target virtual resource allocation.
In the embodiment of the present disclosure, after determining that the account of the client participates in the allocation permission information of the target virtual resource allocation, the server may store the allocation permission information to the local, so that after receiving the resource allocation request in step 103, the server allocates the target virtual resource to the account of the client according to the locally stored allocation permission information.
In step 103, after the countdown is finished, if a target operation triggered on the live broadcast interface is detected, a resource allocation request is sent to the server, where the resource allocation request is used to request the server to allocate a target virtual resource to an account of the client.
In the embodiment of the disclosure, the target operation is used for triggering the client to send the resource allocation request to the server, where the target operation may be a click operation, a long-time press operation, or the like.
In the embodiment of the present disclosure, after the server receives the resource allocation request, the target virtual resource is allocated to the account of the client according to the allocation permission information predetermined in step 102.
In step 104, the resource allocation result corresponding to the target virtual resource is displayed.
In the embodiment of the present disclosure, after completing allocating the target virtual resource to the account of the client, the server may return a resource allocation result corresponding to the target virtual resource to the client. And the client displays the resource allocation result corresponding to the target virtual resource after receiving the resource allocation result.
It can be seen from the above embodiments that, in this embodiment, before the virtual resource is preempted, the server determines in advance allocation authority information for the accounts of the clients in the live broadcast room to participate in the allocation of the target virtual resource, and after the virtual resource is preempted, the server allocates the virtual resource to the accounts of the clients in the live broadcast room directly according to the determined allocation authority information, that is, the calculated amount in the processing process of the virtual resource is dispersed to different time periods, so as to avoid being concentrated to one time period, thereby shortening the time required by the processing process of the virtual resource in the live broadcast room, improving the response speed of the server, and improving the processing efficiency.
Considering that the number of clients participating in the target virtual resource allocation in the live broadcast room is usually much greater than that of the target virtual resources, if only the client with the authority can send a resource allocation request to the server under control, the processing pressure of the server can be reduced to a great extent. Accordingly, in an embodiment provided by the present disclosure, the embodiment may be based on the embodiment shown in fig. 1, and before the step 103, the following steps (not shown in the drawings) may also be added: step 105, in which the first and second sets of data are stored,
in step 105, receiving distribution authority information returned by the server;
the step 103 may specifically include the following steps: if the account of the client side is determined to have the target virtual resource allocation authority according to the allocation authority information, a resource allocation request is sent to the server;
further, if it is determined that the account of the client does not have the target virtual resource allocation authority according to the allocation authority information, the resource allocation request is not sent to the server. That is, for a client having no allocation authority, it is not necessary to send a resource allocation request to the server, thereby reducing the amount of concurrency of resource allocation requests.
In the embodiment of the present disclosure, in order to ensure the security of data, the server may encrypt the distribution authority information, and return the encrypted distribution authority information to the client.
In the embodiment of the disclosure, in order to save storage resources of the server, after the server returns the allocation permission information to the client, the server can indicate that the client carries the allocation permission information corresponding to the client in the resource allocation request when sending the resource allocation request, and the server does not need to specially store the allocation permission information of the client locally.
Fig. 2 is a flowchart illustrating another live interactive information processing method, which is performed by a server according to an exemplary embodiment, and as shown in fig. 2, the method may include the following steps: step 201, step 202, step 203 and step 204, wherein,
in step 201, an authentication request sent by a client is received, where a sending opportunity of the authentication request is before the allocation countdown of the target virtual resource is ended.
In the embodiment of the disclosure, the client may randomly select a time point within one minute before the countdown is finished, and send an authentication request to the server. Because the number of the clients participating in the target virtual resource allocation in the live broadcast room is usually multiple, each client sends the authentication request by randomly selecting a time point, the concurrence of the authentication requests can be reduced, and the processing pressure of the server is further reduced.
In the embodiment of the present disclosure, the authentication request may carry a software identifier of the client, specifically, the authentication request carries a token parameter of the client, that is, a token parameter of the client; or, the authentication request may carry a hardware identifier of the terminal corresponding to the client, specifically, the authentication request carries an equipment identifier of the terminal corresponding to the client.
In this disclosure, when the authentication request carries a token parameter of the client, the token parameter is used for the server to determine the distribution authority information based on a preset distribution policy, and specifically, the preset distribution policy may include: a risk control strategy, a priority control strategy and a random screening control strategy; the risk control strategy is used for determining whether an account is a risk account, and if the account is the risk account, the account does not have distribution authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority according to the probability.
In the embodiment of the disclosure, the risk control policy includes an identification rule of a risk account, the priority control policy includes a resource allocation priority rule of the account, and the random screening control policy includes a calculation rule of a resource allocation probability.
In the embodiment of the disclosure, whether the account is a risk account may be identified according to an identification rule of the risk account in the risk control policy, if the account is a risk account, it is determined that the account does not have an allocation authority, and if the account is a non-risk account, it is determined that the account has an allocation authority.
In the embodiment of the application, the resource allocation priority of the account can be determined according to the resource allocation priority rule of the account in the priority control policy, if the resource allocation priority of the account is high, it is determined that the account has the authority to allocate more resource amount, and if the resource allocation priority of the account is low, it is determined that the account has the authority to allocate less resource amount.
In the embodiment of the application, a probability can be randomly calculated for the account according to a calculation rule of resource allocation probability in a random screening control strategy, if the probability is greater than a certain threshold, the account has allocation authority, and if the probability is less than the certain threshold, the account does not have allocation authority.
In the embodiment of the present disclosure, in consideration of the response speed, the token parameter carried in the authentication request may not be encrypted; alternatively, in consideration of security, the token parameter carried in the authentication request may be encrypted, where the encryption algorithm may adopt any one of related technologies, and this is not limited in this disclosure.
In step 202, determining allocation authority information according to the authentication request, wherein the allocation authority information is authority information of an account of the client when participating in allocation of the target virtual resource.
In the embodiment of the present disclosure, the allocation permission information is information on which the server is based when actually allocating the target virtual resource to the account of the client in the live broadcast room.
In the embodiment of the disclosure, when the authentication request carries token parameters, after receiving the authentication request from the client, the server first determines whether the token parameters carried in the authentication request are encrypted, if not, locally searches account data corresponding to the client according to the token parameters, if so, decrypts, locally searches the account data corresponding to the client according to a decryption result, matches the account data with a preset allocation policy, and obtains allocation permission information of the account of the client participating in target virtual resource allocation.
In the embodiment of the disclosure, when the authentication request carries the device identifier, after receiving the authentication request from the client, the server locally searches account data corresponding to the client according to the device identifier, and matches the account data with a preset allocation policy to obtain allocation permission information of the client for the account to participate in target virtual resource allocation.
In the embodiment of the disclosure, after determining that the account of the client participates in the allocation authority information of the target virtual resource, the server may store the allocation authority information to the local, so that after receiving a resource allocation request of the client, the server allocates the target virtual resource to the account of the client according to the locally stored allocation authority information.
In step 203, a resource allocation request sent by the client is received.
In the embodiment of the present disclosure, the resource allocation request is used to request the server to allocate the target virtual resource to the account of the client according to the allocation authority information.
In step 204, in response to the resource allocation request, allocating the target virtual resource to the account of the client according to the allocation authority information, and returning a resource allocation result corresponding to the target virtual resource to the client.
It can be seen from the above embodiments that, in this embodiment, before the virtual resource is preempted, the server determines in advance allocation authority information for the accounts of the clients in the live broadcast room to participate in the allocation of the target virtual resource, and after the virtual resource is preempted, the virtual resource is allocated to the accounts of the clients in the live broadcast room directly according to the determined allocation authority information, that is, the calculated amount in the processing process of the virtual resource is dispersed to different time periods, so as to avoid being concentrated to one time period, thereby shortening the time required by the processing process of the virtual resource in the live broadcast room, improving the response speed of the server, and improving the processing efficiency.
Considering that the number of clients participating in the target virtual resource allocation in the live broadcast room is usually much greater than that of the target virtual resources, if only the client with the authority can send a resource allocation request to the server under control, the processing pressure of the server can be reduced to a great extent. Accordingly, in an embodiment provided by the present disclosure, the embodiment may be based on the embodiment shown in fig. 2, and before the step 203, the following steps (not shown in the drawings) may also be added: step 205, in which, in step (c),
in step 205, the distribution authority information is returned to the client; the allocation authority information is the basis information of whether the client sends a resource allocation request to the server or not when receiving target operation triggered by the target virtual resource.
In the embodiment of the disclosure, if the client determines that the account of the client has the target virtual resource allocation permission according to the allocation permission information, a resource allocation request is sent to the server; and if the client determines that the account of the client does not have the target virtual resource allocation authority according to the allocation authority information, the client does not send a resource allocation request to the server. That is, for an account of a client that does not have an allocation authority, the client does not need to send a resource allocation request to the server, thereby reducing the amount of concurrency of resource allocation requests.
In the embodiment of the present disclosure, in order to ensure the security of data, the server may encrypt the distribution authority information, and return the encrypted distribution authority information to the client.
In the embodiment of the disclosure, in order to save storage resources of the server, after the server returns the allocation permission information to the client, the server can indicate that the client carries the allocation permission information corresponding to the client in the resource allocation request when sending the resource allocation request, and the server does not need to specially store the allocation permission information of the client locally.
For the convenience of integrally understanding the present disclosure, taking a live broadcast red envelope grabbing scene as an example, the description is performed in conjunction with a signaling flow chart of multiparty interaction shown in fig. 3, as shown in fig. 3, the signaling flow chart includes: the system comprises a red packet sending client, a server and a red packet robbing client, wherein the red packet sending client is a client for sending a red packet, and the red packet robbing client is a client for receiving the red packet;
the red packet client performs step 301: sending a red packet issuing request to a server;
after receiving the red packet issuing request, the server executes step 302: creating a target virtual red packet, and then executing the step 303: sending a red packet display instruction to a red packet robbing client;
after receiving the red envelope display instruction, the red envelope robbing client executes step 304: displaying a red envelope grabbing interface of the live broadcast room, and then executing the step 305: before the countdown of the target virtual red packet is finished, sending an authentication request to a server;
after receiving the authentication request, the server performs step 306: according to the authentication request, determining the distribution authority information of the target virtual red packet distribution participated by the red packet robbing client, and then executing step 307: returning distribution authority information to the red packet robbing client;
after receiving the distribution authority information, the red envelope robbing client executes step 308: if the red packet robbing client side is determined not to have the target virtual red packet distribution authority according to the distribution authority information, the red packet robbing request is not sent to the server; and performing step 309: if the red packet robbing client side is determined to have the target virtual red packet distribution authority according to the distribution authority information, sending a red packet robbing request to the server;
after receiving the red packet robbing request, the server executes step 310: responding to the red packet robbing request, and distributing the target virtual red packet to the red packet robbing client according to the distribution authority information.
Therefore, in the embodiment of the disclosure, the determination step of the distribution authority information is executed before the red packet is preempted, so that the calculated amount can be dispersed to a plurality of time periods, and the processing pressure of the server is reduced; for the client without the target virtual red packet distribution authority, the red packet robbing request does not need to be sent, and the concurrency of the red packet robbing request is reduced, so that the time consumption of the red packet robbing request is reduced, the throughput rate of the server is improved, the server resources are saved, the concurrency of the red packet robbing request is reduced, and the service availability is improved.
Fig. 4 is a block diagram illustrating a live interactive information processing apparatus according to an exemplary embodiment, which is applied to a client, and as shown in fig. 4, the live interactive information processing apparatus 400 may include: a first display unit 401, a first transmission unit 402, a second transmission unit 403, and a second display unit 404, wherein,
a first display unit 401 configured to display a live broadcast room interface on which allocation countdown information of a target virtual resource is displayed;
a first sending unit 402, configured to send an authentication request to a server before the countdown ends, where the authentication request is used to request the server to determine allocation permission information, and the allocation permission information is permission information of an account of the client when participating in target virtual resource allocation;
a second sending unit 403, configured to send, after the countdown is finished, a resource allocation request to the server if a target operation triggered on the live broadcast interface is detected, where the resource allocation request is used to request the server to allocate the target virtual resource to the account;
a second display unit 404 configured to display a resource allocation result corresponding to the target virtual resource.
It can be seen from the above embodiments that, in this embodiment, before the virtual resource is preempted, the server determines in advance allocation authority information for the accounts of the clients in the live broadcast room to participate in the allocation of the target virtual resource, and after the virtual resource is preempted, the server allocates the virtual resource to the accounts of the clients in the live broadcast room directly according to the determined allocation authority information, that is, the calculated amount in the processing process of the virtual resource is dispersed to different time periods, so as to avoid being concentrated to one time period, thereby shortening the time required by the processing process of the virtual resource in the live broadcast room, improving the response speed of the server, and improving the processing efficiency.
Optionally, as an embodiment, the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
Optionally, as an embodiment, the live interactive information processing apparatus 400 may further include:
a first receiving unit configured to receive the distribution authority information returned by the server;
the second transmission unit includes:
and the resource allocation request sending subunit is configured to send a resource allocation request to the server if the account is determined to have the target virtual resource allocation authority according to the allocation authority information.
Optionally, as an embodiment, the live interactive information processing apparatus 400 may further include:
and the control unit is configured to not send a resource allocation request to the server if the account is determined not to have the target virtual resource allocation authority according to the allocation authority information.
Fig. 5 is a block diagram illustrating another live interactive information processing apparatus according to an exemplary embodiment, which is applied to a server, and as shown in fig. 5, the live interactive information processing apparatus 500 may include: a second receiving unit 501, a determining unit 502, a third receiving unit 503, and an assigning unit 504, wherein,
a second receiving unit 501, configured to receive an authentication request sent by a client, where a sending timing of the authentication request is before an allocation countdown of a target virtual resource ends;
a determining unit 502 configured to determine allocation authority information according to the authentication request, wherein the allocation authority information is authority information of an account of the client when participating in allocation of a target virtual resource;
a third receiving unit 503, configured to receive the resource allocation request sent by the client;
an allocating unit 504, configured to, in response to the resource allocation request, allocate the target virtual resource to the account according to the allocation permission information, and return a resource allocation result corresponding to the target virtual resource to the client.
It can be seen from the above embodiments that, in this embodiment, before the virtual resource is preempted, the server determines allocation authority information for the accounts of the clients in the live broadcast room to participate in the allocation of the target virtual resource in advance, and after the virtual resource is preempted, the virtual resource is allocated to the accounts of the clients in the live broadcast room directly according to the determined allocation authority information, that is, the calculated amount in the virtual resource processing process is dispersed to different time periods, so as to avoid being concentrated to one time period, thereby shortening the time length required by the virtual resource processing process in the live broadcast room, improving the response speed of the server, and improving the processing efficiency.
Optionally, as an embodiment, the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
Optionally, as an embodiment, the live interactive information processing apparatus 500 may further include:
a third sending unit configured to return the distribution right information to the client;
the allocation authority information is the information according to whether the client sends the resource allocation request.
The specific manner in which each module performs operations of the apparatus in the above embodiments has been described in detail in the embodiments related to the method, and will not be described in detail here, and reference may be made to part of the description of the method embodiments for relevant points.
Fig. 6 is a block diagram of a terminal shown in accordance with an example embodiment. For example, the terminal may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
As shown in fig. 6, terminal 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface for input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the terminal 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the terminal 600. Examples of such data include instructions for any application or method operating on terminal 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile and non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 608 comprises a screen providing an output interface between the terminal 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 600 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the terminal 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the terminal 600. For example, sensor component 614 can detect an open/closed state of device 600, relative positioning of components, such as a display and keypad of terminal 600, change in position of terminal 600 or a component of terminal 600, presence or absence of user contact with terminal 600, orientation or acceleration/deceleration of terminal 600, and temperature change of terminal 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the terminal 600 and other devices in a wired or wireless manner. The terminal 600 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described live interactive information processing method applied to the terminal.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the terminal 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, where when instructions in the computer program product are executed by a processor of a terminal, the terminal is enabled to execute a live interactive information processing method applied to a client as described in any one of the method embodiments above.
Fig. 7 is a block diagram illustrating a server according to an example embodiment, and as shown in fig. 7, a server 700 includes a processing component 722 further including one or more processors and memory resources, represented by memory 732, for storing instructions, e.g., applications, executable by the processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the live interactive information processing method applied to the server described above.
The server 700 may also include a power component 726 configured to perform power management of the server 700, a wired or wireless network interface 750 configured to connect the server 700 to a network, and an input output (I/O) interface 758. The server 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
According to an embodiment of the present disclosure, there is also provided a storage medium, where instructions executed by a processor of a server enable the server to perform a live interactive information processing method applied to the server according to any one of the method embodiments described above. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, wherein when the instructions of the computer program product are executed by a processor of a server, the server is enabled to execute the live interactive information processing method applied to the server according to any one of the method embodiments.
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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
A1, a live broadcast interactive information processing method, which is applied to a client, the method comprises the following steps:
displaying a live broadcast room interface, wherein allocation countdown information of the target virtual resource is displayed on the live broadcast room interface;
before the countdown is finished, sending an authentication request to a server, wherein the authentication request is used for requesting the server to determine distribution authority information, and the distribution authority information is authority information of the account of the client when participating in target virtual resource distribution;
after the countdown is finished, if a target operation triggered on the live broadcast interface is detected, sending a resource allocation request to the server, wherein the resource allocation request is used for requesting the server to allocate the target virtual resource to the account;
and displaying a resource allocation result corresponding to the target virtual resource.
A2, according to the method of A1, the authentication request carries the token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
A3, according to the method described in A1, before the step of sending the resource allocation request to the server, the method further includes:
receiving the distribution authority information returned by the server;
the step of sending a resource allocation request to the server includes:
and if the account is determined to have the target virtual resource allocation authority according to the allocation authority information, sending a resource allocation request to the server.
A4, the method of A3, further comprising:
and if the account does not have the target virtual resource allocation authority according to the allocation authority information, not sending a resource allocation request to the server.
A5, a live broadcast interactive information processing method, which is applied to a server, the method comprises the following steps:
receiving an authentication request sent by a client, wherein the sending opportunity of the authentication request is before the end of the countdown of the allocation of the target virtual resources;
determining distribution authority information according to the authentication request, wherein the distribution authority information is authority information of the account of the client when participating in target virtual resource distribution;
receiving a resource allocation request sent by the client;
responding to the resource allocation request, allocating the target virtual resource to the account according to the allocation authority information, and returning a resource allocation result corresponding to the target virtual resource to the client.
A6, according to the method of A5, the authentication request carries the token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is the risk account, the account does not have the distribution authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
A7, according to the method described in A5, before the step of receiving the resource allocation request sent by the client, the method further includes:
returning the distribution authority information to the client;
the allocation authority information is information according to whether the client sends a resource allocation request.
A8, a live broadcast interactive information processing device, applied to a client, the device comprises:
a first display unit configured to display a live broadcast room interface on which allocation countdown information of a target virtual resource is displayed;
a first sending unit, configured to send an authentication request to a server before the countdown is finished, where the authentication request is used to request the server to determine allocation permission information, and the allocation permission information is permission information of an account of the client when participating in target virtual resource allocation;
a second sending unit, configured to send a resource allocation request to the server if a target operation triggered on the live broadcast interface is detected after the countdown is finished, where the resource allocation request is used to request the server to allocate the target virtual resource to the account;
and the second display unit is configured to display the resource allocation result corresponding to the target virtual resource. A9, according to the device of A8, the authentication request carries the token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
A10, the apparatus according to A8, further comprising:
a first receiving unit configured to receive the distribution authority information returned by the server;
the second transmission unit includes:
and the resource allocation request sending subunit is configured to send a resource allocation request to the server if the account is determined to have the target virtual resource allocation authority according to the allocation authority information.
A11, the apparatus according to A10, further comprising:
and the control unit is configured to not send a resource allocation request to the server if the account is determined not to have the target virtual resource allocation authority according to the allocation authority information.
A12, a live broadcast interactive information processing device, applied to a server, the device includes:
a second receiving unit, configured to receive an authentication request sent by a client, where a sending opportunity of the authentication request is before an end of allocation countdown of a target virtual resource;
the determining unit is configured to determine distribution authority information according to the authentication request, wherein the distribution authority information is authority information of an account of the client when participating in target virtual resource distribution;
a third receiving unit, configured to receive a resource allocation request sent by the client;
and the allocation unit is configured to respond to the resource allocation request, allocate the target virtual resource to the account according to the allocation authority information, and return a resource allocation result corresponding to the target virtual resource to the client.
A13, according to the device of A12, the authentication request carries the token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is the risk account, the account does not have the distribution authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
The device according to A12, A14, further comprising:
a third sending unit configured to return the distribution right information to the client;
the allocation authority information is the information according to whether the client sends the resource allocation request.
Claims (18)
1. A live broadcast interactive information processing method is applied to a client side and is characterized by comprising the following steps:
displaying a live broadcast room interface, wherein allocation countdown information of the target virtual resource is displayed on the live broadcast room interface;
before the countdown is finished, sending an authentication request to a server, wherein the authentication request is used for requesting the server to determine distribution authority information, the distribution authority information is authority information of the account of the client when participating in target virtual resource distribution, and the distribution authority information is used for determining whether the account of the client has distribution authority and the resource amount correspondingly distributed by the account having the distribution authority;
after the countdown is finished, if a target operation triggered on the live broadcast interface is detected, sending a resource allocation request to the server, wherein the resource allocation request is used for requesting the server to allocate target virtual resources to accounts of all clients in the live broadcast according to the determined allocation permission information;
and displaying a resource allocation result corresponding to the target virtual resource.
2. The method according to claim 1, wherein the authentication request carries token parameters of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the accounts, and the resource amount allocated by the high-priority account is higher than that of the low-priority account; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
3. The method of claim 1, wherein the step of sending the resource allocation request to the server is preceded by:
receiving the distribution authority information returned by the server;
the step of sending a resource allocation request to the server includes:
and if the account is determined to have the target virtual resource allocation authority according to the allocation authority information, sending a resource allocation request to the server.
4. The method of claim 3, further comprising:
and if the account does not have the target virtual resource allocation authority according to the allocation authority information, not sending a resource allocation request to the server.
5. A live broadcast interactive information processing method is applied to a server and is characterized by comprising the following steps:
receiving an authentication request sent by a client, wherein the sending opportunity of the authentication request is before the distribution countdown of the target virtual resource is ended;
determining distribution authority information according to the authentication request, wherein the distribution authority information is authority information of the account of the client when participating in target virtual resource distribution, and the distribution authority information is used for determining whether the account of the client has distribution authority and resource amount correspondingly distributed by the account having the distribution authority;
receiving a resource allocation request sent by the client;
responding to the resource allocation request, allocating the target virtual resource to the account according to the allocation authority information, and returning a resource allocation result corresponding to the target virtual resource to the client.
6. The method of claim 5, wherein the authentication request carries token parameters of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is the risk account, the account does not have the distribution authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
7. The method of claim 5, wherein the step of receiving the resource allocation request sent by the client is preceded by:
returning the distribution authority information to the client;
the allocation authority information is information according to whether the client sends a resource allocation request.
8. A live broadcast interactive information processing device is applied to a client side and is characterized by comprising:
a first display unit configured to display a live broadcast room interface on which allocation countdown information of a target virtual resource is displayed;
a first sending unit, configured to send an authentication request to a server before the countdown is finished, where the authentication request is used to request the server to determine allocation permission information, the allocation permission information is permission information of an account of the client when participating in target virtual resource allocation, and the allocation permission information is used to determine whether the account of the client has an allocation permission and a resource amount correspondingly allocated to the account having the allocation permission;
a second sending unit, configured to send a resource allocation request to the server after the countdown is finished and if a target operation triggered on the live broadcast room interface is detected, where the resource allocation request is used to request the server to allocate a target virtual resource to an account of each client in a live broadcast room according to the determined allocation permission information;
and the second display unit is configured to display the resource allocation result corresponding to the target virtual resource.
9. The apparatus according to claim 8, wherein the authentication request carries a token parameter of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
10. The apparatus of claim 8, further comprising:
a first receiving unit configured to receive the distribution authority information returned by the server;
the second transmission unit includes:
and the resource allocation request sending subunit is configured to send a resource allocation request to the server if the account is determined to have the target virtual resource allocation authority according to the allocation authority information.
11. The apparatus of claim 10, further comprising:
and the control unit is configured to not send a resource allocation request to the server if the account is determined not to have the target virtual resource allocation authority according to the allocation authority information.
12. A live broadcast interactive information processing device is applied to a server, and is characterized by comprising:
a second receiving unit, configured to receive an authentication request sent by a client, where a sending opportunity of the authentication request is before an end of allocation countdown of a target virtual resource;
the determining unit is configured to determine allocation authority information according to the authentication request, wherein the allocation authority information is authority information of an account of the client when participating in target virtual resource allocation, and the allocation authority information is used for determining whether the account of the client has allocation authority and resource amount correspondingly allocated to the account having the allocation authority;
a third receiving unit configured to receive a resource allocation request sent by the client;
and the allocation unit is configured to respond to the resource allocation request, allocate the target virtual resource to the account according to the allocation authority information, and return a resource allocation result corresponding to the target virtual resource to the client.
13. The apparatus according to claim 12, wherein the authentication request carries token parameters of the client;
the token parameter is used for the server to determine distribution authority information based on a preset distribution strategy, where the preset distribution strategy includes: a risk control strategy, a priority control strategy and a random screening control strategy;
the risk control strategy is used for determining whether the account is a risk account, and if the account is a risk account, the account does not have allocation authority; the priority control strategy is used for determining the resource allocation priority of the account, and the resource amount allocated by the account with the high priority is higher than that allocated by the account with the low priority; and the random screening control strategy is used for determining whether the account has the distribution authority or not according to the probability.
14. The apparatus of claim 12, further comprising:
a third sending unit configured to return the distribution right information to the client;
the allocation authority information is information according to whether the client sends a resource allocation request.
15. A terminal, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live interactive information processing method of any of claims 1-4.
16. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live interactive information processing method of any one of claims 5 to 7.
17. A storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the live interactive information processing method of any one of claims 1 to 4.
18. A storage medium, wherein instructions in the storage medium, when executed by a processor of a server, enable the server to perform the live interactive information processing method of any one of claims 5 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011159795.2A CN112468833B (en) | 2020-10-26 | 2020-10-26 | Live broadcast interactive information processing method, device, terminal, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011159795.2A CN112468833B (en) | 2020-10-26 | 2020-10-26 | Live broadcast interactive information processing method, device, terminal, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112468833A CN112468833A (en) | 2021-03-09 |
CN112468833B true CN112468833B (en) | 2022-11-11 |
Family
ID=74834739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011159795.2A Active CN112468833B (en) | 2020-10-26 | 2020-10-26 | Live broadcast interactive information processing method, device, terminal, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112468833B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113099247B (en) * | 2021-03-17 | 2023-01-20 | 北京达佳互联信息技术有限公司 | Virtual resource processing method, device, server, storage medium and program product |
CN113467907A (en) * | 2021-06-21 | 2021-10-01 | 北京达佳互联信息技术有限公司 | Task processing method and device, electronic equipment and storage medium |
CN113676740A (en) * | 2021-07-16 | 2021-11-19 | 五八同城信息技术有限公司 | Electronic resource display and distribution method and device, electronic equipment and storage medium |
CN113691587B (en) * | 2021-07-20 | 2023-05-23 | 北京达佳互联信息技术有限公司 | Virtual resource processing method and device, electronic equipment and storage medium |
CN113747187B (en) * | 2021-08-31 | 2022-10-14 | 北京达佳互联信息技术有限公司 | Virtual resource processing method and device |
CN114339288B (en) * | 2021-12-30 | 2024-01-16 | 北京快来文化传播集团有限公司 | Live broadcast interaction method and electronic equipment |
CN115052174B (en) * | 2022-06-13 | 2023-12-19 | 北京达佳互联信息技术有限公司 | Resource transfer method, device, electronic equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6331143B1 (en) * | 1997-06-05 | 2001-12-18 | Shuffle Master, Inc. | Video numbers game |
CN109688477A (en) * | 2018-11-06 | 2019-04-26 | 北京达佳互联信息技术有限公司 | Data creation method, device, electronic equipment and readable storage medium storing program for executing |
CN109903023B (en) * | 2018-11-22 | 2023-07-11 | 创新先进技术有限公司 | Resource allocation method and system |
CN110223435A (en) * | 2019-06-04 | 2019-09-10 | 网易(杭州)网络有限公司 | Object random distribution approach, device, computer storage medium and electronic equipment |
-
2020
- 2020-10-26 CN CN202011159795.2A patent/CN112468833B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112468833A (en) | 2021-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112468833B (en) | Live broadcast interactive information processing method, device, terminal, server and storage medium | |
CN106210797B (en) | Network live broadcast method and device | |
CN110611829B (en) | Video preloading method and device, electronic equipment and storage medium | |
CN107888965B (en) | Image gift display method and device, terminal, system and storage medium | |
CN106790043B (en) | Method and device for sending message in live broadcast application | |
CN107959757B (en) | User information processing method and device, APP server and terminal equipment | |
CN107094094B (en) | Application networking method and device and terminal | |
CN112270561A (en) | Electronic resource distribution method and device, electronic equipment and storage medium | |
CN111756820A (en) | Access processing method and device, electronic equipment and storage medium | |
CN108335135B (en) | Multimedia content sharing method and device | |
CN110690979B (en) | Group message processing method, device, server, client and storage medium | |
WO2022028607A1 (en) | Virtual resource acquisition method and apparatus | |
CN107316207B (en) | Method and device for acquiring display effect information | |
CN115499438A (en) | Task allocation method and device, electronic equipment and storage medium | |
CN114272600A (en) | Control right switching system, method, device, equipment and storage medium | |
CN110620956A (en) | Live broadcast virtual resource notification method and device, electronic equipment and storage medium | |
US20240214328A1 (en) | Method for displaying virtual resource information and electronic device | |
CN109156025B (en) | Uplink resource acquisition method, device and computer readable storage medium | |
CN106357558B (en) | Bandwidth allocation methods and device | |
CN112256380A (en) | Interactive page display method and device, electronic equipment and storage medium | |
CN109831538B (en) | Message processing method, device, server, terminal and medium | |
CN110908814A (en) | Message processing method and device, electronic equipment and storage medium | |
CN113206832B (en) | Data processing method and device and data processing device | |
CN113868562A (en) | Resource acquisition method, device, system, electronic equipment and readable storage medium | |
CN110719598B (en) | Data transmission method and device, electronic equipment and 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 |