CN105260979A - Lottery sequence number generation method - Google Patents

Lottery sequence number generation method Download PDF

Info

Publication number
CN105260979A
CN105260979A CN201510736001.7A CN201510736001A CN105260979A CN 105260979 A CN105260979 A CN 105260979A CN 201510736001 A CN201510736001 A CN 201510736001A CN 105260979 A CN105260979 A CN 105260979A
Authority
CN
China
Prior art keywords
serial number
ticket
ticket serial
lottery
generation method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510736001.7A
Other languages
Chinese (zh)
Inventor
付强
吴壮伟
龚文荣
熊伟
黄河
庞志岗
沈滨
郭建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd filed Critical CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201510736001.7A priority Critical patent/CN105260979A/en
Publication of CN105260979A publication Critical patent/CN105260979A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a lottery sequence number generation method. The generation method comprises steps of obtaining related lottery identification data; generating lottery sequence numbers according to related lottery identification data; taking the lottery sequence numbers of into the check bit algorithm so as to obtain lottery check codes; and generating lottery serial numbers according to the lottery sequence numbers and the lottery check codes. Thus, related information of marketing channels, game systems, sale areas, winning period IDs and whether the tickets are multi-period tickets of the lotteries can be distinguished via the serial numbers. In addition, indexes are established for the lottery sequence numbers, thereby further increasing lottery information searching efficiency of the system.

Description

Ticket serial number generation method
Technical field
The present invention relates to numerical coding field, espespecially a kind of ticket serial number generation method and device.
Background technology
Ticket serial number, also can be called for short draft bank, sells ticket information, in the business such as ticketing, prize, cancellation ticket, returned ticket, all can use the identifying information of ticket serial number as lottery ticket in sports lottery ticket system for unique identification lottery ticket, record.Ticket serial number is except as except the mark of lottery ticket, whether nominal value is also wanted to distinguish lottery ticket sales channel, games system, sales region, recompense-time ID, sell serial number, be the relevant informations such as many promissory notes according to ticket serial number, ticket serial number is prized the integrality of sequence number and accuracy in telecommunication process also to need to allow server end verify.
Under the large merging environment of current data, manage under each independent lottery system is merged into unified data platform; Make the ticket serial number under variant lottery system there is situation about repeating, existing ticket serial number coding rule cannot give the uniqueness of lottery ticket necessity, causes great puzzlement to later stage lottery ticket identification and qualification.
Therefore, current area lottery ticket sequence is only the business demand that cannot meet lottery system under the large merging environment of current data by the sequence of self-propagation of existing coding rule.In system when different regions, different channel, different game, different recompense-time ticketing simultaneously, effectively cannot ensure each lottery ticket uniqueness in systems in which.
Summary of the invention
Because the problems referred to above, the object of the invention is to devise a draft bank coding method that can meet above business demand and technical need, directly can judge the marketing method of lottery ticket, affiliated game, sales region, recompense-time, sale order by draft bank, whether be the related service information such as many promissory notes, and server can be allowed by the identifying code integrality of checking ticket serial number in transmitting procedure and accuracy.
For reaching above-mentioned purpose, the present invention specifically provides a kind of ticket serial number generation method, and described generation method comprises: obtain lottery ticket correlated identities data; According to described lottery ticket correlated identities data genaration ticket serial number; Described ticket serial number is brought in check bit algorithm and obtains lottery ticket check code; According to described ticket serial number and described lottery ticket check code, generate ticket serial number.
In above-mentioned ticket serial number generation method, preferably, described lottery ticket correlated identities data at least comprise: marketing channel identification data, game system identification data, sales region identification data, recompense-time ID identification data and many promissory notes identification data.
In above-mentioned ticket serial number generation method, preferably, described check bit algorithm adopts ISO7064:1983.MOD11-2 standard.
In above-mentioned ticket serial number generation method, preferably, described generation ticket serial number comprises: when comprising letter in described ticket serial number, replaces with preset number.
In above-mentioned ticket serial number generation method, preferably, by preset number, described ticket serial number is verified, obtain described ticket serial number relevant information.
In above-mentioned ticket serial number generation method, preferably, described ticket serial number is 24.
In above-mentioned ticket serial number generation method, preferably, described ticket serial number relevant information at least comprises: marketing channel information, games system information, sales region information, recompense-time ID and many promissory notes information.
The present invention also provides a kind of ticket serial number generating apparatus, and described generating apparatus comprises: data acquisition unit, for obtaining lottery ticket correlated identities data; Sequence number generation unit, for according to described lottery ticket correlated identities data genaration ticket serial number; Check code generation unit, obtains lottery ticket check code for described ticket serial number being brought in check bit algorithm; Ticket serial number generation unit, for according to described ticket serial number and described lottery ticket check code, generates ticket serial number.
In above-mentioned ticket serial number generating apparatus, preferably, described sequence number generation unit also comprises replacement module, and described replacement module is used for when comprising letter in described ticket serial number, replaces with preset number.
In above-mentioned ticket serial number generating apparatus, preferably, described check code generation unit adopts the check bit algorithm of ISO7064:1983.MOD11-2 standard to carry out check bit calculating to described ticket serial number.
Advantageous Effects of the present invention is: by means of only described sequence number can distinguish lottery ticket marketing channel, games system, sales region, recompense-time ID, whether be the relevant informations such as many promissory notes; Moreover, by setting up index to ticket serial number, also improve the lottery information search efficiency of system further.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a application's part, does not form limitation of the invention.In the accompanying drawings:
Fig. 1 is that ticket serial number provided by the present invention generates method flow diagram.
Fig. 2 is ticket serial number generating apparatus schematic diagram provided by the present invention.
Fig. 3 A-Fig. 3 B is schematic diagram after ticket serial number generation method formation sequence provided by the present invention number.
Fig. 4 is an embodiment schematic diagram of ticket serial number method provided by the present invention application.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly understand, below in conjunction with embodiment and accompanying drawing, the present invention is described in further details.At this, schematic description and description of the present invention is for explaining the present invention, but not as a limitation of the invention.
Please refer to shown in Fig. 1, the present invention specifically provides a kind of ticket serial number generation method, and described generation method comprises: S101 obtains lottery ticket correlated identities data; S102 is according to described lottery ticket correlated identities data genaration ticket serial number; Described ticket serial number is brought in check bit algorithm and is obtained lottery ticket check code by S103; S104, according to described ticket serial number and described lottery ticket check code, generates ticket serial number.
In the above-described embodiments, described lottery ticket correlated identities data at least comprise: marketing channel identification data, game system identification data, sales region identification data, recompense-time ID identification data and many promissory notes identification data.Described check bit algorithm adopts ISO7064:1983.MOD11-2 standard.By this algorithm, described lottery ticket correlated identities data are converted to a series of sequence number, determine the uniqueness of this lottery ticket with this, what deserves to be explained is, when using check bit algorithm, when comprising letter in the described ticket serial number in net result, as " X ", with preset number, as " 0 " replaces.With this, final-period management end namely by preset number, as: " 0 " or " 10 " is verified digital " 0 " in aforementioned ticket serial number, obtains described ticket serial number relevant information.Described ticket serial number is 24.Wherein said ticket serial number relevant information at least comprises: marketing channel information, games system information, sales region information, recompense-time ID and many promissory notes information.
Please refer to shown in Fig. 2, the present invention also provides a kind of ticket serial number generating apparatus, and described generating apparatus comprises: data acquisition unit, for obtaining lottery ticket correlated identities data; Sequence number generation unit, for according to described lottery ticket correlated identities data genaration ticket serial number; Check code generation unit, obtains lottery ticket check code for described ticket serial number being brought in check bit algorithm; Ticket serial number generation unit, for according to described ticket serial number and described lottery ticket check code, generates ticket serial number.
In above-mentioned ticket serial number generating apparatus, described sequence number generation unit also comprises replacement module, and described replacement module is used for when comprising letter in described ticket serial number, during as " X ", with preset number, as " 0 " replaces.Described check code generation unit adopts the check bit algorithm of ISO7064:1983.MOD11-2 standard to carry out check bit calculating to described ticket serial number.
In real work, the present invention also comprises a demo plant, and described demo plant is arranged on center service end, after described ticket serial number generating apparatus generates ticket serial number, the center service end of far-end can be verified this ticket serial number, guarantees that remote communication process is prized the accuracy of sequence number.
Advantageous Effects of the present invention is: by means of only described sequence number can distinguish lottery ticket marketing channel, games system, sales region, recompense-time ID, whether be the relevant informations such as many promissory notes; Moreover, by setting up index to ticket serial number, also improve the lottery information search efficiency of system further.
In real work, in the present invention, draft bank uses 24 position digital codings, as shown in Figure 3A, 1st is channel type coding, and the 2nd, 3 is games system coding, and the 4th, 5 is province's centre code, 6th ~ 12 is recompense-time ID, 13rd reservation, (wherein, the content of 6th ~ 22 can make the appropriate adjustments according to the feature of games system 14th ~ 22 ticket overall situation serial numbers.Terminal serial number is not put in draft bank, is retained in independent field, and is printed on other positions of nominal value), the 23rd is many promissory notes mark, and the 24th is check bit.
Because operation system is total digital character to the data demand of draft bank, namely the numeral of 0-9 can only be there is in draft bank, and the School Affairs calculated in ISO7064:1983.MOD11-2 standard there will be captions " X ", therefore, spy does following improvement: if check bit is " X ", uses " 0 " to replace, when so just requiring that check bit is " 0 ", make to verify with the following method: first time uses " 0 " to verify, and correctly then verification is passed through; If incorrect, re-use " 10 " to verify, if correct, verification is passed through; If all incorrect, verify unsuccessfully.
Please refer to again shown in Fig. 4, in instances: the lottery ticket vending terminal (channel ID:1) of Yunnan Province (economizing ID:53) sells a lottery game (game system identification: 10) single lottery ticket of recompense-time mark " 8357600 ", as ticket serial number is: 001700001, the ticket serial number according to algorithm generates: 110538357600000170000114.The tail number 4 of wherein said ticket serial number is check code, the center service end of far-end is when receiving described ticket serial number, except verifying that the ticket serial number information comprised in described ticket serial number also checks this ticket serial number whether complete by above-mentioned check code except whether accurate, wherein whether numeral has omission or misplays, with this, help by the check digit of described ticket serial number the accuracy and the uniqueness that improve described lottery ticket further.
In the above-described embodiments, described ticket serial number generates and is completed by lottery ticket sales end, the links such as later stage ticket serial number checking are completed by distal center service end, make ticket serial number generation method provided by the present invention and device effectively can overcome sequence number in existing lottery ticket alternately to repeat and far-end transmits the problem effectively cannot verifying lottery ticket accuracy by two ends.
What deserves to be explained is, channel type coding in above-mentioned 24 ticket serial number algorithmic rules, games system is encoded, economize centre code, recompense-time ID, 13rd reservation, overall situation serial number, Retention Type, many promissory notes mark, the order in coding rule of check bit is carried out exchanging or reduce sequence number figure place and all can be replaced, as shown in Figure 3 B, 1st is channel type coding, 2nd, 3 is province's centre code, 4th, 5 is games system coding, 6th ~ 12 is recompense-time ID, 13rd ~ 21 ticket overall situation serial numbers, 22nd reservation, 23rd is many promissory notes mark, 24th is check bit.
Above-described specific embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only specific embodiments of the invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a ticket serial number generation method, is characterized in that, described generation method comprises:
Obtain lottery ticket correlated identities data;
According to described lottery ticket correlated identities data genaration ticket serial number;
Described ticket serial number is brought in check bit algorithm and obtains lottery ticket check code;
According to described ticket serial number and described lottery ticket check code, generate ticket serial number.
2. ticket serial number generation method according to claim 1, it is characterized in that, described lottery ticket correlated identities data at least comprise: marketing channel identification data, game system identification data, sales region identification data, recompense-time ID identification data and many promissory notes identification data.
3. ticket serial number generation method according to claim 1, is characterized in that, described check bit algorithm adopts ISO7064:1983.MOD11-2 standard.
4. ticket serial number generation method according to claim 3, is characterized in that, described generation ticket serial number comprises: when comprising letter in described ticket serial number, replaces with preset number.
5. ticket serial number generation method according to claim 4, it is characterized in that, described ticket serial number generation method also comprises: verified described ticket serial number by preset number, judge that whether described ticket serial number is legal according to the result, ticket serial number relevant information as described in then obtaining as legal.
6. ticket serial number generation method according to claim 5, is characterized in that, described ticket serial number relevant information at least comprises: marketing channel information, games system information, sales region information, recompense-time ID and many promissory notes information.
7. ticket serial number generation method according to claim 1, is characterized in that, described ticket serial number is 24.
8. a ticket serial number generating apparatus, is characterized in that, described generating apparatus comprises:
Data acquisition unit, for obtaining lottery ticket correlated identities data;
Sequence number generation unit, for according to described lottery ticket correlated identities data genaration ticket serial number;
Check code generation unit, obtains lottery ticket check code for described ticket serial number being brought in check bit algorithm;
Ticket serial number generation unit, for according to described ticket serial number and described lottery ticket check code, generates ticket serial number.
9. ticket serial number generating apparatus according to claim 8, is characterized in that, described sequence number generation unit also comprises replacement module, and described replacement module is used for when comprising letter in described ticket serial number, replaces with preset number.
10. ticket serial number generating apparatus according to claim 8, is characterized in that, described check code generation unit adopts the check bit algorithm of ISO7064:1983.MOD11-2 standard to carry out check bit calculating to described ticket serial number.
CN201510736001.7A 2015-11-03 2015-11-03 Lottery sequence number generation method Pending CN105260979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510736001.7A CN105260979A (en) 2015-11-03 2015-11-03 Lottery sequence number generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510736001.7A CN105260979A (en) 2015-11-03 2015-11-03 Lottery sequence number generation method

Publications (1)

Publication Number Publication Date
CN105260979A true CN105260979A (en) 2016-01-20

Family

ID=55100654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510736001.7A Pending CN105260979A (en) 2015-11-03 2015-11-03 Lottery sequence number generation method

Country Status (1)

Country Link
CN (1) CN105260979A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763172A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 The method and device of customization sequence number is automatically generated under a kind of linux system
CN108932753A (en) * 2018-09-28 2018-12-04 咪付(广西)网络技术有限公司 A kind of ticket checking number generation System and method for based on bluetooth mesh network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2682502Y (en) * 2004-01-02 2005-03-02 湖南天演科技有限公司 Lottery digital false proof system
CN102609330A (en) * 2012-02-06 2012-07-25 中国农业银行股份有限公司 Document number generating method and document number generating system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2682502Y (en) * 2004-01-02 2005-03-02 湖南天演科技有限公司 Lottery digital false proof system
CN102609330A (en) * 2012-02-06 2012-07-25 中国农业银行股份有限公司 Document number generating method and document number generating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763172A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 The method and device of customization sequence number is automatically generated under a kind of linux system
CN108932753A (en) * 2018-09-28 2018-12-04 咪付(广西)网络技术有限公司 A kind of ticket checking number generation System and method for based on bluetooth mesh network

Similar Documents

Publication Publication Date Title
CN103150679B (en) A kind of ticket information safety protection method
CN110349039A (en) Complaint risk appraisal procedure, system, computer equipment and readable storage medium storing program for executing
CN105260979A (en) Lottery sequence number generation method
CN104464074A (en) Method and system for automatic converting
CN104504507A (en) Network verification system with verification code seal and operation method of network verification system
CN109313713A (en) Two dimensional code and its generation method, generating means, program, read method, reading device and management system
CN106650496A (en) Data processing method and device
CN101593280B (en) System and method for multiple-authentication of race pigeon identities
CN102509226B (en) Electric lottery certificate generating and verifying method and electric lottery marketing and management system
CN102968858B (en) Transaction data backup method in AFC system and transaction terminal
CN106886731A (en) The acquisition methods of electric energy meter information, apparatus and system
CN106156019A (en) The method and apparatus generating identifier
CN107679911A (en) The method and device of electronic-parking ticket is obtained based on member system
CN107767192A (en) A kind of verification method of electronic bill, apparatus and system
CN102238171A (en) Intelligent key device, and system and method for improving security of online transaction and authentication
CN106157421A (en) A kind of lottery self-service terminal
CN111950648B (en) Three-section code verification method and device for express package label
CN103488931B (en) The authentication method of object for competition
CN106650839A (en) Smart card production data state control method
CN109885555B (en) User information management method and device
CN112597740A (en) Serial number generation method and server for generating serial number in distributed system
CN106355734A (en) Lottery trading system
CN205541157U (en) Borrow computer management system of books
JP2006268232A (en) Processing logic verification device for station task equipment
JP4942019B2 (en) Commuter pass matching simulator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120

RJ01 Rejection of invention patent application after publication