Novel lottery buying method

By combining the user red envelope mini program and dedicated POS devices, the problem of difficulty in using user points has been solved, the conversion of points to red envelopes and the convenient purchase of lottery tickets have been realized, which improves user experience and merchant profits.

CN120807092APending Publication Date: 2025-10-17HUISHIJINCAI INFORMATION NETWORK (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510887767.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to use user points effectively, especially in the points mall, where the cost-effectiveness of purchasing goods is not high and it is inconvenient to buy lottery tickets.

Method used

By scanning the code to enter the user red envelope mini program, a red envelope code is generated and a dedicated POS device is used to verify the points and convert them into red envelopes. The backend system verifies and issues lottery tickets to realize the conversion of points to red envelopes and fund settlement.

Benefits of technology

It has achieved efficient utilization of user points, increased users' enthusiasm for participating in the points mall, expanded lottery sales, and enhanced the profits of merchants and betting stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120807092A_ABST
    Figure CN120807092A_ABST
Patent Text Reader

Abstract

The invention discloses a novel lottery buying method, and relates to the technical field of lottery buying, the lottery buying steps are as follows: S1, a user enters a user red envelope applet by scanning a code; s2, entering a management page of the applet, and checking the total number of red envelopes cancelled after verification, the total number of integral conversion red envelopes and a betting station map; s3, generating a red envelope code based on the red envelope balance, and cancelling the red envelope code after verification through the special POS device; s4, the point conversion red envelope plug-in is accessed, the merchant accesses the page plug-in to an own point shopping mall, and encryption and tamper-proof means are adopted during access; and S5, converting the points into red envelopes by the user, and converting the points into red envelope prices. According to the method, the user points are converted into the red envelopes, and the red envelopes are cancelled after verification through the special POS equipment, so that the problem that the user purchases lottery tickets by using the points is conveniently solved, the sales volume is expanded by a lottery ticket center, and a betting station can also obtain more sales income. Therefore, the device has great practical value and popularization space.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of lottery purchase, in particular to a novel lottery purchase method. BACKGROUND

[0002] The main way of purchasing lottery currently is to go to a betting station, and the main way of payment is to scan the code by WeChat or Alipay, and many large-scale merchants will give users feedback points, such as the three major telecom operators, banks and airlines, and many people have not many points and often can only be redeemed in the merchant's points mall, and the points are often insufficient to purchase large goods, and the cost performance is often not high when purchasing small goods, and the lottery is a game product with small face value and a relatively wide audience, and if the points can be used to purchase the lottery, the advantages of both can be combined, how to enable the user's points to purchase the lottery and the purchase process to be very convenient will be a very valuable problem to be solved, and for this, the present application provides a novel lottery purchase method. SUMMARY

[0003] To solve the above technical problems, the present application provides a novel lottery purchase method, which solves the problem that points are not convenient to purchase lottery and overcomes the problem that many people's points expire or are not convenient to use due to small face value.

[0004] To achieve the above purposes, the present application adopts the technical scheme of:

[0005] A novel lottery purchase method, and the lottery purchase steps are:

[0006] S1, a user enters a user red packet applet by scanning a code;

[0007] S2, a management page of the applet is entered to view a total number of red packet redemption, a total number of point conversion red packets and a betting station map;

[0008] S3, a red packet code is generated based on a red packet balance, and the red packet code is redeemed by a special POS device;

[0009] S4, a point conversion red packet plug-in is connected, and a merchant connects the page plug-in to its own points mall, and encryption and tamper-proofing means are used when connecting;

[0010] S5, a user converts points into red packets, performs a point conversion red packet difference, and finally completes the conversion of the relevant points into red packets through a conversion button;

[0011] S6, a special POS device is customized and developed, the special POS device recognizes a red packet code of the user, and transmits the red packet code to a background system, obtains a response from the background system, displays the response result, and simultaneously performs voice broadcast;

[0012] S7, the user displays his own red packet two-dimensional code to the staff of the betting station, the betting staff scans it using a special POS device, verifies it, and after verifying that the red packet code is legal, cancels the red packet;

[0013] S8, after the background system cancels the user's red packet, the user obtains a lottery ticket, and based on the background system, the corresponding funds are transferred to the betting station according to the amount of the user's canceled red packet, completing the closed loop, and the betting station checks the red packet cancellation and fund transfer information.

[0014] Preferably, in step S1, the user reads the relevant user red packet account opening and management agreement and agrees to open his own user red packet account after reading, and enters the management interface of the applet.

[0015] Preferably, in step S2, the applet management page functions include:

[0016] Red packet account function, the user views his own red packet balance through the red packet account function, views his own red packet cancellation record through the red packet cancellation record, and views his own red packet conversion record through the integral conversion red packet;

[0017] Statistical function, the user views the total number of red packet cancellations and the total number of integral conversion red packets through daily statistics;

[0018] Betting station map, the user finds a nearby betting station through the betting station map.

[0019] Preferably, in step S3, the red packet code generation step is:

[0020] Based on his own red packet balance, the user generates a red packet code, the user clicks to generate a red packet code, inputs the amount of the red packet code this time, clicks to generate, verifies the amount and deducts the corresponding red packet value from the user's red packet account, and obtains the red packet two-dimensional code after successful deduction.

[0021] Preferably, in step S4, the encryption means generates an encryption key using a strong cryptography algorithm, and the key is securely stored in the merchant's and the integral mall's secure storage device.

[0022] Preferably, in step S4, the anti-tampering measure uses a hash algorithm to re-calculate the hash value when the integral mall receives the plug-in data and compares it with the original hash value. If they are not consistent, it means that the data has been tampered with, and the integrity of the data is detected through the hash algorithm.

[0023] Preferably, in step S5, the integral conversion red packet difference step is:

[0024] The user inputs the red packet amount he wants to exchange on the integral exchange red packet page, and the system automatically calculates the required number of points based on the set basic exchange ratio;

[0025] Based on the set difference price rule, the system calculates the difference price to be paid for this exchange;

[0026] The system displays the points exchange details on the page, including the exchange red packet amount, the required points quantity, the difference amount, and the quantity or amount corresponding to the difference payment method.

[0027] Preferably, the special POS device in S6 is customized by using an ARM architecture processor, integrating a communication module, and matching a display and voice module and a durable shell.

[0028] In terms of software, the red packet code recognition first collects images for preprocessing, then obtains information through decoding, verification, and optimization; the interaction with the background follows a customized communication protocol to ensure safe data transmission and processing; the display and voice functions design interfaces and content according to the results.

[0029] Preferably, the verification step in S7 is:

[0030] Ensure that the device power and network are normal, and scan the two-dimensional code after initialization;

[0031] The device decodes the preprocessed collected images and extracts key data;

[0032] The data is encapsulated and sent to the background system, which checks the request for legality, checks the red packet status and amount information to determine effectiveness;

[0033] The background system feeds back the results to the POS device. If the red packet code is legal, the device displays success information and voice broadcast, and performs the cancellation operation; if it is invalid, it displays the error reason and prompts the user, and does not perform the cancellation.

[0034] Preferably, after the background system confirms that the user's red packet is legal and completes the cancellation operation in S8, it generates virtual lottery data corresponding to the amount and binds it to the user's account according to the set rules, and sends a ticket issuing instruction to the betting station terminal. The betting station device automatically prints a physical lottery ticket after receiving the instruction, which can be collected by the user;

[0035] After completing the lottery ticket issuance, the background system starts the fund transfer program through the internal financial system according to the cancelled red packet amount. The system automatically checks the betting station's account information and uses a secure electronic payment channel to transfer the funds into the designated betting station account in real time;

[0036] The background system updates the data records in real time and generates detailed red packet cancellation and fund transfer reports, including user information, red packet amount, cancellation time, betting station account information, and fund arrival time;

[0037] The betting station staff can log in to the special management system to query the red packet cancellation records and fund arrival information.

[0038] Compared with the prior art, the present application has the beneficial effects that:

[0039] The present application solves the problem of using the integral to purchase the lottery ticket by converting the user integral into the red packet, and the red packet is checked by the special POS device, and the user can convert the integral of multiple merchants into the user red packet, so that the scattered integral can play the maximum value, the merchant can achieve the purpose of feedback and active user, the lottery center can expand the sales volume, and the betting station can obtain more sales income. BRIEF DESCRIPTION OF DRAWINGS

[0040] Figure 1 The present application solves the problem of using the integral to purchase the lottery ticket by converting the user integral into the red packet, and the red packet is checked by the special POS device, and the user can convert the integral of multiple merchants into the user red packet, so that the scattered integral can play the maximum value, the merchant can achieve the purpose of feedback and active user, the lottery center can expand the sales volume, and the betting station can obtain more sales income. DETAILED DESCRIPTION

[0041] The following description is used to disclose the present application so that those skilled in the art can implement the present application. The preferred embodiments in the following description are only used as examples, and other obvious modifications can be thought by those skilled in the art.

[0042] Referring to Figure 1 A new lottery ticket purchasing method is shown, and the lottery ticket purchasing steps are as follows:

[0043] S1, the user enters the user red packet applet by scanning the code;

[0044] S2, the management page of the applet is entered, the total number of red packet checking, the total number of integral conversion red packet and the betting station map are viewed;

[0045] S3, based on the red packet balance, the red packet code is generated, and the special POS device is used for checking;

[0046] S4, the integral conversion red packet plug-in is connected, the merchant connects the page plug-in to the integral mall of the merchant, and the encryption and tamper-proof means are used during the connection;

[0047] S5, the user converts the integral into the red packet, and the integral conversion red packet difference is carried out, and the relevant integral is finally converted into the red packet through the conversion button;

[0048] S6, the special POS device is customized and developed, the special POS device recognizes the red packet code of the user, and the red packet code is transmitted to the background system, and after the response of the background system is obtained, the response result is displayed, and the voice broadcast is carried out at the same time;

[0049] S7, the user shows the red packet two-dimensional code to the staff of the betting station, the staff of the betting station uses the special POS device to scan, verifies, and checks the red packet after verifying that the red packet code is legal;

[0050] S8, the background system cancels the user's red envelope, the user gets the lottery, based on the background system, according to the red envelope amount of the user, the corresponding fund is transferred into the betting station, the closed loop is completed, the betting station checks the red envelope cancellation and fund account information.

[0051] The user of the application enters the red envelope applet by scanning the code, without complex download and installation process, and can use it immediately, which reduces the use threshold. In the applet management page, the user can intuitively view the total number of red envelope cancellations, the total number of integral conversion red envelopes, and the betting station map, which facilitates the user to understand the consumption situation, quickly find the betting station, and improves the use convenience. Based on the red envelope balance, the red envelope code cancellation and integral conversion red envelope operation are generated, which simplifies the red envelope acquisition and use process, meets the diversified needs of users, improves the participation enthusiasm of users, and the user displays the red envelope two-dimensional code to complete the cancellation, which is simple and fast, reduces the waiting time, and enhances the user satisfaction;

[0052] When the merchant accesses the integral conversion red envelope plug-in, encryption and tamper-proof means are adopted to effectively protect data security, prevent information leakage and malicious tampering, maintain the rights and interests of merchants and users, and improve the cooperation confidence of merchants. The specially developed POS device has the functions of accurately identifying red envelope codes, stably interacting with the background system, and voice broadcasting results, which not only improves the red envelope cancellation efficiency, but also makes the operation process more transparent through multi-dimensional feedback, reduces user doubts, and at the same time, the safety design of the device ensures the reliability of the transaction process;

[0053] After the background system cancels the red envelope, it completes the lottery issuance, fund transfer into the betting station and provides information viewing function, forming a complete closed loop from red envelope use to fund settlement, which ensures the timely realization of the interests of all parties, enables the betting station to clearly master the red envelope cancellation and fund account situation, facilitates financial management and business checking, at the same time, the complete closed loop process helps to optimize business management, improves operation efficiency, provides strong support for subsequent data analysis and business expansion, promotes the healthy and sustainable development of the entire red envelope business ecology.

[0054] In S1, the user reads the relevant user red envelope account opening and management agreement, agrees to open his own user red envelope account, and enters the management interface of the applet.

[0055] After the user enters the user red envelope applet by scanning the code, the system will automatically trigger the user red envelope account opening process, and the first thing is to comprehensively show the user the relevant opening and management agreement. The applet interface presents the "User Red Envelope Account Opening Agreement" and "User Red Envelope Account Management Agreement" in a clear and eye-catching layout, using large font and high contrast text style to ensure that the user can quickly notice the agreement content. At the same time, a special agreement reading area is set up to support the user to browse the full text of the agreement by sliding the screen up and down;

[0056] In terms of the content of the agreement, key information such as account opening conditions, usage rules, rights and obligations of both parties, privacy protection policy, and risk warnings are covered in detail. Users are clearly informed that they must be at least 18 years old to open an account, and the use of red envelopes is limited to designated products or services of cooperating merchants. The platform also details that it will strictly protect user personal information and will only share data with third parties when necessary. To help users better understand the agreement, annotations and case studies are added to more professional or important clauses. For example, the risk of account theft mentioned in the "Risk Warning" is explained through simulated scenario examples.

[0057] While the user is reading the agreement, the mini program provides auxiliary functions such as bookmarking and keyword search, allowing users to quickly locate and review key content. Once the user confirms that they have no objections, they need to click the "Agree and Activate" button below the agreement. The system will immediately initiate the identity verification process. Through multiple verification methods such as SMS verification code, facial recognition, and fingerprint recognition, the user's identity information is verified to ensure that the account activation operation is performed by the user himself to prevent others from impersonating him.

[0058] After completing identity authentication, the system will automatically create an exclusive red envelope account for the user in the background, generate a unique account ID, and initialize account-related information, such as the initial balance is 0 and the account status is normally enabled. At the same time, the system will record the account opening time and account opening method details for subsequent inquiries and management. After the account is successfully opened, the mini program page will automatically jump to the management interface, where users can intuitively see the red envelope account balance, transaction record entry, account settings and other functional modules. They can also view personalized welcome prompts and novice guide tutorials to help users quickly familiarize themselves with the various operations of the management interface and smoothly start their red envelope usage journey.

[0059] The mini program management page functions in step S2 include:

[0060] Red envelope account function, users can check their red envelope balance through the red envelope account function, check their red envelope redemption records through the red envelope redemption records, and check their points conversion red envelope records through the points conversion red envelope function;

[0061] Statistics function, users can check the total number of red envelopes redeemed and the total number of points converted into red envelopes through daily statistics;

[0062] Betting station map, users can find nearby betting stations through the betting station map.

[0063] This red envelope account application function allows users to check the red envelope balance at any time, clearly understand their own "digital assets" situation, avoid overspending or misuse, and display the verification record and points conversion red envelope record, so that users can trace the use and source of each red envelope, and the consumption details are clear at a glance;

[0064] The statistical function displays the total number of red packet cancellations and the total number of integral conversion red packets by day, providing users with intuitive consumption data. Users can analyze these data to understand their own red packet usage habits and consumption preferences, such as which time period they prefer to use red packets and the frequency of integral conversion. Based on this information, users can develop more scientific consumption plans, such as adjusting their integral accumulation strategies to obtain more red packets or increasing red packet usage during specific activities to maximize consumption efficiency.

[0065] The red packet code generation step in S3 is:

[0066] When the user enters the red packet applet and decides to generate a red packet code for consumption, the system will start a rigorous and smooth red packet code generation process. The system displays the user's current red packet balance in a prominent position on the interface in large, bold font, with the balance unit clearly marked beside it, so that the user can easily understand the available red packet funds.

[0067] After the user clicks the "Generate Red Packet Code" button, a simple and clear amount input window appears. The window has a preset prompt, such as "Please enter the amount of this red packet code (minimum 1 yuan)", and limits the input value range to prevent the user from entering invalid amounts. The user fills in the desired amount of the red packet code in the input box, and after completing the input, clicks the "Generate" button. At this time, the system immediately performs multiple verifications on the user's input amount: on the one hand, it checks whether the input value is a positive integer and does not exceed the user's current red packet balance; on the other hand, it verifies whether the amount meets the minimum and maximum limit standards set by the platform.

[0068] If the amount verification fails, the system will promptly pop up a prompt message below the input window, clearly informing the user of the reason for the failure, such as "Insufficient balance, please re-enter" or "Amount exceeds the limit range", to facilitate quick modification by the user. When the amount verification is successful, the system quickly performs a deduction operation to deduct the corresponding red packet value from the user's red packet account. The deduction process uses encryption technology to ensure the safety of the funds and updates the red packet account balance in real time.

[0069] At the moment of successful deduction, the system immediately generates a dedicated red packet QR code, which is presented in a clear matrix form with the platform's signature border design around it. The red packet amount and validity period information are also marked below the QR code. The entire generation process is handled by high-speed computation in the background, ensuring that the user can obtain the red packet QR code in a very short time to smoothly complete the subsequent cancellation and use.

[0070] In S4, a strong cryptography algorithm is used to generate an encryption key, which is securely stored in the merchant's and the integral mall's secure storage devices.

[0071] The strong password cryptography algorithm, such as AES, RSA, has very high encryption strength, and can convert sensitive data in the plug-in access process, such as integral conversion rules, user privacy information, and transaction data, into ciphertext. Even if the data is illegally obtained during transmission or storage, the attacker cannot crack the content without the corresponding key, thereby ensuring that the data is not leaked and protecting the core interests of users and merchants.

[0072] The tamper-proofing measure in S4 step adopts a hash algorithm. When the integral mall receives the plug-in data, the hash value is recalculated and compared with the original hash value. If they are inconsistent, it indicates that the data has been tampered with, and the data integrity is detected by the hash algorithm.

[0073] The hash algorithm can convert data of any length into a fixed-length hash value, and a slight change in the data will result in a completely different hash value. When the integral mall receives the plug-in data, the hash value can be quickly recalculated and compared with the original hash value. Once they are inconsistent, it can be quickly determined that the data has been tampered with, without the need to check the data content word by word, greatly improving the detection efficiency and gaining time to timely discover and handle data security issues.

[0074] The integral conversion red envelope price difference step in S5 step is:

[0075] The user inputs the red envelope amount they want to exchange on the integral exchange red envelope page, and the system automatically calculates the required integral quantity based on the set basic exchange ratio;

[0076] Based on the set price difference rule, the system calculates the price difference to be paid for this exchange;

[0077] The system displays the integral exchange details on the page, including the exchange red envelope amount, the required integral quantity, the price difference amount, and the quantity or amount corresponding to the price difference payment method.

[0078] The special POS device customization in S6 step adopts an ARM architecture processor, integrates a communication module, and is equipped with a display and voice module and a durable shell.

[0079] In terms of software, the red envelope code recognition first collects images for preprocessing, then decodes, verifies, and optimizes to obtain information; the interaction with the background follows the customized communication protocol to ensure safe data transmission and processing; the display and voice functions design the interface and broadcast content according to the results.

[0080] The verification step in S7 step is:

[0081] Ensure that the device power and network are normal, and scan the two-dimensional code after initialization;

[0082] The device decodes the collected image after preprocessing and extracts the key data;

[0083] The data package is sent to the background system, which checks the legality of the request, verifies the status and amount of the red envelope, and determines its effectiveness.

[0084] The background system feeds back the result to the POS device. If the red envelope code is legal, the device displays success information and plays a voice message, and performs the cancellation operation. If it is invalid, the device displays the error reason and prompts the user, and does not perform the cancellation operation.

[0085] After the background system confirms that the user's red envelope is legal and completes the cancellation operation in step S8, it generates virtual lottery data corresponding to the amount and binds it to the user's account according to the set rules, and sends a ticket issuance instruction to the betting station terminal. The betting station device automatically prints a physical lottery ticket after receiving the instruction, which can be collected by the user.

[0086] After completing the lottery ticket issuance, the background system initiates a fund transfer program through the internal financial system based on the cancelled red envelope amount. The system automatically checks the betting station's account information and uses a secure electronic payment channel to transfer funds into the designated betting station account in real time.

[0087] The background system updates the data records in real time and generates detailed red envelope cancellation and fund transfer reports, including user information, red envelope amount, cancellation time, betting station account information, and fund arrival time.

[0088] The betting station staff can log in to the special management system to query the red envelope cancellation records and fund arrival information.

[0089] Specific implementation development process

[0090] I. Develop a user red envelope account applet to solve the problems of user red envelope account opening, red envelope account management, and red envelope code display, allowing users to easily create and manage their own red envelope accounts.

[0091] II. Develop a red envelope conversion plugin to allow users to convert their points into red envelopes. Since users' points are distributed across various merchant platforms, the points-to-red envelope plugin needs to be easily integrated with the merchants' point platforms. After integration, users can easily convert their points into red envelopes using the plugin.

[0092] III. Customize and develop POS functions to allow the POS device to cancel user red envelopes. Current ordinary POS devices can complete fund payments but cannot recognize user red envelope accounts. Therefore, the POS device needs to be customized and developed to recognize and cancel user red envelopes.

[0093] IV. Users generate red envelope codes and show them to betting station staff, who use the special POS device mentioned above to cancel the user's red envelope code.

[0094] Five, develop a set of background program, POS device red packet after the verification, to the betting station into the corresponding funds of red packet. In the current method, the previous step has completed the user red packet verification, but the betting station has not received the actual funds, therefore, according to the user red packet verification quantity, the corresponding funds are transferred to the betting station.

[0095] Six, develop a set of betting station red packet management applet, betting station staff can view the daily red packet verification record, can view the verification statistics, can view the fund account information.

[0096] The above shows and describes the basic principles, main features and advantages of the present application. Those skilled in the art should understand that the present application is not limited to the above examples, and the above examples and descriptions are only the principles of the present application. Without departing from the spirit and scope of the present application, various changes and improvements can be made to the present application, and these changes and improvements fall within the scope of the claimed present application.

Claims

1. A new lottery ticket purchasing method, characterized in that: The steps to purchase lottery tickets are: S1. The user enters the user red envelope mini program by scanning the code; S2. Enter the management page of the mini program to view the total number of red envelopes redeemed, the total number of points converted into red envelopes, and the betting station map; S3. Generate a red envelope code based on the red envelope balance and verify it through a dedicated POS device; S4. Points conversion red envelope plug-in integration. Merchants connect the page plug-in to their own points mall, using encryption and anti-tampering measures during the integration. S5. The user converts points into red envelopes, calculates the price difference between points and red envelopes, and finally completes the conversion of relevant points into red envelopes by clicking the conversion button; S6. Customize and develop a dedicated POS device. The dedicated POS device recognizes the user's red envelope code and transmits the red envelope code to the backend system. After receiving a response from the backend system, the response result is displayed and voice broadcast is performed at the same time; S7. The user shows his / her red envelope QR code to the staff of the betting station. The staff uses a dedicated POS device to scan and verify the red envelope code. After verifying that the red envelope code is legitimate, the red envelope is cancelled; S8. After the backend system has written off the user's red envelope, the user receives the lottery ticket. Based on the backend system, the corresponding funds are transferred to the betting station according to the amount of the red envelope written off by the user, completing the closed loop. The betting station then checks the red envelope writing-off and funds arrival information.

2. A new lottery purchase method according to claim 1, characterized in that: In step S1, the user reads the relevant user red envelope account opening and management agreement, opens his or her own user red envelope account after agreeing, and enters the management interface of the mini program.

3. A new lottery purchase method according to claim 1, characterized in that: The mini program management page functions in step S2 include: Red envelope account function, users can check their red envelope balance through the red envelope account function, check their red envelope redemption records through the red envelope redemption records, and check their points conversion red envelope records through the points conversion red envelope function; Statistics function, users can check the total number of red envelopes redeemed and the total number of points converted into red envelopes through daily statistics; Betting station map, users can find nearby betting stations through the betting station map.

4. A new lottery purchase method according to claim 1, characterized in that: The steps for generating the red envelope code in step S3 are: Based on the balance of their own red envelopes, users generate a red envelope code. The user clicks Generate Red Envelope Code, enters the amount of this red envelope code, clicks Generate, verifies the amount and deducts the corresponding red envelope value from the user's red envelope account. After successful deduction, the red envelope QR code is obtained.

5. A new lottery purchase method according to claim 1, characterized in that: The encryption method in step S4 uses a strong cryptographic algorithm to generate an encryption key, and the key is securely stored in the secure storage device of the merchant and the points mall.

6. A new lottery purchase method according to claim 1, characterized in that: The anti-tampering measure in step S4 uses a hash algorithm. When the points mall receives plug-in data, the hash value is recalculated and compared with the original hash value. If there is any inconsistency, it means that the data has been tampered with. The integrity of the data is detected by the hash algorithm.

7. A new lottery ticket purchasing method according to claim 1, characterized in that: The steps for converting points into red envelope price difference in step S5 are: On the points redemption red envelope page, users enter the red envelope amount they want to redeem, and the system automatically calculates the required points based on the set basic redemption ratio; Based on the set price difference rules, the system calculates the price difference required for this exchange; The system displays the points redemption details on the page, including the redemption red envelope amount, the number of points required, the price difference amount, and the number or amount corresponding to the price difference payment method.

8. A new lottery ticket purchasing method according to claim 1, characterized in that: The custom-made POS device in step S6 adopts ARM architecture processor, integrated communication module, display and voice module and durable shell; In terms of software, red envelope code recognition first collects and pre-processes the image, and then obtains information through decoding, verification and optimization; Interaction with the backend follows customized communication protocols to ensure secure data transmission and processing; The display and voice functions design the interface and broadcast content according to the results.

9. A new lottery ticket purchasing method according to claim 1, characterized in that: The verification steps in step S7 are: Make sure the device's battery level and network are normal, and scan the QR code after initialization; The device pre-processes and decodes the captured image to extract key data; The data is packaged and sent to the backend system, which verifies the legitimacy of the request and checks the red envelope status and amount information to determine its validity; The background will feed back the result to the POS device. If the red envelope code is legal, the device will display a success message and announce it by voice, and perform the verification operation; if it is invalid, the error reason will be displayed and the user will be prompted, and the verification will not be performed.

10. A new lottery ticket purchasing method according to claim 1, characterized in that: In step S8, after the backend system confirms that the user's red envelope is legitimate and completes the verification operation, according to the set rules, the virtual lottery data of the corresponding amount is generated and bound to the user's account, and a ticket issuance instruction is sent to the betting station terminal. After receiving the instruction, the betting station device automatically prints the physical lottery ticket for the user to collect; After the lottery is distributed, the backend system will initiate the fund transfer process through the internal financial system based on the amount of the red envelopes that have been written off. The system will automatically check the account information of the betting station and transfer the funds to the designated account of the betting station in real time using a secure electronic payment channel. The backend system updates data records in real time and generates detailed red envelope cancellation and fund transfer reports, including user information, red envelope amount, cancellation time, betting station account information and fund arrival time; Betting station staff can log in to the dedicated management system to check the red envelope verification records and funds arrival status.