CN110070400B - Live broadcast room lottery drawing and awarding method and system - Google Patents

Live broadcast room lottery drawing and awarding method and system Download PDF

Info

Publication number
CN110070400B
CN110070400B CN201910351288.XA CN201910351288A CN110070400B CN 110070400 B CN110070400 B CN 110070400B CN 201910351288 A CN201910351288 A CN 201910351288A CN 110070400 B CN110070400 B CN 110070400B
Authority
CN
China
Prior art keywords
ticket
server
code
winning
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.)
Active
Application number
CN201910351288.XA
Other languages
Chinese (zh)
Other versions
CN110070400A (en
Inventor
陈慕仪
吴大庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201910351288.XA priority Critical patent/CN110070400B/en
Publication of CN110070400A publication Critical patent/CN110070400A/en
Application granted granted Critical
Publication of CN110070400B publication Critical patent/CN110070400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • 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/0239Online discounts or incentives

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a lottery drawing and awarding method and system in a live broadcast room. The method comprises the following steps: the lottery drawing server acquires a ticket code to be drawn in a live broadcast room, and provides prize information corresponding to the ticket code for audiences in the live broadcast room so that the audiences in the live broadcast room draw a lottery; the ticket server acquires the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server; the ticket server identifies the business server to which the target ticket code belongs according to the type of the target ticket code, and provides the information of the winning audience and the target ticket code to the corresponding business server; and the service server distributes the prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code. The method and the system do not need to develop a set of lottery drawing and award codes for each lottery drawing service, have universality and reduce the development period and the development workload.

Description

Live broadcast room lottery drawing and awarding method and system
Technical Field
The embodiment of the invention relates to a live broadcast technology, in particular to a live broadcast room lottery drawing and awarding method and system.
Background
In the process of anchor live broadcast, in order to increase the heat of a live broadcast room, prizes are issued to audiences in the live broadcast room at variable time, and most prizes are issued in a lottery mode.
At present, in order to increase the interest of lottery drawing, the prize forms are various, the lottery drawing services are complex, each lottery drawing service needs to be correspondingly developed with one set of codes, the development period is long, and the workload is large.
Disclosure of Invention
The embodiment of the invention provides a lottery drawing and awarding method and system for a live broadcast room, which aim to reduce the development period of lottery drawing services and reduce the development workload.
In a first aspect, an embodiment of the present invention provides a live broadcast room lottery drawing and awarding method, including:
the lottery drawing server acquires a ticket code to be drawn in a live broadcast room, and provides prize information corresponding to the ticket code for audiences in the live broadcast room so that the audiences in the live broadcast room draw a lottery;
the ticket server acquires the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server; and the number of the first and second groups,
the ticket server identifies the business server to which the target ticket code belongs according to the type of the target ticket code, and provides the information of the winning audience and the target ticket code to the corresponding business server;
and the service server distributes the prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code.
In a second aspect, an embodiment of the present invention further provides a live broadcast room lottery drawing and awarding system, including:
the lottery drawing server is used for acquiring the ticket codes to be drawn in the live broadcast room and providing the prize information corresponding to the ticket codes for the audiences in the live broadcast room so as to draw a lottery for the audiences in the live broadcast room;
the ticket server is used for acquiring the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server; and the number of the first and second groups,
the ticket server is used for identifying the business server to which the target ticket code belongs according to the type of the target ticket code and providing the information of the winning audience and the target ticket code to the corresponding business server;
and the business server is used for issuing a prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code.
The embodiment of the invention provides a general lottery drawing and awarding method based on ticket codes, wherein different types of ticket codes correspond to different business servers, and further, the ticket server identifies the business server to which the target ticket codes belong according to the types of the target ticket codes drawn by audiences, and provides the information of winning audiences and the target ticket codes to the corresponding business server, so that the business server can give prizes corresponding to the target ticket codes to the winning audiences when awarding, a set of lottery drawing and awarding codes do not need to be developed for each lottery drawing business, and the general lottery drawing and awarding method has universality. In a scene that lottery drawing services need to be added, only the type of the newly added ticket codes is needed, the corresponding service server is identified, prizes can be distributed by the corresponding service server, the newly added lottery drawing service development codes are not needed, and the development period and the development workload are reduced.
Drawings
Fig. 1 is a flowchart of a lottery drawing and awarding method in a live broadcast room according to an embodiment of the present invention;
fig. 2 is a flowchart of a lottery drawing and awarding method in a live broadcast room according to a second embodiment of the present invention;
fig. 3 is a flowchart of a lottery drawing and awarding method in a live broadcast room according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a live broadcast room lottery drawing and awarding system according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a lottery drawing and awarding method in a live broadcast room according to an embodiment of the present invention, and this embodiment is applicable to a case where a lottery drawing and an awarding are performed in a main broadcast room. The method may be cooperatively performed by a lottery server, a ticket server and a service server. With reference to fig. 1, the method provided by this embodiment includes the following operations:
s110, the lottery drawing server obtains the ticket codes to be drawn in the live broadcast room, and provides the prize information corresponding to the ticket codes for the audience in the live broadcast room so as to allow the audience in the live broadcast room to draw a lottery.
The ticket code is essentially a string of characters, and different types of ticket codes correspond to different types of prizes. For example, the ticket code a111 corresponds to an entity prize such as a throw pillow, a doll, or a mobile phone; the ticket code B111 corresponds to game virtual prizes such as hero characters, hero skins or hero equipment; the ticket code C111 corresponds to a privileged prize such as a general member, VIP, or a noble.
The anchor sets up the prize information in this lottery activity in the live broadcast room, obtains the ticket code of the ticket of waiting to draw according to the corresponding relation of prize information and ticket code. Optionally, the number of ticket codes to be extracted is at least one, displayed in a prize list in the live room.
After the anchor starts lottery drawing, the lottery drawing server sends prize information corresponding to the ticket codes to audience side equipment so as to show the prize information to audiences in a live broadcast room; and performs a lottery operation according to the lottery rule. After the lottery is finished, the lottery server selects the information of the winning audience and the lottery ticket code drawn by the winning audience, and provides the information to the lottery ticket server. The information of the winning audience includes, but is not limited to, the number, nickname and living address of the winning audience. For ease of description and differentiation, the ticket code drawn by the winning audience is referred to as the target ticket code.
And S120, the ticket server acquires the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server.
S130, the ticket server identifies the business server to which the target ticket code belongs according to the type of the target ticket code, and provides the information of the winning audience and the target ticket code to the corresponding business server.
Different ticket code types correspond to different lottery services, specifically to different lottery service IDs, and the lottery services with different IDs are executed by different service servers. For example, the ticket code corresponding to the entity award belongs to the entity service server, the ticket code corresponding to the virtual award belongs to the game virtual service server, and the ticket code corresponding to the privileged award belongs to the privileged service server.
And the ticket server extracts the service server address corresponding to the type of the target ticket code from the configuration file. The configuration file is configured with the corresponding relation between the type of the ticket code and the address of the service server. The service server address includes a port address, a Media Access Control (MAC) address, or an Internet Protocol (IP) address.
After the business server to which the target ticket code belongs is identified, the ticket server provides the information of the winning audience and the target ticket code to the corresponding business server according to the address of the business server. For example, the ticket server provides "viewer xx has drawn the C111 ticket code" to the privileged service server.
S140, the service server issues the prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code.
In this embodiment, each service server is integrated with a lottery rule for its own service, and the prize issuing operation is executed by a specific service server according to the lottery rule. For example, the entity service server purchases entity prizes in advance, and mails the entity prizes to the winning audience according to the address of the winning audience when the winning the prizes; the game virtual service server recharges the virtual prize to the game account of the winning audience when the winning prize; and when the privilege service server sends out the prizes, corresponding privileges are opened for the live broadcast accounts of the winning audience.
The embodiment of the invention provides a general lottery drawing and awarding method based on ticket codes, wherein different types of ticket codes correspond to different business servers, and further, the ticket server identifies the business server to which the target ticket codes belong according to the types of the target ticket codes drawn by audiences, and provides the information of winning audiences and the target ticket codes to the corresponding business server, so that the business server can give prizes corresponding to the target ticket codes to the winning audiences when awarding, a set of lottery drawing and awarding codes do not need to be developed for each lottery drawing business, and the general lottery drawing and awarding method has universality. In a scene that lottery service needs to be added, only the type of the newly added ticket code is needed to identify the corresponding service server, the corresponding service server can issue prizes, and the newly added lottery service development code is not needed, so that the development period and the development workload are reduced.
Example two
Fig. 2 is a flowchart of a lottery drawing and awarding method in a live broadcast room according to a second embodiment of the present invention. This embodiment further optimizes various alternative implementations of the above-described embodiments. The embodiment limits the operation that the service server distributes the prizes through the prize receiving link, so that the time for receiving the prizes can be freely set by the prize audience. With reference to fig. 2, the method provided by this embodiment includes the following operations:
s210, the lottery drawing server obtains the ticket codes to be drawn in the live broadcast room, and provides the prize information corresponding to the ticket codes for the audience in the live broadcast room so as to allow the audience in the live broadcast room to draw a lottery.
S220, the ticket server obtains the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server.
S230, the ticket server identifies the business server to which the target ticket code belongs according to the type of the target ticket code, and provides the information of the winning audience and the target ticket code to the corresponding business server.
Optionally, after the ticket server obtains the target ticket code, it first verifies whether the target ticket code is legal, and if so, executes S230; if not, the operation is ended.
Next, the generation process of the ticket code will be described first, and then, the validity verification process of the ticket code will be described based on the generation process of the ticket code.
The generation process of the ticket code includes the following seven steps.
The first step is as follows: the number Len of the segments of the password segments in the ticket code and the number x of the characters of each password segment are preset. Let Len be 3 and x be 1.
The second step is that: selecting a character set comprising any number and Chinese and English characters, wherein the number of the character set is a binary system. Assume the character set is "0-9, A-Z", 36-ary.
The third step: and randomly switching the sequence Len times for the character set selected in the second step, and taking the first N bits of the character set after each sequence switching to obtain Len N-bit cipher tables. Assuming that N is 10, the resulting cipher table is: 6A8KHP0F 1D; p5NMD94 RFT; SF5C3YB5A 0.
The fourth step: and similarly to the third step, randomly switching the character set for 1 time, and taking the first N bits of the character set to obtain 1 check table with N bits. Assume the calibration table is: IJ4SM3QW 4A.
The fifth step: and acquiring a self-increment id, and converting the self-increment id into a Len-bit N-system number. Then, the N-ary number is obfuscated according to an obfuscating rule to obtain an obfuscated number. Assume the obfuscation rule is: the number of the ith bit of the confusion number is the sum of the ith bit of the N-ary number and the following number, and the sum is left according to N. For example, 111 is aliased for 001, 100 is aliased for 100, and 321 is aliased for 111.
Assuming that the self-increment id is 123, the conversion to a 3-bit 10-ary number is still 123, and the 123 is obfuscated to obtain 653.
And a sixth step: and encrypting the confusion number to obtain a 1-bit check code. The encryption rule may be an arbitrarily set rule, for example, an average value of the confusion number per bit is left to Len. Assume that 653 is processed according to the encryption rules to get check code 1.
The seventh step: and taking each confusion number as the serial number of the characters in each section of the cipher table, and extracting the characters with the corresponding serial numbers from each section of the cipher table to form the cipher section. And taking the check code as the serial number of the character in the check table, and extracting the character with the corresponding serial number from the check table to obtain a check segment.
Assuming that the serial numbers of the characters in each section of the cipher table and the check table are 0-9, a 6 th character 0 is extracted from the 1 st cipher table, a 5 th character 9 is extracted from the 2 nd cipher table, and a 3 rd character C is extracted from the 3 rd cipher table to form a cipher section 09C. And then, extracting the No. 1 character J from the checking table to obtain a checking section. The resulting ticket code includes a verification segment and a password segment, i.e., J09C.
Based on the generation process of the ticket code, the validity verification process of the ticket code comprises the following four steps.
The first step is as follows: and the ticket server verifies the code section of the target ticket code in a preset code table to obtain the confusion number.
Firstly, searching each digit of a password segment in a password table, and if the password which cannot be searched exists, verifying that the target coupon code is illegal; if the characters are found, the character sequence numbers are extracted to form the confusion number. Assuming that the ticket code is J09C and the password segment is 09C, the obfuscation number 653 is found in the password segment.
The second step is that: and the ticket server encrypts the confusion number to obtain a check code.
And encrypting the confusion number 653 according to the encryption rule in the sixth step to obtain the check code 1.
The third step: and the ticket server searches a check section corresponding to the check code in a preset check table.
And taking the check code as a serial number, and searching characters corresponding to the serial number in a check table to obtain a check segment. Assume that a check segment J is obtained.
The fourth step: if the check section corresponding to the check code is consistent with the check section of the target ticket code, the ticket server verifies that the target ticket code is legal; on the contrary, if the verification section corresponding to the verification code is inconsistent with the verification section of the target ticket code, the target ticket code is verified to be illegal.
The ticket code provided in this embodiment is a lightweight code generated from the self-increment id, the password table, and the check table, and the type of the ticket code cannot be directly acquired from the ticket code. According to the service requirement, the type can be analyzed from the ticket code so as to smoothly identify the service server. Based on the above, the corresponding relation between the ticket code and the type is stored in the database in advance, so that the type is hidden in the ticket code in a form of storing the corresponding relation. Similarly, the database can also store the corresponding relation between the ticket code and the information such as the key, the specific business service, the winning amount and the like so as to hide more information and meet various business requirements.
Based on the above analysis, the ticket server searches the database for the type of the target ticket code according to the target ticket code when performing S230. And identifying the business server to which the target ticket code belongs according to the type of the target ticket code.
S240, the service server writes the information of the winning audience and the target ticket code into a prize drawing link and sends the prize drawing link to the winning audience.
Optionally, in order to avoid revealing the information of the winning audience and the target ticket code, the service server encrypts the information of the winning audience and the target ticket code to obtain an encryption string, and writes the encryption string into the prize-receiving link, where the prize-receiving link may be a Uniform Resource Locator (URL). The winning audience is then sent the winning audience by writing the winning link into the user's private letter and sending the winning audience the user's private letter. The way of the user private letter can effectively prevent the prize drawing link from being stolen.
And S250, the service server responds to the triggering operation of the winning audience on the winning prize link, and provides a winning prize interface for the winning audience to draw the prize corresponding to the target ticket code according to the information of the winning audience on the winning prize interface.
When the prize winning audience wants to receive the prize, the user private letter can be opened, and the prize receiving link is triggered. And the business server responds to the triggering operation of the winning audience on the prize receiving link, decrypts the target ticket code and the information of the winning audience from the encrypted string, and provides the target ticket code to the ticket server.
Specifically, the service server triggers an H5 analysis layer, the target ticket code and the information of the winning audience are decrypted from the encryption string through an H5 analysis layer, and the H5 analysis layer provides the target ticket code and the information of the winning audience to the service server. The business server then provides the target ticket code and the winning audience information to the ticket server.
The ticket server first verifies whether the target ticket code is legal, and the process of verifying the legality is described in detail in the above description, which is not described herein again. If the target ticket code is illegal, the operation is ended; and if the target ticket code is legal, informing the service server to provide a prize drawing interface for the winning audience. Then, the service server provides the winning audience with an H5 interface for winning the prize, and an input box on which information of the winning audience is displayed on an H5 interface. The information input by the audience is compared with the information of the audience decrypted from the encryption string by the service server, and if the information is consistent with the information of the audience, the prize corresponding to the target ticket code is issued to the audience.
In an alternative embodiment, the correspondence between the ticket code and the prize information is stored in advance in a database, and the prize information is hidden in the ticket code in a form in which the correspondence is stored. Then, before the ticket server informs the service server to provide a prize drawing interface for the winning audience, the ticket server firstly searches the prize information corresponding to the target ticket code in the database according to the target ticket code, and then provides the prize information corresponding to the target ticket code to the service server. Further, the service server provides a prize page based on the received information of the winning audience and the prize information.
In the embodiment, the prize drawing link is sent to the prize drawing audience, so that the time for drawing the prize can be freely set by the prize drawing audience, instead of immediately issuing the prize after completing lottery drawing, and the convenience of prize drawing is improved; the lightweight ticket code provided by the embodiment is composed of the password section and the verification section, is not easy to crack, and can hide type and prize information in a form stored through a corresponding relationship, so that the information security is ensured.
EXAMPLE III
Fig. 3 is a flowchart of a live broadcast room lottery drawing and awarding method according to a third embodiment of the present invention. On the basis of the above embodiments, the present embodiment describes in detail a lottery drawing process using a ticket code in combination with a specific application scenario.
And S310, starting. If the anchor has purchased the ticket code in advance, go to S320; if the anchor has not previously purchased the ticket code, S330 is performed.
And S320, the lottery server responds to the lottery drawing request of the anchor in the live broadcast room and acquires the ticket code to be drawn in the live broadcast room. Execution continues with S350.
The ticket code in this embodiment is generated by the ticket server in advance according to the prize information to be distributed by the anchor and returned to the anchor terminal. Then, when the anchor needs to start lottery, firstly, a lottery drawing request is sent to the lottery drawing server, the lottery drawing server returns a lottery drawing panel for configuring prize information to the anchor side terminal, the lottery drawing panel displays a ticket code list, and the anchor can directly select the ticket code to be drawn.
Optionally, the lottery server provides the anchor information to the ticket server in response to a lottery request of the anchor in the live broadcast room, and the ticket server inquires whether the anchor has the authority of lottery by using the ticket code according to the anchor information. If the anchor has the authority, the anchor side terminal is informed to select the ticket code to be extracted; if the anchor has the authority, the anchor side terminal is notified that lottery drawing using the ticket code is impossible.
S330, the lottery drawing server responds to the lottery drawing request of the anchor broadcast in the live broadcast room and obtains prize information to be released in the live broadcast room. Execution continues with S340.
When the anchor needs to start lottery, firstly, a lottery drawing request is sent to the lottery drawing server, the lottery drawing server returns a lottery drawing panel used for configuring prize information to the anchor side terminal, and a prize information list is displayed on the lottery drawing panel. The anchor selects prize information to be drawn from the list of prize information.
Optionally, the lottery server provides the anchor information to the ticket server in response to a lottery request of the anchor in the live broadcast room, and the ticket server inquires whether the anchor has the authority of lottery by using the ticket code according to the anchor information. If the anchor has the authority, the anchor side terminal is informed to select the prize information to be extracted; if the anchor has the authority, the anchor side terminal is notified that lottery drawing using the ticket code is impossible.
S340, the lottery drawing server provides the prize information to the ticket server, and obtains the ticket code corresponding to the prize information from the ticket server.
And after the host selects the prize information, sending the prize information to the lottery drawing server. And the lottery server automatically acquires the corresponding ticket code from the ticket server according to the prize information and returns the acquired ticket code to the terminal of the anchor side. And after receiving the ticket code, the terminal at the anchor side automatically writes the ticket code into the lottery drawing panel as the ticket code to be drawn. And if the lottery server fails to acquire the corresponding ticket code from the ticket server, for example, the balance of the anchor or the popularity of the live broadcast room is insufficient, ending the lottery operation.
And S350, the ticket server acquires the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server.
S360, the ticket server identifies the business server to which the target ticket code belongs according to the type of the target ticket code, and provides the information of the winning audience and the target ticket code to the corresponding business server;
and S370, the service server issues the prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code.
In this embodiment, the terminal on the anchor side adopts the ticket code to draw a lottery, when the anchor wants to add a lottery variety class, the new ticket code is directly obtained from the ticket server, and the type and prize information corresponding to the new ticket code are configured in the ticket server.
Example four
Fig. 4 is a schematic structural diagram of a live broadcast room lottery drawing and awarding system according to a fourth embodiment of the present invention. The present embodiment is applicable to a case where lottery drawing and award dispensing are performed between anchor broadcasters. Referring to fig. 4, the system includes a lottery server, a ticket server, and a service server. Wherein, the number of the service servers is at least two, fig. 4 shows 3 service servers, which are respectively an entity service server, a game virtual service server and a privileged service server.
The lottery drawing server is in communication connection with the anchor side terminal and the audience side terminal respectively and is used for obtaining the ticket codes to be drawn of the live broadcast room and providing the prize information corresponding to the ticket codes for the audience of the live broadcast room so as to allow the audience of the live broadcast room to draw lottery.
The ticket server is in communication connection with the lottery server and is used for acquiring the information of the winning audience and the target ticket code drawn by the winning audience from the lottery server; and identifying the service server to which the target ticket code belongs according to the type of the target ticket code, and providing the information of the winning audience and the target ticket code to the corresponding service server.
And the business server is respectively in communication connection with the ticket server and the audience side terminal and is used for issuing a prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code.
The embodiment of the invention provides a general lottery drawing and awarding method based on ticket codes, wherein different types of ticket codes correspond to different business servers, and further, the ticket server identifies the business server to which the target ticket codes belong according to the types of the target ticket codes drawn by audiences, and provides the information of winning audiences and the target ticket codes to the corresponding business server, so that the business server can give prizes corresponding to the target ticket codes to the winning audiences when awarding, a set of lottery drawing and awarding codes do not need to be developed for each lottery drawing business, and the general lottery drawing and awarding method has universality. In a scene that lottery drawing services need to be added, only the type of the newly added ticket codes is needed, the corresponding service server is identified, prizes can be distributed by the corresponding service server, the newly added lottery drawing service development codes are not needed, and the development period and the development workload are reduced.
Optionally, when the ticket server identifies the service server to which the target ticket code belongs according to the type of the target ticket code, the ticket server is specifically configured to: and extracting the service server address corresponding to the type of the target ticket code from the configuration file.
Optionally, when the ticket server issues a prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code, the ticket server is specifically configured to: writing information of winning audiences and target ticket codes into a prize drawing link, and sending the prize drawing link to the winning audiences; and responding to the triggering operation of the winning audience on the winning link, and providing a winning interface for the winning audience so that the winning audience can draw the prize corresponding to the target ticket code on the winning interface according to the information of the winning audience.
Optionally, the ticket server, when writing the information of the winning audience and the target ticket code into the winning link, is specifically configured to: encrypting the information of the winning audience and the target ticket code to obtain an encryption string; and writing the encryption string into the prize winning link.
Optionally, the service server, when providing the winning audience with the winning interface in response to the triggering operation of the winning audience on the winning link, is specifically configured to: and in response to the triggering operation of the winning audience on the winning prize link, decrypting the target ticket code from the encrypted string, and providing the target ticket code to a ticket server so that the ticket server verifies that the target ticket code is legal and informs the business server to provide a winning prize interface for the winning audience.
Optionally, when verifying that the target ticket code is legal, the ticket server is specifically configured to: verifying the code section of the target ticket code in a preset code table to obtain a confusion number; encrypting the confusion number to obtain a check code; searching a check segment corresponding to the check code in a preset check table; and if the verification section corresponding to the verification code is consistent with the verification section of the target ticket code, verifying that the target ticket code is legal.
Optionally, before notifying the service server to provide a prize drawing interface for the winning audience, the ticket server is further configured to search, according to the target ticket code, prize information corresponding to the target ticket code in the database; and providing the prize information corresponding to the target ticket code to a service server.
Optionally, the ticket server is further in communication connection with the anchor side terminal; when acquiring the ticket code to be extracted in the live broadcasting room, the lottery drawing server is specifically used for: responding to a lottery drawing request of a main broadcasting of a live broadcasting room, and acquiring a ticket code to be drawn of the live broadcasting room; the ticket code is generated by the ticket server in advance according to the prize information to be issued by the anchor and returned to the anchor side terminal.
Optionally, when acquiring the ticket code to be extracted in the live broadcast room, the lottery server is specifically configured to: responding to a lottery drawing request of a main broadcast of a live broadcast room, and acquiring prize information to be released in the live broadcast room; and providing the prize information to a ticket server, and acquiring a ticket code corresponding to the prize information from the ticket server.
The live broadcast room lottery drawing and awarding system provided by the embodiment can execute the live broadcast room lottery drawing and awarding method provided by any one of the embodiments, and has corresponding technical features and technical effects.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A lottery drawing and awarding method in a live broadcast room is characterized by comprising the following steps:
the lottery drawing server acquires a ticket code to be drawn in a live broadcast room, and provides prize information corresponding to the ticket code for audiences in the live broadcast room so that the audiences in the live broadcast room draw a lottery;
the generation process of the ticket code comprises the following seven steps:
the first step is as follows: presetting the segment number Len of the password segments in the ticket codes and the character number x of each password segment;
the second step is that: selecting a character set comprising any number and Chinese and English characters, wherein the number of the character set is a binary system;
the third step: randomly switching the sequence Len times for the character set selected in the second step, and taking the first N bits of the character set after switching the sequence every time to obtain Len N-bit cipher tables;
the fourth step: randomly switching the character set for 1 time, and taking the front N bits of the character set to obtain 1 check table with N bits;
the fifth step: obtaining a self-increment id, and converting the self-increment id into a Len-bit N-system number; then, mixing the N-system number according to a mixing rule to obtain a mixed number; the confusion rule is: the number of the ith bit of the confusion number is the sum of the ith bit of the N-system number and the following number, and the sum is left according to N;
and a sixth step: encrypting the confusion number to obtain a 1-bit check code; the encryption rule is to take the residue of the average value of each confusion number to Len;
the seventh step: taking each confusion number as the serial number of the character in each section of the cipher table, and extracting the character with the corresponding serial number from each section of the cipher table to form a cipher section; taking the check code as the serial number of the character in the check table, and extracting the character with the corresponding serial number from the check table to obtain a check segment;
the ticket server verifies that the target ticket code is legal, and the method comprises the following steps:
the ticket server verifies the code section of the target ticket code in a preset code table to obtain a confusion number;
the ticket server encrypts the confusion number to obtain a check code;
the ticket server searches a check segment corresponding to the check code in a preset check table;
if the verification section corresponding to the verification code is consistent with the verification section of the target ticket code, the ticket server verifies that the target ticket code is legal;
if the operation is illegal, the operation is finished;
if the lottery ticket code is legal, the ticket server acquires the information of the winning audience and the target ticket code drawn by the winning audience from the lottery drawing server; and the number of the first and second groups,
the ticket server identifies the business server to which the target ticket code belongs according to the type of the target ticket code, and provides the information of the winning audience and the target ticket code to the corresponding business server;
the business server distributes a prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code;
different types of the target ticket codes correspond to different lottery services, and the different lottery services are executed by different service servers and comprise: the ticket codes corresponding to the entity prizes belong to the entity service server, the ticket codes corresponding to the virtual prizes belong to the game virtual service server, and the ticket codes corresponding to the privileged prizes belong to the privileged service server.
2. The method of claim 1, wherein the ticket server identifies the service server to which the target ticket code belongs according to the type of the target ticket code, and comprises:
and the ticket server extracts the service server address corresponding to the type of the target ticket code from the configuration file.
3. The method of claim 1, wherein the service server issues a prize corresponding to the target ticket code to the winning viewer based on the information of the winning viewer and the target ticket code, comprising:
the business server writes information of winning audiences and target ticket codes into a prize drawing link and sends the prize drawing link to the winning audiences;
and the business server responds to the triggering operation of the winning audience on the winning prize link and provides a winning prize interface for the winning audience to draw the prize corresponding to the target ticket code according to the information of the winning audience on the winning prize interface.
4. The method of claim 3, wherein the service server writes information of winning viewers and a target ticket code in a winning link, comprising:
the business server encrypts the information of the winning audience and the target ticket code to obtain an encryption string;
and the business server writes the encrypted string into the prize drawing link.
5. The method of claim 4, wherein the service server provides a winning audience with a winning audience interface in response to a triggering operation of a winning audience on a winning link, comprising:
and the business server responds to the triggering operation of the winning audience on the prize drawing link, decrypts the target ticket code from the encryption string, provides the target ticket code to the ticket server, so that the ticket server verifies that the target ticket code is legal, and informs the business server of providing a prize drawing interface for the winning audience.
6. The method of claim 4, further comprising, before the ticket server notifies the service server to provide a winning audience with a winning interface:
the ticket server searches prize information corresponding to the target ticket code in a database according to the target ticket code;
and the ticket server provides the prize information corresponding to the target ticket code to a service server.
7. The method according to any one of claims 1 to 6, wherein the lottery server obtains a ticket code to be extracted in a live room, comprising:
the lottery server responds to a lottery drawing request of a main broadcasting of the live broadcasting room and acquires a ticket code to be drawn of the live broadcasting room;
the ticket code is generated by the ticket server in advance according to the prize information to be issued by the anchor and returned to the anchor side terminal.
8. The method according to any one of claims 1 to 6, wherein the lottery server obtains a ticket code to be extracted in a live room, comprising:
the lottery drawing server responds to a lottery drawing request of a live broadcasting room anchor and acquires prize information to be released in the live broadcasting room;
and the lottery server provides the prize information to a ticket server and acquires a ticket code corresponding to the prize information from the ticket server.
9. A live room lottery drawing and awarding system is characterized by comprising:
the lottery drawing server is used for acquiring the ticket codes to be drawn in the live broadcast room and providing the prize information corresponding to the ticket codes for the audiences in the live broadcast room so as to draw a lottery for the audiences in the live broadcast room;
the generation process of the ticket code comprises the following seven steps:
the first step is as follows: presetting the segment number Len of the password segments in the ticket codes and the character number x of each password segment;
the second step is that: selecting a character set comprising any number and Chinese and English characters, wherein the number of the character set is a binary system;
the third step: randomly switching the sequence Len times for the character set selected in the second step, and taking the first N bits of the character set after switching the sequence every time to obtain Len N-bit cipher tables;
the fourth step: randomly switching the character set for 1 time, and taking the front N bits of the character set to obtain 1 check table with N bits;
the fifth step: obtaining a self-increment id, and converting the self-increment id into a Len-bit N-system number; then, mixing the N-system number according to a mixing rule to obtain a mixed number; the obfuscation rule is: the number of the ith bit of the confusion number is the sum of the ith bit of the N-system number and the following number, and the sum is left according to N;
and a sixth step: encrypting the confusion number to obtain a 1-bit check code; the encryption rule is to take the residue of the average value of each confusion number to Len;
the seventh step: taking each confusion number as the serial number of the character in each section of the cipher table, and extracting the character with the corresponding serial number from each section of the cipher table to form a cipher section; taking the check code as the serial number of the character in the check table, and extracting the character with the corresponding serial number from the check table to obtain a check segment; when verifying that the target ticket code is legal, the ticket server is specifically configured to: verifying the password section of the target ticket code in a preset password table to obtain a confusion number; encrypting the confusion number to obtain a check code; searching a check segment corresponding to the check code in a preset check table; if the check section corresponding to the check code is consistent with the check section of the target ticket code, verifying that the target ticket code is legal;
if the operation is illegal, the operation is finished;
if the lottery ticket code is legal, the ticket server is used for acquiring the information of the winning audience and the target ticket code drawn by the winning audience from the lottery drawing server; and the number of the first and second groups,
the ticket server is used for identifying the business server to which the target ticket code belongs according to the type of the target ticket code and providing the information of the winning audience and the target ticket code to the corresponding business server;
the business server is used for issuing a prize corresponding to the target ticket code to the winning audience according to the information of the winning audience and the target ticket code;
different types of the target ticket codes correspond to different lottery services, and the different lottery services are executed by different service servers and comprise: the ticket codes corresponding to the entity prizes belong to the entity service server, the ticket codes corresponding to the virtual prizes belong to the game virtual service server, and the ticket codes corresponding to the privileged prizes belong to the privileged service server.
CN201910351288.XA 2019-04-28 2019-04-28 Live broadcast room lottery drawing and awarding method and system Active CN110070400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910351288.XA CN110070400B (en) 2019-04-28 2019-04-28 Live broadcast room lottery drawing and awarding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910351288.XA CN110070400B (en) 2019-04-28 2019-04-28 Live broadcast room lottery drawing and awarding method and system

Publications (2)

Publication Number Publication Date
CN110070400A CN110070400A (en) 2019-07-30
CN110070400B true CN110070400B (en) 2022-05-20

Family

ID=67369358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910351288.XA Active CN110070400B (en) 2019-04-28 2019-04-28 Live broadcast room lottery drawing and awarding method and system

Country Status (1)

Country Link
CN (1) CN110070400B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332132A (en) * 2011-07-22 2012-01-25 深圳市财富万方信息技术有限公司 Internet real-time lucky drawing system and implementation method thereof
CN203250334U (en) * 2013-05-10 2013-10-23 广州市引领信息科技有限公司 Lottery system
CN207115490U (en) * 2017-08-10 2018-03-16 成都河马坦克网络科技有限公司 It is easy to the lottery ticket exchange system of checking
CN108347655A (en) * 2018-03-01 2018-07-31 广州虎牙信息科技有限公司 Direct broadcasting room interactive approach, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332132A (en) * 2011-07-22 2012-01-25 深圳市财富万方信息技术有限公司 Internet real-time lucky drawing system and implementation method thereof
CN203250334U (en) * 2013-05-10 2013-10-23 广州市引领信息科技有限公司 Lottery system
CN207115490U (en) * 2017-08-10 2018-03-16 成都河马坦克网络科技有限公司 It is easy to the lottery ticket exchange system of checking
CN108347655A (en) * 2018-03-01 2018-07-31 广州虎牙信息科技有限公司 Direct broadcasting room interactive approach, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110070400A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
US9237150B2 (en) Method and system for protecting a password during an authentication process
US8984295B2 (en) Secure access to electronic devices
US9729540B2 (en) System and method for user authentication
CN100565451C (en) Be used for method and system mutual between supervisory user and the computing machine
CN109416722B (en) Secure collection of sensitive data
WO2011099161A1 (en) Content presentation-type authentication system
CN111522516B (en) Processing method and system for cloud broadcast print data
CN108260015B (en) Voting data processing method and device and electronic equipment
US20220084063A1 (en) Dynamic machine-readable codes
US20160212119A1 (en) Authentication information encryption server apparatuses, computer readable mediums and methods
JP6701359B2 (en) Dynamic graphical password-based network registration method and system
CN109521956A (en) A kind of cloud storage method, apparatus, equipment and storage medium based on block chain
US7219229B2 (en) Protected communication system
CN107040520A (en) A kind of cloud computing data-sharing systems and method
WO2013170822A2 (en) Method and device for processing password for logging into server
CN107155113A (en) The method and server of a kind of protection barrage information
CN110070400B (en) Live broadcast room lottery drawing and awarding method and system
CN115941217B (en) Method for secure communication and related products
CN107018132B (en) Cloud platform encrypting and decrypting method and system based on open network environment
CN108282332A (en) A kind of data signature method and device
KR102087287B1 (en) Chatbot system server capable of executing events based on interactive messaging and operating method thereof
CN108549808B (en) Password management method and device
CN115955364B (en) User identity information confidentiality method and system of network bidding transaction system
CN111431728B (en) User group management method of distributed application program
KR102256912B1 (en) Research managing server for performing realtime research interworking multiple node units which contstitue blockchain network and the operating method thereof

Legal Events

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