CN113781097A - Virtual resource processing method and device, electronic equipment and storage medium - Google Patents

Virtual resource processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113781097A
CN113781097A CN202110874341.1A CN202110874341A CN113781097A CN 113781097 A CN113781097 A CN 113781097A CN 202110874341 A CN202110874341 A CN 202110874341A CN 113781097 A CN113781097 A CN 113781097A
Authority
CN
China
Prior art keywords
user account
account
virtual
live broadcast
broadcast room
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110874341.1A
Other languages
Chinese (zh)
Inventor
闫亚辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110874341.1A priority Critical patent/CN113781097A/en
Publication of CN113781097A publication Critical patent/CN113781097A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0209Incentive being awarded or redeemed in connection with the playing of a video game
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0236Incentive or reward received by requiring registration or ID from user

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a processing method and device of virtual resources, an electronic device and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a virtual resource set sent by a first user account in a virtual live broadcast room, wherein the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room, and determining a second user account with resource acceptance conditions from all user accounts in the virtual live broadcast room, wherein the resource acceptance conditions are used for indicating that the second user account has a subscription relation with a main broadcast account for creating the virtual live broadcast room, and the second user account is configured to allow the account for receiving the target virtual resources and distribute the target virtual resources to the second user account through the virtual live broadcast room. The method and the device solve the problems that the distribution process of the virtual resources is complex and the distribution efficiency is low in the related technology.

Description

Virtual resource processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for processing virtual resources, an electronic device, and a storage medium.
Background
In the related art, in the live broadcasting process, the anchor can realize the interaction with the viewer by distributing the virtual resource. For example, the anchor distributes the virtual resource to all or part of the viewers in a red packet by pre-configuration.
In the prior art, generally, a user watching a live broadcast is notified in the form of voice or the like in the live broadcast process by a main broadcast, and the user watching the live broadcast participates in the distribution process of the virtual resource by clicking an identifier corresponding to the virtual resource.
Therefore, no effective solution exists at present for the technical problems of complex distribution process and low distribution efficiency of virtual resources in the related art.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The present disclosure provides a method and an apparatus for processing virtual resources, an electronic device, and a storage medium, so as to at least solve the technical problems of a complex distribution process and a low distribution efficiency of virtual resources 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 method for processing virtual resources is provided, including: acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, wherein the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room; determining a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, wherein the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room, and the second user account is configured to allow the receiving of an account of the target virtual resource; and distributing the target virtual resource to the second user account through the virtual live broadcast room.
Optionally, the determining, from the user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition includes: determining a viewing account having the subscription relationship with the anchor account from the user accounts under the condition that the first user account is the anchor account; determining the viewing account as the second user account with the resource acceptance condition; under the condition that the first user account is a viewing account having a subscription relationship with the anchor account, determining the viewing account having the subscription relationship with the anchor account from the user accounts; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
Optionally, the determining, by the viewing account other than the first user account, that the second user account with the resource acceptance condition is the second user account with the resource acceptance condition includes: determining a subscription group where the first user account is located; determining candidate viewing accounts belonging to the subscription group from the viewing accounts; determining the viewing accounts except the first user account in the candidate viewing accounts as the second user account with the resource acceptance condition.
Optionally, the obtaining a virtual resource set sent by a first user account in a virtual live broadcast room includes: acquiring identification information corresponding to each user account in the virtual live broadcast room under the condition that the target virtual resource is adjusted to be in a state to be allocated by the first user account through a first client; generating the set of virtual resources based on the identification information.
Optionally, after the generating the set of virtual resources based on the identification information, the method further includes: acquiring a first number of each user account according to the identification information; monitoring heartbeat messages sent by each user account in the virtual live broadcast room under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one; and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
Optionally, after generating the set of virtual resources based on the identification information, the method further includes: acquiring a second quantity of each user account according to the identification information; periodically scanning the virtual live broadcast room if the second number is less than or equal to a second threshold; and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
Optionally, the determining, from the user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition includes at least one of: acquiring the authority level of each account in each user account, and determining the account with the authority level meeting the preset level as the second user account with the resource acceptance condition; acquiring the residence time of each account in each user account in the virtual live broadcast room, and determining the account with the residence time meeting the preset time length as the second user account with the resource acceptance condition; and acquiring a group identifier of each account in each user account, and determining the account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition.
Optionally, the obtaining a group identifier of each account in the user accounts, and determining an account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition includes: acquiring a target identity of each account in each user account; under the condition that the first user account is a main broadcast account, acquiring a target group associated with the main broadcast account, wherein the target group comprises a group of identity identifications associated with the main broadcast account; and under the condition that the group of identity identifications comprises the target identity identification, determining an account corresponding to the target identity identification as the second user account.
Optionally, the obtaining a virtual resource set sent by a first user account in a virtual live broadcast room includes: acquiring a target interactive operation of a first user account on a target terminal; responding to the target interactive operation on the target terminal, and generating the target virtual resource for distributing to a second user account; receiving a live broadcast message generated by the target terminal based on the target virtual resource, wherein the live broadcast message comprises an allocation parameter of the target virtual resource, and the allocation parameter is used for distributing the target virtual resource in the virtual live broadcast room.
Optionally, the method further comprises: monitoring a subscription relationship change message of each user account in the virtual live broadcast room under the condition that target virtual resources to be distributed exist in the virtual live broadcast room; determining a third user account as a user account with the resource acceptance condition when the subscription relationship change message indicates that the subscription relationship of the third user account is changed to a viewing account with a subscription relationship with the anchor account, wherein the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcast room; and when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, determining the fourth user account as a user account which does not have the resource acceptance condition, wherein the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for processing virtual resources, including: sending a virtual resource set to a target server, wherein the virtual resource set comprises target virtual resources to be distributed and belonging to a first user account, and user accounts in the virtual live broadcast room comprise the first user account; acquiring a second user account with a resource acceptance condition, wherein the second user account is determined by the target server from each user account in the virtual live broadcast room, and the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room; and responding to the request message of the second user account for the virtual resource set, and distributing the target virtual resource to the second user account.
Optionally, the obtaining of the second user account with the resource acceptance condition includes: under the condition that the first user account is the anchor account, acquiring a viewing account which has the subscription relation with the anchor account in each user account, and determining the viewing account as the second user account with the resource acceptance condition; under the condition that the first user account is a viewing account having a subscription relationship with the anchor account, acquiring the viewing account having the subscription relationship with the anchor account in each user account; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
Optionally, the method further comprises: monitoring a subscription relationship change message of each user account under the condition that the target virtual resource to be distributed exists; sending a first change message to the target server when the subscription relationship change message indicates that the subscription relationship of a third user account is changed into a viewing account having a subscription relationship with the anchor account, wherein the first change message is used for indicating that the third user account is determined to be a user account having the resource acceptance condition, and the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcasting room; and sending a second change message to the target server when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, wherein the second change message is used for indicating that the fourth user account is determined as a user account which does not have the resource acceptance condition, and the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
Optionally, the sending the virtual resource set to the target server includes: acquiring identification information corresponding to each user account under the condition that the target virtual resource is adjusted to be in a to-be-allocated state by the first user account; generating the set of virtual resources based on the identification information; and sending the virtual resource set to the target server.
Optionally, after the generating the set of virtual resources based on the identification information, the method further includes: acquiring a first number of each user account according to the identification information; monitoring heartbeat messages sent by each user account under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one;
and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
Optionally, after generating the set of virtual resources based on the identification information, the method further includes: acquiring a second quantity of each user account according to the identification information; under the condition that the second number is smaller than or equal to a second threshold value, periodically scanning an account list, wherein the account list comprises user accounts located in the virtual live broadcast room; and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
According to a third aspect of the embodiments of the present disclosure, there is provided a processing apparatus for virtual resources, including: the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, and the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room; a determining module, configured to determine a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, where the resource acceptance condition is used to indicate that the second user account has a subscription relationship with a host account that creates the virtual live broadcast room, and the second user account is configured to allow receiving an account of the target virtual resource; and the first distribution module is used for distributing the target virtual resource to the second user account through the virtual live broadcast room.
Optionally, the determining module includes: a first determining unit, configured to determine, from the user accounts, a viewing account having the subscription relationship with the anchor account when the first user account is the anchor account; determining the viewing account as the second user account with the resource acceptance condition; a second determining unit, configured to determine, from the user accounts, a viewing account having a subscription relationship with the anchor account when the first user account is a viewing account having a subscription relationship with the anchor account; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
The second determination unit includes: the first determining subunit is used for determining a subscription group where the first user account is located; a second determining subunit, configured to determine, from the viewing accounts, candidate viewing accounts belonging to the subscription group; a third determining subunit, configured to determine, as the second user account having the resource acceptance condition, a viewing account other than the first user account among the candidate viewing accounts.
Optionally, the first obtaining module includes: a first obtaining unit, configured to obtain, when the first user account adjusts the target virtual resource to a state to be allocated through a first client, identification information corresponding to each user account in the virtual live broadcast room; a generating unit, configured to generate the virtual resource set based on the identification information.
Optionally, the apparatus is further configured to: after the virtual resource set is generated based on the identification information, acquiring a first number of each user account according to the identification information; monitoring heartbeat messages sent by each user account in the virtual live broadcast room under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one; and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
Optionally, the apparatus is further configured to: after the virtual resource set is generated based on the identification information, acquiring a second number of each user account according to the identification information; periodically scanning the virtual live broadcast room if the second number is less than or equal to a second threshold; and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
Optionally, the apparatus is configured to determine, from the user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition by at least one of: acquiring the authority level of each account in each user account, and determining the account with the authority level meeting the preset level as the second user account with the resource acceptance condition; acquiring the residence time of each account in each user account in the virtual live broadcast room, and determining the account with the residence time meeting the preset time length as the second user account with the resource acceptance condition; and acquiring a group identifier of each account in each user account, and determining the account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition.
Optionally, the apparatus is configured to acquire a group identifier of each account in the user accounts in the following manner, and determine an account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition: acquiring a target identity of each account in each user account; under the condition that the first user account is a main broadcast account, acquiring a target group associated with the main broadcast account, wherein the target group comprises a group of identity identifications associated with the main broadcast account; and under the condition that the group of identity identifications comprises the target identity identification, determining an account corresponding to the target identity identification as the second user account.
Optionally, the apparatus is configured to obtain a virtual resource set sent by a first user account in a virtual live broadcast room by: acquiring a target interactive operation of a first user account on a target terminal; responding to the target interactive operation on the target terminal, and generating the target virtual resource for distributing to a second user account; receiving a live broadcast message generated by the target terminal based on the target virtual resource, wherein the live broadcast message comprises an allocation parameter of the target virtual resource, and the allocation parameter is used for distributing the target virtual resource in the virtual live broadcast room.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a processing apparatus for virtual resources, including: the virtual live broadcast system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a virtual resource set to a target server, the virtual resource set comprises target virtual resources to be distributed, the target virtual resources belong to a first user account, and the user account in a virtual live broadcast room comprises the first user account; a second obtaining module, configured to obtain a second user account with a resource acceptance condition, where the second user account is determined by the target server from each user account in the virtual live broadcast room, and the resource acceptance condition is used to indicate that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room; and the second distribution module is used for responding to the request message of the second user account for the virtual resource set and distributing the target virtual resource to the second user account.
Optionally, the second obtaining module includes: a second obtaining unit, configured to obtain, when the first user account is the anchor account, a viewing account that has the subscription relationship with the anchor account in each user account, and determine the viewing account as the second user account having the resource acceptance condition; a third obtaining unit, configured to obtain, when the first user account is a viewing account having a subscription relationship with the anchor account, a viewing account having the subscription relationship with the anchor account in each user account; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
Optionally, the apparatus is further configured to: monitoring a subscription relationship change message of each user account under the condition that the target virtual resource to be distributed exists; sending a first change message to the target server when the subscription relationship change message indicates that the subscription relationship of a third user account is changed into a viewing account having a subscription relationship with the anchor account, wherein the first change message is used for indicating that the third user account is determined to be a user account having the resource acceptance condition, and the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcasting room; and sending a second change message to the target server when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, wherein the second change message is used for indicating that the fourth user account is determined as a user account which does not have the resource acceptance condition, and the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
Optionally, the sending module includes: a fourth obtaining unit, configured to obtain, when the first user account adjusts the target virtual resource to a state to be allocated, identification information corresponding to each user account; a second generation unit that generates the set of virtual resources based on the identification information; a sending unit, configured to send the virtual resource set to the target server.
Optionally, the apparatus is further configured to: after the virtual resource set is generated based on the identification information, acquiring a first number of each user account according to the identification information; monitoring heartbeat messages sent by each user account under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one; and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
Optionally, the apparatus is further configured to: after the virtual resource set is generated based on the identification information, acquiring a second number of each user account according to the identification information; under the condition that the second number is smaller than or equal to a second threshold value, periodically scanning an account list, wherein the account list comprises user accounts located in the virtual live broadcast room; and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
According to still another aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the processing method of the virtual resource as described above.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the processing method of the virtual resource when running.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the user account with the resource receiving condition is directly determined in the virtual live broadcast room, so that the virtual resources to be distributed are distributed to the users with the resource receiving condition, the distribution efficiency of the virtual resources can be improved, the distribution flow of the virtual resources is simplified, the interaction process is reduced, and the technical problems that the distribution process of the virtual resources is complex and the distribution efficiency is low in the related technology are solved.
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 schematic illustration of an application environment illustrating a method of processing virtual resources in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method for processing virtual resources in accordance with an exemplary embodiment;
fig. 3 is a diagram illustrating a processing method for applying virtual resources in a virtual live broadcast room according to an exemplary embodiment;
FIG. 4 is a diagram illustrating a specific example of a method for processing virtual resources in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating a processing apparatus of a virtual resource in accordance with an illustrative embodiment;
FIG. 6 is a block diagram illustrating another processing apparatus of a virtual resource in accordance with an illustrative embodiment;
FIG. 7 is a block diagram illustrating an electronic device in accordance with 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 sequences other than those illustrated or otherwise 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.
First, partial nouns or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
ACU, representing the average number of simultaneous online users.
Heartbeat message: heartbeat Message, a Message sent by a sending source to a receiving party for the receiving party to determine if and when the sending source has failed or terminated. In the present disclosure, the method and the system are used for the server to know whether and when a user account is joined to a virtual live broadcast room.
Kafka, a high throughput distributed publish-subscribe messaging system.
And the Api interface is used for monitoring the message.
The JoinFansGroupConsumer, a name for a listening service, is business related (e.g., add to the Fibreball).
Redis, a database for storing information such as current virtual resource information, user number, user list, etc.
And the long connection is used for keeping connection with a user of the virtual live broadcast room.
HeartTatConsumer, a name for a listening service, is associated with a service (e.g., listening for heartbeat messages).
Scantask: and the timing task is used for inquiring.
Db, database, red packet entity.
The invention is illustrated below with reference to examples:
according to an aspect of the embodiment of the present invention, a method for processing virtual resources is provided, and optionally, in this embodiment, the method for processing virtual resources may be applied to a hardware environment formed by a server 101 and a user terminal 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 through a network, and may be configured to provide a service to a user terminal or a client installed on the user terminal, where the client may be a video client, an instant messaging client, a browser client, an education client, a game client, a live broadcast client, and the like. The database 105 may be provided on or separate from the server for providing data storage services for the server 101, such as a live data storage server, and the network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication, the user terminal 103 may be a terminal configured with a virtual live client, and may include but is not limited to at least one of the following: computer Devices such as Mobile phones (e.g., Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, smart wearable Devices, and smart car Devices, the server can be a single server, or a server cluster composed of a plurality of servers, or a cloud server, which may include, but is not limited to, a router or a gateway, the virtual live client 107 using the processing method of the virtual resources is displayed through the user terminal 103, through the entry of the virtual live client 107 configured on the terminal for the processing of virtual resources, a virtual live broadcast room is established in a virtual live broadcast client 107 logged in by a live broadcast account, and virtual resources to be allocated are generated through a first user account in a virtual live broadcast client 109. The virtual live client 107, the virtual live client 109, and the virtual live client 111 are all connected to the server 101 through a network, which is only an example and is not limited in this embodiment.
As shown in fig. 1, the processing method of the virtual resource may be implemented in the server 101 by the following steps:
as an alternative implementation manner, fig. 1 is a flowchart illustrating a processing method of a virtual resource according to an exemplary embodiment, where as shown in fig. 1, the processing method of the virtual resource includes the following steps.
S202, acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, wherein the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room;
s204, determining a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, wherein the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room, and the second user account is configured to allow the receiving of an account of the target virtual resource;
s206, the target virtual resource is distributed to the second user account through the virtual live broadcast.
In an exemplary embodiment, the processing method of the virtual resource may include, but is not limited to, applications in various application scenarios such as medical, financial, government affairs, education, games, shopping, transportation, and the like.
For example, taking application to a live video scene as an example, fig. 3 is a schematic view of an optional live video scene according to an embodiment of the present invention, and as shown in fig. 3, the processing method of the virtual resource may include, but is not limited to, the following steps:
s1, displaying, in the virtual live broadcast room 302, the play content of the virtual live broadcast room associated with the anchor account and the anchor interactive interface 304;
s2, acquiring interactive operation on the virtual button 306 in the anchor interactive interface 304;
s3, responding to the interaction operation, displaying the virtual resource set 308 in the virtual live broadcast room to start distributing the virtual resources;
s4, acquiring the interactive operation of the virtual resource set 308 to start determining a second user account with resource acceptance conditions;
s5, distributing the virtual resource to the user account (corresponding to the second user account) through the virtual live broadcast;
s6, a prompt message 312 is displayed in the second user account interactive interface 310, where the prompt message 320 is used to indicate that the virtual resource is distributed to the user account with the resource acceptance condition through the virtual live broadcast room.
The above is merely an example, and the present embodiment is not limited in any way.
In an exemplary embodiment, the virtual live broadcast room may include, but is not limited to, a virtual live broadcast room that is previously applied for and created by a host account, and the user accounts in the virtual live broadcast room may include, but is not limited to, user accounts that are registered in advance in a server and have a subscription relationship with the host account, and may also include, but is not limited to, user accounts that automatically generate a subscription relationship after joining the virtual live broadcast room, and the like.
In an exemplary embodiment, the first user account may include, but is not limited to, a host account, a viewer account, an administrator account, and the like, and the target virtual resource may include, but is not limited to, virtual currency, virtual gifts, virtual experience values, and the like.
In an exemplary embodiment, the second user account with the resource acceptance condition may include, but is not limited to, a user account whose permission level meets a preset level, a user account whose stay time in the virtual live broadcast room meets a preset time length, and a user account whose group identifier is associated with the live broadcast account. The user account associated with the live account for the group identification may include, but is not limited to, fan group members of the anchor, and the like.
In an exemplary embodiment, the acquiring the virtual resource set sent by the first user account in the virtual live broadcast room may include, but is not limited to, acquiring a virtual resource set triggered after the first user account performs an interactive operation, for example, clicking a virtual resource distribution identifier to trigger generating the virtual resource set.
In an exemplary embodiment, the determining, from the user accounts in the virtual live broadcast room, the second user account with the resource acceptance condition may include, but is not limited to, determining the second user account with the resource acceptance condition by scanning the user accounts in the virtual live broadcast room, or determining the second user account with the resource acceptance condition by acquiring a heartbeat message uploaded by the user accounts in the virtual live broadcast room.
In an exemplary embodiment, the distributing the target virtual resource to the second user account through the virtual live broadcast may include, but is not limited to, transferring the target virtual resource to the second user account, or transferring the target virtual resource exchanged into another form of resource to another form of resource account associated with the second user account.
In an exemplary embodiment, a virtual resource set sent by a first user account in a virtual live broadcast room is acquired, a second user account with a resource acceptance condition is determined from each user account in the virtual live broadcast room, and a target virtual resource is distributed to the second user account through the virtual live broadcast room, so that a user can participate in a distribution process of the virtual resource without performing any operation by the user.
As an optional scheme, the determining, from user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition includes:
determining a viewing account having the subscription relationship with the anchor account from the user accounts under the condition that the first user account is the anchor account;
determining the viewing account as the second user account with the resource acceptance condition;
under the condition that the first user account is a viewing account having a subscription relationship with the anchor account, determining the viewing account having the subscription relationship with the anchor account from the user accounts;
and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
In an exemplary embodiment, the first user account may include, but is not limited to, a primary account or a viewing account having a subscription relationship with the primary account. Specifically, the account for performing virtual resource distribution may include, but is not limited to, a anchor account for creating a current virtual live broadcast room, or a viewing account having a subscription relationship with the anchor account.
In an exemplary embodiment, in the above-mentioned case that the first user account is a primary account, determining, from among the user accounts, a viewing account having a subscription relationship with the primary account, and determining the viewing account as the second user account having the resource acceptance condition may include, but are not limited to, the following steps:
s1, acquiring the identity of the anchor account;
s2, acquiring a group identifier associated with the anchor account in a database based on the identity identifier of the anchor account, wherein the account in the account group corresponding to the group identifier is the account having a subscription relationship with the anchor account;
s3, when the account having the subscription relationship with the anchor account is watching the live broadcast in the virtual live broadcast room, the account having the subscription relationship with the anchor account is the watching account.
In an exemplary embodiment, in the above-mentioned case that the first user account is a viewing account having a subscription relationship with the anchor account, determining, from among the user accounts, a viewing account having a subscription relationship with the anchor account, and determining, as a second user account having a resource acceptance condition, a viewing account other than the first user account in the viewing accounts may include, but is not limited to, the following steps:
s1, acquiring the identity of the anchor account;
s2, acquiring a group identifier associated with the anchor account in a database based on the identity identifier of the anchor account, wherein the account in the account group corresponding to the group identifier is the account having a subscription relationship with the anchor account;
and S3, when the first user account is a viewing account having a subscription relationship with the anchor account, determining the viewing account having the subscription relationship with the anchor account from the user accounts, and determining the viewing accounts except the first user account in the viewing accounts as second user accounts having resource acceptance conditions.
The above is merely an example, and the present embodiment is not limited in any way.
In an exemplary embodiment, when a first user account is a primary account, a viewing account having a subscription relationship with the primary account is determined from each user account and is used as the second user account having a resource acceptance condition, so as to distribute virtual resources, which need to be distributed by the primary account, to users having the resource acceptance condition.
On the other hand, when the first user account is a viewing account having a subscription relationship with the anchor account, the viewing account having a subscription relationship with the anchor account is determined from each user account, and the viewing accounts except the first user account in the viewing accounts are determined as the second user accounts having resource acceptance conditions, so that the viewing accounts can also distribute virtual resources of the viewing accounts in a virtual live broadcast room created by the anchor, the interaction effect among different viewing accounts is improved, the interaction mode in the virtual live broadcast room is increased, and the like.
As an optional scheme, the determining, by a viewing account other than the first user account, that the second user account with the resource acceptance condition is the second user account with the resource acceptance condition includes:
determining a subscription group where the first user account is located;
determining candidate viewing accounts belonging to the subscription group from the viewing accounts;
determining the viewing accounts except the first user account in the candidate viewing accounts as the second user account with the resource acceptance condition.
In an exemplary embodiment, the subscription group may include, but is not limited to, a subscription group determined according to a first user account, for example, a first user account is obtained, the subscription group is associated with a main broadcast account of the virtual live broadcast room, and a candidate viewing account belonging to the subscription group is determined from the viewing accounts as the second user account having the resource acceptance condition.
In an exemplary embodiment, a mode of determining a subscription group where a first user account is located, determining candidate viewing accounts belonging to the subscription group from the viewing accounts, and determining the viewing accounts other than the first user account in the candidate viewing accounts as a second user account having a resource acceptance condition is adopted, so that the viewing accounts subscribed to a main broadcast can become accounts which are allowed to participate in the distribution of virtual resources in a virtual live broadcast room, and the technical effect of improving viewing interaction experience of the viewing accounts subscribed to the main broadcast accounts in the virtual live broadcast room is achieved.
In an exemplary embodiment, a subscription group where a first user account is located is determined, candidate viewing accounts belonging to the subscription group are determined from the viewing accounts, and the viewing accounts except the first user account in the candidate viewing accounts are determined as a second user account having a resource acceptance condition, so that virtual resources can be preferentially allocated to the viewing accounts subscribed to a main broadcast account, the use viscosity of viewing users is improved, the subscription rate of the viewing accounts in a virtual live broadcast room is increased, and the technical problem of low virtual resource distribution efficiency in the related technology is solved.
As an optional scheme, the obtaining a virtual resource set sent by a first user account in a virtual live broadcast room includes:
acquiring identification information corresponding to each user account in the virtual live broadcast room under the condition that the target virtual resource is adjusted to be in a state to be allocated by the first user account through a first client;
generating the set of virtual resources based on the identification information.
In an exemplary embodiment, the first client may include, but is not limited to, a client applied to various application scenarios such as medical, financial, government affairs, education, game, shopping, transportation, etc., and the anchor account may create a virtual live broadcast room through, but is not limited to, the first client, or the first user account may join the virtual live broadcast room through, but is not limited to, the first client to watch live broadcast. The first client includes, but is not limited to, determining the time for adjusting the target virtual resource to the to-be-allocated state by means of interactive operation, pre-configuration, configuration based on the number of people online in the virtual live broadcast room, and the like.
For example, after the interactive operation of the first user account is acquired, the target virtual resource is adjusted to be in a state to be allocated, or the target virtual resource is adjusted to be in the state to be allocated when a preset time point is reached, or the target virtual resource is adjusted to be in the state to be allocated when the number of online people in the virtual live broadcast room reaches a predetermined threshold value.
The state of the virtual resource to be allocated may include, but is not limited to, transferring a predetermined number of virtual resources from the first user account, and storing the transferred virtual resources in a preset data structure for subsequent allocation.
In an exemplary embodiment, the identification information may include, but is not limited to, an identity identifier, a group identifier, and the like corresponding to the user account.
In an exemplary embodiment, when a first user account adjusts a target virtual resource to a state to be allocated through a first client, identification information corresponding to each user account in a virtual live broadcast room is acquired, and a virtual resource set is generated based on the identification information, so that a virtual resource set can be generated according to identifications of different user accounts to inform other viewing accounts of the exit of the virtual resource included in the virtual resource set, and further, the interaction experience of an owner with the virtual resource is improved, the technical effect of increasing the activity of the virtual live broadcast room is achieved, and the technical problem that the distribution efficiency of the virtual resource is low in the related technology is solved.
As an optional scheme, after the generating the set of virtual resources based on the identification information, the method further includes:
acquiring a first number of each user account according to the identification information;
monitoring heartbeat messages sent by each user account in the virtual live broadcast room under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one;
and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
In an exemplary embodiment, the obtaining the first number of each user account according to the identification information may include, but is not limited to, counting the obtained identification information, and determining the first number based on a counting result.
The first threshold may include, but is not limited to, a fixed value pre-configured by a worker, or an adaptive configuration according to the current computing capacity or load condition of the server.
For example, the first threshold may be set to a low value when the computing power of the server corresponding to the virtual live broadcast room is high, and may be set to a high value when the computing power of the server corresponding to the virtual live broadcast room is low.
In an exemplary embodiment, the heartbeat message is periodically uploaded by a user account in the virtual live broadcast room, so that the heartbeat message is monitored through a preset interface, and further, the user account currently located in the virtual live broadcast room is determined.
In an exemplary embodiment, a mode that a first number of each user account is obtained according to identification information, and heartbeat messages sent by each user account in a virtual live broadcast room are monitored under the condition that the first number is greater than or equal to a first threshold value is adopted, wherein the identification information corresponds to the heartbeat messages one to one, and the account which monitors the heartbeat messages is determined to be the user account which is currently located in the virtual live broadcast room is adopted.
As an optional scheme, after the generating the set of virtual resources based on the identification information, the method further includes:
acquiring a second quantity of each user account according to the identification information;
periodically scanning the virtual live broadcast room if the second number is less than or equal to a second threshold;
and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
In an exemplary embodiment, the second number may be configured to be smaller than the first number, so that in a case that the number of people in the virtual live broadcast room is small, the user account in the virtual live broadcast room is determined directly by means of periodic scanning.
The second threshold may include, but is not limited to, a fixed value pre-configured by a worker, or an adaptive configuration according to the current computing capacity or load condition of the server.
For example, the second threshold may be set to a low value when the computing power of the server corresponding to the virtual live broadcast room is high, and may be set to a high value when the computing power of the server corresponding to the virtual live broadcast room is low.
In an exemplary embodiment, a mode that a second number of each user account is obtained according to the identification information, and the scanned accounts are determined to be the user accounts which are currently located in the virtual live broadcast room is adopted in the case that the second number is smaller than or equal to a second threshold value, so that all the viewing accounts in the current virtual live broadcast room can be efficiently scanned in a small live broadcast room with a small watching number, all the viewing accounts in the current virtual live broadcast room are endowed with participation qualification, and the red envelope participation number is timely updated.
As an optional scheme, the determining, from the user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition includes at least one of:
acquiring the authority level of each account in each user account, and determining the account with the authority level meeting the preset level as the second user account with the resource acceptance condition;
acquiring the residence time of each account in each user account in the virtual live broadcast room, and determining the account with the residence time meeting the preset time length as the second user account with the resource acceptance condition;
and acquiring a group identifier of each account in each user account, and determining the account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition.
In an exemplary embodiment, the permission level may include, but is not limited to, a level indicating a degree of association between the user account and the anchor account, such as a fan rating, and the preset level may include, but is not limited to, flexible adjustment according to parameters of the virtual resource, for example, configuring a more precious virtual resource to a higher preset level, and configuring a less precious virtual resource to a lower preset level.
In an exemplary embodiment, the dwell time may include, but is not limited to, a duration of live viewing of the user account in the virtual live broadcast room, and may be determined according to a heartbeat message obtained for the first time and a heartbeat message obtained for the last time. For example, in some application scenarios, the time of last heartbeat message acquisition may be subtracted by the time of first heartbeat message acquisition to determine the dwell time.
In an exemplary embodiment, the group identifier may include, but is not limited to, a member of the powdered silk group, and the like.
In an exemplary embodiment, a second user account with a resource acceptance condition is screened and determined according to different account information, such as the account permission level, the live broadcast watching duration of the account or the group identifier to which the account belongs, so that the acquisition threshold of virtual resources is improved, the user stickiness is increased, and the scarce attribute of the virtual resources is improved.
As an optional scheme, the acquiring a group identifier of each account in the user accounts, and determining an account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition includes:
acquiring a target identity of each account in each user account;
under the condition that the first user account is a main broadcast account, acquiring a target group associated with the main broadcast account, wherein the target group comprises a group of identity identifications associated with the main broadcast account;
and under the condition that the group of identity identifications comprises the target identity identification, determining an account corresponding to the target identity identification as the second user account.
In an exemplary embodiment, the target identity may include, but is not limited to, a user ID determined when the user account is registered in the server, or a user ID determined when the user account enters the virtual live broadcast room, and the anchor account may include, but is not limited to, a group identity stored in the database, where the user account in the group corresponding to the group identity is the account associated with the anchor account, that is, the second user account.
The above is merely an example, and the present embodiment is not limited in any way.
In an exemplary embodiment, the account numbers belonging to the target group in the virtual live broadcast room are determined by acquiring the target group associated with the anchor account number, so that the determination mode of the second user account number is optimized, and the distribution effect of the virtual resources is improved.
As an optional scheme, the obtaining a virtual resource set sent by a first user account in a virtual live broadcast room includes:
acquiring a target interactive operation of a first user account on a target terminal;
responding to the target interactive operation on the target terminal, and generating the target virtual resource for distributing to a second user account;
receiving a live broadcast message generated by the target terminal based on the target virtual resource, wherein the live broadcast message comprises an allocation parameter of the target virtual resource, and the allocation parameter is used for distributing the target virtual resource in the virtual live broadcast room.
In an exemplary embodiment, the interactive operation of acquiring the first user account on the client installed in the target terminal may be included, but is not limited to, so as to generate the target virtual resource to be distributed. And determining that the target virtual resources to be distributed exist in the virtual live broadcast room by receiving the live broadcast message generated by the target terminal.
In an exemplary embodiment, the allocation parameters include, but are not limited to, the number of people in the second user account, the value and type of the virtual resource.
In an exemplary embodiment, a live broadcast message is generated by obtaining a target interactive operation, a virtual resource set to be distributed can be flexibly generated in a manner of indicating that a virtual resource to be distributed exists in a current virtual live broadcast room, and the target virtual resource to be distributed can be determined to exist in the virtual live broadcast room by receiving the live broadcast message, so that the interactive experience of an owner with the virtual resource is improved, the technical effect of increasing the activity of the virtual live broadcast room is achieved, and the technical problem that the distribution efficiency of the virtual resource is low in the related technology is solved.
As an optional solution, the method further comprises:
monitoring a subscription relationship change message of each user account in the virtual live broadcast room under the condition that target virtual resources to be distributed exist in the virtual live broadcast room;
determining a third user account as a user account with the resource acceptance condition when the subscription relationship change message indicates that the subscription relationship of the third user account is changed to a viewing account with a subscription relationship with the anchor account, wherein the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcast room;
and when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, determining the fourth user account as a user account which does not have the resource acceptance condition, wherein the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
In an exemplary embodiment, the change of the subscription relationship may include, but is not limited to, a determination according to whether the third user account or the fourth user account has a subscription relationship with the anchor account before entering the virtual live broadcast room.
In an exemplary embodiment, as shown in fig. 1, the processing method of the virtual resource may be further implemented in the user terminal 101 by:
s1, sending a virtual resource set to a target server, wherein the virtual resource set comprises target virtual resources to be distributed and belonging to a first user account, and user accounts in the virtual live broadcast room comprise the first user account;
s2, acquiring a second user account with a resource acceptance condition, wherein the second user account is determined by the target server from each user account in the virtual live broadcast room, and the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room;
s3, in response to the request message of the second user account for the virtual resource set, distributing the target virtual resource to the second user account.
As an optional scheme, the obtaining the second user account with the resource acceptance condition includes: under the condition that the first user account is the anchor account, acquiring a viewing account which has the subscription relation with the anchor account in each user account, and determining the viewing account as the second user account with the resource acceptance condition; under the condition that the first user account is a viewing account having a subscription relationship with the anchor account, acquiring the viewing account having the subscription relationship with the anchor account in each user account; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
As an optional solution, the method further comprises: monitoring a subscription relationship change message of each user account under the condition that the target virtual resource to be distributed exists; sending a first change message to the target server when the subscription relationship change message indicates that the subscription relationship of a third user account is changed into a viewing account having a subscription relationship with the anchor account, wherein the first change message is used for indicating that the third user account is determined to be a user account having the resource acceptance condition, and the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcasting room; and sending a second change message to the target server when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, wherein the second change message is used for indicating that the fourth user account is determined as a user account which does not have the resource acceptance condition, and the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
As an optional scheme, the sending the virtual resource set to the target server includes: acquiring identification information corresponding to each user account under the condition that the target virtual resource is adjusted to be in a to-be-allocated state by the first user account; generating the set of virtual resources based on the identification information; and sending the virtual resource set to the target server.
As an optional scheme, after the generating the set of virtual resources based on the identification information, the method further includes: acquiring a first number of each user account according to the identification information; monitoring heartbeat messages sent by each user account under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one; and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
As an optional scheme, after the generating the set of virtual resources based on the identification information, the method further includes: acquiring a second quantity of each user account according to the identification information; under the condition that the second number is smaller than or equal to a second threshold value, periodically scanning an account list, wherein the account list comprises user accounts located in the virtual live broadcast room; and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
The disclosure is further illustrated with reference to specific examples:
taking the virtual resource as the fan cluster red packet as an example, the method may include, but is not limited to, the following:
the bean vermicelli roll red packet is a relatively special lottery drawing type red packet, and after the red packet is broadcast by a main player, audiences in a current live broadcast room can participate in the lottery drawing of the red packet without any operation as long as the members of the bean vermicelli roll (corresponding to the account numbers with the resource acceptance condition) are members, and in addition, common audiences can participate in the lottery drawing by adding the bean vermicelli roll. For the audience newly added into the vermicelli group in the life cycle of the red packet, the kafka message added into the vermicelli group can be directly monitored to help the user participate. But for viewers who are themselves members of the fan group, we need to actively acquire whether the live room audience is a member of the fan group because no action is required. Therefore, it is thought that the audience currently in the live broadcast room can be obtained through the heartbeat of the live broadcast room, after each audience enters the live broadcast room, the heartbeat is reported every other period of time, the heartbeat is monitored, then whether the audience is a fan group member or not is checked, and if the audience is a fan group member, the audience can be endowed with participation qualification.
In addition, for the small live broadcast room, the number of people is small, and the method can include but not limited to that when the red packet of the vermicelli group just comes out, for the small live broadcast room (acu is less than 100), all audiences in the live broadcast room are scanned through a timing task to give participation qualification to the vermicelli group members, so that the participation number can be updated timely.
Fig. 4 is a timing diagram of a processing method of virtual resources according to an embodiment of the present invention, as shown in fig. 4, including but not limited to the following steps:
first, the account that has a subscription relationship with the primary account that creates the virtual live broadcast room may be determined by steps including, but not limited to:
s1, adding a vermicelli roll (corresponding to the subscription relationship with the anchor account number);
s2, sending the message of adding the vermicelli balls to kafka through an api interface;
s3, monitoring the message of joining the fan group through the preset joinfansgroupconsumer service;
s4, the join fansgroupconsumer service acquires a message of adding the vermicelli group;
s5, redis obtains the red packet message of the fan cluster of the current live broadcast room (corresponding to the virtual resource set);
s6, returning the virtual resource set;
s7, judging whether the current user participates in the red envelope distribution;
s8, returning the confirmation message under the condition of judging that the red envelope distribution is participated in;
s9, under the condition that the participants do not participate in the red envelope distribution, the number of the participants is increased;
s10, storing in the winning candidate list (corresponding to the second user account);
s11, marking the current user successfully participating;
s12, sending a signaling of the current number of people participating;
s13, the audience receives the number of participants signaling.
Secondly, the number of people participating in the red envelope distribution can be determined according to the heartbeat message of the live broadcast room by the following methods including but not limited to the following methods:
s1, the audience reports heartbeat messages;
s2, sending heartbeat messages;
s3, the heartbeat message is monitored by the heartbeat Consumer service;
s4, the heartbeat resurbetatconsumer returns the heartbeat message to kafka;
s5, the hearBeatConsumer sends the red packet information of the fan cluster in the current live broadcast room to the redis;
s6, returning a confirmation message under the condition that the current live broadcast room has the red package of the fan cluster;
s7, determining whether the current user is a member of the fan group;
s8, returning a confirmation message under the condition that the powder dough is not a member;
s9, in case of being a member of the fan group, the number of participants is increased
S10, judging whether the current user participates in the red envelope distribution, and returning the confirmation message under the condition of judging that the current user participates in the red envelope distribution;
s11, under the condition that the participants do not participate in the red envelope distribution, the number of the participants is increased;
s12, storing in the winning candidate list (corresponding to the second user account);
s13, marking the current user successfully participating;
s14, sending a signaling of the current number of people participating;
s15, the audience receives the number of participants signaling.
And finally, under the condition that the number of people in the virtual live broadcast room is less than a certain value, executing the following operation to determine the number of people participating in the red envelope distribution:
s1, scanning all the current pink silk mass red packets of the total station every 10 seconds;
s2, making a vermicelli roll red packet list;
s3, filtering out the direct seeding rooms in which the red packages of the vermicelli roll are located, wherein the number of the direct seeding rooms is less than 100;
s4, processing each small live broadcast room with the red package of the vermicelli group;
s5, acquiring a viewer list of a live broadcast room;
s6, audience list;
s7, inquiring the state of the vermicelli mass aiming at each audience;
s8, in case of not being a member of the vermicelli group, not processing;
s9, judging whether the current user participates in the situation of the fan group member;
s10, under the condition of judging that the red envelope distribution is participated, the red envelope distribution is not processed;
s11, under the condition that the participants do not participate in the red envelope distribution, the number of the participants is increased;
s12, storing in the winning candidate list (corresponding to the second user account);
s13, marking the current user successfully participating;
s14, sending a signaling of the current number of people participating;
s15, the audience receives the number of participants signaling.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the user account with the resource receiving condition is directly determined in the virtual live broadcast room, so that the virtual resources required to be distributed by the anchor broadcast are distributed to the users with the resource receiving condition, the distribution efficiency of the virtual resources can be improved, the distribution flow of the virtual resources is simplified, the interaction process is reduced, and the technical problems that the distribution process of the virtual resources is complex and the distribution efficiency is low in the related technology are solved.
FIG. 5 is a block diagram illustrating a processing device of a virtual resource in accordance with an exemplary embodiment. Referring to fig. 5, the apparatus includes a first acquisition module 502, a determination module 504, and a first distribution module 506.
A first obtaining module 502, configured to obtain a virtual resource set sent by a first user account in a virtual live broadcast room, where the virtual resource set includes a target virtual resource to be distributed in the virtual live broadcast room;
a determining module 504, configured to determine, from user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition, where the resource acceptance condition is used to indicate that the second user account has a subscription relationship with a host account that creates the virtual live broadcast room, and the second user account is configured to allow receiving an account of the target virtual resource;
a first distribution module 506, configured to distribute the target virtual resource to the second user account through the virtual live broadcast.
As an optional scheme, the determining module includes:
a first determining unit, configured to determine, from the user accounts, a viewing account having the subscription relationship with the anchor account when the first user account is the anchor account; determining the viewing account as the second user account with the resource acceptance condition;
a second determining unit, configured to determine, from the user accounts, a viewing account having a subscription relationship with the anchor account when the first user account is a viewing account having a subscription relationship with the anchor account; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
The second determination unit includes:
the first determining subunit is used for determining a subscription group where the first user account is located;
a second determining subunit, configured to determine, from the viewing accounts, candidate viewing accounts belonging to the subscription group;
a third determining subunit, configured to determine, as the second user account having the resource acceptance condition, a viewing account other than the first user account among the candidate viewing accounts.
As an optional scheme, the first obtaining module includes:
a first obtaining unit, configured to obtain, when the first user account adjusts the target virtual resource to a state to be allocated through a first client, identification information corresponding to each user account in the virtual live broadcast room;
a generating unit, configured to generate the virtual resource set based on the identification information.
As an optional solution, the apparatus is further configured to:
after the virtual resource set is generated based on the identification information, acquiring a first number of each user account according to the identification information;
monitoring heartbeat messages sent by each user account in the virtual live broadcast room under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one;
and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
As an optional solution, the apparatus is further configured to:
after the virtual resource set is generated based on the identification information, acquiring a second number of each user account according to the identification information;
periodically scanning the virtual live broadcast room if the second number is less than or equal to a second threshold;
and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
As an optional scheme, the apparatus is configured to determine, from user accounts in the virtual live broadcast room, a second user account with a resource acceptance condition by at least one of:
acquiring the authority level of each account in each user account, and determining the account with the authority level meeting the preset level as the second user account with the resource acceptance condition;
acquiring the residence time of each account in each user account in the virtual live broadcast room, and determining the account with the residence time meeting the preset time length as the second user account with the resource acceptance condition;
and acquiring a group identifier of each account in each user account, and determining the account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition.
As an optional scheme, the apparatus is configured to acquire a group identifier of each account in the user accounts in the following manner, and determine an account associated with the group identifier and the anchor account as the second user account with the resource acceptance condition:
acquiring a target identity of each account in each user account;
under the condition that the first user account is a main broadcast account, acquiring a target group associated with the main broadcast account, wherein the target group comprises a group of identity identifications associated with the main broadcast account;
and under the condition that the group of identity identifications comprises the target identity identification, determining an account corresponding to the target identity identification as the second user account.
As an optional scheme, the apparatus is configured to acquire a virtual resource set sent by a first user account in a virtual live broadcast room by:
acquiring a target interactive operation of a first user account on a target terminal;
responding to the target interactive operation on the target terminal, and generating the target virtual resource for distributing to a second user account;
receiving a live broadcast message generated by the target terminal based on the target virtual resource, wherein the live broadcast message comprises an allocation parameter of the target virtual resource, and the allocation parameter is used for distributing the target virtual resource in the virtual live broadcast room.
FIG. 6 is a block diagram illustrating a processing device of a virtual resource in accordance with an exemplary embodiment. Referring to fig. 6, the apparatus includes a sending module 602, a second obtaining module 604 and a second distributing module 606.
A sending module 602, configured to send a virtual resource set to a target server, where the virtual resource set includes a target virtual resource to be distributed and belongs to a first user account, and a user account in the virtual live broadcast room includes the first user account;
a second obtaining module 604, configured to obtain a second user account with a resource acceptance condition, where the second user account is determined by the target server from each user account in the virtual live broadcast room, and the resource acceptance condition is used to indicate that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room;
a second distributing module 606, configured to respond to the request message of the second user account for the virtual resource set, and distribute the target virtual resource to the second user account.
As an optional scheme, the second obtaining module includes:
a second obtaining unit, configured to obtain, when the first user account is the anchor account, a viewing account that has the subscription relationship with the anchor account in each user account, and determine the viewing account as the second user account having the resource acceptance condition;
a third obtaining unit, configured to obtain, when the first user account is a viewing account having a subscription relationship with the anchor account, a viewing account having the subscription relationship with the anchor account in each user account; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
As an optional solution, the apparatus is further configured to:
monitoring a subscription relationship change message of each user account under the condition that the target virtual resource to be distributed exists;
sending a first change message to the target server when the subscription relationship change message indicates that the subscription relationship of a third user account is changed into a viewing account having a subscription relationship with the anchor account, wherein the first change message is used for indicating that the third user account is determined to be a user account having the resource acceptance condition, and the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcasting room;
and sending a second change message to the target server when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, wherein the second change message is used for indicating that the fourth user account is determined as a user account which does not have the resource acceptance condition, and the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
As an optional scheme, the sending module includes:
a fourth obtaining unit, configured to obtain, when the first user account adjusts the target virtual resource to a state to be allocated, identification information corresponding to each user account;
a second generation unit that generates the set of virtual resources based on the identification information;
a sending unit, configured to send the virtual resource set to the target server.
As an optional solution, the apparatus is further configured to:
after the virtual resource set is generated based on the identification information, acquiring a first number of each user account according to the identification information;
monitoring heartbeat messages sent by each user account under the condition that the first number is larger than or equal to a first threshold value, wherein the identification information corresponds to the heartbeat messages one to one;
and determining the account which monitors the heartbeat message as the user account which is currently positioned in the virtual live broadcast room.
As an optional solution, the apparatus is further configured to:
after the virtual resource set is generated based on the identification information, acquiring a second number of each user account according to the identification information;
under the condition that the second number is smaller than or equal to a second threshold value, periodically scanning an account list, wherein the account list comprises user accounts located in the virtual live broadcast room;
and determining the scanned account number as the user account number which is currently located in the virtual live broadcast room.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs operations and the technical effects achieved have been described in detail in the embodiment related to the method, and will not be described in detail here.
FIG. 7 is a block diagram illustrating an electronic device for processing of virtual resources in accordance with an illustrative embodiment. As shown in fig. 7, the electronic device includes a processor 720 and a memory 710 for storing processor-executable instructions as described above. The processor is configured to execute instructions to implement the processing method of the virtual resource.
In an exemplary embodiment, the processor may be configured to perform the following steps by a computer program:
s1, acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, wherein the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room;
s2, determining a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, wherein the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room, and the second user account is configured to allow the account for receiving the target virtual resource;
and S3, distributing the target virtual resource to a second user account through the virtual live broadcast.
The electronic device in this embodiment may further include a transmission device 730, a display 740, and a connection bus 750. The transmission device 730 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network.
In one example, the transmission device 730 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 730 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner. The display 740 is used for displaying the original image and the target image; the connection bus 750 is used for connecting each module component in the electronic device.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 710 comprising instructions, executable by the processor 720 of the electronic device to perform the method described above is also provided. 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.
In an exemplary embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the steps of:
s1, acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, wherein the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room;
s2, determining a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, wherein the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room, and the second user account is configured to allow the account for receiving the target virtual resource;
and S3, distributing the target virtual resource to a second user account through the virtual live broadcast.
In an exemplary embodiment, there is also provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the above-described information transmission method.
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 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.

Claims (10)

1. A method for processing virtual resources is characterized by comprising the following steps:
acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, wherein the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room;
determining a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, wherein the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room, and the second user account is configured to allow the receiving of an account of the target virtual resource;
and distributing the target virtual resource to the second user account through the virtual live broadcast room.
2. The method as claimed in claim 1, wherein the determining a second user account with resource acceptance conditions from among the user accounts in the virtual live broadcast room comprises:
determining a viewing account having the subscription relationship with the anchor account from the user accounts under the condition that the first user account is the anchor account; determining the viewing account as the second user account with the resource acceptance condition;
under the condition that the first user account is a viewing account having a subscription relationship with the anchor account, determining the viewing account having the subscription relationship with the anchor account from the user accounts; and determining the viewing account numbers except the first user account number in the viewing account numbers as the second user account number with the resource acceptance condition.
3. The method of claim 1, wherein the obtaining the set of virtual resources sent by the first user account in the virtual live broadcast room comprises:
acquiring identification information corresponding to each user account in the virtual live broadcast room under the condition that the target virtual resource is adjusted to be in a state to be allocated by the first user account through a first client;
generating the set of virtual resources based on the identification information.
4. The method of claim 1, further comprising:
monitoring a subscription relationship change message of each user account in the virtual live broadcast room under the condition that target virtual resources to be distributed exist in the virtual live broadcast room;
determining a third user account as a user account with the resource acceptance condition when the subscription relationship change message indicates that the subscription relationship of the third user account is changed to a viewing account with a subscription relationship with the anchor account, wherein the third user account does not have a subscription relationship with the anchor account before entering the virtual live broadcast room;
and when the subscription relationship change message indicates that the subscription relationship of a fourth user account is changed into a viewing account which does not have the subscription relationship with the anchor account, determining the fourth user account as a user account which does not have the resource acceptance condition, wherein the fourth user account has the subscription relationship with the anchor account before entering the virtual live broadcast room.
5. A method for processing virtual resources is characterized by comprising the following steps:
sending a virtual resource set to a target server, wherein the virtual resource set comprises target virtual resources to be distributed and belonging to a first user account, and user accounts in the virtual live broadcast room comprise the first user account;
acquiring a second user account with a resource acceptance condition, wherein the second user account is determined by the target server from each user account in the virtual live broadcast room, and the resource acceptance condition is used for indicating that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room;
and responding to the request message of the second user account for the virtual resource set, and distributing the target virtual resource to the second user account.
6. An apparatus for processing virtual resources, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a virtual resource set sent by a first user account in a virtual live broadcast room, and the virtual resource set comprises target virtual resources to be distributed in the virtual live broadcast room;
a determining module, configured to determine a second user account with a resource acceptance condition from each user account in the virtual live broadcast room, where the resource acceptance condition is used to indicate that the second user account has a subscription relationship with a host account that creates the virtual live broadcast room, and the second user account is configured to allow receiving an account of the target virtual resource;
and the first distribution module is used for distributing the target virtual resource to the second user account through the virtual live broadcast room.
7. An apparatus for processing virtual resources, comprising:
the virtual live broadcast system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a virtual resource set to a target server, the virtual resource set comprises target virtual resources to be distributed, the target virtual resources belong to a first user account, and the user account in a virtual live broadcast room comprises the first user account;
a second obtaining module, configured to obtain a second user account with a resource acceptance condition, where the second user account is determined by the target server from each user account in the virtual live broadcast room, and the resource acceptance condition is used to indicate that the second user account has a subscription relationship with a main broadcast account for creating the virtual live broadcast room;
and the second distribution module is used for responding to the request message of the second user account for the virtual resource set and distributing the target virtual resource to the second user account.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of processing of virtual resources of any of claims 1 to 4 or 5.
9. A computer readable storage medium having instructions which, when executed by a processor of processing electronics of a virtual resource, enable the processing electronics of the virtual resource to perform the processing method of the virtual resource as claimed in any one of claims 1 to 4 or 5.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the method of processing a virtual resource according to any one of claims 1 to 4 or 5.
CN202110874341.1A 2021-07-30 2021-07-30 Virtual resource processing method and device, electronic equipment and storage medium Pending CN113781097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110874341.1A CN113781097A (en) 2021-07-30 2021-07-30 Virtual resource processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110874341.1A CN113781097A (en) 2021-07-30 2021-07-30 Virtual resource processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113781097A true CN113781097A (en) 2021-12-10

Family

ID=78836625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110874341.1A Pending CN113781097A (en) 2021-07-30 2021-07-30 Virtual resource processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113781097A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658040A (en) * 2016-12-19 2017-05-10 天脉聚源(北京)传媒科技有限公司 Resource distribution method and device
CN111246308A (en) * 2020-01-16 2020-06-05 广州酷狗计算机科技有限公司 Method and device for accessing live broadcast room, live broadcast server and storage medium
CN112188299A (en) * 2020-10-13 2021-01-05 北京达佳互联信息技术有限公司 Virtual resource processing method, device, terminal and storage medium
CN112261488A (en) * 2020-10-26 2021-01-22 腾讯科技(深圳)有限公司 Virtual article issuing method, device, storage medium and computer equipment
CN112351298A (en) * 2020-10-29 2021-02-09 腾讯科技(深圳)有限公司 Virtual resource processing method and device, storage medium and electronic equipment
WO2021109650A1 (en) * 2019-12-06 2021-06-10 广州华多网络科技有限公司 Virtual gift sending method, apparatus and device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658040A (en) * 2016-12-19 2017-05-10 天脉聚源(北京)传媒科技有限公司 Resource distribution method and device
WO2021109650A1 (en) * 2019-12-06 2021-06-10 广州华多网络科技有限公司 Virtual gift sending method, apparatus and device, and storage medium
CN111246308A (en) * 2020-01-16 2020-06-05 广州酷狗计算机科技有限公司 Method and device for accessing live broadcast room, live broadcast server and storage medium
CN112188299A (en) * 2020-10-13 2021-01-05 北京达佳互联信息技术有限公司 Virtual resource processing method, device, terminal and storage medium
CN112261488A (en) * 2020-10-26 2021-01-22 腾讯科技(深圳)有限公司 Virtual article issuing method, device, storage medium and computer equipment
CN112351298A (en) * 2020-10-29 2021-02-09 腾讯科技(深圳)有限公司 Virtual resource processing method and device, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
尤永康等: "《私有云架构设计与实践》", vol. 1, 31 December 2019, 上海交通大学出版社, pages: 37 - 40 *
狮城众创: "淘宝直播怎么设置粉丝亲密度?直播看点又是何方神圣?", pages 1 - 6, Retrieved from the Internet <URL:https://mp.weixin.qq.com/s/zEnrV3l-E1_RG2WEqfSbfA> *
电商运营团队: "直播间自定义"福袋"功能说明", pages 1 - 4, Retrieved from the Internet <URL:https://school.jinritemai.com/doudian/web/article/102101> *

Similar Documents

Publication Publication Date Title
US9686329B2 (en) Method and apparatus for displaying webcast rooms
CN104754284B (en) A kind of live broadcast of video conference method, equipment and system
CN108989264B (en) Live broadcast method, system and related equipment
US20180146362A1 (en) Data transmission method for edge multimedia broadcast/multicast service (mbms) service and related device
KR101202556B1 (en) Contact group dynamics in networked communication devices
CN105635180B (en) Information push method and device
CN111935536B (en) Live broadcast room request response method, device, equipment and storage medium
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
US9276882B2 (en) System and method for online fan meeting
US8203989B2 (en) Distributing content in a communication network
CN102790923A (en) User comment information sharing method, instant information server and user terminal
EP2533544A1 (en) Method and system for implementing message service in interactive iptv
CN108696364B (en) Request message processing method, chat room message server and chat room system
CN110856011A (en) Method for grouping live broadcast interaction, electronic equipment and storage medium
CN109847340B (en) Information processing method, device, equipment and medium
CN114339280A (en) Multimedia information transmission method and device applied to network teaching
CN114363281A (en) Message transmission method, system, device, storage medium and program product
CN107124660B (en) Method and device for triggering broadcast information of live broadcast room
CN111866440B (en) Method, device and equipment for pushing video data and storage medium
WO2019071857A1 (en) Method and device preventing gift giving on live streaming platform
CN113781097A (en) Virtual resource processing method and device, electronic equipment and storage medium
CN114501053B (en) Live stream acquisition method and device
CN108668151B (en) Audio and video interaction method and device
CN108668140B (en) Audio and video interaction state synchronization method and device
CN113115065B (en) Live broadcast-based data processing method and device

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