CN112270561A - Electronic resource distribution method and device, electronic equipment and storage medium - Google Patents

Electronic resource distribution method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112270561A
CN112270561A CN202011004221.8A CN202011004221A CN112270561A CN 112270561 A CN112270561 A CN 112270561A CN 202011004221 A CN202011004221 A CN 202011004221A CN 112270561 A CN112270561 A CN 112270561A
Authority
CN
China
Prior art keywords
electronic
account
electronic resource
total amount
target
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
CN202011004221.8A
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 CN202011004221.8A priority Critical patent/CN112270561A/en
Publication of CN112270561A publication Critical patent/CN112270561A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure shows an electronic resource issuing method, an electronic resource issuing device, electronic equipment and a storage medium, and the method comprises the steps of firstly receiving an electronic resource issuing request sent by a first account, wherein the electronic resource issuing request comprises the total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located; splitting the total amount of electronic resources according to the total amount of the electronic resources, the account number of the target live broadcast room and preset parameters to obtain a plurality of electronic resource packages; and then the electronic resources in the electronic resource packages are issued to a second account in the target live broadcast room. According to the method and the device, the electronic resources of the total amount can be split into the electronic resource packages dynamically according to the total amount of the electronic resources, the account number of the target live broadcast room and the preset parameters, so that more electronic resource packages are split in the large live broadcast room, the accounts can be robbed as many as possible, fewer electronic resource packages are split in the small live broadcast room, the electronic resource packages can be robbed up, and account experience is improved.

Description

Electronic resource distribution method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an electronic resource issuing method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of internet technology and the rapid popularization of intelligent terminals, live broadcast or live broadcast watching through the intelligent terminals becomes an increasingly popular entertainment mode among people. In order to enhance the live broadcast interaction, a red packet can be issued in the live broadcast room, that is, an electronic resource packet is issued in the live broadcast room in an online manner. The electronic resource may be a virtual coin, a gift, or a virtual resource that exists in an electronic account and supports communication between different accounts via the internet, such as electronic money.
In the related art, electronic resources issued in a live broadcast room are generally split into multiple shares, other accounts in the live broadcast room are robbed, and the user experience is poor due to the fact that the number of the split electronic resource packages is fixed. For example, for a large live broadcast room, the number of the electronic resource packages obtained by splitting is too small, the electronic resources are concentrated, and only a few people can rob the live broadcast room, most people cannot rob the live broadcast room, and the user experience is not good; for a small live broadcast room, the number of the electronic resource packages obtained by splitting is too large, the electronic resources are dispersed, and the red packages can not be robbed completely, which also affects the user experience.
Disclosure of Invention
The present disclosure provides an electronic resource issuing method, an electronic resource issuing device, an electronic device, and a storage medium, so as to at least solve the problem that an electronic resource package cannot be dynamically split in the related art.
The technical scheme of the disclosure is as follows:
according to a first aspect of the present disclosure, there is provided an electronic resource issuing method, the method including:
receiving an electronic resource issuing request sent by a first account, wherein the electronic resource issuing request comprises the total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located;
splitting the electronic resources of the total amount according to the total amount, the account number of the target live broadcast room and preset parameters to obtain a plurality of electronic resource packages, wherein the preset parameters are the preset account number of each electronic resource package obtained in the target live broadcast room;
and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
In an optional implementation manner, the splitting the electronic resources of the total amount according to the total amount, the account number of the target live broadcast room, and a preset parameter to obtain a plurality of electronic resource packages includes:
dividing the account number of the target live broadcast room by the preset parameter to obtain an initial number;
determining a target quantity according to the initial quantity and the total quantity, wherein the target quantity is the quantity of the electronic resource packages;
and distributing the total amount of electronic resources to the target number of electronic resource packages to obtain each electronic resource package.
In an optional implementation manner, the step of determining a target quantity according to the initial quantity and the total amount includes:
when the initial quantity is larger than a first preset threshold value and the first preset threshold value is smaller than or equal to the total amount, determining that the target quantity is the first preset threshold value;
when the initial quantity is larger than the first preset threshold value and the first preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
In an optional implementation manner, the step of determining a target quantity according to the initial quantity and the total amount further includes:
when the initial number is larger than a second preset threshold value and is smaller than or equal to the first preset threshold value and the total amount, determining the target number as the initial number;
and when the initial quantity is larger than the second preset threshold value and the total quantity and is smaller than or equal to the first preset threshold value, determining that the target quantity is the total quantity.
In an optional implementation manner, the step of determining a target quantity according to the initial quantity and the total amount further includes:
when the initial quantity is smaller than or equal to the second preset threshold and the second preset threshold is smaller than or equal to the total amount, determining that the target quantity is the second preset threshold;
when the initial quantity is smaller than or equal to the second preset threshold value and the second preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
In an optional implementation manner, after the step of splitting the electronic resource of the total amount according to the total amount, the account number of the target live broadcast room, and a preset parameter to obtain a plurality of electronic resource packages, before the step of issuing the electronic resource in the plurality of electronic resource packages to a second account in the target live broadcast room, the method further includes:
sending a display instruction to the second account, wherein the display instruction is used for indicating that the total amount of the electronic resources is displayed on a live interface of the second account and an acquisition countdown is used for indicating that the second account needs to wait for time before an acquisition request can be sent after receiving the display instruction;
receiving a obtaining request sent by the second account in response to the display instruction;
the step of issuing the electronic resources in the plurality of electronic resource packages to a second account in the target live broadcast room includes:
and responding to the acquisition request, and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
In an optional implementation manner, after the step of issuing the electronic resource in the plurality of electronic resource packages to the second account in the target live broadcast room, the method further includes:
and sending an acquisition result to the second account for displaying, wherein the acquisition result is used for indicating that the second account is not successfully acquired or is successfully acquired and the quantity of the successfully acquired electronic resources.
According to a second aspect of the present disclosure, there is provided an electronic resource issuing apparatus, the apparatus comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive an electronic resource issuing request sent by a first account, and the electronic resource issuing request comprises the total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located;
the splitting module is configured to split the electronic resources of the total amount according to the total amount, the account number of the target live broadcast room and preset parameters to obtain a plurality of electronic resource packages, wherein the preset parameters are the preset account number of each electronic resource package obtained in the target live broadcast room;
an issuance module configured to issue electronic resources within the plurality of electronic resource packages to a second account within the target live broadcast room.
In an optional implementation manner, the splitting module includes:
the calculation unit is configured to divide the account number of the target live broadcast room and the preset parameter to obtain an initial number;
a determining unit configured to determine a target number according to the initial number and the total amount, wherein the target number is the number of the electronic resource packages;
and the distribution unit is configured to distribute the total amount of the electronic resources to the target number of electronic resource packages to obtain each electronic resource package.
In an optional implementation manner, the determining unit is specifically configured to:
when the initial quantity is larger than a first preset threshold value and the first preset threshold value is smaller than or equal to the total amount, determining that the target quantity is the first preset threshold value;
when the initial quantity is larger than the first preset threshold value and the first preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
In an optional implementation, the determining unit is further configured to:
when the initial number is larger than a second preset threshold value and is smaller than or equal to the first preset threshold value and the total amount, determining the target number as the initial number;
and when the initial quantity is larger than the second preset threshold value and the total quantity and is smaller than or equal to the first preset threshold value, determining that the target quantity is the total quantity.
In an optional implementation, the determining unit is further configured to:
when the initial quantity is smaller than or equal to the second preset threshold and the second preset threshold is smaller than or equal to the total amount, determining that the target quantity is the second preset threshold;
when the initial quantity is smaller than or equal to the second preset threshold value and the second preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
In an optional implementation, the apparatus further includes:
a first sending module, configured to send a display instruction to the second account, where the display instruction is used to indicate that a total amount of the electronic resource is displayed on a live interface of the second account and an acquisition countdown is used to indicate a time that the second account needs to wait until an acquisition request can be sent after receiving the display instruction;
a second receiving module configured to receive a get request sent by the second account in response to the presentation instruction;
the issuance module is further configured to:
and responding to the acquisition request, and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
In an optional implementation, the apparatus further includes:
and the second sending module is configured to send a obtaining result to the second account for displaying, wherein the obtaining result is used for indicating that the second account is not obtained successfully or is obtained successfully and the quantity of the electronic resources obtained successfully.
According to a third aspect of the present disclosure, there is provided an electronic apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the electronic resource issuing method according to the first aspect.
According to a fourth aspect of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the electronic resource issuing method according to the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the electronic resource issuing method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the technical scheme of the disclosure provides an electronic resource issuing method, an electronic resource issuing device, electronic equipment and a storage medium, and the method comprises the steps of firstly receiving an electronic resource issuing request sent by a first account, wherein the electronic resource issuing request comprises the total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located; splitting the total amount of electronic resources according to the total amount of the electronic resources, the account number of the target live broadcast room and preset parameters to obtain a plurality of electronic resource packages; and then the electronic resources in the electronic resource packages are issued to a second account in the target live broadcast room. According to the technical scheme, the electronic resource of the total amount can be split into the electronic resource packages dynamically according to the total amount of the electronic resources, the account number of the target live broadcast room and the preset parameters, so that more electronic resource packages can be obtained through splitting in the large live broadcast room, the second accounts can be guaranteed to be robbed as many as possible, fewer electronic resource packages can be obtained through splitting in the small live broadcast room, the electronic resource packages can be guaranteed to be robbed up, and account experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating an electronic resource issuance method according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating an electronic resource issuance flow according to an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a splitting of an electronic resource in accordance with an exemplary embodiment.
Fig. 4 is a block diagram illustrating a structure of an electronic resource issuing apparatus according to an exemplary embodiment.
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 6 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.
Fig. 1 is a flowchart illustrating an electronic resource issuance method according to an exemplary embodiment, which may include the following steps, as shown in fig. 1.
In step S11, an electronic resource issuance request sent by the first account is received, where the electronic resource issuance request includes the total amount of the electronic resource requested to be issued and the target live broadcast room where the first account is located.
The execution subject of the embodiment may be an electronic device (e.g., a live application server).
The electronic resource may be electronic money, an electronic gift, a point, or a virtual coin used only in a certain broadcast platform, and the type of the electronic resource is not specifically limited in the embodiments of the present disclosure.
In a specific implementation, the first account sends an electronic resource issuance request to the server, and the server receives the electronic resource issuance request, where the electronic resource issuance request may include a total amount of the electronic resource requested to be issued by the first account and a target live broadcast room where the first account is located. Wherein the first account may be a main broadcasting account or a viewer account in the target live broadcasting room.
In step S12, splitting the electronic resource of the total amount according to the total amount, the account number of the target live broadcast room, and a preset parameter to obtain a plurality of electronic resource packages, where the preset parameter is the preset account number of each electronic resource package obtained in the target live broadcast room.
The preset parameters can represent that several accounts in the target live broadcast room acquire one electronic resource package, for example, the large live broadcast room can set the preset parameters to be 20, that is, 20 individuals acquire one electronic resource package, and the small live broadcast room can set the preset parameters to be 5, that is, 5 individuals acquire one electronic resource package. The specific value of the preset parameter may be set according to actual conditions, which is not limited in the embodiments of the present disclosure. The large live broadcast room and the small live broadcast room can be defined according to the statistical result of the number of people in each live broadcast room in the live broadcast platform, and the embodiment of the disclosure does not limit the number of people in each live broadcast room.
In a specific implementation, the server may first determine a target number for splitting the total amount of the electronic resources according to the total amount of the electronic resources, the account number of the target live broadcast room, and preset parameters, and then split the total amount of the electronic resources according to the target number, that is, allocate the total amount of the electronic resources to the target number of electronic resource packages, so as to obtain a plurality of electronic resource packages. The following embodiments will describe the specific splitting process in detail.
The account number of the target live broadcast room can be the online account number of the target live broadcast room. The electronic resource package contains a certain amount of electronic resources and is an electronic red package in a virtual form. The amount of electronic resources in the plurality of electronic resource packages may be the same or different, and is not limited in this disclosure.
In step S13, the electronic resource in the plurality of electronic resource packages is issued to a second account in the target live broadcast.
In an alternative implementation manner, the following steps may be further included after step S12 and before step S13: firstly, sending a display instruction to a second account, wherein the display instruction is used for indicating the total amount of electronic resources displayed on a live interface of the second account and acquiring countdown, and the acquiring countdown is used for indicating the time required by the second account to wait until an acquisition request can be sent after the display instruction is received; then, a obtaining request sent by the second account in response to the display instruction is received. In this implementation, step S13 may specifically include: and responding to the acquisition request, and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
Wherein the second account may be a main broadcasting account or a viewer account in the target live broadcasting room.
In a particular implementation, the server may randomly issue electronic resources within the plurality of electronic resource packages to a second account within the target live broadcast room.
In an optional implementation manner, after step S13, the method may further include: and sending the acquisition result to the second account for displaying, wherein the acquisition result is used for indicating that the second account is not successfully acquired or is successfully acquired and the quantity of the successfully acquired electronic resources.
Referring to fig. 2, a schematic diagram of an electronic resource issuance flow is shown. The first account (user a) sends an electronic resource issuing request (red packet request) to the server, the server creates a red packet containing a total amount of electronic resources (the electronic resources shown in fig. 2 are fast coins) in the database according to the electronic resource issuing request, and after creation is completed, a notification that creation of the red packet is successful is sent to the first account. When a newly created but not split red packet is inquired in the database, the server calculates the target quantity (split number) of the electronic resource packet according to the total quantity of the electronic resources, the account quantity of the target live broadcast room and preset parameters, then splits the electronic resources of the total quantity in the red packet according to the target quantity, and records the split result in the database after the splitting is completed. When the database is inquired that the electronic resource package to be distributed (red package splitting) is well split, a display instruction (red package display instruction) is issued to a second account (user B) to inform the second account that the red package (electronic resource of the total amount) can be preempted and countdown is started, when the countdown is finished, the second account can send an acquisition request (red package preempting request) to the server, the server responds to the acquisition request, randomly distributes the electronic resources in the electronic resource packages with the target quantity to the second account, and sends the acquisition result to the second account for displaying.
According to the electronic resource issuing method provided by the embodiment of the disclosure, the electronic resources of the total amount are dynamically split into the plurality of electronic resource packages according to the total amount of the electronic resources, the account number of the target live broadcast room and the preset parameters, so that more electronic resource packages can be split and obtained in the large live broadcast room, the second accounts can be guaranteed to be seized as much as possible, fewer electronic resource packages can be split and obtained in the small live broadcast room, the electronic resource packages can be guaranteed to be seized, and the user experience is improved.
In an optional implementation manner of this embodiment, referring to fig. 3, step S12 may specifically include:
and step S31, dividing the account number of the target live broadcast room by a preset parameter to obtain an initial number.
In a specific implementation, the preset parameters represent that several accounts in the target live broadcast room acquire one electronic resource package. Therefore, the number of accounts in the target live broadcast room is divided by the preset parameter, so that the initial number needing to be split can be obtained. The initial number may be obtained by rounding the division result.
And step S32, determining a target quantity according to the initial quantity and the total amount, wherein the target quantity is the quantity of the electronic resource packages.
In a specific implementation, the target number of the electronic resource packages that need to be split can be determined according to the initial number and the total amount of the electronic resources.
The step of determining the target number according to the initial number and the total amount may include at least one of the following steps:
when the initial quantity is larger than a first preset threshold value and the first preset threshold value is smaller than or equal to the total amount, determining that the target quantity is the first preset threshold value;
when the initial quantity is greater than a first preset threshold value, and the first preset threshold value is greater than the total quantity, determining the target quantity as the total quantity;
when the initial quantity is larger than a second preset threshold value and is smaller than or equal to a first preset threshold value and the total amount, determining the target quantity as the initial quantity;
when the initial number is larger than a second preset threshold value and the total amount and is smaller than or equal to a first preset threshold value, determining the target number as the total amount;
when the initial quantity is smaller than or equal to a second preset threshold value and the second preset threshold value is smaller than or equal to the total amount, determining that the target quantity is the second preset threshold value;
and when the initial quantity is smaller than or equal to a second preset threshold value and the second preset threshold value is larger than the total quantity, determining the target quantity as the total quantity.
The specific values of the first preset threshold and the second preset threshold may be set according to actual requirements, which is not limited in the embodiments of the present disclosure. The target number of electronic resource packs is calculated as shown in table 1 below. Wherein T1 is a first preset threshold, T2 is a second preset threshold, A is the total amount of the electronic resources, W is the account number of the target live broadcast room, B is a preset parameter, and | W/B | is the initial number.
TABLE 1 calculation of target quantities
Serial number Satisfies the conditions Target number
1 |W/B|>T1, and T1 is not more than A T1
2 |W/B|>T1, and T1 > A A
3 T1<T1 is less than or equal to | W/B |, and A is less than or equal to | W/B | |W/B|
4 T1<The | W/B | is less than or equal to T1, and | W/B | is more than A A
5 I W/B I is less than or equal to T2, and T2 is less than or equal to A T2
6 I W/B I is less than or equal to T2, and T2 is more than A A
The manner of determining the target number is exemplified below. Assume that the first preset threshold T1 is 10000 and the second preset threshold T2 is 2.
The account number W of the target live broadcast room is 100000, the preset parameter B is 5, the total amount a of the electronic resource is 10000, | W/B | 100000/5 is 20000, the condition 1 is met, and the target number is determined to be a first preset threshold T1, namely 10000;
the account number W of the target live broadcast room is 1000, the preset parameter B is 20, the total amount a of the electronic resources is 100, | W/B | 1000/20 is 50, the condition 3 is met, and the target number is determined to be the initial number | W/B |, namely 50;
the account number W of the target live broadcast room is 1000, the preset parameter B is 20, the total amount A of the electronic resources is 20, | W/B | -1000/20 is 50, the condition 4 is met, and the target number is determined to be the total amount A of the electronic resources, namely 20;
the account number W of the target live broadcast room is 10, the preset parameter B is 20, the total amount a of the electronic resources is 100, | W/B | -10/20 is 0.5, the condition 5 is met, and the target number is determined to be a second preset threshold T2, that is, 2.
And step S33, distributing the total amount of electronic resources to the electronic resource packages with the target amount to obtain each electronic resource package.
In a specific implementation, the total amount of electronic resources may be randomly allocated to the target amount of electronic resource packages, so as to complete splitting of the total amount of electronic resources, and obtain the target amount of electronic resource packages.
The electronic resource issuing method provided by the embodiment can dynamically calculate the target number of the electronic resource package according to the account number of the target live broadcast room, the total amount of the electronic resource and the preset parameters, so that the electronic resource package is ensured to be more in number in the large live broadcast room, more people can rob the electronic resource package, and the electronic resource package is fewer in number in the small live broadcast room, so that the electronic resource package can be robbed up.
Fig. 4 is a block diagram illustrating an electronic resource issuing apparatus according to an example embodiment. Referring to fig. 4, may include:
a first receiving module 401, configured to receive an electronic resource issuing request sent by a first account, where the electronic resource issuing request includes a total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located;
a splitting module 402, configured to split the electronic resource of the total amount according to the total amount, the account number of the target live broadcast room, and a preset parameter, to obtain a plurality of electronic resource packages, where the preset parameter is a preset account number for obtaining each electronic resource package in the target live broadcast room;
an issuance module 403 configured to issue electronic resources within the plurality of electronic resource packages to a second account within the target live broadcast.
In an alternative implementation, the splitting module 402 includes:
the calculation unit is configured to divide the account number of the target live broadcast room and the preset parameter to obtain an initial number;
a determining unit configured to determine a target number according to the initial number and the total amount, wherein the target number is the number of the electronic resource packages;
and the distribution unit is configured to distribute the total amount of the electronic resources to the target number of electronic resource packages to obtain each electronic resource package.
In an optional implementation manner, the determining unit is specifically configured to:
when the initial quantity is larger than a first preset threshold value and the first preset threshold value is smaller than or equal to the total amount, determining that the target quantity is the first preset threshold value;
when the initial quantity is larger than the first preset threshold value and the first preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
In an optional implementation, the determining unit is further configured to:
when the initial number is larger than a second preset threshold value and is smaller than or equal to the first preset threshold value and the total amount, determining the target number as the initial number;
and when the initial quantity is larger than the second preset threshold value and the total quantity and is smaller than or equal to the first preset threshold value, determining that the target quantity is the total quantity.
In an optional implementation, the determining unit is further configured to:
when the initial quantity is smaller than or equal to the second preset threshold and the second preset threshold is smaller than or equal to the total amount, determining that the target quantity is the second preset threshold;
when the initial quantity is smaller than or equal to the second preset threshold value and the second preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
In an optional implementation, the apparatus further includes:
a first sending module, configured to send a display instruction to the second account, where the display instruction is used to indicate that a total amount of the electronic resource is displayed on a live interface of the second account and an acquisition countdown is used to indicate a time that the second account needs to wait until an acquisition request can be sent after receiving the display instruction;
a second receiving module configured to receive a get request sent by the second account in response to the presentation instruction;
the issuance module is further configured to:
and responding to the acquisition request, and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
In an optional implementation, the apparatus further includes:
and the second sending module is configured to send a obtaining result to the second account for displaying, wherein the obtaining result is used for indicating that the second account is not obtained successfully or is obtained successfully and the quantity of the electronic resources obtained successfully.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram of one type of electronic device 800 shown in the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the electronic resource issuance method described in any embodiment. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the electronic resource issuing methods described in any of the embodiments.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the electronic resource issuance method according to any one of the embodiments is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising readable program code executable by the processor 820 of the device 800 to perform the electronic resource issuing method according to any of the embodiments. Alternatively, the program code may be stored in a storage medium of the apparatus 800, which may be a non-transitory computer readable storage medium, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Fig. 6 is a block diagram of one type of electronic device 1900 shown in the present disclosure. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 6, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the electronic resource issuance method according to any of the embodiments.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system, such as Windows Server, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, or the like, stored in memory 1932.
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 disclosure 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. An electronic resource issuing method, characterized by comprising:
receiving an electronic resource issuing request sent by a first account, wherein the electronic resource issuing request comprises the total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located;
splitting the electronic resources of the total amount according to the total amount, the account number of the target live broadcast room and preset parameters to obtain a plurality of electronic resource packages, wherein the preset parameters are the preset account number of each electronic resource package obtained in the target live broadcast room;
and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
2. The method for issuing electronic resources according to claim 1, wherein the step of splitting the electronic resources in the total amount according to the total amount, the account number of the target live broadcast room, and preset parameters to obtain a plurality of electronic resource packages includes:
dividing the account number of the target live broadcast room by the preset parameter to obtain an initial number;
determining a target quantity according to the initial quantity and the total quantity, wherein the target quantity is the quantity of the electronic resource packages;
and distributing the total amount of electronic resources to the target number of electronic resource packages to obtain each electronic resource package.
3. The electronic resource dispensing method as claimed in claim 2, wherein said step of determining a target quantity based on said initial quantity and said total amount comprises:
when the initial quantity is larger than a first preset threshold value and the first preset threshold value is smaller than or equal to the total amount, determining that the target quantity is the first preset threshold value;
when the initial quantity is larger than the first preset threshold value and the first preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
4. The electronic resource dispensing method as claimed in claim 3, wherein said step of determining a target quantity based on said initial quantity and said total amount further comprises:
when the initial number is larger than a second preset threshold value and is smaller than or equal to the first preset threshold value and the total amount, determining the target number as the initial number;
and when the initial quantity is larger than the second preset threshold value and the total quantity and is smaller than or equal to the first preset threshold value, determining that the target quantity is the total quantity.
5. The electronic resource dispensing method as claimed in claim 4, wherein said step of determining a target quantity based on said initial quantity and said total amount further comprises:
when the initial quantity is smaller than or equal to the second preset threshold and the second preset threshold is smaller than or equal to the total amount, determining that the target quantity is the second preset threshold;
when the initial quantity is smaller than or equal to the second preset threshold value and the second preset threshold value is larger than the total quantity, determining that the target quantity is the total quantity.
6. The method for issuing electronic resources according to any one of claims 1 to 5, wherein after the step of splitting the electronic resources of the total amount according to the total amount, the account number of the target live broadcast room, and a preset parameter to obtain a plurality of electronic resource packages, before the step of issuing the electronic resources in the plurality of electronic resource packages to the second account in the target live broadcast room, the method further includes:
sending a display instruction to the second account, wherein the display instruction is used for indicating that the total amount of the electronic resources is displayed on a live interface of the second account and an acquisition countdown is used for indicating that the second account needs to wait for time before an acquisition request can be sent after receiving the display instruction;
receiving a obtaining request sent by the second account in response to the display instruction;
the step of issuing the electronic resources in the plurality of electronic resource packages to a second account in the target live broadcast room includes:
and responding to the acquisition request, and issuing the electronic resources in the electronic resource packages to a second account in the target live broadcast room.
7. The electronic resource issuance method according to any one of claims 1 to 5, further comprising, after the step of issuing the electronic resource in the plurality of electronic resource packages to the second account in the target live broadcast room:
and sending an acquisition result to the second account for displaying, wherein the acquisition result is used for indicating that the second account is not successfully acquired or is successfully acquired and the quantity of the successfully acquired electronic resources.
8. An electronic resource issuing apparatus, characterized in that the apparatus comprises:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive an electronic resource issuing request sent by a first account, and the electronic resource issuing request comprises the total amount of electronic resources requested to be issued and a target live broadcast room where the first account is located;
the splitting module is configured to split the electronic resources of the total amount according to the total amount, the account number of the target live broadcast room and preset parameters to obtain a plurality of electronic resource packages, wherein the preset parameters are the preset account number of each electronic resource package obtained in the target live broadcast room;
an issuance module configured to issue electronic resources within the plurality of electronic resource packages to a second account within the target live broadcast room.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the electronic resource issuing method according to any one of claims 1 to 7.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the electronic resource issuing method according to any one of claims 1 to 7.
CN202011004221.8A 2020-09-22 2020-09-22 Electronic resource distribution method and device, electronic equipment and storage medium Pending CN112270561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011004221.8A CN112270561A (en) 2020-09-22 2020-09-22 Electronic resource distribution method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011004221.8A CN112270561A (en) 2020-09-22 2020-09-22 Electronic resource distribution method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112270561A true CN112270561A (en) 2021-01-26

Family

ID=74349282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011004221.8A Pending CN112270561A (en) 2020-09-22 2020-09-22 Electronic resource distribution method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112270561A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077280A (en) * 2021-02-05 2021-07-06 北京达佳互联信息技术有限公司 Electronic resource allocation method and device, electronic equipment and storage medium
CN113286158A (en) * 2021-04-30 2021-08-20 北京达佳互联信息技术有限公司 Electronic resource distribution method and device and electronic equipment
CN113992930A (en) * 2021-10-28 2022-01-28 广州方硅信息技术有限公司 Virtual resource conversion method and device, live broadcast system, equipment and storage medium
CN115396681A (en) * 2022-07-06 2022-11-25 苏州达家迎信息技术有限公司 Account management method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196254A1 (en) * 2018-04-10 2019-10-17 平安科技(深圳)有限公司 Electronic resource packet processing method and apparatus, terminal device and medium
CN110753235A (en) * 2019-10-29 2020-02-04 北京字节跳动网络技术有限公司 Live broadcast room red packet processing method and device, medium and electronic equipment
CN111147881A (en) * 2019-12-31 2020-05-12 北京达佳互联信息技术有限公司 Electronic resource distribution method and device in live broadcast, storage medium and equipment
CN111479120A (en) * 2020-04-07 2020-07-31 广州酷狗计算机科技有限公司 Method, device, equipment and storage medium for issuing virtual red packet in live broadcast room
CN111489195A (en) * 2020-04-03 2020-08-04 京东数字科技控股有限公司 Article distribution control method, device and system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196254A1 (en) * 2018-04-10 2019-10-17 平安科技(深圳)有限公司 Electronic resource packet processing method and apparatus, terminal device and medium
CN110753235A (en) * 2019-10-29 2020-02-04 北京字节跳动网络技术有限公司 Live broadcast room red packet processing method and device, medium and electronic equipment
CN111147881A (en) * 2019-12-31 2020-05-12 北京达佳互联信息技术有限公司 Electronic resource distribution method and device in live broadcast, storage medium and equipment
CN111489195A (en) * 2020-04-03 2020-08-04 京东数字科技控股有限公司 Article distribution control method, device and system and storage medium
CN111479120A (en) * 2020-04-07 2020-07-31 广州酷狗计算机科技有限公司 Method, device, equipment and storage medium for issuing virtual red packet in live broadcast room

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077280A (en) * 2021-02-05 2021-07-06 北京达佳互联信息技术有限公司 Electronic resource allocation method and device, electronic equipment and storage medium
CN113286158A (en) * 2021-04-30 2021-08-20 北京达佳互联信息技术有限公司 Electronic resource distribution method and device and electronic equipment
CN113992930A (en) * 2021-10-28 2022-01-28 广州方硅信息技术有限公司 Virtual resource conversion method and device, live broadcast system, equipment and storage medium
CN113992930B (en) * 2021-10-28 2023-10-03 广州方硅信息技术有限公司 Virtual resource conversion method, device, live broadcast system, equipment and storage medium
CN115396681A (en) * 2022-07-06 2022-11-25 苏州达家迎信息技术有限公司 Account management method and device, storage medium and electronic equipment
CN115396681B (en) * 2022-07-06 2024-03-15 苏州达家迎信息技术有限公司 Account management method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN106534994B (en) Live broadcast interaction method and device
CN112270561A (en) Electronic resource distribution method and device, electronic equipment and storage medium
CN112468833B (en) Live broadcast interactive information processing method, device, terminal, server and storage medium
CN111866594B (en) Live broadcast platform interaction method and device, electronic equipment and storage medium
CN107343030B (en) Information pushing method, device and system
EP2988205A1 (en) Method and device for transmitting image
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN108335135B (en) Multimedia content sharing method and device
CN107316207B (en) Method and device for acquiring display effect information
CN107247794B (en) Topic guiding method in live broadcast, live broadcast device and terminal equipment
CN112256380A (en) Interactive page display method and device, electronic equipment and storage medium
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN112685599A (en) Video recommendation method and device
CN110913276A (en) Data processing method, device, server, terminal and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN110769311A (en) Method, device and system for processing live data stream
CN115499438A (en) Task allocation method and device, electronic equipment and storage medium
CN110769275A (en) Method, device and system for processing live data stream
CN112291581B (en) Server, terminal equipment, information processing method and device
CN112035246B (en) Method, device and system for acquiring virtual resources, electronic equipment and storage medium
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN113868562A (en) Resource acquisition method, device, system, electronic equipment and readable storage medium
CN113434289A (en) Cloud host distribution method and device, electronic equipment and storage medium
CN110113256B (en) Information interaction method and device, server, user terminal and readable storage medium
CN113709572A (en) Content promotion method and device, electronic equipment and storage medium

Legal Events

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