Lottery real-time awarding method and device
Patent Information
- Application Number
- CN202111598803.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2041-12-24
AI Technical Summary
[0005]本发明目的在于提供一种彩票实时计奖方法及装置,解决目前彩票系统在停止销售时才能进行数据封存,从而延长开奖时间的问题;以及,目前彩票系统在摇奖结束,开出开奖号码后,才能进行计奖验证的问题
[0016] The beneficial technical effects of this invention are as follows: it can realize real-time prize calculation, real-time sealing, real-time prize calculation verification, and near-real-time lottery draw, effectively improving the timeliness of lottery-related processes. At the same time, there is no need to worry about malfunctions in the current lottery draw process; one only needs to wait for the lottery draw results and retrieve the corresponding data. If there are malfunctions in the lottery prize calculation or verification program, they can be detected and resolved in advance, improving the operational stability of the lottery system.
Smart Images

Figure CN116363792B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing, and more particularly to a method and apparatus for real-time lottery prize calculation. Background Technology
[0002] As a public welfare undertaking, the lottery bears the responsibility of raising funds for public welfare. More and more people are participating in the lottery, and the requirements for the timeliness of the lottery are also getting higher and higher. Especially when the lottery system malfunctions and delays the draw, the timeliness cannot be guaranteed, resulting in a poor user experience.
[0003] Currently, lottery sales are quite high, and the processes of sales statistics, data archiving, prize calculation, and prize verification all require time to complete. Current lottery systems operate on a linear model, from the start of sales to the cessation of sales, data archiving, sales statistics, number drawing, prize calculation, prize verification, notarization of the draw, and prize redemption. While this traditional approach optimizes the performance and operation time of each step to the extreme, it still falls short of timeliness requirements. The more lottery sales data increases, the longer the process takes. Therefore, the industry urgently needs a more efficient prize calculation scheme to improve these timeliness requirements.
[0004] To address this issue, existing lottery prize calculation technologies typically employ non-real-time calculation. The entire process from lottery sales to the draw generally involves the following sequential steps: Creating a lottery prize period, which defines the start and end times for lottery sales, the start and end times for prize calculation, the start and end times for prize redemption, and the inactive state of the prize period; Activating the prize period, which involves changing the prize period's status from inactive to active before sales begin. At this point, sales are not yet permitted until the designated sales time; and ending sales, which involves changing the prize period's status back to active at the designated end time. At this point, sales can no longer be conducted, and the already sold lottery tickets are archived. The data is imported into a physically isolated, non-networked system used for prize calculation and verification; lottery drawing, which is the process of drawing the winning numbers for the current lottery period using dedicated lottery drawing equipment; lottery prize calculation, which is the process of inputting the drawing numbers into the networked production environment prize calculation system to calculate whether the sold lottery tickets have won, what prize level they have won, the number of winning tickets, and the prize amount; lottery prize calculation verification, which is the process of inputting the drawing numbers into the physically isolated, non-networked prize calculation verification system to calculate the winning situation of the sealed sales data and compare it with the prize calculation results of the production environment prize calculation system; lottery draw, which is the process of allowing the production environment networked prize calculation system to start redeeming prizes to lottery players when the lottery sales results and prize calculation results of the production environment networked prize calculation system are consistent with the sales results and prize calculation results of the physically isolated prize verification system. This method of lottery prize calculation is a serial operation. The prize calculation and verification are carried out after the lottery draw. Since lottery prize calculation will always take some calculation time, after the lottery draw, it is necessary to wait for a period of time to complete the prize calculation and draw before the prizes can be drawn. The prize calculation system is the core system of the lottery. As it is a software system developed by humans, program errors cannot be completely avoided. The lottery prize calculation process takes place after the lottery draw and before the prize redemption begins, and the prize calculation time is very limited. If the program fails to draw the prizes in time, the timeliness cannot be guaranteed. Summary of the Invention
[0005] The purpose of this invention is to provide a real-time lottery prize calculation method and apparatus, which solves the problem that the current lottery system can only perform data sealing when sales are stopped, thus prolonging the lottery draw time; and the problem that the current lottery system can only perform prize calculation verification after the lottery draw is completed and the winning numbers are drawn.
[0006] To achieve the above objectives, the real-time lottery prize calculation method provided by the present invention specifically includes: obtaining sales data during the lottery sales process; obtaining all winning results according to the lottery prize calculation rules corresponding to the sales data; analyzing the sales data for each winning result using cloud computing based on all winning results to obtain the prize calculation number corresponding to the sales data; obtaining the winning number corresponding to the lottery after the lottery sales stop and the lottery draw ends; and matching the winning number with the prize calculation number to obtain the winning sales data.
[0007] In the above-mentioned real-time lottery prize calculation method, preferably, obtaining sales data during the lottery sales process further includes: generating a sequentially increasing unique identifier based on the sales data, sealing the sales data and corresponding log data, and then uploading the unique identifier to the blockchain for storage as verification data.
[0008] In the above-mentioned real-time lottery prize calculation method, preferably, the process of obtaining the prize calculation number corresponding to the sales data by analyzing the sales data through cloud computing based on all lottery results further includes: analyzing the verification data through cloud computing based on all lottery results to obtain the prize calculation verification number corresponding to the verification data; and performing a consistency comparison between the prize calculation number and the prize calculation verification number based on the unique identifier.
[0009] In the above-mentioned real-time lottery prize calculation method, preferably, the sales data for obtaining the winning prize by matching the winning numbers with the prize calculation numbers further includes: matching the winning numbers with the prize calculation numbers and the prize calculation verification numbers; when the sales data corresponding to the prize calculation numbers matches the verification data corresponding to the prize calculation verification numbers, a winning result is generated based on the prize calculation numbers, the sales data, and the verification data.
[0010] The present invention also provides a real-time lottery prize calculation device, the device comprising a data acquisition module, a calculation module, and a matching module; the data acquisition module is used to collect sales data during the lottery sales process and obtain all winning results according to the lottery prize calculation rules corresponding to the sales data; the calculation module is used to analyze the sales data through cloud computing based on all winning results to obtain the winning numbers corresponding to the sales data for each winning result; the matching module is used to obtain the winning numbers corresponding to the lottery after the lottery sales stop and the lottery draw ends, and to match the winning numbers with the winning numbers to obtain the winning sales data.
[0011] In the aforementioned real-time lottery prize calculation device, preferably, the acquisition module further includes a sealing unit. The sealing unit is used to generate a sequentially increasing unique identifier based on the sales data, seal the sales data and the corresponding log data, and then upload the unique identifier to the blockchain for storage as verification data.
[0012] In the aforementioned real-time lottery prize calculation device, preferably, the calculation module further includes a verification and comparison unit. The verification and comparison unit is used to analyze the verification data for each type of lottery result using cloud computing based on all lottery results, and obtain the prize calculation verification number corresponding to the verification data; and to perform a consistency comparison between the prize calculation number and the prize calculation verification number based on the unique identifier.
[0013] In the above-mentioned real-time lottery prize calculation device, preferably, the matching module further includes an output unit, which is used to match the winning number and the prize verification number through the winning number; when the sales data corresponding to the winning number matches the verification data corresponding to the prize verification number, a winning result is generated based on the winning number, the sales data and the verification data.
[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method.
[0015] The present invention also provides a computer-readable storage medium storing a computer program for performing the above-described method.
[0016] The beneficial technical effects of this invention are as follows: it can realize real-time prize calculation, real-time sealing, real-time prize calculation verification, and near-real-time lottery draw, effectively improving the timeliness of lottery-related processes. At the same time, there is no need to worry about malfunctions in the current lottery draw process; one only needs to wait for the lottery draw results and retrieve the corresponding data. If there are malfunctions in the lottery prize calculation or verification program, they can be detected and resolved in advance, improving the operational stability of the lottery system. Attached Figure Description
[0017] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, are not intended to limit the scope of the invention. In the drawings:
[0018] Figure 1 This is a schematic flowchart of a real-time lottery prize calculation method provided in an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of the award calculation and verification process provided in an embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the prize comparison process provided in an embodiment of the present invention;
[0021] Figure 4 This is a schematic diagram of the structure of a real-time lottery prize calculation device provided in an embodiment of the present invention;
[0022] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0023] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples, so that the process of how the present invention uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly. It should be noted that, as long as there is no conflict, the various embodiments and features in the various embodiments of the present invention can be combined with each other, and the resulting technical solutions are all within the protection scope of the present invention.
[0024] Furthermore, the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0025] Please refer to Figure 1 As shown, the real-time lottery prize calculation method provided by this invention specifically includes:
[0026] S101 obtains sales data during the lottery sales process and obtains all winning results according to the lottery prize calculation rules corresponding to the sales data;
[0027] S102 uses cloud computing to analyze the sales data based on all lottery results and obtains the corresponding prize numbers for each lottery result.
[0028] S103 obtains the winning numbers corresponding to the lottery after the lottery sales stop and the draw ends, and obtains the winning sales data by matching the winning numbers with the prize calculation numbers.
[0029] In practice, existing lottery systems only begin prize calculation after lottery sales cease and the winning numbers are drawn. Due to the large volume of lottery sales data, the prize calculation process inevitably takes time, and the time varies depending on lottery sales volume and the complexity of the calculation algorithm, resulting in poor timeliness. Therefore, this invention, through the above-described embodiment, begins prize calculation simultaneously with lottery sales, rather than starting after the lottery draw and the winning numbers are known. The principle is that, based on the combination and permutation algorithm, the lottery result can only be one of several possibilities. Therefore, for each real-time sales record, all possible results are calculated in real time. Taking the Super Lotto lottery as an example, its winning result is the probability of choosing 5 out of 35 multiplied by the probability of choosing 2 out of 12, resulting in 21,425,712 possibilities. For each Super Lotto sales record, the winning situation for that sales record is calculated using these 21,425,712 possible results. Given the large amount of computation, cloud computing is used to overcome the computational challenges. Through this method, prize calculation ends when lottery sales cease. After the lottery draw is completed, you can select one of the 21,425,712 possible winning results that matches the winning numbers.
[0030] Given that existing lottery systems still perform data sealing only after lottery sales cease—that is, after sales stop, sales data and log data are manually exported from the lottery production system, burned onto a read-only CD, and then manually imported into the physical prize calculation and verification server—this data sealing operation, which only begins after sales stop, consumes time and inevitably occupies some of the lottery draw time. Therefore, in one embodiment of this application, the characteristics of blockchain technology—"unforgeable," "fully traceable," and "traceable"—are further utilized to perform automated sealing of lottery sales data and log data in real-time online. That is, data sealing begins online in real-time when lottery sales begin, rather than waiting until sales stop. Using this method, lottery data sealing is completed when sales stop, without further consuming lottery draw time. Specifically, in this embodiment of the invention, obtaining sales data during the lottery sales process may further include: generating a sequentially incrementing unique identifier based on the sales data, sealing the sales data and corresponding log data, and then uploading the unique identifier to the blockchain for storage as verification data. Further details can be found in the following documentation. Figure 2 As shown, based on all lottery results, the sales data is analyzed using cloud computing to determine the winning numbers corresponding to each lottery result. These numbers also include:
[0031] S201 analyzes the verification data based on all lottery results using cloud computing to determine the winning situation for each lottery result and obtains the prize calculation verification number corresponding to the verification data.
[0032] S202 performs a consistency comparison between the prize-winning number and the prize-winning verification number based on the unique identifier.
[0033] Please refer to this again. Figure 3 As shown, in one embodiment of the present invention, the sales data for obtaining the winning numbers by matching the winning numbers with the lottery numbers further includes:
[0034] S301 matches the winning numbers with the prize calculation numbers and the prize calculation verification numbers;
[0035] S302 When the sales data corresponding to the prize-winning number matches the verification data corresponding to the prize-winning verification number, a winning result is generated based on the prize-winning number, the sales data, and the verification data.
[0036] In practice, taking the Super Lotto as an example, the prize calculation and verification of the lottery system is carried out after the lottery draw and the winning numbers are known. That is, after the lottery draw, the personnel responsible for prize calculation and verification obtain the winning numbers drawn on-site and manually input them into both the lottery production system and the lottery prize calculation and verification system; then, they wait for both systems to calculate the winning results; finally, they manually compare the calculated results of the two systems. To address this issue, the above-mentioned embodiment provided in this application utilizes cloud computing technology to calculate prizes in real time for each piece of sales data based on the 21,425,712 possible combinations of Super Lotto winning results. Similarly, this method can also be used in the prize calculation and verification system to calculate prizes for each piece of data sealed using blockchain technology, and then the prize calculation and verification of the 21,425,712 winning results in both the lottery production system and the prize calculation and verification system are performed in real time. To ensure consistency in the prize calculation process between the two systems, each new sales record is marked with an incrementing tag. For example, in the lottery production system, the first sales record is marked as 1, the second as 2, and so on, up to 'n'. The prize calculation verification system also sequentially saves and calculates prizes for each of the first 'n' marked sales records. This allows for real-time verification of the prize calculation results in both systems for the first 'n' marked sales records. Using this method, the prize calculation verification for all 21,425,712 possible winning numbers for the Super Lotto is completed when sales end. Once the lottery results are released, only the prize calculation verification results matching the winning numbers need to be retrieved.
[0037] Please refer to Figure 4As shown, the present invention also provides a real-time lottery prize calculation device, the device comprising a data acquisition module, a calculation module, and a matching module; the data acquisition module is used to collect sales data during the lottery sales process and obtain all winning results according to the lottery prize calculation rules corresponding to the sales data; the calculation module is used to analyze the sales data through cloud computing based on all winning results to obtain the winning numbers corresponding to the sales data for each winning result; the matching module is used to obtain the winning numbers corresponding to the lottery after the lottery sales stop and the lottery draw ends, and to match the winning numbers with the winning numbers to obtain the winning sales data.
[0038] In one embodiment of the present invention, the acquisition module may further include a sealing unit, which is used to generate a sequentially increasing unique identifier based on the sales data, seal the sales data and corresponding log data, and then upload the unique identifier to the blockchain for sealing as verification data. Further, the calculation module also includes a verification comparison unit, which is used to analyze the winning situation of the verification data for each lottery result using cloud computing to obtain the prize verification number corresponding to the verification data; and to perform a consistency comparison between the prize number and the prize verification number based on the unique identifier. In another embodiment of the present invention, the matching module may further include an output unit, which is used to match the prize number and the prize verification number using the lottery number; when the sales data corresponding to the prize number matches the verification data corresponding to the prize verification number, a winning result is generated based on the prize number, the sales data, and the verification data.
[0039] To facilitate understanding of the specific implementation process of the real-time lottery prize calculation device provided by the present invention, the following uses the 7-star lottery as an example to illustrate the real-time lottery prize calculation in actual work. Those skilled in the art will understand that this example is only an application method to help understand the above embodiments provided by the present invention, and does not limit it in any way.
[0040] 1. Create a 7-star lottery game prize period; the prize period status is inactive.
[0041] 2. Activating the lottery ticket before it goes on sale means the ticket cannot be sold before the official sales start time.
[0042] 3. Once the sales period begins, lottery tickets can be sold.
[0043] 4. When lottery sales occur and the data enters the database of the 7-Star Lottery prize calculation software system, each sales record is assigned a unique numerical identifier sorted from smallest to largest.
[0044] 5. Utilizing the supercomputing power of cloud computing technology, calculate whether each sales data point wins, the number of winning bets, and the winning amount based on all the winning results of the 7-star lottery (15 million possible combinations), i.e., real-time prize calculation;
[0045] 6. Utilizing the "unforgeable", "fully traceable", and "traceable" characteristics of blockchain technology, real-time online storage of each sales data and log data is achieved;
[0046] 7. Utilizing the supercomputing power of cloud computing technology, calculate whether each piece of sealed sales data is a winner, the number of winning bets, and the winning amount for all 15 million lottery results. The order and granularity of the prize calculation are the same as the real-time prize calculation in step 5. Then, based on the prize calculation results of steps 5 and 7, perform prize calculation verification, that is, verify whether the winning situation is consistent, whether the number of winning bets is consistent, and whether the prize level is consistent.
[0047] 8. During the lottery sales period, whenever a new lottery ticket is sold and deposited into the system, steps 5 to 7 can be executed repeatedly to achieve real-time prize calculation, real-time data storage, and real-time prize calculation verification for the 7-star lottery.
[0048] 9. When the lottery sales period ends, the status of the prize period will be changed to "sales stopped". At this time, no new tickets will be sold. The system has completed the prize calculation, data sealing and prize verification for all winning results.
[0049] 10. The final winning numbers are drawn by lottery. The winning results, data sealing results, and winning verification results that match the winning numbers are retrieved from the winning results, data sealing results, and winning verification results of all completed winning results.
[0050] 11. Once the prize calculation for this period of the 7-Star Lottery is completed and the lottery notarization is finished, the lottery system can begin issuing prizes to lottery players, thus completing the draw.
[0051] The beneficial technical effects of this invention are as follows: it can realize real-time prize calculation, real-time sealing, real-time prize calculation verification, and near-real-time lottery draw, effectively improving the timeliness of lottery-related processes. At the same time, there is no need to worry about malfunctions in the current lottery draw process; one only needs to wait for the lottery draw results and retrieve the corresponding data. If there are malfunctions in the lottery prize calculation or verification program, they can be detected and resolved in advance, improving the operational stability of the lottery system.
[0052] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method.
[0053] The present invention also provides a computer-readable storage medium storing a computer program for performing the above-described method.
[0054] like Figure 5 As shown, the electronic device 600 may also include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily need to include these components. Figure 5 All components shown; in addition, the electronic device 600 may also include Figure 5 For components not shown, please refer to existing technology.
[0055] like Figure 5 As shown, the central processing unit 100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device. The central processing unit 100 receives inputs and controls the operation of various components of the electronic device 600.
[0056] The memory 140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 100 may execute the program stored in the memory 140 to perform information storage or processing, etc.
[0057] Input unit 120 provides input to central processing unit 100. Input unit 120 may be, for example, a keypad or touch input device. Power supply 170 provides power to electronic device 600. Display 160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.
[0058] The memory 140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 140 can also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142 for storing application programs and function programs or processes for executing the operation of the electronic device 600 via the central processing unit 100.
[0059] The memory 140 may also include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 144 of the memory 140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0060] The communication module 110 is a transmitter / receiver 110 that transmits and receives signals via antenna 111. The communication module (transmitter / receiver) 110 is coupled to the central processing unit 100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.
[0061] Based on different communication technologies, multiple communication modules 110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132, thereby enabling typical telecommunications functions. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 130 is coupled to a central processing unit 100, enabling on-device recording via the microphone 132 and on-device playback of stored audio via the speaker 131.
[0062] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0063] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.
[0064] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0065] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0066] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A real-time lottery prize calculation method, characterized in that, The method includes: During the lottery sales process, sales data is obtained, and a unique identifier is generated based on the sales data in an incremental order. After the sales data and the corresponding log data are sealed, they are uploaded to the blockchain through the unique identifier and sealed as verification data. All winning results are obtained according to the lottery prize calculation rules corresponding to the sales data. Based on all winning results, the winning situation of the sales data for each winning result is analyzed by cloud computing to obtain the prize calculation numbers corresponding to the sales data. Based on all the lottery results, the verification data is analyzed using cloud computing to determine the winning situation for each lottery result and obtain the prize calculation verification number corresponding to the verification data. The prize-winning number and the prize-winning verification number are compared for consistency based on the unique identifier. After lottery sales cease and the draw concludes, the winning numbers corresponding to the lottery are obtained. The winning sales data are then obtained by matching the winning numbers with the prize calculation numbers.
2. The real-time lottery prize calculation method according to claim 1, characterized in that, The sales data for obtaining the winning numbers by matching the winning numbers with the calculated winning numbers also includes: The winning numbers are matched with the prize calculation numbers and the prize calculation verification numbers; When the sales data corresponding to the prize-winning number matches the verification data corresponding to the prize-winning verification number, a winning result is generated based on the prize-winning number, the sales data, and the verification data.
3. A real-time lottery prize calculation device, characterized in that, The device includes an acquisition module, a calculation module, and a matching module; The acquisition module is used to collect sales data during the lottery sales process and obtain all winning results according to the lottery prize calculation rules corresponding to the sales data; The calculation module is used to analyze the sales data through cloud computing based on all lottery results to obtain the corresponding lottery numbers for each lottery result. The matching module is used to obtain the winning numbers of the lottery after the lottery sales stop and the draw is over, and to match the winning numbers with the prize calculation numbers to obtain the winning sales data; The acquisition module also includes a sealing unit, which is used to generate a sequentially increasing unique identifier based on the sales data, seal the sales data and the corresponding log data, and then upload the unique identifier to the blockchain for sealing as verification data. The calculation module also includes a verification and comparison unit, which is used to analyze the verification data for each type of lottery result using cloud computing based on all lottery results, and obtain the prize calculation verification number corresponding to the verification data. The prize-winning number and the prize-winning verification number are compared for consistency based on the unique identifier.
4. The real-time lottery prize calculation device according to claim 3, characterized in that, The matching module further includes an output unit, which is used to match the winning number with the prize calculation number and the prize calculation verification number; when the sales data corresponding to the prize calculation number matches the verification data corresponding to the prize calculation verification number, a winning result is generated based on the prize calculation number, the sales data and the verification data.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and for running on the processor, characterized in that, When the processor executes the computer program, it implements the method of claim 1 or 2.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that enables a computer to perform the method of claim 1 or 2.
Citation Information
Patent Citations
Data processing method and interface processing method and device for lottery application program
CN109685964A
Lottery ticket redemption method and device based on a block chain
CN109905379A