Online lottery drawing method and device

By adopting the probability model and user identity verification of dynamic adjustment in the raffle system, the data leakage and cheating risks existing in existing lottery methods are solved, the fairness and transparency of the lottery process is realized, and the user experience is improved.

CN119359362APending Publication Date: 2025-01-24CHINA SPORTS LOTTERY TECH GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411316819.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing lottery methods have the risks of data leakage and cheating, and the lottery algorithm is not transparent enough and the user experience is poor.

Method used

The draw algorithm based on the dynamic adjustment of the probability model is used to match the results of the lottery through the random number and the preset probability range, and the user identity verification is performed to ensure the fairness and transparency of the lottery process.

Benefits of technology

Effectively prevent data leakage and cheating, ensure the fairness and transparency of the lottery process, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359362A_ABST
    Figure CN119359362A_ABST
Patent Text Reader

Abstract

The invention provides an online lottery drawing method and device, and relates to the technical field of data processing, and the method comprises the steps: receiving a lottery drawing request of a user, and carrying out the identity verification of the user; in response to the lottery drawing request, generating a lottery drawing result based on a preset lottery drawing algorithm under the condition that the identity verification is passed, and sending the lottery drawing result to the user; wherein the preset lottery drawing algorithm is that a lottery drawing result is generated in a mode of matching a random number with a preset probability interval based on a dynamically adjusted probability model. According to the method provided by the invention, a dynamically adjusted lottery drawing algorithm is adopted, data leakage and cheating behaviors are prevented, and fairness and transparency of a lottery drawing process are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an online lottery method and device. Background Art

[0002] As a marketing promotion method, lucky draws are increasingly favored by businesses and users. The existing lucky draw method usually generates a unique QR code for each lucky draw activity or prize, and users participate in the lucky draw by scanning the QR code. This method has risks. QR codes can store a lot of information, including URLs, text, pictures, etc., which also means that if this information is used maliciously, the user's personal information and privacy may be at risk of being leaked, causing economic losses to the user. At present, the QR code scanning lucky draw system has also been applied in the market, but there are generally problems such as the lottery algorithm is not transparent enough and the user experience is poor.

[0003] How to ensure the fairness and transparency of the lottery process and improve user experience is a technical problem that needs to be solved at present. Summary of the invention

[0004] The present invention provides an online lottery method and device to solve the defects in the prior art.

[0005] The present invention provides an online lottery method, comprising the following steps: Receive lottery requests from users and authenticate users; In response to the lottery request, if the identity authentication is passed, a lottery result is generated based on a preset lottery algorithm, and the lottery result is sent to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching random numbers with preset probability intervals.

[0006] According to an online lottery method provided by the present invention, the receiving of a lottery request from a user and identity verification of the user include: Receive a lottery request from a user, and parse the lottery request to obtain the user's identity information; The user is authenticated based on the identity information of the user.

[0007] According to an online lottery method provided by the present invention, in response to the lottery request, before generating a lottery result based on a preset lottery algorithm when the identity authentication is passed, the method further includes: Obtaining prize types, predetermined winning probability information for each prize, and inventory information for each prize; Based on the winning probability information of each prize, the winning probability of each prize is converted into an integer type through a preset conversion rule to obtain a winning probability number of each prize; Calculate the sum of the winning probability numbers of each prize to obtain the total probability integer sum.

[0008] According to an online lottery method provided by the present invention, after calculating the sum of the winning probability numbers of each prize to obtain the total probability integer sum, the method further includes: Based on the intermediate probability information of each prize and the total probability integer sum, a preset probability interval of each prize is determined.

[0009] According to an online lottery method provided by the present invention, in response to the lottery request, if the identity authentication is passed, generating a lottery result based on a preset lottery algorithm, and sending the lottery result to the user, comprising: In response to the lottery request, if the identity verification is passed, generating a random number; When the random number matches any preset probability interval, determining the corresponding prize as the target winning prize; When the inventory information of the target winning prize indicates that the target winning prize exists, a first lottery result is generated and sent to the user; wherein the first lottery result includes: winning information and target winning prize information.

[0010] According to an online lottery method provided by the present invention, in response to the lottery request, after the identity authentication is passed and a random number is generated, the method further comprises: In the case that the random number does not match any preset probability interval, a second lottery result is generated and sent to the user; wherein the second lottery result includes: non-winning information.

[0011] According to an online lottery method provided by the present invention, when the random number matches any preset probability interval, after determining that the corresponding prize is a target winning prize, the method further includes: In the case that the inventory information of the target winning prize indicates that the target winning prize does not exist, a third lottery result is generated and the third lottery result is sent to the user; wherein the third lottery result includes: non-winning information.

[0012] The present invention also provides an online lottery device, comprising the following modules: The receiving module is used to receive the user's lottery request and authenticate the user; The lottery module is used to respond to the lottery request and, if the identity authentication is passed, generate a lottery result based on a preset lottery algorithm and send the lottery result to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the online lottery method described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the online lottery method described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the online lottery method described above is implemented.

[0016] The present invention provides an online lottery method and device, which performs identity authentication on the user by receiving the lottery request of the user; in response to the lottery request, if the identity authentication is passed, generates a lottery result based on a preset lottery algorithm, and sends the lottery result to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval. It can be seen that the present invention adopts a dynamically adjusted lottery algorithm to prevent data leakage and cheating, and ensure the fairness and transparency of the lottery process. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flow chart of the online lottery method provided by the present invention.

[0019] Figure 2 It is a structural schematic diagram of the online lottery device provided by the present invention.

[0020] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] Combine the following Figure 1-Figure 3 An online lottery method and device of the present invention are described.

[0023] Figure 1 It is a flow chart of the online lottery method provided by the present invention. Figure 1 As shown, the method includes the following: Step 100: Receive a lottery request from a user and perform identity verification on the user.

[0024] It should be noted that the subject of the present invention is a server. The server device provided in the embodiment of the present invention adopts a high-performance processor, a large-capacity memory and a high-speed storage device to ensure stable operation under high concurrency. At the same time, it is equipped with a redundant power supply and a network interface to improve the reliability and availability of the system.

[0025] Afterwards, the software architecture involved in the embodiment of the present invention is described.

[0026] 1) Operating system: Choose a stable and reliable Linux operating system that supports high-concurrency processing and resource optimization.

[0027] 2) Database system: Use MySQL relational database to ensure data security and consistency.

[0028] 3) Application server: deploy a Web server such as Tomcat or Nginx, provide HTTP / HTTPS services, and support the processing of QR code scanning and lottery business.

[0029] 4) Business logic layer: implements the core logic of the QR code scanning lottery algorithm, including random number generation, probability matching, inventory checking, etc.

[0030] 5) Cache layer: Use memory databases such as Redis to cache commonly used data and intermediate results to improve data processing speed.

[0031] Specifically, step 100 receives a lottery request from a user and performs identity verification on the user, including: Receive a lottery request from a user, and parse the lottery request to obtain the user's identity information; The user is authenticated based on the identity information of the user.

[0032] In one embodiment, the user can use the terminal device to scan the relevant QR code to send a lottery request to the server, and the back-end server receives the request and performs user identity authentication. Depending on the request method, the corresponding library or framework can be used to parse the HTTP request body or query parameters to parse the user's identity information, such as user name, mobile phone number, user ID, etc. The corresponding verification service or logic is called, the extracted user identity information is passed in, and the verification result is checked. If the verification fails, an error response is returned to the user. If the identity authentication is successful, the lottery logic continues to be executed.

[0033] Step 200, in response to the lottery request, if the identity authentication is passed, generate a lottery result based on a preset lottery algorithm, and send the lottery result to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval.

[0034] Specifically, in response to the lottery request at step 200, when the identity authentication is passed, before generating the lottery result based on the preset lottery algorithm, the method further includes: Step S210: Obtain prize category, predetermined winning probability information of each prize, and inventory information of each prize.

[0035] Specifically, first, it is necessary to obtain the prize types involved in the current lottery, the preset winning probability of each prize, and the current inventory quantity of each prize from the database or configuration file. This information is the basis for the lottery algorithm to be correctly executed.

[0036] Step S220: Based on the winning probability information of each prize, the winning probability of each prize is converted into an integer type through a preset conversion rule to obtain a winning probability number of each prize.

[0037] Specifically, since integers are usually more efficient than floating-point numbers and floating-point operations may introduce precision issues, the probability of winning is converted to an integer type, for example by selecting a suitable base (such as 1000, 10000, etc.) and then multiplying each probability value by the base.

[0038] For example, if the probability of winning a prize is 10%, and the base number selected is 10,000, then the probability of winning the prize is 10% * 10,000 = 1,000.

[0039] Step S230, calculating the sum of the winning probability numbers of each prize to obtain the total probability integer sum.

[0040] Specifically, the winning probability numbers of all prizes are added together to obtain the total probability integer sum. This value will be used to generate random numbers later to determine the type of prize the user wins.

[0041] Furthermore, after calculating the sum of the winning probability numbers of each prize in step S230 to obtain the total probability integer sum, the method further includes: Based on the intermediate probability information of each prize and the total probability integer sum, a preset probability interval of each prize is determined.

[0042] It should be noted that the method for determining the probability interval is to regard the probability of winning each prize as the "share" of the prize in the total probability integer sum, and divide the corresponding interval range accordingly.

[0043] Specifically, first, set a starting position (for example, 0 or 1), which is the starting point of the probability interval of the first prize. Then, calculate the end position of the probability interval of the current prize, which can be achieved by adding the winning probability numbers of all prizes before the current prize and adding the winning probability number of the current prize. If it is the first prize, just use the winning probability number as the end position; record the probability interval of the current prize: the interval range starts from the end position (or starting position) of the previous prize and ends at the end position of the current prize. Finally, set the end position of the current prize as the starting position of the probability interval of the next prize.

[0044] In practical applications, to simplify calculations and avoid potential precision problems, it is usually ensured that the total probability integer sum is an integer multiple of the base, or by adjusting the winning probability number of the last prize to ensure this.

[0045] Specifically, step 200 generates a lottery result based on a preset lottery algorithm in response to the lottery request and sends the lottery result to the user if the identity verification is passed, including: Step 210: In response to the lottery request, if the identity verification is passed, generate a random number.

[0046] Specifically, the range of random numbers is usually from 1 (inclusive) to the total probability integer and (exclusive). This ensures that the generated random numbers are evenly distributed within the probability interval of all prizes.

[0047] Step 220: When the random number matches any preset probability interval, determine the corresponding prize as the target winning prize.

[0048] Specifically, the generated random number is compared with the predetermined probability interval of each prize. If the random number falls within the probability interval of a prize, then the prize is determined as the target winning prize.

[0049] Step 230: When the inventory information of the target winning prize indicates that the target winning prize exists, generate a first lottery result, and send the first lottery result to the user; wherein the first lottery result includes: winning information and target winning prize information.

[0050] Specifically, after determining the target winning prize, it is necessary to check the inventory information of the prize. If the prize exists in the inventory, the lottery result can be generated. The lottery result usually includes the winning information (such as "Congratulations on your winning!") and the information of the target winning prize (such as the prize name, specifications, quantity, etc.). Then, the lottery result is sent to the user, usually through API response, web page display, SMS, email or in-app notification. After that, the inventory information of the prize in the database is updated.

[0051] Furthermore, in response to the lottery request at step 210, after generating a random number if the identity verification is passed, the method further includes: In the case that the random number does not match any preset probability interval, a second lottery result is generated and sent to the user; wherein the second lottery result includes: non-winning information.

[0052] Specifically, if the random number does not match any preset probability interval, it means that the user did not win the prize in the current lottery, and a second lottery result is generated, which includes non-winning information, such as "Unfortunately, you did not win the prize" or "Thank you for participating, come again next time", and the second lottery result is sent to the user.

[0053] Furthermore, in step 220, when the random number matches any preset probability interval, after determining that the corresponding prize is the target winning prize, the method further includes: In the case that the inventory information of the target winning prize indicates that the target winning prize does not exist, a third lottery result is generated and the third lottery result is sent to the user; wherein the third lottery result includes: non-winning information.

[0054] Specifically, if further inspection finds that the inventory information of the prize indicates that the target winning prize does not exist, a "third lottery result" is generated and sent to the user, which includes information that you did not win the prize, such as "Unfortunately, the inventory of the prize you drew is insufficient, and this lottery is deemed to be a loss." The third lottery result may also be consistent with the content of the second lottery result, and this embodiment does not make any special limitations on this.

[0055] To improve user experience, after the third lottery result is generated, users can be compensated with alternative options, for example: 1) Automatic re-draw: With the user's consent, the random number will be automatically regenerated for them and the draw will be conducted again.

[0056] 2) Alternative Prizes: Provide one or more alternative prizes for users to choose from. The value of these prizes may be slightly lower than the original target winning prize, but the stock is sufficient.

[0057] 3) Points / coupon compensation: A certain number of points, coupons or other forms of compensation are issued to users.

[0058] It should be noted that for prizes with extremely low probabilities, directly matching random numbers and probability intervals in the conventional way may cause performance issues, because it may take a long time for the random numbers to fall into these extremely low probability intervals. In order to optimize the processing process, the following special processing mechanism can be used.

[0059] 1) Define a minimum probability threshold (e.g. 0.01% or lower) to distinguish between “common” prizes and “rare” prizes. For prizes with probability below this threshold, special lottery logic can be used.

[0060] 2) For extremely rare prizes, they can be pre-allocated to specific users or users who meet specific conditions, which can avoid frequent random number generation and matching processes while ensuring the reasonable distribution of rare prizes.

[0061] 3) Set specific conditions or time intervals to trigger the draw for rare prizes. For example, only when the number of users reaches a certain peak or when users complete a certain task will they be allowed to enter the draw for rare prizes.

[0062] Furthermore, the embodiment of the present invention introduces a cache mechanism to cache basic information such as the name, probability, and inventory of the prize into the memory. When the user initiates a lottery request, the system can directly obtain the prize information from the cache without querying the database; the user's verification status (such as whether it has been verified, the verification time, etc.) is cached, and when the user continuously initiates lottery requests, repeated identity authentication processes can be avoided; some commonly used lottery results (such as non-winning information) can be cached, and when the user does not win the lottery, the non-winning information can be directly read from the cache and returned to the user; because the probability interval is dynamically calculated, its calculation result can be cached, so that when generating random numbers and matching, the probability interval mapping in the cache can be directly used without recalculation. Based on this, the data access speed can be improved.

[0063] The embodiment of the present invention encrypts sensitive data, such as user information, winning results, etc.; implements strict access control policies to ensure that only authorized users can access system resources; and records user operations and system operating status to facilitate problem troubleshooting and security audits. Based on this, the security of the lottery process is guaranteed.

[0064] The above is a description of the steps of the online lottery method provided by the present invention. From the description of the above steps, it can be seen that according to the online lottery method provided by the present invention, by receiving the user's lottery request, the user's identity is authenticated; in response to the lottery request, if the identity authentication is passed, the lottery result is generated based on the preset lottery algorithm, and the lottery result is sent to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval. It can be seen that the present invention adopts a dynamically adjusted lottery algorithm to prevent data leakage and cheating, and ensure the fairness and transparency of the lottery process.

[0065] The online lottery device provided by the present invention is described below. The online lottery device described below and the online lottery method described above can be referenced to each other.

[0066] Figure 2 : is a schematic diagram of the structure of the online lottery device provided by the present invention. Figure 2 As shown, the online lottery device provided by the present invention comprises: Receiving module 201, used to receive a lottery request from a user and authenticate the user; The lottery module 202 is used to respond to the lottery request and, if the identity authentication is passed, generate a lottery result based on a preset lottery algorithm and send the lottery result to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval.

[0067] The online lottery device provided by the present invention performs identity authentication on the user by receiving the lottery request of the user; in response to the lottery request, if the identity authentication is passed, generates a lottery result based on a preset lottery algorithm, and sends the lottery result to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval. It can be seen that the present invention adopts a dynamically adjusted lottery algorithm to prevent data leakage and cheating, and ensure the fairness and transparency of the lottery process.

[0068] Based on the above embodiment, in this embodiment, the receiving module 201 is specifically used for: Receive a lottery request from a user, and parse the lottery request to obtain the user's identity information; The user is authenticated based on the identity information of the user.

[0069] Based on the above embodiment, in this embodiment, the device further includes a calculation module, which is specifically used to: In response to the lottery request, if the identity verification is passed, before generating the lottery result based on a preset lottery algorithm, obtaining the prize type, the predetermined winning probability information of each prize, and the inventory information of each prize; Based on the winning probability information of each prize, the winning probability of each prize is converted into an integer type through a preset conversion rule to obtain a winning probability number of each prize; Calculate the sum of the winning probability numbers of each prize to obtain the total probability integer sum.

[0070] Based on the above embodiment, in this embodiment, the device further includes a determining module, which is specifically used to: After calculating the sum of the winning probability numbers of each prize to obtain the total probability integer sum, the preset probability interval of each prize is determined based on the intermediate probability information of each prize and the total probability integer sum.

[0071] Based on the above embodiment, in this embodiment, the lottery module 202 is specifically used for: In response to the lottery request, if the identity verification is passed, generating a random number; When the random number matches any preset probability interval, determining the corresponding prize as the target winning prize; When the inventory information of the target winning prize indicates that the target winning prize exists, a first lottery result is generated and sent to the user; wherein the first lottery result includes: winning information and target winning prize information.

[0072] Based on the above embodiment, in this embodiment, the lottery module 202 is specifically used for: In response to the lottery request, after generating a random number if the identity authentication is passed, if the random number does not match any preset probability interval, a second lottery result is generated and sent to the user; wherein the second lottery result includes: non-winning information.

[0073] Based on the above embodiment, in this embodiment, the lottery module 202 is specifically used for: When the random number matches any preset probability interval, after determining that the corresponding prize is the target winning prize, if the inventory information of the target winning prize indicates that the target winning prize does not exist, a third lottery result is generated and sent to the user; wherein the third lottery result includes: non-winning information.

[0074] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the online lottery method, which includes: Receive lottery requests from users and authenticate users; In response to the lottery request, if the identity authentication is passed, a lottery result is generated based on a preset lottery algorithm, and the lottery result is sent to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching random numbers with preset probability intervals.

[0075] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0076] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the online lottery method provided by the above methods, the method includes: Receive lottery requests from users and authenticate users; In response to the lottery request, if the identity authentication is passed, a lottery result is generated based on a preset lottery algorithm, and the lottery result is sent to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching random numbers with preset probability intervals.

[0077] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the online lottery method provided by the above methods is implemented, and the method includes: Receive lottery requests from users and authenticate users; In response to the lottery request, if the identity authentication is passed, a lottery result is generated based on a preset lottery algorithm, and the lottery result is sent to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching random numbers with preset probability intervals.

[0078] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0079] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An online lottery method, characterized in that: include: Receive lottery requests from users and authenticate users; In response to the lottery request, if the identity authentication is passed, a lottery result is generated based on a preset lottery algorithm, and the lottery result is sent to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching random numbers with preset probability intervals.

2. The online lottery method according to claim 1, characterized in that: The receiving of the lottery request from the user and authenticating the user includes: Receive a lottery request from a user, and parse the lottery request to obtain the user's identity information; The user is authenticated based on the identity information of the user.

3. The online lottery method according to claim 1, characterized in that: In response to the lottery request, if the identity authentication is passed, before generating a lottery result based on a preset lottery algorithm, the method further includes: Obtaining prize types, predetermined winning probability information for each prize, and inventory information for each prize; Based on the winning probability information of each prize, the winning probability of each prize is converted into an integer type through a preset conversion rule to obtain a winning probability number of each prize; Calculate the sum of the winning probability numbers of each prize to obtain the total probability integer sum.

4. The online lottery method according to claim 3, characterized in that: After calculating the sum of the winning probability numbers of each prize to obtain the total probability integer sum, the method further includes: Based on the intermediate probability information of each prize and the total probability integer sum, a preset probability interval of each prize is determined.

5. The online lottery method according to claim 4, characterized in that: The step of responding to the lottery request and generating a lottery result based on a preset lottery algorithm when the identity verification is passed, and sending the lottery result to the user includes: In response to the lottery request, if the identity verification is passed, generating a random number; When the random number matches any preset probability interval, determining the corresponding prize as the target winning prize; When the inventory information of the target winning prize indicates that the target winning prize exists, a first lottery result is generated and sent to the user; wherein the first lottery result includes: winning information and target winning prize information.

6. The online lottery method according to claim 5, characterized in that: In response to the lottery request, if the identity verification is passed, after generating a random number, the method further includes: In the case that the random number does not match any preset probability interval, a second lottery result is generated and sent to the user; wherein the second lottery result includes: non-winning information.

7. The online lottery method according to claim 5, characterized in that: When the random number matches any preset probability interval, after determining that the corresponding prize is the target winning prize, the method further includes: In the case that the inventory information of the target winning prize indicates that the target winning prize does not exist, a third lottery result is generated and the third lottery result is sent to the user; wherein the third lottery result includes: non-winning information.

8. An online lottery device, characterized in that: include: The receiving module is used to receive the user's lottery request and authenticate the user; The lottery module is used to respond to the lottery request and, if the identity authentication is passed, generate a lottery result based on a preset lottery algorithm and send the lottery result to the user; wherein the preset lottery algorithm is: based on a dynamically adjusted probability model, the lottery result is generated by matching a random number with a preset probability interval.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the online lottery method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the online lottery method according to any one of claims 1 to 7 is implemented.