CN111080888B - Number limiting processing method and system for lottery betting - Google Patents

Number limiting processing method and system for lottery betting Download PDF

Info

Publication number
CN111080888B
CN111080888B CN201911306658.4A CN201911306658A CN111080888B CN 111080888 B CN111080888 B CN 111080888B CN 201911306658 A CN201911306658 A CN 201911306658A CN 111080888 B CN111080888 B CN 111080888B
Authority
CN
China
Prior art keywords
betting
sold
lottery
licenses
background database
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.)
Active
Application number
CN201911306658.4A
Other languages
Chinese (zh)
Other versions
CN111080888A (en
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 Lottery Technology Development Co ltd
Original Assignee
China Sports Lottery 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 Lottery Technology Development Co ltd filed Critical China Sports Lottery Technology Development Co ltd
Priority to CN201911306658.4A priority Critical patent/CN111080888B/en
Publication of CN111080888A publication Critical patent/CN111080888A/en
Application granted granted Critical
Publication of CN111080888B publication Critical patent/CN111080888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/006Generating random numbers; Lottery apparatus electronically
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/34Betting or bookmaking, e.g. Internet betting

Landscapes

  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention provides a number limiting processing method and a number limiting processing system for lottery betting, wherein the method comprises the following steps: before the prize-giving period is sold, a certain amount of betting licenses to be sold are loaded from a background database to a local memory; in the lottery stage selling process, obtaining lottery betting numbers and corresponding betting quantity; judging whether the number of betting licenses to be sold corresponding to the lottery betting numbers in the local memory meets the betting number or not according to the lottery betting numbers; if the betting amount is satisfied, deducting the corresponding betting license amount to be sold to obtain a betting license processing result, generating betting success information and sending the betting success information to the betting terminal; utilizing a write-back thread to write back the betting permission processing result to a background database; if the wager amount is not met, a number of wager permits for sale are obtained from the background database. The method and the system can ensure that the service requirements do not exceed the limited quantity, and ensure the uniqueness, the accuracy and the safety of the high-frequency service and the service processing capacity under high concurrency on the premise.

Description

Number limiting processing method and system for lottery betting
Technical Field
The invention relates to the technical field of lottery business processing, in particular to a number limit processing method and system for lottery betting.
Background
At present, a business processing system generally consists of a transaction system, a database and a terminal; for the ticket selling request sent by the terminal, the transaction system needs to judge whether the request amount corresponding to the contained request amount exceeds the specified allowed amount according to the transaction request, and when the request amount exceeds the specified allowed amount, the transaction system needs to limit the request amount.
For example, in a lottery system for lottery transaction, the play of a lottery may be classified into a progressive play and a fixed bonus play according to the distribution of bonus. For the prize-pool playing method, the winners equally divide the amount of money in the prize pool according to a certain ratio; while for fixed bonus play, the resulting bonus for the winner is fixed. So for fixed prize play, if wagers are very concentrated and win exactly, it may happen that the prize pool is emptied or a large prize needs to be subsidized, especially for small prize groups or high frequency play.
In order to embody the nature of lottery as a public welfare activity, the prior art proposes a lottery betting system, which can limit the betting, for example, when the number of bets of a certain bet exceeds a certain proportion, which may result in emptying or need to subsidize a large amount of prizes, limit the number, i.e. refuse to bet again, thereby achieving the purpose of controlling the rate of return prizes. That is, when the request quota exceeds the specified permission quota, the transaction request will be rejected to ensure that the transaction request is processed only when the permission quota does not exceed the specified quota.
However, existing lottery betting systems typically store, update, or store betting licenses in a database in the memory of the application system. If the betting permission is stored and updated in the database, updating the data of the betting permission in the database for each transaction; when a plurality of people bet one number at the same time, the problem of concurrency needs to be considered, the efficiency of a data concurrency processing mechanism is low, and a database can become the bottleneck of the whole system. If the betting permission is stored in the memory of the application system, the data in the memory can be updated very fast, and the efficiency of processing concurrency is much higher than that of a database, which causes the risk of data security; when the program crashes, all data in the memory is lost, so that the remaining amount of betting permission cannot be known.
Therefore, a technical solution that can ensure the uniqueness, accuracy and security of the lottery betting license and ensure the high concurrent lottery betting processing capacity is needed.
Disclosure of Invention
In order to solve the problems, the invention provides a number limit processing method and a number limit processing system for lottery betting, which ensure the uniqueness, accuracy and safety of high-frequency services and the service processing capability under high concurrency on the premise that the service requirements do not exceed a limited number by setting a number limit processing mechanism and a write-back mechanism.
In an embodiment of the present invention, a method for processing a number limit of a lottery ticket bet is provided, the method comprising:
before the prize-giving period is sold, a certain amount of betting licenses to be sold are loaded from a background database to a local memory;
in the lottery stage selling process, obtaining lottery betting numbers and corresponding betting quantity;
judging whether the number of betting licenses to be sold corresponding to the lottery betting numbers in a local memory meets the betting number or not according to the lottery betting numbers;
if the betting amount is satisfied, deducting the corresponding betting license amount to be sold to obtain a betting license processing result, generating betting success information and sending the betting success information to the betting terminal;
utilizing a write-back thread to write back the betting permission processing result to a background database;
and if the betting amount is not satisfied, acquiring a certain amount of betting permission to be sold from the background database.
In another embodiment of the present invention, a system for processing a number limit of a lottery ticket bet is further provided, the system comprising:
the betting license loading module is used for loading a certain number of betting licenses to be sold from the background database to the local memory before the lottery is sold;
the betting number acquisition module is used for acquiring lottery betting numbers and corresponding betting quantity in the lottery selling process;
the number judgment module is used for judging whether the number of the betting licenses to be sold corresponding to the lottery betting numbers in the local memory meets the betting number or not according to the lottery betting numbers;
the betting permission deduction module is used for deducting the corresponding number of betting permissions to be sold under the condition of meeting the betting number, obtaining a betting permission processing result, generating successful betting information and sending the successful betting information to the betting terminal;
the write-back module is used for writing back the betting permission processing result to a background database by utilizing a write-back thread;
the betting permission loading module is also used for acquiring a certain amount of betting permissions to be sold from the background database under the condition that the betting amount is not met.
In another embodiment of the present invention, a computer device is further provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements a number limit processing method for lottery betting when executing the computer program.
In another embodiment of the present invention, a computer-readable storage medium is further provided, which stores a computer program, and the computer program realizes the number limit processing method for lottery betting when being executed by a processor.
The method and the system for processing the number limit of the lottery betting can utilize the background database to store original data, flexibly configure the number limit processing process according to the service condition, keep the betting processing system and the background database to update betting permission in the processing process, and improve the processing capacity of the lottery betting under high concurrency; meanwhile, the method and the system also ensure the problem that the betting permission data are all lost when the betting processing system crashes by regularly writing back the betting permission data to the background database, and the whole scheme ensures the uniqueness, the accuracy and the safety of the lottery betting permission.
Drawings
Fig. 1 is a flowchart of a lottery ticket betting number limit processing method according to an embodiment of the present invention.
Fig. 2 is a detailed flowchart of a lottery ticket limited number processing method according to another embodiment of the present invention.
FIG. 3 is a flowchart illustrating a write-back process according to another embodiment of the present invention.
Fig. 4 is a schematic diagram of a lottery ticket limited number processing system according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, the method and the system for processing the number limit of the lottery betting are provided, and the method and the system are a risk control mechanism provided aiming at a high-frequency game, can distribute betting permission to bettable numbers and prevent the winning amount from exceeding the amount payable by a lottery. The number is bet by the buyer, the corresponding bet permission is reduced by one, when the bet permission is 0, the buyer can not bet the number any more, and the risk control process of the bet permission can ensure the global uniqueness and accuracy.
Before describing embodiments of the present invention, the terms to be described are:
limiting the number: the number of betting permits is controlled, and whether the number can be bet is determined according to whether the betting permits exists.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Fig. 1 is a flowchart of a lottery ticket betting number limit processing method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S101, before the prize-giving stage is sold, a certain amount of betting licenses to be sold are loaded from the background database to the local memory.
Step S102, obtaining lottery betting numbers and corresponding betting amount in the lottery selling process.
In one embodiment, when a lottery buyer purchases a lottery, the lottery system obtains a lottery betting number and a betting amount; to prevent the winning amount from exceeding the payable upper limit, the lottery ticket wager may be numbered by a subsequent mechanism.
And step S103, judging whether the number of the betting licenses to be sold corresponding to the lottery betting numbers in the local memory meets the betting number or not according to the lottery betting numbers.
If the number of the betting licenses to be sold in the local memory meets the betting number, namely the number of the betting licenses to be sold in the local memory is greater than or equal to the betting number, executing step S104;
if the number of the betting licenses to be sold in the local memory does not satisfy the betting number, that is, the number of the betting licenses to be sold in the local memory is smaller than the betting number, step S105 is executed.
And step S104, deducting the number of the corresponding betting licenses to be sold to obtain betting license processing results, generating successful betting information and sending the successful betting information to the betting terminal.
And step S105, obtaining a certain amount of betting licenses to be sold from the background database.
The background database sets a certain number of initial betting licenses for each betting number, and the initial states of the betting licenses are all for sale and can be bet. In step S101, before the prize is won, the local memory loads a part of betting licenses to be sold from the background database, and the loading amount may be half of the initial betting license.
When step S103 is executed, if the betting amount is not satisfied, for example, 10 betting permits to be sold remain in the local memory, and 15 bets are bet by the user at a time, which is a non-satisfied condition; in this case, a request is made to the back-end database for betting permissions for sale.
Whether the betting license to be sold can be obtained or not is divided into two cases:
and when obtaining the betting licenses to be sold from the background database, loading the betting licenses to be sold to a local memory, and updating the number of the betting licenses to be sold in the background database.
If the back-office database has betting licenses for sale, the remaining betting licenses for sale can be obtained from the back-office database, usually, half of the total is loaded before sale, and the other half of the initial betting licenses can be loaded this time.
And if the betting permission to be sold is acquired, continuing to return to the step S104 to execute corresponding processing by using the acquired betting permission to be sold. It should be noted that, the number of initial betting licenses acquired from the background database each time can be set according to actual needs, and is not limited to half of the initial number; for example, if the initial license number is 1000, 500, 200, and 100 licenses can be acquired at a time, which is not strictly limited in the present application.
Specifically, when betting licenses are obtained from the background database, the number of local betting licenses is updated (increased), while the number of currently available betting licenses of the background database is updated (decreased); further returning to the step S104, deducting the number of the local corresponding betting licenses according to the lottery betting numbers to obtain betting license processing results, generating betting license information and sending the betting license information to the betting terminal;
and when the betting permission to be sold is not obtained from the background database, the betting permission does not exist in the background database, the betting cannot be carried out on the lottery numbers, and the information of betting failure is sent to the betting party of the lottery betting numbers.
In an embodiment, further referring to fig. 2, after the local deduction of the corresponding number of betting licenses is completed in step S103, a write-back thread may be used to write back the betting license processing result to the background database.
Fig. 3 is a schematic diagram of a write back process of a bet permission. As shown in fig. 3, the process includes:
and judging whether the write-back time is reached or not according to the write-back thread.
If so, the betting license processing results are written back to the background database. And updating and recording the sold betting license number and the to-be-sold betting license total number corresponding to the betting number by the background database according to the betting license processing result. If the initial betting amount is 1000, the local memory has sold 495 betting licenses, and the remaining 5 betting licenses to be sold, the data recorded in the background database is as follows: initial wager amount 1000, sold 495, total number of sales 505, background number of sales 500.
If not, the thread sleeps for a preset time and then judges whether the write-back time is reached again. The preset time for the thread to sleep may be set to one second. In addition, the time for the thread to sleep may be set according to actual needs. The main role of the write-back thread is to write back data to a background database asynchronously and regularly, so as to maintain the uniqueness and accuracy of the global data.
With reference to the embodiments shown in fig. 1 to fig. 3, during the whole process of limiting the number of betting licenses, if the lottery betting processing system is closed, the number of betting licenses in the memory is automatically saved to the local file; and after the lottery betting processing system is restarted, reading the betting permission number from the local file into the memory.
It should be noted that although the operations of the method of the present invention have been described in the above embodiments and the accompanying drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the operations shown must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
The method realizes a risk control mechanism of high-frequency games (lottery betting), ensures the uniqueness, accuracy and safety of lottery betting permission by the whole scheme, and ensures the betting number limit processing capacity under high concurrency.
For a clearer explanation of the number limit processing method for lottery betting, a specific embodiment is described below, however, it should be noted that the embodiment is only for better explaining the present invention and should not be construed as an undue limitation to the present invention.
The first embodiment is as follows:
taking the lottery betting of the user a as an example, the user bets "11 to 5", and the betting numbers are: "3, 5, 7, 10, 11", 1 note.
Locally has 5 betting licenses for sale of the number, 495 are sold; the background database has 500 betting licenses left for sale (1000 total initial betting licenses).
According to the flow shown in fig. 1 to fig. 3, according to the betting number, as there is enough betting permission locally, the corresponding betting permission number (1) is deducted, the local betting permission number (4 remaining) is updated to obtain the processing result, and the information of the permitted betting is sent to the betting terminal; the betting terminal may generate a corresponding lottery ticket accordingly.
Meanwhile, after deduction is finished, a processing result is fed back to the background database by using a write-back thread; the background database records the processing result, the total number of the betting licenses to be sold of the number is still 504, and 500 betting licenses to be sold are left in the background database and are 496.
Example two:
taking the lottery betting of the user B and the user C as an example, the user B bets '11 and 5', and the betting numbers are as follows: "3, 5, 7, 10, 11", 4 notes; user C bets later than user B, and the betting numbers are: "3, 5, 7, 10, 11", 1 note.
Locally has 4 betting licenses for selling the number, 496 are sold; the background database has 500 betting licenses left for sale (1000 total initial betting licenses).
Referring to the flow shown in fig. 1 to fig. 3, when the betting of the user B is processed, since there are enough betting licenses to be sold locally, after the processing, 4 lottery tickets can be generated for the user B, the number of the betting licenses (the remaining 0) locally is updated, and the processing result is written into the background database by using the write-back thread.
When the betting of the user C is processed, since the local betting permission is 0, the betting number of the user C is not satisfied, the betting permission needs to be obtained from the background database, and the obtained number is the remaining betting permission to be sold, namely 500 betting permissions.
After the acquisition is completed, the number of the local licenses to be sold is updated to be 500, and the number of the betting licenses of the background database is 0.
Further, the number of betting licenses (1) may be decremented, a 1-bet lottery ticket generated to user C, and the local number of betting licenses (499 remaining) to be sold updated, with the write-back thread writing the processing results to the background database.
Example three:
taking the lottery ticket casting performed by the user D as an example, the user D casts a lottery ticket "11 to 5", and the casting numbers are: "3, 5, 7, 10, 11", 5 notes.
Locally has 4 betting licenses for selling the number, 496 are sold; the background database has 500 betting licenses left for sale (1000 total initial betting licenses).
Referring to the flow shown in fig. 1 to fig. 3, when the betting of the user D is processed, since the local betting licenses to be sold cannot satisfy the betting of the user D, betting licenses need to be acquired from the background database, and the acquired number is the remaining betting licenses to be sold, that is, 500.
After the acquisition is completed, the number of the local licenses waiting for sale is updated to be 504, and the number of the betting licenses of the background database is 0.
Further, the number of betting licenses may be decremented (5), a 5-bet lottery ticket generated to user D and the local number of betting licenses for sale (499 remaining) updated, with the write-back thread writing the processing results to the background database.
Example four:
taking the lottery betting of the user G and the user H as an example, the user G bets "11 to 5", and the betting numbers are: "3, 5, 7, 10, 11", 2 notes; user H bets later than user G, and the betting numbers are: "3, 5, 7, 10, 11", 1 note.
There are 2 betting licenses for sale, 998 of which are sold, for that number; the background database has 0 betting licenses for sale (the number of initial betting licenses amounts to 1000).
Referring to the flow shown in fig. 1 to fig. 3, when the betting of the user G is processed, since there are enough betting licenses locally, after the processing, a 2-bet lottery ticket may be generated for the user G, and the number of betting licenses (remaining 0) to be sold locally is updated, and the processing result is written into the background database by using the write-back thread. The records of the background database are: initial wager amount 1000, sold 1000, total sold 0, background sold 0.
When the user H bets, since the betting permission to be sold in the local memory is 0, the betting permission needs to be obtained from the background database.
The background database does not have the betting permission (0) to be sold of the number, so that the betting permission cannot be acquired; and sending information of betting failure to the betting party of the lottery betting number, namely that the betting times of the number reaches the current upper limit and betting can not be carried out any more.
Having described the method of an exemplary embodiment of the present invention, a number limit processing system for lottery wagers of an exemplary embodiment of the present invention is next described with reference to fig. 4.
The implementation of the lottery ticket betting number limiting processing system can be referred to the implementation of the method, and repeated details are omitted. The term "module," as used below, may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Based on the same inventive concept, the invention also provides a number limit processing system for lottery betting, as shown in fig. 4, the system comprises:
a betting license loading module 410, configured to load a certain number of betting licenses to be sold from the background database to the local memory before the prize-giving stage;
a bet number obtaining module 420, configured to obtain lottery bet numbers and corresponding bet numbers during the lottery issue process;
the number judging module 430 is configured to judge whether the number of betting licenses to be sold in the local memory corresponding to the lottery betting numbers meets the betting number according to the lottery betting numbers;
the betting permission deduction module 440 is used for deducting the number of corresponding betting permissions to be sold under the condition that the betting number is met, obtaining a betting permission processing result, generating betting success information and sending the betting success information to the betting terminal;
a write-back module 450, configured to write back the result of the betting permission processing to a background database by using a write-back thread;
the betting permission loading module 410 is further configured to obtain a certain number of betting permissions to be sold from the background database when the betting number is not satisfied.
In one embodiment, the risk control may be performed in a national lottery high frequency system using the lottery wager limit processing system, which is integrated into the lottery trading system as one of the modules, and is automatically installed when the lottery trading system is installed.
After the lottery system adopts the technical scheme, the concurrent processing capacity is improved by more than 30 times (compared with the scheme that the betting permission in the prior art is stored and updated in the database), and because the probability of the crash of the application system is very low, the data is rarely lost. Even if the application crashes, only part of the betting permission will be lost because of the mechanism of writing back the background database regularly.
It should be noted that although several modules of the lottery wagering limit processing system are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Based on the aforementioned inventive concept, as shown in fig. 5, the present invention further provides a computer device 500, which includes a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520, wherein the processor 520 executes the computer program 530 to implement the aforementioned method for processing the number limit of the lottery ticket.
Based on the foregoing inventive concept, the present invention also provides a computer-readable storage medium storing a computer program, which when executed by a processor implements a number limit processing method for lottery betting.
The method and the system for processing the number limit of the lottery betting can utilize the background database to store original data, flexibly configure the number limit processing process according to the service condition, keep the betting processing system and the background database to update betting permission in the processing process, and improve the processing capacity of the lottery betting under high concurrency; meanwhile, the method and the system also ensure the problem that the betting permission data are all lost when the betting processing system crashes by regularly writing back the betting permission data to the background database, and the whole scheme ensures the uniqueness, the accuracy and the safety of the lottery betting permission.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (7)

1. A lottery betting number limit processing method is characterized by comprising the following steps:
before the prize-giving period is sold, a certain amount of betting licenses to be sold are loaded from a background database to a local memory;
in the lottery stage selling process, obtaining lottery betting numbers and corresponding betting quantity;
judging whether the number of betting licenses to be sold corresponding to the lottery betting numbers in a local memory meets the betting number or not according to the lottery betting numbers;
if the betting amount is satisfied, deducting the corresponding betting license amount to be sold to obtain a betting license processing result, generating betting success information and sending the betting success information to the betting terminal;
judging whether the write-back time is reached or not according to the write-back thread;
if the result is reached, the betting permit processing result is written back to the background database, and the background database updates and records the number of the sold betting permits and the total number of the betting permits to be sold corresponding to the betting number according to the betting permit processing result;
if not, the thread sleeps for a preset time and then judges whether the write-back time is reached again;
if the betting amount is not satisfied, obtaining a certain amount of betting permission to be sold from the background database;
when obtaining the betting licenses to be sold from the background database, loading the betting licenses to be sold to a local memory, and updating the number of the betting licenses to be sold in the background database;
further judging whether the number of betting licenses to be sold corresponding to the lottery betting numbers in a local memory meets the betting number or not according to the lottery betting numbers;
and when the betting permission to be sold is not acquired from the background database, sending betting failure information to the betting party of the lottery betting number.
2. The method as claimed in claim 1, wherein the predetermined time for the thread to sleep is one second in case that the write-back time is not reached.
3. The method of claim 2, wherein loading a number of betting licenses for sale from a background database into a local memory prior to the lottery ticket sale, comprises:
before the prize is sold, the betting licenses to be sold, half of the initial betting license number, are loaded to a local memory from a background database.
4. The method for processing number limit of lottery betting according to claim 2, wherein when obtaining the betting licenses to be sold from the background database, loading the betting licenses to be sold into the local memory, and updating the number of betting licenses to be sold in the background database, comprises:
and when obtaining the betting licenses to be sold from the background database, loading the remaining betting licenses to be sold in the background database to a local memory, and updating the number of the betting licenses to be sold in the background database to be 0.
5. A lottery ticket wager number limit processing system, the system comprising:
the betting license loading module is used for loading a certain number of betting licenses to be sold from the background database to the local memory before the lottery is sold;
the betting number acquisition module is used for acquiring lottery betting numbers and corresponding betting quantity in the lottery selling process;
the number judgment module is used for judging whether the number of the betting licenses to be sold corresponding to the lottery betting numbers in the local memory meets the betting number or not according to the lottery betting numbers;
the betting permission deduction module is used for deducting the corresponding number of betting permissions to be sold under the condition of meeting the betting number, obtaining a betting permission processing result, generating successful betting information and sending the successful betting information to the betting terminal;
the write-back module is used for judging whether the write-back time is reached or not according to the write-back thread;
if the result is reached, the betting permit processing result is written back to the background database, and the background database updates and records the number of the sold betting permits and the total number of the betting permits to be sold corresponding to the betting number according to the betting permit processing result;
if not, the thread sleeps for a preset time and then judges whether the write-back time is reached again;
the betting permission loading module is also used for acquiring a certain number of betting permissions to be sold from the background database under the condition that the betting number is not met;
when obtaining the betting licenses to be sold from the background database, loading the betting licenses to be sold to a local memory, and updating the number of the betting licenses to be sold in the background database;
further, the number judging module judges whether the number of the betting licenses to be sold corresponding to the lottery betting numbers in the local memory meets the betting number or not according to the lottery betting numbers;
and when the betting permission to be sold is not acquired from the background database, sending betting failure information to the betting party of the lottery betting number.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 4.
CN201911306658.4A 2019-12-18 2019-12-18 Number limiting processing method and system for lottery betting Active CN111080888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911306658.4A CN111080888B (en) 2019-12-18 2019-12-18 Number limiting processing method and system for lottery betting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911306658.4A CN111080888B (en) 2019-12-18 2019-12-18 Number limiting processing method and system for lottery betting

Publications (2)

Publication Number Publication Date
CN111080888A CN111080888A (en) 2020-04-28
CN111080888B true CN111080888B (en) 2021-12-24

Family

ID=70315292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911306658.4A Active CN111080888B (en) 2019-12-18 2019-12-18 Number limiting processing method and system for lottery betting

Country Status (1)

Country Link
CN (1) CN111080888B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482830A (en) * 2009-03-10 2009-07-15 中体彩科技发展有限公司 Transaction processing method and equipment for transaction processing system
CN106559483A (en) * 2016-11-08 2017-04-05 英泰伟业科技(北京)有限公司 Lottery ticket choosing and selling system and the information processing method based on the lottery ticket choosing and selling system
CN106709782A (en) * 2016-12-08 2017-05-24 南京猎豹文化传媒有限公司 Lottery ticket purchasing method based on wireless local area network
CN107392717A (en) * 2017-07-26 2017-11-24 中体彩科技发展有限公司 A kind of method and electronic lottery systems for handling lottery ticket choosing and selling request
CN107679931A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, storage medium and the terminal of order asynchronous process

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482830A (en) * 2009-03-10 2009-07-15 中体彩科技发展有限公司 Transaction processing method and equipment for transaction processing system
CN106559483A (en) * 2016-11-08 2017-04-05 英泰伟业科技(北京)有限公司 Lottery ticket choosing and selling system and the information processing method based on the lottery ticket choosing and selling system
CN106709782A (en) * 2016-12-08 2017-05-24 南京猎豹文化传媒有限公司 Lottery ticket purchasing method based on wireless local area network
CN107392717A (en) * 2017-07-26 2017-11-24 中体彩科技发展有限公司 A kind of method and electronic lottery systems for handling lottery ticket choosing and selling request
CN107679931A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, storage medium and the terminal of order asynchronous process

Also Published As

Publication number Publication date
CN111080888A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
US20110151966A1 (en) System and method for cashless gaming
US20110045896A1 (en) Gaming system and a method of gaming
JP2007188539A (en) Specified return determinator
US10991207B2 (en) Method of operating a gaming system, a gaming system and a game controller
AU2008200752A1 (en) A storage method for a gaming machine
AU2014100744A4 (en) Awarding gaming credits for game play before awarding a cash payout
CN111080888B (en) Number limiting processing method and system for lottery betting
US8512126B2 (en) Gaming system and a method of gaming including display with irregular diamond shaped configuration
US9916716B2 (en) Gaming system and method of gaming
US20110086700A1 (en) Gaming system, a method of gaming and a jackpot game controller
AU2016200937A1 (en) A bonus system, a bonus controller and a method of making a bonus award
US8240558B2 (en) Method of processing a user data card, an interface module and a gaming system
KR101803486B1 (en) Arcade game machine system and driving method for the same
US20240087411A1 (en) Method and system for providing symbol-based events having personal bank features for progressive awards
JP7481295B2 (en) GAMING MACHINE, GAMING METHOD AND PROGRAM
US20130337893A1 (en) Gaming system and a method of gaming
US20140349736A1 (en) Methods and systems of generating a player to player slot machine
AU2019232823A1 (en) A gaming system and a method of gaming
US8376830B2 (en) Gaming system and method of gaming
AU2019203613A1 (en) A bonus system, a bonus controller and a method of making a bonus award
AU2012200531B2 (en) A method of processing a user data card, an interface module and a gaming system
AU2018203965A1 (en) A gaming system, a method of gaming and a jackpot game controller
AU2018202641A1 (en) A gaming system
AU2017265128A1 (en) A System and Method for Cashless Gaming
US20140274315A1 (en) Player to player (p2p) casino

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant