Disclosure of Invention
In view of the defects of the prior art, the invention aims to provide a welfare lottery selling method based on an express cabinet and the express cabinet, and aims to solve the problem that the welfare lottery cannot be purchased by the express cabinet in the prior art.
The technical scheme of the invention is as follows:
a method for selling welfare lottery tickets based on express cabinets, the method comprising:
receiving a user instruction, entering a lottery ticket purchasing page, and acquiring a betting scheme of a user on the lottery ticket purchasing page;
entering a payment page after the submission of the betting scheme is detected;
acquiring the payment state of the user on the payment page, entering a ticket drawing page when the payment of the user is detected to be successful, and sending a lottery ticket drawing request to a welfare lottery ticket center system;
if the drawing page receives drawing information fed back by the welfare lottery central system, the drawing is judged to be successful, and the express cabinet prints the corresponding lottery.
Optionally, after the betting scheme submission is detected, entering a payment page, including:
and after the betting scheme is detected to be submitted, the betting amount corresponding to the betting scheme is calculated, the payment page is entered, and the betting amount to be paid is displayed on the payment page.
Optionally, the obtaining the payment state of the user on the payment page, entering a ticket drawing page after detecting that the user payment is successful, and sending a lottery ticket drawing request to the welfare lottery center system further includes:
if the ticket drawing page does not receive the ticket drawing information fed back by the welfare lottery central system, the ticket drawing failure is judged, the lottery purchasing failure is displayed on the express cabinet, and the betting amount of the user is returned to the payment account of the user.
Optionally, the lottery purchase page comprises a lottery category selection page and a number selection betting page; the receiving of the user instruction enters a lottery ticket purchasing page, and the obtaining of the user's betting scheme on the lottery ticket purchasing page comprises the following steps:
receiving a user instruction, entering a lottery type selection page, and acquiring the lucky color type selected by the user on the lottery type selection page;
and entering a corresponding number selection betting page according to the selected lottery categories, and acquiring the lottery numbers and betting multiples selected by the user on the number selection betting page.
Optionally, the payment mode of the payment page includes payment treasure payment and WeChat payment;
the payment page acquires the payment state of the user, and when the payment of the user is detected to be successful, the user enters a lottery ticket drawing page, wherein the payment page comprises the following steps:
the payment page acquires a payment mode selected by a user, and if the payment page detects that the user adopts WeChat payment; just judge whether the user is paying for the first time;
if the lottery ticket is paid for the first time, prompting the user to submit the mobile phone number, jumping to a mobile phone number filling page, jumping to a payment page after the mobile phone number of the user is successfully filled, and jumping to a lottery ticket drawing page after the payment page detects that the user is successfully paid;
if not, the payment page jumps to a lottery drawing page after detecting that the user payment is successful.
Optionally, if the drawing page receives drawing information fed back by the welfare lottery central system, it is determined that drawing is successful, and after the express delivery cabinet prints the corresponding lottery, the method further includes:
and sending a message link of successful lottery ticket purchase to the user terminal, wherein the message link can jump to a lottery ticket purchase record page.
Optionally, the lottery ticket is provided with an identification code of the betting scheme;
sending a message link of successful purchase to the user terminal, wherein the message link can jump to the lottery purchase record and comprises the following steps:
receiving a user instruction to enter a prize exchanging page, wherein the prize exchanging page acquires a prize exchanging instruction of the user;
scanning an identification code on the lottery ticket, inquiring the lottery drawing condition of the lottery ticket on the lottery drawing page, and prompting to draw the lottery after waiting for drawing the lottery if the lottery ticket is not drawn; if the lottery ticket is drawn, the user is prompted according to the winning condition.
Optionally, if the lottery ticket is drawn, the user is prompted according to the winning status, including:
if the lottery ticket is not found a prize, prompting that the lottery ticket is not found a prize;
if the lottery ticket cashing time passes the cashing period, prompting that the lottery is abandoned and not cashed;
if the winning amount of the lottery is less than the preset value, the winning amount is prompted, and the winning amount is returned to the user account;
if the winning amount of the lottery is larger than the preset value, the user is prompted to go to the lottery center for prize exchange after registering the identity information.
Another embodiment of the present invention further provides an express delivery cabinet, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described courier cabinet-based welfare lottery sales method.
Yet another embodiment of the present invention provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the above-mentioned courier cabinet-based welfare lottery sales method.
Has the advantages that: the embodiment of the invention discloses a welfare lottery sale method based on an express cabinet and the express cabinet, wherein the express cabinet can be used as a self-service sale terminal to support the full-flow services of number selection of a cabinet machine, mobile phone payment, printing of the cabinet machine, prize exchange and the like, so that lottery buyers can purchase welfare lottery by using the express cabinet below a community building, the fast and convenient lottery purchasing experience is realized, the management work of clearing, transportation, storage and the like of change in a consumption place is greatly reduced, and the operation efficiency is improved.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for selling a welfare lottery ticket based on an express cabinet according to a preferred embodiment of the present invention. As shown in fig. 1, it includes the steps of:
step S100, receiving a user instruction, entering a lottery purchasing page, and acquiring a betting scheme of a user on the lottery purchasing page;
step S200, entering a payment page after the submission of the betting scheme is detected;
step S300, obtaining the payment state of the user on the payment page, entering a ticket drawing page when the payment of the user is detected to be successful, and sending a lottery ticket drawing request to a welfare lottery ticket center system;
and S400, if the drawing page receives drawing information fed back by the welfare lottery central system, judging that the drawing is successful, and printing the corresponding lottery by the express cabinet.
When the system is specifically implemented, the express cabinet background is connected with the welfare center system in a network in advance, and lottery betting information of a user in the express cabinet can be transmitted to the welfare center system.
When a user needs to purchase welfare lottery tickets, a lottery ticket purchase page can be entered through a display screen of the express cabinet, and the user selects lottery ticket types and numbers on the lottery ticket purchase page to complete a betting scheme. And when the user confirms the betting scheme, submitting the betting scheme, and entering a payment page. The amount to be paid is displayed on the payment page, and the user can select a payment mode according to needs. Payment methods include, but are not limited to, WeChat and Payment Bao. After the user confirms payment, the express delivery cabinet displays a ticket drawing page and sends a lottery ticket drawing request to the welfare lottery ticket center system, the lottery ticket drawing request comprises lottery ticket purchasing information such as a user betting scheme and the like, the welfare lottery ticket system returns lottery ticket drawing information, if the ticket drawing page receives the ticket drawing information fed back by the welfare lottery ticket center system, the fact that the ticket drawing is successful is judged, and the express delivery cabinet draws a corresponding paper lottery ticket. In order to facilitate prize exchange for a user, when lottery tickets are drawn, identification codes corresponding to the lottery betting schemes are generated, and the user can scan the identification codes through the express cabinet to exchange the prizes or scan the identification codes through paying attention to the operating public numbers of the express cabinet to exchange the prizes.
Optionally, step S100 includes:
receiving a user instruction, entering a lottery type selection page, and acquiring the lucky color type selected by the user on the lottery type selection page;
and entering a corresponding number selection betting page according to the selected lottery categories, and acquiring the lottery numbers and betting multiples selected by the user on the number selection betting page.
Specifically, a user instruction is received to enter a lottery category selection page, wherein lottery categories include, but are not limited to, two-color balls, lucky-color 3D, seven-fun, and the like. And after the lottery is selected on the lottery type selection page, entering a number selection and betting page. The user on the number selecting and betting page can select numbers or randomly bet, and select betting multiples according to the requirement, and the next process is started after all the selection is finished.
Optionally, step S200 includes:
and after the betting scheme is detected to be submitted, the betting amount corresponding to the betting scheme is calculated, the payment page is entered, and the betting amount to be paid is displayed on the payment page.
Specifically, after the user confirms to submit the betting scheme, the betting amount required to be paid by the betting scheme is calculated, and after the user enters a payment page, a payment mode and the betting amount to be paid are provided on the payment page. For example, a bet of 2 dollars, and a selection of 5 bets requires a payment of 10 dollars.
Optionally, after step S300, the method further includes:
if the ticket drawing page does not receive the ticket drawing information fed back by the welfare lottery central system, the ticket drawing failure is judged, the lottery purchasing failure is displayed on the express cabinet, and the betting amount of the user is returned to the payment account of the user.
In specific implementation, if the express delivery cabinet fails to take out the tickets, the lottery ticket purchase failure is prompted on the screen, and the bet amount of the user is returned to the original payment account of the user.
Further, the payment mode of the payment page comprises payment treasure payment and WeChat payment;
the payment page acquires the payment state of the user, and when the payment of the user is detected to be successful, the user enters a lottery ticket drawing page, wherein the payment page comprises the following steps:
the payment page acquires a payment mode selected by a user, and if the payment page detects that the user adopts WeChat payment; just judge whether the user is paying for the first time;
if the lottery ticket is paid for the first time, prompting the user to submit the mobile phone number, jumping to a mobile phone number filling page, jumping to a payment page after the mobile phone number of the user is successfully filled, and jumping to a lottery ticket drawing page after the payment page detects that the user is successfully paid;
if not, the payment page jumps to a lottery drawing page after detecting that the user payment is successful.
Specifically, if the user detects the WeChat payment, whether the user pays for the first time is detected when entering a code scanning payment page, if the user pays for the first time, the user is prompted to fill in the mobile phone number, the user enters the payment page after the user successfully fills in the mobile phone number is detected, the detection instruction of the user is continuously detected, the user successfully pays for the lottery ticket, and the lottery ticket drawing page is skipped. And if the payment is not the first payment, jumping to a lottery ticket drawing page after the payment page detects that the user payment is successful.
Optionally, after step S400, the method further includes:
and sending a message link of successful lottery ticket purchase to the user terminal, wherein the message link can jump to a lottery ticket purchase record page.
In specific implementation, after the lottery ticket is successfully purchased, a lottery ticket purchase success notice is sent to the user terminal. And if the user terminal pays attention to the WeChat public number of the express cabinet, sending a message link for successful purchase notification through WeChat, and if the user terminal does not pay attention to the WeChat public number of the express cabinet, sending the message link for successful purchase notification through a mobile phone number. The message link may be to a lottery ticket purchase record page through which the user may view his or her own lottery ticket purchase record.
Optionally, the lottery ticket is provided with an identification code of the betting scheme;
sending a message link of successful purchase to the user terminal, wherein the message link can jump to the lottery purchase record and comprises the following steps:
receiving a user instruction to enter a prize exchanging page, wherein the prize exchanging page acquires a prize exchanging instruction of the user;
scanning an identification code on the lottery ticket, inquiring the lottery drawing condition of the lottery ticket on the lottery drawing page, and prompting to draw the lottery after waiting for drawing the lottery if the lottery ticket is not drawn; if the lottery ticket is drawn, the user is prompted according to the winning condition.
When the lottery ticket is specifically implemented, the lottery ticket is also provided with an identification code, and the identification code can be a two-dimensional code or a bar code. The identification code corresponds to a wagering scheme. The user accessible is paid close attention to express delivery cabinet's little letter public number, is honored the prize through little letter public number scanning identification code, or is honored the prize through express delivery cabinet scanning identification code.
When adopting express delivery cabinet scanning identification code to convert the prize, receive user's instruction and get into converting the prize page on the display screen, convert the prize page and acquire user's converting the prize instruction, click and convert the prize button, the express delivery cabinet begins scanning identification code. And inquiring the lottery drawing condition of the lottery on the lottery drawing page, and if the lottery does not draw the lottery, prompting to wait for drawing the lottery and then drawing the lottery. If the lottery ticket does not win, the lottery ticket is prompted to lose a prize. If the lottery ticket has passed the prize exchanging period, the lottery ticket is regarded as being abandoned and not exchanged. If the lottery ticket has a big prize, the lottery ticket is prompted to go to a lottery center for prize exchange after identity information is registered. If the lottery ticket has a small prize, the user account is directly redeemed.
When the WeChat public number is adopted to scan the identification code for prize exchange, the information of the public number is entered, the lottery special area clicks to scan the code for prize exchange, the self-service prize exchange is completed, and if the lottery does not have a prize, the lottery is prompted to wait for the prize to be exchanged after the prize is drawn. If the lottery ticket does not win, the lottery ticket is prompted to lose a prize. If the lottery ticket has passed the prize exchanging period, the lottery ticket is regarded as being abandoned and not exchanged. If the lottery ticket has a big prize, the lottery ticket is prompted to go to a lottery center for prize exchange after identity information is registered. If the lottery ticket has the small prize, the lottery ticket is directly exchanged to the WeChat wallet of the user, and the user can be presented after entering the WeChat wallet page.
Another embodiment of the present invention provides an express delivery cabinet, as shown in fig. 2, the express delivery cabinet 10 includes:
one or more processors 110 and a memory 120, where one processor 110 is illustrated in fig. 2, the processor 110 and the memory 120 may be connected by a bus or other means, and the connection by the bus is illustrated in fig. 2. The express delivery cabinet is also provided with a scanning module and a touch display screen, and the drawing is not shown. The scanning module is used for collecting the identification codes on the lottery tickets, and the touch display screen is used for acquiring lottery ticket purchasing instructions of users.
The processor 110 is used to implement the various control logic of the courier cabinet 10, and may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a single chip, an ARM (Acorn RISC machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. Also, the processor 110 may be any conventional processor, microprocessor, or state machine. Processor 110 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The memory 120 is a non-volatile computer-readable storage medium and may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions corresponding to the express cabinet-based welfare lottery selling method in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the courier cabinet 10, namely, implementing the courier cabinet-based welfare lottery sales method in the above-described method embodiments, by executing nonvolatile software programs, instructions and units stored in the memory 120.
The memory 120 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from the use of the courier cabinet 10, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 120 optionally includes memory located remotely from the processor 110, and these remote memories may be connected to the courier cabinet 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more units are stored in the memory 120 and, when executed by the one or more processors 110, perform the express cabinet-based welfare lottery sales method of any of the method embodiments described above, e.g., performing the method steps S100-S400 of fig. 1 described above.
The express cabinet 10 can execute the welfare lottery selling method based on the express cabinet provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method. Technical details that are not described in detail in the embodiment of the express delivery cabinet 10 can be referred to a welfare lottery selling method based on the express delivery cabinet provided by the embodiment of the present invention.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, e.g., to perform method steps S100-S400 of fig. 1 described above.
Another embodiment of the present invention provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a processor, cause the processor to perform the express cabinet based welfare lottery sales method of the above method embodiment. For example, the method steps S100 to S400 in fig. 1 described above are performed.
The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a general hardware platform, and may also be implemented by hardware. With this in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.