Lottery merging printing method, device and equipment and storage medium
By receiving, merging, and encrypting lottery information, the problem of needing to print multiple copies when purchasing various lottery tickets is solved, achieving the combined printing of multiple lottery tickets and ensuring data security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SPORTS LOTTERY MANAGEMENT CENT OF THE GENERAL ADMINISTRATION OF SPORT OF CHINA
- Filing Date
- 2022-10-13
- Publication Date
- 2026-05-19
AI Technical Summary
In existing technologies, when lottery buyers purchase multiple lottery tickets, the terminal device needs to print multiple tickets, which leads to inconvenience in storage.
By receiving data packets uploaded from lottery sales terminals, the system uploads them to the lottery game system for storage and scheduling. Lottery information is merged into a single order, encrypted, and then transmitted to the terminal for printing. The order is identified by an order number and the order key is stored.
It enables the combined printing of multiple lottery information, reducing the number of lottery tickets that lottery buyers need to keep, improving the convenience of storage, and preventing data tampering through encryption and order keys.
Smart Images

Figure CN115543235B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lottery sales technology, and in particular to a lottery ticket merging and printing method, apparatus, equipment and storage medium. Background Technology
[0002] In recent years, the lottery business has developed extremely rapidly, and the types of lottery games have become increasingly diverse. Common lottery types include: Super Lotto, Arrangement 3, Arrangement 5, 7-Star Lottery, Football Betting, Basketball Betting, and traditional football lottery. Because the lottery is a national public welfare lottery, it encourages multiple people to buy small amounts. Currently, the only channel for purchasing lottery tickets is through betting stations. The lottery ticket is a prize-winning receipt printed at the lottery sales terminal and is the only proof of winning.
[0003] In related technologies, lottery buyers input betting information for a certain type of lottery through a terminal device. The terminal device transmits the betting information to a backend server for encrypted storage. Finally, the terminal device responds to the backend server's instructions and prints out a lottery ticket containing the betting information to the buyer, completing the lottery sale. However, in this process, the terminal device can only print betting information for one type of lottery at a time. If a lottery buyer wants to purchase multiple types of lottery tickets at once, the corresponding terminal device needs to print out multiple types of tickets for the buyer, which is inconvenient for the buyer to keep the tickets safe. Summary of the Invention
[0004] To address or partially address the problems existing in related technologies, this application provides a lottery merging method, apparatus, device, and storage medium capable of merging and printing betting information from multiple lotteries.
[0005] The first aspect of this application provides a method for merging and printing lottery tickets, including:
[0006] Receive lottery data packets uploaded from a lottery sales terminal, the lottery data packets including betting information for at least one lottery;
[0007] The lottery data packet is uploaded to the lottery game system for storage, and the lottery game system is scheduled to return the lottery information corresponding to the lottery.
[0008] The lottery information corresponding to each lottery ticket is merged into a single order, and the order is identified by an order number;
[0009] The order is stored, and the order and all the betting information of the corresponding lottery tickets are transmitted to the lottery sales terminal for merging and printing.
[0010] Preferably, the step of merging the lottery information corresponding to each lottery into a single order, and identifying the order number, includes:
[0011] Generate random numbers;
[0012] The lottery information corresponding to each lottery ticket is encrypted using the random number.
[0013] The lottery information corresponding to each lottery ticket is merged into a single order;
[0014] The order number is used to identify the order.
[0015] Use the random number as the order key for the order;
[0016] The storage of the order includes:
[0017] Store all data for the order except for the order key.
[0018] Preferably, the random number generation includes:
[0019] Obtain the current timestamp and the SN code of the lottery sales terminal, combine the current timestamp and the SN code to form a random factor, and generate a random number based on the random factor.
[0020] Preferably, the step of encrypting the lottery information corresponding to each lottery using the random number includes:
[0021] The SM4 national cryptographic encryption algorithm is used to encrypt the lottery information corresponding to each lottery ticket using the random number.
[0022] Preferably, the lottery information includes the lottery ticket number and the lottery password;
[0023] The method employs the SM4 national cryptographic encryption algorithm, using the random number to encrypt the lottery information corresponding to each lottery ticket, including:
[0024] The SM4 national cryptographic encryption algorithm is used to encrypt the lottery password corresponding to each lottery ticket using the random number.
[0025] A second aspect of this application provides a lottery ticket merging and printing apparatus, comprising:
[0026] A receiving module is used to receive lottery data packets uploaded from a lottery sales terminal, wherein the lottery data packets include betting information for at least one lottery.
[0027] The upload module is used to upload the lottery data package to the lottery game system for storage, and to schedule the lottery game system to return the lottery information corresponding to each lottery.
[0028] The merge identification module is used to merge the lottery information corresponding to each lottery into the same order and identify the order number;
[0029] The storage module is used to store the order and transmit the order and all the betting information of the lottery tickets corresponding to the order to the lottery sales terminal for merging and printing.
[0030] Preferably, the merging identifier module includes a random unit, an encryption unit, a merging unit, an identifier unit, and a key unit;
[0031] The random unit is used to randomly generate random numbers;
[0032] The encryption unit is used to encrypt the lottery information corresponding to each lottery using the random number;
[0033] The merging unit is used to merge the lottery information corresponding to each lottery into the same order;
[0034] The identification unit is used to identify the order number of the order;
[0035] The key unit is used to use the random number as the order key for the order;
[0036] The storage module is used to store the orders, including:
[0037] Store all data for the order except for the order key.
[0038] Preferably, the random unit is used to randomly generate random numbers, including:
[0039] Obtain the current timestamp and the SN code of the lottery sales terminal, combine the current timestamp and the SN code to form a random factor, and generate a random number based on the random factor.
[0040] A third aspect of this application provides an electronic device, comprising:
[0041] Processor; and
[0042] The memory stores executable code, which, when executed by the processor, causes the processor to perform the lottery merging and printing method as described above.
[0043] A fourth aspect of this application provides a computer-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the lottery ticket merging and printing method as described above.
[0044] The technical solution provided in this application may include the following beneficial effects:
[0045] The technical solution of this application involves receiving lottery data packets uploaded from a lottery sales terminal, the lottery data packets including betting information for at least one lottery; uploading the lottery data packets to a lottery game system for storage, and scheduling the lottery game system to return lottery information corresponding to each lottery; merging the lottery information corresponding to each lottery into a single order, and identifying the order with an order number; storing the order, and transmitting the order and the betting information of all lotteries corresponding to the order to the lottery sales terminal for combined printing. By transmitting the order and the betting information of all lotteries corresponding to the order to the lottery sales terminal for combined printing, the printed paper lottery ticket can contain betting information corresponding to multiple lotteries.
[0046] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0047] The above and other objects, features and advantages of this application will become more apparent from the following description of exemplary embodiments of this application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components.
[0048] Figure 1 This is a schematic flowchart illustrating the lottery ticket merging and printing method shown in the embodiments of this application;
[0049] Figure 2 This is a flowchart illustrating a lottery ticket merging and printing method according to another embodiment of this application;
[0050] Figure 3 This is a flowchart illustrating the lottery ticket merging and printing method in an embodiment of this application;
[0051] Figure 4 This is a flowchart illustrating the lottery prize redemption method in an embodiment of this application;
[0052] Figure 5 This is a schematic diagram of the structure of the lottery merging and printing device shown in the embodiments of this application;
[0053] Figure 6 This is a schematic diagram of the structure of a lottery merging and printing device shown in another embodiment of this application;
[0054] Figure 7 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application. Detailed Implementation
[0055] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.
[0056] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0057] It should be understood that although the terms "first," "second," "third," etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0058] In related technologies, when lottery buyers purchase lottery tickets through terminal devices, if they purchase multiple lottery games, the corresponding terminal devices will print out multiple lottery tickets for the buyer, which is very inconvenient for the buyer to keep the lottery tickets safe.
[0059] Therefore, to address the aforementioned problems, this application provides a method, apparatus, device, and storage medium for merging and printing lottery betting information, capable of merging and printing betting information from multiple lotteries. To better understand the technical solution of this application, the technical solution is described in detail below with reference to the accompanying drawings.
[0060] Figure 1 A flowchart illustrating a lottery ticket merging and printing method according to an embodiment of this application is shown.
[0061] Please see Figure 1 A method for merging and printing lottery tickets includes the following steps:
[0062] Step S11: Receive lottery data packets uploaded from the lottery sales terminal. The lottery data packets include betting information for at least one lottery.
[0063] Therefore, it's important to note that a lottery sales terminal is a device used by lottery buyers to purchase lottery tickets. Buyers can select the lottery they want to buy at the terminal, enter the corresponding betting information, and complete the purchase. Different lottery sales terminals are equipped with different lotteries; common lotteries include Super Lotto, Arrangement 3, Arrangement 5, 7-Star Lottery, Football Betting, Basketball Betting, and traditional football lotteries. Betting information includes the draw number, number of bets, multiplier, betting numbers, terminal number, and betting amount.
[0064] After a lottery player enters their betting information for multiple lotteries, the lottery sales terminal will package this information into a lottery data package and then upload it.
[0065] Step S12: Upload the lottery data package to the lottery game system for storage, and schedule the lottery game system to return the corresponding lottery information.
[0066] Therefore, it's important to note that after receiving the lottery data packet from the lottery sales terminal, the data packet is uploaded to the lottery game system for storage. The lottery game system is the backend server in the lottery sales process. Different lotteries correspond to different lottery game systems. During the lottery sales process, the lottery game system is the system server that stores betting information, while the lottery sales terminal is essentially an I / O input device, used by lottery buyers to input their betting information. The lottery sales terminal itself does not perform the function of storing betting information.
[0067] Once the lottery game system has stored the data, the scheduling lottery game system returns the lottery information corresponding to each lottery. For example, if a lottery player purchased three lotteries, namely Lottery 1, Lottery 2, and Lottery 3, then there are three corresponding lottery game systems: Lottery Game System 1, Lottery Game System 2, and Lottery Game System 3. Lottery Game System 1 stores the betting information for Lottery 1 and returns the corresponding lottery information for Lottery 1. Lottery Game System 2 stores the betting information for Lottery 2 and returns the corresponding lottery information for Lottery 2. Lottery Game System 3 stores the betting information for Lottery 3 and returns the corresponding lottery information for Lottery 3.
[0068] Step S13: Merge the lottery information corresponding to each lottery into the same order and mark the order with an order number.
[0069] Therefore, it's important to note that when different lottery game systems return lottery information, this information is merged into a single order. For example, the lottery information for Lottery 1, Lottery 2, and Lottery 3 are merged into the same order. After merging, the current order is identified by an order number. The order number is a parameter that distinguishes different orders; it's like an order's "ID card." By recognizing the order number, the corresponding order can be matched.
[0070] Step S14: Store the order and transmit the order and all the betting information of the corresponding lottery tickets to the lottery sales terminal for merging and printing.
[0071] Therefore, it's important to note that the process involves storing the order and transmitting the order and all corresponding lottery betting information to the lottery sales terminal for combined printing. By transmitting the order and all corresponding lottery betting information to the lottery sales terminal for combined printing, the printed lottery order can contain betting information for multiple lotteries. Lottery buyers only need to keep one paper ticket containing multiple lottery tickets to complete subsequent prize redemption. This reduces the likelihood of losing paper tickets and simplifies storage.
[0072] Figure 2 A flowchart illustrating a lottery ticket merging and printing method according to another embodiment of this application is shown. Figure 2 Compared to Figure 1 The method shown describes in detail the encryption process for lottery information, preventing back-end personnel from maliciously tampering with lottery information.
[0073] Please see Figure 2 A method for merging and printing lottery tickets includes the following steps:
[0074] Step S21: Receive lottery data packets uploaded from the lottery sales terminal. The lottery data packets include betting information for at least one lottery.
[0075] A lottery sales terminal is a device used by lottery buyers to purchase lottery tickets. Buyers can select the lottery they want to buy and enter the corresponding betting information to complete the purchase. After the buyer has entered betting information for multiple lotteries, the lottery sales terminal will package this information into a lottery data package and upload it.
[0076] Step S22: Upload the lottery data package to the lottery game system for storage, and schedule the lottery game system to return the corresponding lottery information.
[0077] After receiving the lottery data packet from the lottery sales terminal, the system uploads the data packet to the lottery game system for storage. The lottery game system is the backend server of the lottery sales process. Different lotteries correspond to different lottery game systems.
[0078] Once the lottery game system has stored the data, the scheduling lottery game system returns the lottery information corresponding to each lottery. For example, if a lottery player purchased three lotteries, namely Lottery 1, Lottery 2, and Lottery 3, then there are three corresponding lottery game systems: Lottery Game System 1, Lottery Game System 2, and Lottery Game System 3. Lottery Game System 1 stores the betting information for Lottery 1 and returns the corresponding lottery information for Lottery 1. Lottery Game System 2 stores the betting information for Lottery 2 and returns the corresponding lottery information for Lottery 2. Lottery Game System 3 stores the betting information for Lottery 3 and returns the corresponding lottery information for Lottery 3.
[0079] Step S23: Generate random numbers.
[0080] Therefore, it's important to note that random numbers are used for encryption. To enhance the randomness of the generated numbers, a random factor is added during the generation process. One method is to obtain the current timestamp and the lottery sales terminal's SN (Serial Number), combine them to form a random factor, and then generate a random number based on this factor. Adding a random factor prevents the generation of identical random numbers. Of course, other parameters can be used to form the random factor, not just the current timestamp and the lottery sales terminal's SN.
[0081] Step S24: Encrypt the lottery information corresponding to each lottery using random numbers.
[0082] Therefore, it's important to note that lottery information includes the lottery ticket number and the lottery password. The lottery ticket number is like the lottery's "ID card," a unique identifier. The lottery password is the verification code for the lottery's legitimacy; it's used to determine the authenticity of the ticket during the draw. When encrypting lottery information, the SM4 national cryptographic algorithm is used, with random numbers used to encrypt the password for each lottery ticket individually. Furthermore, to prevent brute-force decryption later, in addition to encrypting the password for each lottery ticket individually with random numbers, business elements (such as transaction serial numbers) can also be incorporated into the encryption of the password for each lottery ticket.
[0083] Step S25: Merge the lottery information corresponding to each lottery into the same order.
[0084] When different lottery game systems return lottery information corresponding to a particular lottery, and encrypt the lottery password for each lottery, the lottery information corresponding to the different lotteries is merged into a single order. For example, the lottery information corresponding to Lottery 1, Lottery 2, and Lottery 3 are merged into a single order.
[0085] Step S26: Identify the order number.
[0086] After the merger is completed, the current order is marked with an order number. The order number is an information parameter that distinguishes different orders. The order number is like the "ID card" of the order. By recognizing the order number, the corresponding order can be matched.
[0087] Step S27: Use the random number as the order key for the order.
[0088] Therefore, it's important to note that in addition to the order number on the order identifier, a random number is also used as the order key. The order key acts like a "key." When redeeming prizes later, the order number is entered to find the corresponding order. First, the accuracy of the order key is verified to determine the order's authenticity. Simultaneously, this "key" is used to decrypt the lottery information of all tickets corresponding to the order (specifically, decrypting the lottery password, not the ticket number). After decryption, the unencrypted lottery password is obtained, and prizes are then redeemed based on this decrypted password.
[0089] Step S28: Store all data of the order except for the order key, and transmit the order and all lottery betting information corresponding to the order to the lottery sales terminal for merging and printing.
[0090] Therefore, it's important to note that, unlike step S14, this step stores all order data except for the order key. The advantage of this is that, since the order key is the crucial factor for decryption, to prevent malicious data tampering by backend personnel, the backend stores only the encrypted digest of the lottery password, not the ciphertext itself. During order password verification, the same encryption algorithm is used for both encryption and digest, and the correctness of the order password is determined by comparing the consistency of the digest information. Without the order key, the unencrypted lottery password cannot be obtained, thus effectively preventing malicious data tampering and significantly improving the security of lottery data.
[0091] It should also be noted that by transmitting the order and all the betting information for the corresponding lottery tickets to the lottery sales terminal for combined printing, the printed lottery order can contain betting information for multiple lotteries. Lottery buyers only need to keep one paper ticket containing multiple lottery tickets to complete the subsequent prize redemption. This makes it less likely for lottery buyers to lose their paper tickets, thus reducing the difficulty of safekeeping.
[0092] It should also be noted that when printing the combined order, the order key needs to be printed out and given to the lottery buyer. This means that only the lottery buyer has the order key, and when redeeming prizes later, the lottery buyer will need to go to the lottery sales terminal in person to enter the order key.
[0093] To better understand the technical solution of this application, please refer to Figure 3 , Figure 3 A flowchart of a lottery ticket merging and printing method according to this application is shown.
[0094] Step S31: The lottery buyer enters the lottery betting information.
[0095] Step S32: Determine whether the input betting information spans multiple lottery games. If so, proceed to step S33.
[0096] Step S33: Upload the lottery betting information to the lottery game system for storage, and schedule the lottery game system to return the corresponding lottery information.
[0097] Step S34: Randomly generate random numbers.
[0098] Step S35: Encrypt the lottery information corresponding to all lotteries using random numbers.
[0099] Step S36: Determine whether all lottery information has been encrypted. If yes, proceed to step S37; otherwise, return to step S35 to continue encrypting the unencrypted lottery information.
[0100] Step S37: Merge all lottery information into a single order, assign an order number to the order, and use a random number as the order key.
[0101] Step S38: Store all data of the order except for the order key, and transmit the order and all lottery betting information corresponding to the order to the lottery sales terminal for merging and printing.
[0102] By following the above steps, the combined printing of lottery tickets can be completed.
[0103] The following describes the lottery prize redemption process, which is actually the reverse of the combined printing process. Because different lottery games may have different draw dates, if a single printed lottery ticket contains betting information for multiple games, and some of these games have already been drawn, the customer needs to print a "Prize Redeemed" message on the partially redeemed tickets. For the undrawn tickets, a reprint is required.
[0104] Please see Figure 4 , Figure 4 A flowchart of a lottery prize redemption method according to this application is shown.
[0105] Step S411: Enter the order number and order key to initiate a combined prize redemption.
[0106] Step S412: Determine if it spans multiple lottery games. If so, proceed to step S413.
[0107] Step S413: Query the lottery information corresponding to the lottery number.
[0108] It should be noted that the lottery information corresponding to the lottery can be retrieved by the order number, and the correctness of the order key can be verified to confirm the legality of the paper lottery.
[0109] Step S414: Use the order key to decrypt the lottery information corresponding to the lottery ticket.
[0110] Step S415: Determine whether all the lottery tickets corresponding to the current order have been drawn. If so, proceed to step S416.
[0111] Step S416: Dispatch the lottery game system to process the prize redemption.
[0112] Step S417: Store the prize redemption information of the redeemed lottery tickets.
[0113] Step S418: Determine whether the lottery ticket corresponding to the current order has been redeemed. If yes, proceed to step S419; otherwise, return to step S416.
[0114] Step S419: Print the prize redemption information for the redeemed lottery ticket.
[0115] Step S420: Dispatch the lottery game system to process the prize redemption.
[0116] Step S421: Store the prize redemption information of the redeemed lottery tickets.
[0117] Step S422: Determine whether all the winning tickets for the current order have been redeemed. If yes, proceed to step S423; otherwise, return to step S420.
[0118] Step S423: Randomly generate a random number, encrypt the lottery information corresponding to the undrawn lottery tickets, merge the encrypted undrawn lottery tickets into the new order, mark the order number, and use the random number as the order key for the new order.
[0119] Step S424: Print the prize redemption information of the redeemed lottery ticket and reprint the new lottery ticket according to the new order.
[0120] By following the above steps, you can complete the lottery prize redemption process.
[0121] Corresponding to the aforementioned functional method embodiments, this application provides a lottery merging and printing device and corresponding embodiments.
[0122] Figure 5 The diagram shown is a structural schematic of a lottery merging and printing device 60 according to an embodiment of this application.
[0123] Please see Figure 5 A lottery ticket merging and printing device 60 includes: a receiving module 610, an uploading module 620, a merging identifier module 630, and a storage module 640.
[0124] The receiving module 610 is used to receive lottery data packets uploaded from the lottery sales terminal, the lottery data packets including betting information for at least one lottery;
[0125] The upload module 620 is used to upload lottery data packets to the lottery game system for storage, and to schedule the lottery game system to return the lottery information corresponding to each lottery.
[0126] The merge identifier module 630 is used to merge the lottery information corresponding to each lottery into the same order and identify the order number;
[0127] The storage module 640 is used to store orders and transmit the orders and all the betting information of the corresponding lottery tickets to the lottery sales terminal for merging and printing.
[0128] In this embodiment, the receiving module 610 receives lottery data packets uploaded from a lottery sales terminal. The lottery data packets include betting information for at least one lottery. The uploading module 620 uploads the lottery data packets to a lottery game system for storage and schedules the lottery game system to return lottery information corresponding to each lottery. The merging and identification module 630 merges the lottery information corresponding to each lottery into a single order and identifies the order number. The storage module 640 stores the order and transmits the order and all the betting information of the corresponding lotteries to the lottery sales terminal for merged printing. By transmitting the order and all the betting information of the corresponding lotteries to the lottery sales terminal for merged printing, the printed paper lottery ticket can contain betting information for multiple lotteries.
[0129] Figure 6 The diagram shown is a structural schematic of a lottery merging and printing device 60 according to another embodiment of this application.
[0130] Please see Figure 6 A lottery ticket merging and printing device 60 includes: a receiving module 610, an uploading module 620, a merging identifier module 630, and a storage module 640.
[0131] Specifically, the merging identifier module 630 includes: a random unit 631, an encryption unit 632, a merging unit 633, an identifier unit 634, and a key unit 635.
[0132] The descriptions of the receiving module 610 and the uploading module 620 can be found in [reference]. Figure 6 The relevant descriptions in the document will not be repeated here.
[0133] The random unit 631 is used to generate random numbers.
[0134] In this embodiment, when the random unit 631 generates random numbers, it obtains the current timestamp and the SN code of the lottery sales terminal, combines the current timestamp and the SN code into a random factor, and generates random numbers based on the random factor.
[0135] The encryption unit 632 is used to encrypt the lottery information corresponding to each lottery using random numbers.
[0136] In this embodiment, the lottery information includes the lottery ticket number and the lottery password. When encrypting the lottery information, the encryption unit 632 uses the SM4 national cryptographic encryption algorithm and uses random numbers to encrypt the lottery password corresponding to each lottery ticket.
[0137] In this embodiment, the lottery information includes the lottery ticket number and the lottery password.
[0138] The merging unit 633 is used to merge the lottery information corresponding to each lottery into the same order.
[0139] The identification unit 634 is used to identify the order number of an order.
[0140] Key unit 635 is used to use a random number as the order key for an order.
[0141] The storage module 640 stores all order data except the order key, and transmits the order and all corresponding lottery betting information to the lottery sales terminal for merging and printing. Regarding the apparatus in the above embodiments, the specific methods by which each module and unit performs its operations have been described in detail in the corresponding method embodiments, and will not be elaborated upon here.
[0142] Please see Figure 7 The electronic device 800 includes a processor 810 and a memory 820.
[0143] The processor 810 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0144] Memory 820 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. ROM may store static data or instructions required by processor 810 or other modules of the computer. Permanent storage devices may be read-write storage devices. Permanent storage devices may be non-volatile storage devices that retain stored instructions and data even when the computer is powered off. In some embodiments, permanent storage devices use mass storage devices (e.g., magnetic or optical disks, flash memory) as permanent storage devices. In other embodiments, permanent storage devices may be removable storage devices (e.g., floppy disks, optical drives). System memory may be a read-write storage device or a volatile read-write storage device, such as dynamic random access memory. System memory may store some or all of the instructions and data required by the processor during operation. Furthermore, memory 820 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (e.g., DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. The memory 820 stores executable code, which, when processed by the processor 810, can cause the processor 810 to execute part or all of the methods described above.
[0145] Furthermore, the method according to this application can also be implemented as a computer program or computer program product, which includes computer program code instructions for performing some or all of the steps in the method described above.
[0146] Alternatively, this application may be implemented as a computer-readable storage medium (or a non-transitory machine-readable storage medium or a machine-readable storage medium) storing executable code (or computer program or computer instruction code) thereon, which, when executed by a processor of an electronic device (or server, etc.), causes the processor to perform part or all of the steps of the methods described above according to this application.
[0147] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for merging and printing lottery tickets, characterized in that, include: Receive lottery data packets uploaded from lottery sales terminals, the lottery data packets including betting information for various types of lotteries, and different lottery sales terminals are equipped with different lotteries; The lottery data package is uploaded to the lottery game system for storage, and the lottery game system is scheduled to return the lottery information corresponding to the lottery. Different lotteries correspond to different lottery game systems. The lottery sales terminal does not undertake the function of storing betting information. When different lottery game systems return the lottery information corresponding to the lottery, the lottery information corresponding to each lottery is merged into the same order, and the order is identified by an order number; The order is stored, and the order and all the betting information of the corresponding lottery tickets are transmitted to the lottery sales terminal for merging and printing.
2. The lottery ticket merging and printing method according to claim 1, characterized in that, The step of merging the lottery information corresponding to each lottery into a single order, and identifying the order number, includes: Generate random numbers; The lottery information corresponding to each lottery ticket is encrypted using the random number. The lottery information corresponding to each lottery ticket is merged into a single order; The order number is used to identify the order. Use the random number as the order key for the order; The storage of the order includes: Store all data for the order except for the order key.
3. The lottery ticket merging and printing method according to claim 2, characterized in that, The random number generation includes: Obtain the current timestamp and the SN code of the lottery sales terminal, combine the current timestamp and the SN code to form a random factor, and generate a random number based on the random factor.
4. The lottery ticket merging and printing method according to claim 2, characterized in that, The step of encrypting the lottery information corresponding to each lottery using the random number includes: The SM4 national cryptographic encryption algorithm is used to encrypt the lottery information corresponding to each lottery ticket using the random number.
5. The lottery ticket merging and printing method according to claim 4, characterized in that, The lottery information includes the lottery ticket number and lottery password; The method employs the SM4 national cryptographic encryption algorithm, using the random number to encrypt the lottery information corresponding to each lottery ticket, including: The SM4 national cryptographic encryption algorithm is used to encrypt the lottery password corresponding to each lottery ticket using the random number.
6. A lottery ticket merging and printing device, characterized in that, include: The receiving module is used to receive lottery data packets uploaded from lottery sales terminals. The lottery data packets include betting information for various types of lotteries, and different lottery sales terminals are equipped with different lotteries. The upload module is used to upload the lottery data package to the lottery game system for storage, and to schedule the lottery game system to return the lottery information corresponding to the lottery. Different lotteries correspond to different lottery game systems. The lottery sales terminal does not undertake the function of storing betting information. The merging identifier module is used to merge the lottery information corresponding to each lottery into the same order after different lottery game systems return the lottery information corresponding to the lottery, and to identify the order number of the order; The storage module is used to store the order and transmit the order and all the betting information of the lottery tickets corresponding to the order to the lottery sales terminal for merging and printing.
7. The lottery ticket merging and printing device according to claim 6, characterized in that, The merging identifier module includes a random unit, an encryption unit, a merging unit, an identifier unit, and a key unit; The random unit is used to randomly generate random numbers; The encryption unit is used to encrypt the lottery information corresponding to each lottery using the random number; The merging unit is used to merge the lottery information corresponding to each lottery into the same order; The identification unit is used to identify the order number of the order; The key unit is used to use the random number as the order key for the order; The storage module is used to store the orders, including: Store all data for the order except for the order key.
8. The lottery ticket merging and printing device according to claim 7, characterized in that, The random unit is used to randomly generate random numbers, including: Obtain the current timestamp and the SN code of the lottery sales terminal, combine the current timestamp and the SN code to form a random factor, and generate a random number based on the random factor.
9. An electronic device, characterized in that, include: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the lottery merging and printing method as described in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that, It stores executable code that, when executed by the processor of an electronic device, causes the processor to perform the lottery merging and printing method as described in any one of claims 1 to 5.