Disclosure of Invention
The present disclosure is directed to overcoming the disadvantages of the prior art and providing a method, an apparatus, and a system for printing a lottery ticket, which can print a history lottery ticket of a user to secure a user's rights.
According to a first aspect of embodiments of the present disclosure, there is provided a lottery ticket printing method, including:
acquiring a historical lottery printing request, wherein the historical lottery printing request carries the identity information of a target user;
inquiring historical lottery ticket purchasing information of the target user according to the identity information of the target user;
generating a printable lottery list and an unprintable lottery list according to the historical lottery purchasing information of the target user;
and generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identification, and sending the lottery images to the lottery betting terminal.
In one embodiment, generating the printable lottery ticket list and the non-printable lottery ticket list according to the historical lottery ticket purchase information includes:
classifying the lottery corresponding to the historical lottery purchasing information of the target user;
and generating a printable lottery ticket list and a non-printable lottery ticket list according to the classification result.
In one embodiment, classifying the lottery tickets corresponding to the historical lottery ticket purchase information of the target user comprises:
classifying the lottery tickets corresponding to the historical lottery ticket purchase information of the target user according to the purchase deadline, wherein the classification comprises the lottery tickets which are rewarded for the prize winning period, the lottery tickets which are rewarded for the prize winning period and the lottery tickets which are not drawn for the prize winning period;
and classifying the lottery corresponding to the historical lottery purchasing information of the target user according to whether the lottery is won or not, wherein the classification comprises the following steps: winning tickets and losing tickets;
generating a printable lottery ticket list and a non-printable lottery ticket list according to the classification result includes:
the purchase information corresponding to the lottery ticket which is in the process of drawing a prize and has won the prize and the lottery tickets which are not drawn the prize is listed in a printable lottery ticket list, and the purchase information corresponding to the other lottery tickets is listed in a non-printable lottery ticket list.
In one embodiment, generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identifier, and sending the lottery images to the lottery betting terminal comprises:
adding a deadline label and a winning state label to lottery purchasing information in both the printable lottery list and the non-printable lottery list;
and generating a corresponding lottery image according to the printable lottery list, the non-printable lottery list, the preset identification, the deadline label and the winning state label, and sending the lottery image to the lottery betting terminal.
In one embodiment, generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identifier, and sending the lottery images to the lottery betting terminal comprises:
selecting a lottery printing template according to the printable lottery list, the non-printable lottery list and the preset identification, wherein the lottery printing template is provided with a reserved position for adding information to be printed;
and adding the information to be printed to the reserved position of the lottery printing template to generate a corresponding lottery image, and sending the lottery image to the lottery betting terminal.
In one embodiment, the information to be printed includes betting area information, purchase information, and identity information of the target user; wherein the purchase information includes at least one of a lottery type, a drawing time, a purchase device number, and a price.
In one embodiment, before obtaining the historical lottery ticket print request, the method further comprises:
acquiring identity information of a target user and lottery purchase request information of the target user;
generating lottery information of the target user according to the lottery purchasing request information of the target user;
and binding the lottery information of the target user with the identity information of the target user.
According to a second aspect of embodiments of the present disclosure, there is provided a lottery ticket printing apparatus, the apparatus including:
the acquisition module is used for acquiring a historical lottery printing request, wherein the historical lottery printing request carries the identity information of a target user;
the inquiry module is used for inquiring the historical lottery ticket purchasing information of the target user according to the identity information of the target user;
the generation module generates a printable lottery list and a non-printable lottery list according to the historical lottery purchasing information of the target user;
the processing module generates corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identification, and sends the lottery images to the lottery betting terminal
In one embodiment, the processing module comprises:
the first generation submodule generates a corresponding lottery image according to the printable lottery list, the non-printable lottery list and the preset identification;
and the sending submodule sends the lottery image to the lottery betting terminal.
In one embodiment, the generating module comprises:
the classification submodule is used for classifying the lottery corresponding to the historical lottery purchasing information of the target user;
a second generation submodule for generating a printable lottery list and a non-printable lottery list according to the classification result
According to a third aspect of embodiments of the present disclosure, there is provided a lottery ticket printing system, the system comprising:
the system comprises a lottery service platform and at least one lottery betting terminal connected with the lottery service platform; the method comprises the steps that a lottery betting terminal sends a historical lottery printing request to a lottery service platform, wherein the historical lottery printing request carries identity information of a target user;
the lottery service platform receives a history lottery printing request and inquires history lottery purchasing information of a target user according to the identity information of the target user; generating a printable lottery list and an unprintable lottery list according to the historical lottery purchasing information of the target user; generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identification, and sending the lottery images to the lottery betting terminal
The lottery betting terminal receives the lottery images and instructs a lottery printing device on the lottery betting terminal to print the lottery images.
The lottery printing method provided by the embodiment of the disclosure can perform secondary printing on the historical lottery purchased by the lottery buyer, so that even if the user loses the first printed lottery, the user can perform secondary printing by means of the identity information, thereby avoiding the behaviors of losing prizes, faking and the like, and enabling minors to be really far away from the lottery, thereby ensuring the rights and interests of the lottery buyer.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the present disclosure provides a lottery ticket printing method, as shown in fig. 1, the lottery ticket printing method includes the following steps:
step 101, obtaining a history lottery printing request, wherein the history lottery printing request carries identity information of a target user;
specifically, the history lottery ticket printing request herein refers to a request that the user does not print a lottery ticket for the first time. Wherein the non-first time printing of the lottery ticket can be understood as follows: refers to printing performed after the purchase process of the current lottery ticket by the user is completed. Generally, when a user purchases a lottery, some lottery sales terminals directly output paper-quality lottery, and some lottery sales terminals can enable the user to select paper printing or electronic tickets.
Step 102, inquiring historical lottery purchasing information of a target user according to the identity information of the target user;
the history lottery purchasing information comprises lottery numbers, purchasing time, purchasing quantity, purchasing places, equipment related information of cloud lottery selling terminals and the like.
103, generating a printable lottery list and a non-printable lottery list according to the historical lottery purchasing information of the target user;
in one embodiment, generating the printable lottery ticket list and the non-printable lottery ticket list according to the historical lottery ticket purchase information includes:
classifying the lottery corresponding to the historical lottery purchasing information of the target user;
and generating a printable lottery ticket list and a non-printable lottery ticket list according to the classification result.
In one embodiment, classifying the lottery tickets corresponding to the historical lottery ticket purchase information of the target user comprises:
classifying the lottery tickets corresponding to the historical lottery ticket purchase information of the target user according to the purchase deadline, wherein the classification comprises the lottery tickets which are rewarded for the prize winning period, the lottery tickets which are rewarded for the prize winning period and the lottery tickets which are not drawn for the prize winning period;
and classifying the lottery corresponding to the historical lottery purchasing information of the target user according to whether the lottery is won or not, wherein the classification comprises the following steps: winning tickets and losing tickets;
generating a printable lottery ticket list and a non-printable lottery ticket list according to the classification result includes:
the purchase information corresponding to the lottery ticket which is in the process of drawing a prize and has won the prize and the lottery tickets which are not drawn the prize is listed in a printable lottery ticket list, and the purchase information corresponding to the other lottery tickets is listed in a non-printable lottery ticket list.
In one embodiment, the non-printable lottery ticket list may be set to a state in which the user can only view, but cannot select printing.
And 104, generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identification, and sending the lottery images to the lottery betting terminal.
It should be noted that the preset identifier may be a mark made by the target user on the printable lottery ticket list or the non-printable lottery ticket list, for example, the target user may make a large "√" shape on the printable lottery ticket list, or the target user may make an "×" on the non-printable lottery ticket list.
In one embodiment, generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identifier, and sending the lottery images to the lottery betting terminal comprises:
adding a deadline label and a winning state label to lottery purchasing information in both the printable lottery list and the non-printable lottery list;
and generating a corresponding lottery image according to the printable lottery list, the non-printable lottery list, the preset identification, the deadline label and the winning state label, and sending the lottery image to the lottery betting terminal.
For example, for the lottery ticket purchase information of the winning lottery ticket which has passed the prize winning period, the term label content is added as follows: the prize-exchanging period is passed; the content of the added winning state label is as follows: has won a prize.
Specifically, different types of labels are distinguished by different colors or styles, and labels of the same type but different contents are distinguished by the same style and color, for example, the same winning-state label, the label that has won a prize, is displayed in red, and the label that has won a prize, is displayed in gray.
In one embodiment, generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identifier, and sending the lottery images to the lottery betting terminal comprises:
selecting a lottery printing template according to the printable lottery list, the non-printable lottery list and the preset identification, wherein the lottery printing template is provided with a reserved position for adding information to be printed;
and adding the information to be printed to the reserved position of the lottery printing template to generate a corresponding lottery image, and sending the lottery image to the lottery betting terminal.
Illustratively, the type of lottery ticket varies from one distributor to another, such as, but not limited to, a welfare lottery ticket including: two-color ball, 3D, seven-color lottery, including but not limited to: arranging three, arranging five, arranging seven-star lottery, big lotto, selecting 5 from 22, selecting 7 from 29, selecting 7 from 31, betting (winning or losing lottery, goal lottery, half-full court), basketball guessing; different lottery types correspond to different lottery templates.
In one embodiment, the information to be printed includes betting area information, purchase information, and identity information of the target user; wherein the purchase information includes at least one of a lottery type, a drawing time, a purchase device number, and a price.
Optionally, before acquiring the historical lottery ticket printing request, the method further comprises:
acquiring identity information of a target user and lottery purchase request information of the target user;
generating lottery information of the target user according to the lottery purchasing request information of the target user;
and binding the lottery information of the target user with the identity information of the target user.
It should be noted that, since the user identity information cannot be displayed in clear text, the identity information is usually converted into encrypted information and displayed on the lottery ticket.
In one embodiment, the target user places the identification card on the identification card sensing device of the cloud lottery sales terminal, and after the identification information of the user is recognized, the user submits a lottery purchase request.
Specifically, there may be two implementation manners for the identification of the user identity information: one implementation mode is that at the cloud lottery sale terminal side, an identity information identification module reads identity information stored in a user identity card chip to realize the implementation; the other implementation mode is that an identity information identification module at the cloud lottery selling terminal side reads eID of a user, the eID is uploaded to a cloud lottery selling platform, the cloud lottery selling platform transmits data to a public security system big database, the public security system big database decodes the eID, the eID is matched to obtain user identity information, and then the user identity information is sent to the cloud lottery selling platform.
The lottery printing method provided by the embodiment of the disclosure can perform secondary printing on the historical lottery purchased by the lottery buyer, so that even if the user loses the first printed lottery, the user can perform secondary printing by means of the identity information, thereby avoiding the behaviors of losing prizes, faking and the like, and enabling minors to be really far away from the lottery, thereby ensuring the rights and interests of the lottery buyer.
Fig. 2 is a lottery printing apparatus provided in an embodiment of the present disclosure, as shown in fig. 2, the lottery printing apparatus includes an obtainingmodule 201, an inquiringmodule 202, agenerating module 203, and aprocessing module 204; theacquisition module 201 is configured to acquire a history lottery printing request, where the history lottery printing request carries identity information of a target user; thequery module 202 is configured to query historical lottery ticket purchase information of the target user according to the identity information of the target user; thegenerating module 203 is used for generating a printable lottery list and a non-printable lottery list according to the historical lottery purchasing information of the target user; theprocessing module 204 is configured to generate a corresponding lottery image according to the printable lottery list, the non-printable lottery list, and the preset identifier, and send the lottery image to the lottery betting terminal.
Fig. 3 is a lottery printing apparatus provided in an embodiment of the present disclosure, as shown in fig. 3, the lottery printing apparatus includes an obtainingmodule 301, an inquiringmodule 302, agenerating module 303, and aprocessing module 304, where theprocessing module 304 includes afirst generating sub-module 3041 and a sending sub-module 3042; the first generating sub-module 3041 is configured to generate a corresponding lottery image according to the printable lottery list, the non-printable lottery list, and the preset identifier; the sendingsubmodule 3042 is configured to send the lottery image to the lottery betting terminal.
Fig. 4 is a lottery printing apparatus provided in an embodiment of the present disclosure, as shown in fig. 4, the lottery printing apparatus includes an obtainingmodule 401, an inquiringmodule 402, agenerating module 403, and aprocessing module 404, where thegenerating module 403 includes a classifying sub-module 4031 and asecond generating sub-module 4032; theclassification submodule 4031 is used for classifying the lottery corresponding to the historical lottery purchasing information of the target user; thesecond generation sub-module 4032 is used for generating a printable lottery ticket list and a non-printable lottery ticket list according to the classification result.
Fig. 5 is a lottery printing system provided by an embodiment of the present disclosure, as shown in fig. 5, the lottery printing system includes a lottery service platform 501, and at least one lottery betting terminal 502 connected to the lottery service platform 501; wherein,
the lottery betting terminal 502 sends a history lottery printing request to the lottery service platform 501, wherein the history lottery printing request carries the identity information of a target user;
the lottery service platform 501 receives a history lottery printing request and inquires history lottery purchasing information of a target user according to the identity information of the target user; generating a printable lottery list and an unprintable lottery list according to the historical lottery purchasing information of the target user; generating corresponding lottery images according to the printable lottery list, the non-printable lottery list and the preset identification, and sending the lottery images to the lottery betting terminal 502;
the lottery betting terminal 502 receives the lottery images and instructs the lottery printing devices on the lottery betting terminal 502 to print the lottery images.
The lottery service platform 501 is implemented by a server located in the cloud.
It should be noted that the lottery service platform 501 can simultaneously handle the service requirements of a plurality of lottery sales terminals 502; the cloud lottery sales terminal accesses the lottery service platform through the account number and the password.
The cloud lottery sales terminal 502 at least includes: the lottery ticket printing device comprises a shell, a display, an external input device, a lottery ticket printing device, a ticket outlet, an image receiving module and an image decoding module; the image receiving module is used for receiving a processing picture from a lottery service platform located at a cloud end; and the image decoding module is used for decoding the received picture and then sending the decoded picture to the display for displaying. The cloud lottery sale terminal further comprises: and the reverse control module is used for collecting control messages generated when the user operates the external input equipment, and packaging and sending the control messages to the lottery service platform located at the cloud end. In actual implementation, a user operates a seen picture on a lottery sales terminal through external input equipment, control messages generated by corresponding operations are packaged and sent to a lottery service platform, the lottery service platform analyzes the corresponding control messages into local control operations, and the generated picture is sent to the lottery sales terminal after the corresponding operations are executed locally. Thus, it is convenient and quick for the user as operating the client software installed locally.
The lottery service platform 501 comprises a reverse control instruction receiving device, a reverse control instruction processing device, an image acquisition device and an image sending device; wherein, the reverse control instruction receiving device is used for receiving the control message sent by the lottery sales terminal; the reverse control instruction processing device is used for processing the received control message to obtain a processed desktop image; the image acquisition device is used for acquiring the desktop image processed by the reverse control instruction processing device; and the image sending device is used for sending the desktop image collected by the image collecting device to the corresponding lottery ticket selling terminal.
It should be noted that the target user refers to any user, and the present disclosure is only to illustrate how to implement the lottery printing of the target user by taking the target user as an example, and the target does not represent any limitation.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.