Online lottery drawing system and method, electronic equipment and storage medium

By using the anti-counterfeiting logo and verification logo generated by the server in the online lottery system, the problem of the lottery results being easily tampered with is solved, and the security and reliability of the system are achieved.

CN120198174APending Publication Date: 2025-06-24ANHUI SANQI JIYU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510345054.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the existing online lottery system, the lottery results are easily tampered with, resulting in the insecurity and unreliability of the system.

Method used

By generating the first anti-counterfeiting logo and the first verification logo on the server side, sending it to the lottery end, and verifying it by the lottery end, ensuring that the lottery result comes from the server and has not been tampered with.

Benefits of technology

It effectively prevents the tampering of lottery results, improves the security and stability of the system, and ensures the reliability of lottery results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120198174A_ABST
    Figure CN120198174A_ABST
Patent Text Reader

Abstract

The invention discloses an online lottery drawing system and method, electronic equipment and a storage medium, a server generates a first verification identifier based on a lottery drawing result and a client identifier of a lottery drawing end, and the server can also generate a first anti-counterfeiting identifier and send the first verification identifier and the first anti-counterfeiting identifier to the lottery drawing end. Therefore, the lottery drawing end can verify the first verification identifier based on an algorithm agreed with the server in advance so as to ensure that the lottery drawing result comes from the server and determine that the lottery drawing result is not tampered, and when the verification is passed, the lottery drawing end can generate a picture containing the first anti-counterfeiting identifier and the lottery drawing result. And the lottery drawing result is further ensured not to be tampered by the outside.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an online lottery system, method, electronic device and storage medium. Background Art

[0002] With the development of science and technology, Internet technology has developed rapidly, and online lottery systems are widely used in different scenarios. For example, in sports events, the organizer can initiate a lottery event for autographed photos of athletes to encourage the public to pay attention to and watch the sports event.

[0003] Usually, an online lottery system may include an initiator, a lottery terminal, and a server. The initiator may initiate a lottery task at the initiator, and the server may send the lottery task to the lottery terminal, so that the lottery drawer may participate in the lottery task at the lottery terminal. Furthermore, the server may determine the lottery result corresponding to the lottery drawer, and send the lottery result to the lottery terminal, so that the lottery drawer may display the lottery result to the lottery drawer, and the lottery drawer may exchange the prize based on the lottery result. However, some people may take illegal means to tamper with the lottery result for their own benefit. Therefore, how to prevent the lottery result from being tampered is an important issue.

[0004] Based on this, this specification provides an online lottery system. Summary of the invention

[0005] This specification provides an online lottery system, method, electronic device and storage medium to partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides an online lottery system, which includes a server, an initiator, and a lottery terminal; the method includes:

[0008] The initiator, in response to the initiator's operation, sends a lottery initiation request to the server; the lottery initiation request carries a lottery task;

[0009] The server sends the lottery task to the lottery terminal according to the received lottery initiation request;

[0010] The lottery terminal displays the received lottery task; generates a lottery request in response to the operation of the lottery drawer, and sends the lottery request to the server; the lottery request carries the client identifier of the lottery terminal;

[0011] The server determines a lottery result based on the received lottery request; generates a first verification identifier corresponding to the lottery request according to the lottery result and the client identifier of the lottery terminal; and generates a first anti-counterfeiting identifier corresponding to the lottery request; and sends the first anti-counterfeiting identifier, the first verification identifier, and the lottery result to the lottery terminal;

[0012] The lottery terminal verifies the first verification identifier based on the received lottery result and the client identifier of the lottery terminal; when the verification passes, generates a picture containing the first anti-counterfeiting identifier and the lottery result, and displays it.

[0013] Optionally, the server is specifically configured to determine a first timestamp when the lottery terminal sends the lottery request; generate a first anti-counterfeiting identifier corresponding to the lottery request according to the first timestamp and the client identifier of the lottery terminal by using a first encryption algorithm.

[0014] Optionally, the server is specifically configured to generate a first verification identifier corresponding to the lottery request based on the lottery result and the client identifier of the lottery terminal by using a second encryption algorithm; wherein the second encryption algorithm is pre-agreed between the server and the lottery terminal.

[0015] Optionally, the lottery terminal is specifically configured to generate a to-be-verified identifier based on the lottery result and the client identifier of the lottery terminal by using a second encryption algorithm; when the to-be-verified identifier is consistent with the first verification identifier, determine that the verification passes.

[0016] Optionally, the initiating terminal is specifically configured to, in response to the operation of the initiator, determine a second timestamp when the initiating terminal sends a lottery initiation request to the server; generate a second anti-counterfeiting identifier corresponding to the lottery initiation request according to the second timestamp and the client identifier of the initiating terminal; and send the second anti-counterfeiting identifier to the server;

[0017] The server is specifically configured to send the received second anti-counterfeiting identifier to the lottery terminal;

[0018] The lottery terminal is specifically configured to, when the verification passes, generate a picture containing the first anti-counterfeiting identifier, the second anti-counterfeiting identifier, and the lottery result.

[0019] Optionally, the initiating end is specifically configured to generate a second verification identifier by using a third encryption algorithm based on the client identifier of the initiating end and the user information of the initiator; and send the second verification identifier and the lottery initiation request to the server; wherein, the third encryption algorithm is pre-agreed between the server and the initiating end, and the lottery initiation request also carries the client identifier of the initiating end and the user information of the initiator;

[0020] The server is further configured to, according to the client identifier of the initiating end and the user information of the initiator carried in the received lottery initiation request, use the third encryption algorithm to verify the received second verification identifier; when the verification passes, send the lottery task to the lottery end according to the received lottery initiation request.

[0021] This specification provides an online lottery method, which is applied to the lottery end in an online lottery system; the online lottery system further includes an initiating end and a server; the method includes:

[0022] Receive a lottery task and display it;

[0023] In response to the operation of the lottery participant, generate a lottery request;

[0024] Send the lottery request to the server, and the lottery request carries the client identifier of the lottery end, so that the server determines the lottery result, the first verification identifier, and the first anti-counterfeiting identifier, and sends the first verification identifier, the first anti-counterfeiting identifier, and the lottery result to the lottery end;

[0025] Receive the lottery result, the first verification identifier, and the first anti-counterfeiting identifier sent by the server;

[0026] According to the lottery result and the client identifier of the lottery end, verify the first verification identifier;

[0027] When the verification passes, generate a picture including the first anti-counterfeiting identifier and the lottery result, and display it.

[0028] This specification provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned resource allocation method is implemented.

[0029] This specification provides an online lottery method, which is applied to the server in an online lottery system; the online lottery system further includes a lottery end and an initiating end; the method includes:

[0030] Receive the lottery initiation request sent by the initiating end; the lottery task is carried in the lottery initiation request;

[0031] According to the received lottery initiation request, send the lottery task to the lottery end, so that the lottery end generates a lottery request and sends the lottery request to the server; the client identifier of the lottery end is carried in the lottery request;

[0032] Based on the received lottery request, determine the lottery result;

[0033] According to the lottery result and the client identifier of the lottery end, generate a first verification identifier corresponding to the lottery request; and generate a first anti-counterfeiting identifier corresponding to the lottery request;

[0034] Send the first anti-counterfeiting identifier, the first verification identifier and the lottery result to the lottery end, so that the lottery end verifies the first verification identifier. When the verification passes, generate a picture containing the first anti-counterfeiting identifier and the lottery result and display it.

[0035] This specification provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the above online lottery method is implemented.

[0036] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0037] In the online lottery system and method provided in this specification, the server generates a first verification identifier based on the lottery result and the client identifier of the lottery end. And the server can also generate a first anti-counterfeiting identifier and send the first verification identifier and the first anti-counterfeiting identifier to the lottery end. Thus, the lottery end can verify the first verification identifier based on the algorithm agreed with the server in advance to ensure that the lottery result comes from the server and has not been tampered with. And when the verification passes, generate a picture containing the first anti-counterfeiting identifier and the lottery result to further ensure that the lottery result has not been tampered with. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of this specification, and constitute a part of this specification. The illustrative embodiments of this specification and their descriptions are used to explain this specification and do not constitute an improper limitation of this specification. In the drawings:

[0039] Figure 1 It is a schematic diagram of an online lottery system provided by this specification;

[0040] Figure 2 It is a schematic flowchart of an online lottery method provided by this specification;

[0041] Figure 3 A flowchart of an online lottery method provided in this manual;

[0042] Figure 4 The corresponding Figure 2 and Figure 3 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0044] In addition, it should be noted that all actions of acquiring signals, information or data in this manual are performed in compliance with the relevant local data protection laws and policies and with the authorization given by the owner of the corresponding device.

[0045] It should be noted that, in the absence of conflict, the features in the following embodiments and implementations may be combined with each other.

[0046] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0047] like Figure 1 As shown, an online lottery system provided in this specification is shown. It can be seen that the online lottery system provided in this specification includes a server, an initiator and a lottery terminal.

[0048] In this specification, the initiator can initiate a lottery activity through the initiator, and the initiator can respond to the initiator's operation and send a lottery initiation request to the server, and the lottery initiation request carries a lottery task. In one or more embodiments of this specification, the lottery task can be determined based on specific scenarios and requirements, and this specification does not limit it.

[0049] The server receives the lottery initiation request sent by the initiator, and may send the lottery task carried in the lottery initiation request to the lottery end according to the received lottery initiation request.

[0050] The lottery terminal receives the lottery tasks sent by the server and can visualize the received lottery tasks to display the received lottery tasks. The lottery participant can participate in the lottery tasks through the lottery terminal. Thus, the lottery terminal can generate a lottery request in response to the operation of the lottery participant and send the generated lottery request to the server. In this specification, the client identifier of the lottery terminal is carried in the lottery request.

[0051] The server can receive the lottery request sent by the lottery terminal and determine the lottery result based on the lottery request. Thus, the server can generate a first verification identifier corresponding to the lottery request according to the lottery result and the client identifier of the lottery terminal. Moreover, the server can also generate a first anti-counterfeiting identifier corresponding to the lottery request. In this specification, the first anti-counterfeiting identifier can be used to identify the lottery result to indicate that the lottery result with the first anti-counterfeiting identifier comes from the server, thus preventing the lottery result from being tampered with. The server can send the first anti-counterfeiting identifier, the first verification identifier, and the lottery result to the lottery terminal.

[0052] The lottery terminal can receive the first anti-counterfeiting identifier, the first verification identifier, and the lottery result, and thus can verify the first verification identifier based on the received lottery result and the client identifier of the lottery terminal. When the verification passes, a picture containing the first anti-counterfeiting identifier and the lottery result is generated and displayed. In one or more embodiments of this specification, the server can generate a picture containing the first anti-counterfeiting identifier and the lottery result through canvas technology.

[0053] In practical applications, in order to make the lottery result conform to their own interests, lottery participants or some illegal elements will use illegal means to tamper with the lottery result. The phenomenon of tampering with the lottery result can occur not only in the process of data transmission between devices in the online lottery system, but also after the lottery terminal in the online lottery system obtains the lottery result. Therefore, in order to ensure the security of the lottery in the online lottery system, in this specification, when generating the lottery result, the server also generates a first anti-counterfeiting identifier to indicate that the lottery result comes from the server, so as to prevent the outside from forging the lottery result. Moreover, a first verification identifier is also generated so that the lottery terminal can verify the lottery result, thus ensuring that the lottery result comes from the server, ensuring that the lottery result has not been tampered with during the data transmission process, improving the stability and security of the online lottery system, and ensuring the safety and reliability of the lottery result.

[0054] In this specification, when generating the first anti-counterfeiting identifier, the server can determine the first timestamp when the lottery terminal sends the lottery request, and can generate the first anti-counterfeiting identifier corresponding to the lottery request by using the first encryption algorithm according to the first timestamp and the client identifier of the lottery terminal.

[0055] When determining the first timestamp when the lottery-drawing end sends a lottery-drawing request, the server may record the time when it receives the lottery-drawing request sent by the lottery-drawing end, and the recorded time is the first timestamp. Of course, the first timestamp may be carried in the lottery-drawing request. That is to say, the lottery-drawing end may generate the first timestamp, and the time represented by the first timestamp is the time when the lottery-drawing request is sent from the lottery-drawing end to the server. The lottery-drawing end may send the lottery-drawing request carrying the first timestamp to the server, and then the server may obtain the first timestamp when the lottery-drawing end sends the lottery-drawing request according to the lottery-drawing request.

[0056] In one or more embodiments of this specification, the first encryption algorithm may be a hash algorithm, a symmetric encryption algorithm, etc., and this specification does not make specific limitations.

[0057] When generating the first anti-counterfeiting identifier, the server may also generate a first verification identifier corresponding to the lottery-drawing request according to the determined lottery-drawing result and the client identifier of the lottery-drawing end by using a second encryption algorithm. Among them, the second encryption algorithm may be a hash algorithm, a symmetric encryption algorithm, etc., and this specification does not make specific limitations. In addition, the first encryption algorithm and the second encryption algorithm may be the same or different. In one or more embodiments of this specification, the second encryption algorithm may specifically be the MD5+salt algorithm, that is, the MD5 salt-adding algorithm.

[0058] It should be noted that although this specification does not limit what specific algorithm the second encryption algorithm is, the lottery-drawing end and the server need to pre-agree on what algorithm the second encryption algorithm is, so as to ensure the consistency of the algorithms used by the lottery-drawing end and the server, and to realize the verification of the first verification identifier by the lottery-drawing end.

[0059] After the server generates the first anti-counterfeiting identifier and the first verification identifier, it may send the lottery-drawing result, the first anti-counterfeiting identifier, and the first verification identifier to the lottery-drawing end. Then, the lottery-drawing end may receive the lottery-drawing result, the first anti-counterfeiting identifier, and the first verification identifier. The lottery-drawing end may verify the first verification identifier based on the received lottery-drawing result and the client identifier of the lottery-drawing end. As described above, the lottery-drawing end may specifically generate a to-be-verified identifier according to the lottery-drawing result and the client identifier of the lottery-drawing end through the second encryption algorithm pre-agreed with the server, and may determine whether the to-be-verified identifier is consistent with the first verification identifier. When it is determined that the to-be-verified identifier is consistent with the first verification identifier, it is determined that the verification is passed, that is, it is determined that the lottery-drawing result comes from the server and has not been tampered with. When it is determined that the to-be-verified identifier is inconsistent with the first verification identifier, it is determined that the verification fails, that is, it is determined that the lottery-drawing result has been tampered with.

[0060] Further, in this specification, to further improve the security of the lottery system, when the initiating end sends a lottery initiation request to the server, the lottery end can, in response to the operation of the initiator, determine the second timestamp at which the initiating end sends the lottery initiation request to the server. That is, this second timestamp represents the time when the initiating end sends the lottery initiation request to the server. Thus, based on this second timestamp and the client identifier of the initiating end, the second anti-counterfeiting identifier corresponding to the lottery initiation request can be generated and sent to the server. Furthermore, the server can use this second anti-counterfeiting identifier in subsequent steps. In this specification, this second anti-counterfeiting identifier can not only represent that the lottery initiation request comes from the initiating end, enabling the server to determine that the lottery task carried in the lottery initiation request comes from the initiating end to prevent the lottery task from being tampered with. For example, an illegal element may tamper with the amount in the lottery task to obtain a higher lottery amount. It can also be used to generate the lottery result. Then, the lottery result not only includes the data transmission information between the lottery end and the server but also includes the data transmission information between the initiating end and the server, thereby further improving the security of the lottery result and preventing the lottery result from being tampered with.

[0061] Specifically, after the initiating end sends the second anti-counterfeiting identifier to the server, the server can receive this second anti-counterfeiting identifier. Furthermore, after the server generates the first anti-counterfeiting identifier and the first verification identifier, when sending the first anti-counterfeiting identifier, the first verification identifier, and the lottery result to the lottery end, the server can also send this second anti-counterfeiting identifier to the lottery end. Thus, when the lottery end generates a picture containing the first anti-counterfeiting identifier and the lottery result after passing the verification, the lottery end can generate a picture containing the first anti-counterfeiting identifier, the second anti-counterfeiting identifier, and the lottery result, and then display it or send it to the lottery participant.

[0062] In addition, in this specification, the initiating end can also, based on the client identifier of the initiating end and the user information of the initiator, use a third encryption algorithm to generate a second verification identifier and send this second verification identifier and the lottery initiation request to the server. This second verification identifier can be used to indicate that the lottery initiation request comes from the initiating end, enabling the server to determine that the lottery initiation request has not been tampered with, further improving the security of this online lottery system. In addition, when obtaining this second verification identifier, the user information of the initiator needs to be determined. In this specification, the initiating end can conduct a risk identification of the initiator. Only when it is determined that the initiator is a non-risk user can the initiator be granted the permission to initiate a lottery task. That is, this second verification identifier can also represent the compliance of the lottery initiation request. Among them, the lottery initiation request carries the client identifier of the initiating end and the user information of the initiator.

[0063] Thus, when the server receives the lottery draw initiation request, it also receives the second verification identifier. Consequently, the server can use the third encryption algorithm to verify the second verification identifier based on the received client identifier of the initiating end and the user information of the initiator. When the verification passes, the lottery draw task carried in the lottery draw request can be sent to the lottery draw end.

[0064] In this specification, the third encryption algorithm can be a hash algorithm or a symmetric encryption algorithm, etc. This specification does not make specific restrictions, but this third encryption algorithm is pre-agreed upon by the server and the initiating end, so as to ensure that the server and the initiating end can use the same algorithm to process the client identifier of the initiating end and the user information of the initiator to achieve mutual verification.

[0065] Of course, the initiating end can determine the third timestamp for sending the lottery draw initiation request to the server, and can determine the second verification identifier based on this third timestamp, the client identifier of the initiating end, and the user information of the initiator. The lottery draw initiation request also carries the third timestamp, so that the server can verify the second verification identifier based on the third timestamp, the client identifier of the initiating end, and the user information of the initiator. Adding time information to the second verification identifier further increases the cost of tampering, thereby improving the security of the online lottery draw system.

[0066] Based on the above online lottery draw system, it can be seen that in this specification, the server generates the first verification identifier based on the lottery draw result and the client identifier of the lottery draw end. Moreover, the server can also generate the first anti-counterfeiting identifier and send the first verification identifier and the first anti-counterfeiting identifier to the lottery draw end. Thus, the lottery draw end can verify the first verification identifier based on the algorithm pre-agreed upon with the server to ensure that the lottery draw result comes from the server and has not been tampered with. When the verification passes, a picture containing the first anti-counterfeiting identifier and the lottery draw result is generated to further confirm that the lottery draw result has not been tampered with.

[0067] This specification provides an online lottery draw method, which is applied to the lottery draw end in an online lottery draw system. The online lottery draw system also includes an initiating end and a server, as Figure 2 shown, Figure 2 is a schematic flowchart of an online lottery draw method provided by this specification.

[0068] S200: Receive the lottery draw task and display it.

[0069] S202: Generate a lottery draw request in response to the operation of the lottery participant.

[0070] S204: Send the lottery request to the server. The lottery request carries the client identifier of the lottery terminal, so that the server determines the lottery result, the first verification identifier, and the first anti-counterfeiting identifier, and sends the first verification identifier, the first anti-counterfeiting identifier, and the lottery result to the lottery terminal.

[0071] S206: Receive the lottery result, the first verification identifier, and the first anti-counterfeiting identifier sent by the server.

[0072] S208: Verify the first verification identifier according to the lottery result and the client identifier of the lottery terminal.

[0073] S210: When the verification passes, generate and display a picture containing the first anti-counterfeiting identifier and the lottery result.

[0074] This specification provides an online lottery method, which is applied to the server in an online lottery system. The online lottery system further includes a lottery terminal and an initiating terminal, as Figure 3 shown Figure 3 is a schematic flowchart of an online lottery method provided by this specification.

[0075] S300: Receive the lottery initiation request sent by the initiating terminal; the lottery initiation request carries a lottery task.

[0076] S302: According to the received lottery initiation request, send the lottery task to the lottery terminal, so that the lottery terminal generates a lottery request and sends the lottery request to the server; the lottery request carries the client identifier of the lottery terminal.

[0077] S304: Determine the lottery result based on the received lottery request.

[0078] S306: Generate the first verification identifier corresponding to the lottery request according to the lottery result and the client identifier of the lottery terminal; and generate the first anti-counterfeiting identifier corresponding to the lottery request.

[0079] S308: Send the first anti-counterfeiting identifier, the first verification identifier, and the lottery result to the lottery terminal, so that the lottery terminal verifies the first verification identifier. When the verification passes, generate and display a picture containing the first anti-counterfeiting identifier and the lottery result.

[0080] Based on Figure 2 and Figure 3In the method described above, it can be seen that in this specification, the server generates a first verification identifier based on the lottery result and the client identifier of the lottery terminal. Moreover, the server can also generate a first anti-counterfeiting identifier and send the first verification identifier and the first anti-counterfeiting identifier to the lottery terminal. Thus, the lottery terminal can verify the first verification identifier based on an algorithm previously agreed upon with the server to ensure that the lottery result originates from the server and has not been tampered with. When the verification passes, a picture containing the first anti-counterfeiting identifier and the lottery result is generated to further confirm that the lottery result has not been tampered with.

[0081] This specification also provides a computer-readable storage medium that stores a computer program, and the computer program can be used to execute the above-mentioned Figure 1 resource allocation method shown.

[0082] This specification also provides Figure 4 a schematic structural diagram of the electronic device shown. As Figure 4 described above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory. Of course, it may also include other hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above-mentioned Figure 2 and Figure 3 online lottery method shown. Of course, in addition to the software implementation method, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit and can also be hardware or a logic device.

[0083] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to method flows). However, with the development of technology, many method flow improvements today can be regarded as direct improvements to hardware circuit structures. Almost all designers obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement to a method flow cannot be implemented using a hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logical function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system onto a single PLD, without having to ask a chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a Hardware Description Language (HDL). There is not just one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that by simply performing a little logical programming on the method flow using the above-mentioned several hardware description languages and programming it into the integrated circuit, it is easy to obtain the hardware circuit that implements the logical method flow.

[0084] The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to logically program the method steps to enable the controller to be implemented in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. to achieve the same functions. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be regarded as the structures within the hardware component. Or even, the devices for implementing various functions can be regarded as either software modules for implementing the method or the structures within the hardware component.

[0085] The systems, devices, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0086] For the convenience of description, when describing the above devices, they are described separately as various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0087] Those skilled in the art should understand that the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0088] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It should be understood that each flow and / or block in the flowchart and / or block diagram, and combinations of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general purpose computers, special purpose computers, embedded processors, or other programmable data processing devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices generate means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0089] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including instruction means that implement the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0091] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0092] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.

[0093] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0094] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0095] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented 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.

[0096] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0097] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the corresponding description in the method embodiment.

[0098] The above description is only for the embodiments of this specification and is not intended to limit this specification. For those skilled in the art, various modifications and changes can be made to this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included within the scope of the claims of this specification.

Claims

1. An online lottery system, characterized in that: The online lottery system includes a server, an initiating end and a lottery end, and the method includes: The initiator, in response to the initiator's operation, sends a lottery initiation request to the server; the lottery initiation request carries a lottery task; The server sends the lottery task to the lottery terminal according to the received lottery initiation request; The lottery terminal displays the received lottery task; generates a lottery request in response to the operation of the lottery drawer, and sends the lottery request to the server; the lottery request carries the client identifier of the lottery terminal; The server determines a lottery result based on the received lottery request; generates a first verification mark corresponding to the lottery request according to the lottery result and the client identifier of the lottery terminal; and generates a first anti-counterfeiting mark corresponding to the lottery request; and sends the first anti-counterfeiting mark, the first verification mark and the lottery result to the lottery terminal; The lottery terminal verifies the first verification mark based on the received lottery result and the client identifier of the lottery terminal; when the verification passes, generates and displays a picture including the first anti-counterfeiting mark and the lottery result.

2. The system according to claim 1, characterized in that The server is specifically used to determine a first timestamp when the lottery end sends the lottery request; and generate a first anti-counterfeiting mark corresponding to the lottery request using a first encryption algorithm according to the first timestamp and the client identifier of the lottery end.

3. The system according to claim 1, characterized in that The server is specifically used to generate a first verification identifier corresponding to the lottery request using a second encryption algorithm based on the lottery result and the client identifier of the lottery end; wherein the second encryption algorithm is pre-agreed upon by the server and the lottery end.

4. The system according to claim 3, characterized in that The lottery terminal is specifically used to generate a to-be-verified identifier based on the lottery result and the client identifier of the lottery terminal by using the second encryption algorithm; when the to-be-verified identifier is consistent with the first verification identifier, it is determined that the verification is passed.

5. The system according to claim 1, wherein: The initiator is specifically configured to, in response to the initiator's operation, determine a second timestamp of the initiator sending the lottery initiation request to the server; generate a second anti-counterfeiting mark corresponding to the lottery initiation request according to the second timestamp and the client identifier of the initiator; and send the second anti-counterfeiting mark to the server; The server is specifically configured to send the received second anti-counterfeiting mark to the lottery terminal; The lottery drawing end is specifically used to generate a picture including the first anti-counterfeiting mark, the second anti-counterfeiting mark and the lottery drawing result when the inspection passes.

6. The system according to claim 1, characterized in that The initiator is specifically used to generate a second verification identifier based on the client identifier of the initiator and the user information of the initiator using a third encryption algorithm; and send the second verification identifier and the lottery initiation request to the server; wherein the third encryption algorithm is pre-agreed upon by the server and the initiator, and the lottery initiation request also carries the client identifier of the initiator and the user information of the initiator; The server is also used to use the third encryption algorithm to verify the received second verification identifier based on the client identifier of the initiating end and the user information of the initiator carried in the received lottery initiation request; when the verification passes, the lottery task is sent to the lottery end according to the received lottery initiation request.

7. An online lottery method, characterized in that: The method is applied to a lottery terminal in an online lottery system; the online lottery system also includes an initiator and a server; the method includes: Receive lottery tasks and display them; In response to the operation of the lottery drawer, a lottery draw request is generated; Sending the lottery request to the server, wherein the lottery request carries the client identifier of the lottery terminal, so that the server determines the lottery result, the first verification identifier and the first anti-counterfeiting identifier, and sends the first verification identifier, the first anti-counterfeiting identifier and the lottery result to the lottery terminal; Receiving the lottery result, the first verification mark, and the first anti-counterfeiting mark sent by the server; According to the lottery result and the client identifier of the lottery terminal, the first verification identifier is verified; When the verification passes, a picture including the first anti-counterfeiting mark and the lottery result is generated and displayed.

8. An online lottery method, characterized in that: The method is applied to a server in an online lottery system; The online lottery system also includes a lottery terminal and an initiating terminal; the method includes: receiving the lottery initiation request sent by the initiator; the lottery initiation request carries a lottery task; According to the received lottery initiation request, the lottery task is sent to the lottery terminal, so that the lottery terminal generates a lottery request, and sends the lottery request to the server; the lottery request carries the client identifier of the lottery terminal; Determine a lottery result based on the received lottery request; Generate a first verification mark corresponding to the lottery request according to the lottery result and the client identifier of the lottery terminal; and generate a first anti-counterfeiting mark corresponding to the lottery request; The first anti-counterfeiting mark, the first verification mark and the lottery result are sent to the lottery end so that the lottery end verifies the first verification mark. When the verification passes, a picture including the first anti-counterfeiting mark and the lottery result is generated and displayed.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 7 to 8 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 7 to 8 is implemented.