CN114267113A - Lottery drawing method and device - Google Patents

Lottery drawing method and device Download PDF

Info

Publication number
CN114267113A
CN114267113A CN202111602624.7A CN202111602624A CN114267113A CN 114267113 A CN114267113 A CN 114267113A CN 202111602624 A CN202111602624 A CN 202111602624A CN 114267113 A CN114267113 A CN 114267113A
Authority
CN
China
Prior art keywords
winning
user
prize
weight
determining
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
CN202111602624.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 Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111602624.7A priority Critical patent/CN114267113A/en
Publication of CN114267113A publication Critical patent/CN114267113A/en
Pending legal-status Critical Current

Links

Images

Abstract

A lottery drawing method and a device relate to the technical field of data verification, and the method comprises the following steps: acquiring user information of users participating in lottery drawing, wherein the user information comprises region information and portrait information of the users; determining the winning weight of the region according to the region information; determining the image winning weight according to the image information; and determining whether the user wins a prize according to the prize winning weight, the region winning weight and the portrait winning weight. According to the technical scheme, the corresponding region winning weight and the corresponding portrait winning weight are determined according to the region information and the portrait information of the users participating in the lottery, the winning probabilities of the users in different regions and in different portraits can be differentially controlled, and the prizes distributed to the users are more targeted.

Description

Lottery drawing method and device
Technical Field
The present application relates to the field of data verification technologies, and in particular, to a lottery drawing method and apparatus.
Background
When a commercial tenant propagates and promotes a certain activity, lottery links are often set so as to increase the number of users participating in the activity and mobilize the enthusiasm of the users participating in the activity, thereby achieving the expected propagation effect.
However, there are many lottery activities on the internet, for example, a nine-square lottery or a carousel lottery. These lottery events are typically preset with fixed prizes and fixed probability of winning, which may be related to event expiration time, event remaining inventory. However, the areas involved by the online lottery participant users are widely distributed, the types of the users are complicated, and since the activity expenses of each area may be different, if the same winning probability is set for the users in different areas, the expenses of a certain area may be exhausted first, and the activity is ended in advance. Moreover, the same winning probability is set for users with different figures, which makes the prize dispensing less targeted.
Therefore, there is a need for a solution for differentially controlling the winning probability of users in different regions and in different images.
Disclosure of Invention
The application provides a lottery drawing method and device, which are used for carrying out differentiated control on the winning probability of users in different regions and in different pictures.
In a first aspect, an embodiment of the present application provides a lottery method, including: acquiring user information of users participating in lottery drawing, wherein the user information comprises region information and portrait information of the users; determining the winning weight of the region according to the region information; determining the image winning weight according to the image information; and determining whether the user wins a prize according to the prize winning weight, the region winning weight and the portrait winning weight.
In the technical scheme, the corresponding region winning weight and the portrait winning weight are determined according to the region information and the portrait information of the users participating in the lottery, and the winning probabilities of the users in different regions and in different portraits can be differentially controlled.
Optionally, the determining whether the user wins a prize according to the prize winning weight, the region winning weight, and the portrait winning weight includes: determining a first preliminary winning result of the user according to the prize winning weight, wherein the first preliminary winning result is a prize or no prize; determining a second initial winning result of the user according to the regional winning weight, wherein the second initial winning result is winning or not winning; determining a third preliminary winning result of the user according to the portrait winning weight, wherein the third preliminary winning result is winning or not winning; and if the first preliminary winning result, the second preliminary winning result and the third preliminary winning result are winning, determining that the user wins, otherwise, determining that the user does not win.
In the technical scheme, the weights of the three factors, namely the prize winning weight, the regional winning weight and the portrait winning weight, influence the winning result of the user together, and the winning probability of the user in different regions and different portraits can be effectively controlled in a differentiated mode.
Optionally, the determining a first preliminary winning result of the user according to the prize winning weight includes: generating a first random number for the user; and if the first random number falls into a first interval corresponding to the prize winning weight, determining that the first preliminary winning result is a prize winning, and otherwise, determining that the prize winning result is a non-prize winning.
Optionally, if the first random number falls into the first section corresponding to the prize winning weight, determining that the first preliminary winning result is a winning, including: and if the first random number falls into a first interval corresponding to the prize winning weight and the inventory of the prize in the user in the current time period is greater than zero, determining that the first preliminary winning result is a prize.
In the technical scheme, the first random number is in the interval corresponding to the prize winning weight, and the inventory of the winning prizes in the current time period is sufficient, so that the first preliminary prize winning result is determined as a prize winning, and the condition that the number of distributed prizes is larger than the actual number of prizes can be avoided.
Optionally, a prize group where the user is located is determined according to the region information and/or the image information, where the prize group includes one or more prizes, and the one or more prizes correspond to different prize sections in the first section; and if the first preliminary winning result is winning, determining the prize of the user according to the prize interval in which the first random number falls.
In the technical scheme, each user can belong to different prize groups according to the region information or the image information, so that the winning prizes of the users in different regions and different images can be controlled in a differentiated mode, and the prizes are distributed more specifically.
Optionally, the determining a second preliminary winning result of the user according to the regional winning weight includes: generating a second random number for the user; and if the second random number falls into the interval corresponding to the regional winning weight, determining that the second preliminary winning result is winning, and otherwise, determining that the second preliminary winning result is not winning.
Optionally, the determining a third preliminary winning result of the user according to the portrait winning weight includes: generating a third random number for the user; and if the third random number falls into the section corresponding to the portrait winning weight, determining that the third preliminary winning result is winning, and otherwise, determining that the third preliminary winning result is not winning.
Optionally, the determining a prize winning weight of a territory according to the territory information includes: and determining the region winning weight from a pre-configured region weight table according to the region information, wherein the region weight table is used for recording the region weight of each region.
According to the technical scheme, the region weights of the regions recorded in the region weight table can be flexibly changed according to whether each region participates in the activity and the difference of the expenses of each region participating in the activity, so that the purpose of differentially controlling the winning probability according to the regions to which the users belong is achieved.
Optionally, the portrait information includes a type of the user and an activity level of the user in different service areas, and the activity level is determined according to the usage information of the user; the determining portrait winning weight according to the portrait information comprises: and determining the portrait winning weight according to the type of the user and the liveness of the user in different service fields.
In the design scheme, the portrait winning weight of the user is determined according to the liveness of the user in different fields, and the winning probability of the user with different portraits is differentially controlled, so that the prize issued to the user is more targeted.
In a second aspect, an embodiment of the present application provides a lottery device, including:
the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring user information of users participating in lottery drawing, and the user information comprises region information and portrait information of the users;
the processing module is used for determining the region winning weight according to the region information; determining the image winning weight according to the image information; and determining whether the user wins a prize according to the prize winning weight, the region winning weight and the portrait winning weight.
Optionally, the processing module is further configured to determine a first preliminary winning result of the user according to the prize winning weight, where the first preliminary winning result is a winning or a losing; determining a second initial winning result of the user according to the regional winning weight, wherein the second initial winning result is winning or not winning; determining a third preliminary winning result of the user according to the portrait winning weight, wherein the third preliminary winning result is winning or not winning; and if the first preliminary winning result, the second preliminary winning result and the third preliminary winning result are winning, determining that the user wins, otherwise, determining that the user does not win.
Optionally, the processing module is further configured to generate a first random number for the user; and if the first random number falls into a first interval corresponding to the prize winning weight, determining that the first preliminary winning result is a prize winning, and otherwise, determining that the prize winning result is a non-prize winning.
Optionally, the processing module is further configured to determine that the first preliminary winning result is a winning result if the first random number falls into a first interval corresponding to the prize winning weight and an inventory of prizes of the user in a current time period is greater than zero.
Optionally, the processing module is further configured to determine a prize group where the user is located according to the region information and/or the image information, where the prize group includes one or more prizes, and the one or more prizes correspond to different prize intervals in the first interval; and if the first preliminary winning result is winning, determining the prize of the user according to the prize interval in which the first random number falls.
Optionally, the processing module is further configured to generate a second random number for the user; and if the second random number falls into the interval corresponding to the regional winning weight, determining that the second preliminary winning result is winning, and otherwise, determining that the second preliminary winning result is not winning.
Optionally, the processing module is further configured to generate a third random number for the user; and if the third random number falls into the section corresponding to the portrait winning weight, determining that the third preliminary winning result is winning, and otherwise, determining that the third preliminary winning result is not winning.
Optionally, the processing module is further configured to determine the region winning weight from a pre-configured region weight table according to the region information, where the region weight table is used to record the region weight of each region.
Optionally, the portrait information includes a type of the user and an activity level of the user in different service areas, and the activity level is determined according to the usage information of the user; and the processing module is also used for determining the portrait winning weight according to the type of the user and the liveness of the user in different service fields.
In a third aspect, an embodiment of the present application further provides a computer device, including:
a memory for storing program instructions;
a processor for calling the program instructions stored in said memory and for executing the method as described in the various possible designs of the first aspect according to the obtained program instructions.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, in which computer-readable instructions are stored, and when the computer-readable instructions are read and executed by a computer, the method described in the first aspect or any one of the possible designs of the first aspect is implemented.
In a fifth aspect, this application further provides a computer program product comprising computer readable instructions that, when executed by a processor, cause the method described in the first aspect or any one of the possible designs of the first aspect to be implemented.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a lottery method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a specific lottery process provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a lottery device provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiments of the present application, a plurality means two or more. The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, nor order.
In the embodiment of the application, the acquisition, storage, use, processing and the like of the data all conform to relevant regulations of national laws and regulations.
Fig. 1 schematically illustrates a lottery method provided in an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step 101, obtaining user information of users participating in the lottery. The user information includes region information and portrait information of the user.
The region information is the region where the users participating in the lottery are located. For example, regions may be divided according to regions, such as northeast regions, northwest regions, etc.; the regions can also be divided according to provinces, such as Liaoning province, Jilin province, Heilongjiang province and the like. The specific region division rule may be specifically adjusted according to the actual situation, which is not specifically limited in the embodiment of the present application. The region information of the user can be obtained by positioning when the user enters the front-end page, or can be determined according to address information in the reserved information of the user.
The portrait information includes the type of the user and the liveness of the user in different business areas. Illustratively, in one scenario, a certain bank conducts a consumption compliance lottery to stimulate consumer consumption. Under the scene, the types of the users can be divided into mobile phone bank users, credit card users, savings card users and the like according to different payment modes used by the users. In another scenario, a certain bank promotes the digital RMB wallet business, and a new account opening can participate in lottery activities, so that the number of account opening users is increased. In this scenario, the users can be classified into type 1 clients (sufficient reservation information), type 2 clients (appropriate reservation information) and type 3 clients (less reservation information) according to the sufficiency of the reservation information in the bank. The activity can be determined according to the use information of the user in the service field, wherein the use information can be consumption habits, historical browsing paths and the like of the user in the past period, and the more frequent the use, the higher the activity. For example, users who often use cell phone banks are more active than users who use cell phone banks by chance.
Before step 101, when a user enters a lottery drawing page, clicking a lottery drawing icon in the page to draw a lottery. After receiving a lottery drawing request of a user, the embodiment of the application calls the lottery drawing interface to enter a lottery drawing process.
And 102, determining the region winning weight according to the region information.
In one possible implementation manner, the regional winning weight of the region where the user is located can be determined from a pre-configured regional winning weight table according to the regional information of the users participating in the lottery. Illustratively, table 1 is a zone winning weight table for a certain lottery event, which is used to record zone winning weights for each zone. The zone winning weight is used to represent the probability of winning the zone, and the range is typically set to [0-1 ]. The corresponding regional winning weight is determined according to the regional information of the users participating in the lottery, and the winning probability of different regional users can be differentially controlled.
TABLE 1
Name of territory Region number Weight of
Beijing 01 0.8
Shanghai province 02 0.8
Tianjin 03 0.6
Province of Hubei province 04 0.6
Overseas 05 0
...
In the embodiment of the application, the winning weights of the regions in all the regions may be the same or different, and specifically, different lottery weights may be preset for each region according to whether each region participates in the lottery in the early stage of the development of the lottery, and according to different budget expenditures of each region participating in the lottery. For example, the mobile banking client holds a certain lottery event, and after a user in a region not participating in the lottery event enters the lottery interface and clicks the lottery icon, if the system returns to the user that the region does not participate in the lottery event, the experience feeling given to the user is poor, so that the application shields the difference of the winning probabilities in different regions for the user on the front page. The user in the region not participating in the event may participate in the event, but the region weight of the region in the event is set to 0, and for example, the region weight of the overseas region is set to 0. For the regions participating in the lottery activity, different lottery weights can be set according to different fund budgets of the regions participating in the lottery activity. The financial budget is about sufficient and the draw weight is higher. For example, the region weight of Beijing and Shanghai is set to 0.8, and the region weight of Tianjin and Hubei province is set to 0.6.
And 103, determining the winning weight of the portrait according to the portrait information.
In one possible implementation, the portrait winning weight may be determined according to the type of the user and the liveness of the user in different business fields. Illustratively, a portrait table may be set in the user information of each user, and each portrait table may include one or more portrait labels, each portrait label having a corresponding weight, the weight of each portrait label being determined according to the activity of the user in the business domain corresponding to the portrait label. When there are several image labels in the image table, the product of the weights of several image labels is used as the image winning weight of the user. Table 2 is a user representation table provided in this embodiment of the present application, and the table divides the types of users into mobile banking users, credit card users, savings card users, and the like according to the different types of payment methods used by the users. If the weights are 0.6, 0.5, and 0.2, respectively, according to the activity of the user using the mobile banking, credit card, and savings card, the image winning weight of the user determined according to table 2 is 0.6 × 0.5 × 0.2 — 0.06.
TABLE 2
Label name Weight of
Mobile banking user 0.6
Credit card user 0.5
Savings card user 0.2
It should be noted that table 2 is only one setting method of the user image, and the weight of the image may be set according to the sufficiency of the information filled by the user when registering the account, which is not particularly limited in the present application.
And step 104, determining whether the user wins the prize according to the prize winning weight, the region winning weight and the portrait winning weight.
The prize winning weight is the probability that the user can draw the prize, the regional winning weight is the winning probability of the region where the user is located, and the portrait winning weight is the portrait winning probability of the user.
In one possible implementation, the first preliminary winning result of the user can be determined according to the prize winning weight, and the first preliminary winning result is a prize or no prize; determining a second initial winning result of the user according to the regional winning weight of the user, wherein the second initial winning result is winning or not winning; and determining a third preliminary winning result of the user according to the portrait winning weight of the user, wherein the third preliminary winning result is winning or not winning.
And if the first preliminary winning result, the second preliminary winning result and the third preliminary winning result are winning, determining that the user wins the prize, otherwise, determining that the user does not win the prize. That is, as long as one of the first preliminary winning result, the second preliminary winning result, and the third preliminary winning result is a no-win, it is determined that the user won no prize.
Wherein the prize winning weight is used for determining the probability of the user drawing out the prize. If the first preliminary winning result is a winning prize, the user can be preliminarily considered to be winning the prize. Alternatively, the prize winning weight may be determined based on the number of prizes and the remaining time from the end of the lottery event.
Illustratively, the first preliminary winning result of the user may be determined in the present application by: and generating a first random number for the user, if the first random number falls into a first interval corresponding to the prize winning weight, determining that the first preliminary winning result is a prize winning, and if not, determining that the prize winning result is a non-prize winning. Optionally, when the number of the prizes is limited, if the first random number falls into the first section corresponding to the prize winning weight and the inventory of the prize in the user in the current time period is greater than zero, determining that the first preliminary prize winning result is a prize winning. Further, if the first preliminary winning result is a winning prize, the prize of the user may be further determined according to a prize section in which the first random number falls.
Before determining whether the user draws prizes, the method can also set a plurality of prize groups according to the region information and/or the image information, and determines the prize group where the user is located according to the region information and/or the image information of each user participating in the lottery so as to ensure that the prize is more targeted to be issued. Different prizes can be set for each prize group, and the prize winning probability of different prize groups can be the same or different. In particular, each prize set may include one or more prizes corresponding to different prize intervals in the first interval. For example, assume that there are three prizes, prize a, prize B and prize C, in the first prize group, and the winning weights of the prizes are 0.1, 0.2 and 0.3, respectively. A random integer randVal of (0,1000) is generated, and if randVal falls between (0, 100), the first preliminary winning result is regarded as a prize and the winning prize is prize A, if randVal falls between (100, 300), the first preliminary winning result is regarded as a prize and the winning prize is prize B, if randVal falls between (300, 600), the first preliminary winning result is regarded as a prize and the winning prize is prize C, otherwise, if randVal falls between (600,1000), the first preliminary winning result is regarded as a non-prize.
The second preliminary winning result of the user can be determined in the present application as follows: generating a second random number for the user; and if the second random number falls into the interval corresponding to the regional winning weight, determining that the second preliminary winning result is winning, and otherwise, determining that the second preliminary winning result is not winning. For example, suppose that the region to which the users participating in the lottery belong is Shanghai, and the winning weight of the region in the lottery event is 0.8. A random integer randVal of (0,1000) is generated, and if randVal falls between (0,800), the second preliminary winning result is considered a prize, otherwise the second preliminary winning result is a no prize.
The third preliminary winning result of the user can be determined in the following manner in the present application: generating a third random number for the user; and if the third random number falls into the section corresponding to the portrait winning weight, determining that the third preliminary winning result is winning, and otherwise, determining that the third preliminary winning result is not winning. For example, assuming that the portrait winning weight of the user participating in the lottery is 0.06, a random integer randVal of (0,10000) is generated, and if randVal falls between (0,600), the third preliminary winning result is considered a prize, otherwise the third preliminary winning result is a no prize.
The ranges of the first random integer, the second random integer, and the third random integer may be the same or different, and this is not specifically limited in this embodiment of the application.
It should be noted that, the order of whether the user wins is determined according to the prize winning weight, the region winning weight and the image winning weight, and the order can be dynamically adjusted according to the actual requirement. For example, whether the prize is won or not can be judged according to the prize winning weight, then whether the prize is won or not can be judged according to the regional winning weight, and finally whether the prize is won or not can be judged according to the image winning weight; or whether the prize is won or not can be judged according to the image winning weight, then whether the prize is won or not can be judged according to the regional winning weight, and finally whether the prize is won or not can be judged according to the prize winning weight; or, a comprehensive winning weight can be determined according to the regional winning weight and the portrait winning weight, and then whether the prize is won or not is judged.
Optionally, after the user is finalized, the corresponding winning prize may be locked to prevent the stock from being overflowed. Specifically, when the prize is first drawn in the current time period, a remaining stock record of the prize may be initialized according to the information in the prize table, and the stock of the prize in the current time period may be recorded, and the remaining stock records of the plurality of prizes may constitute the prize remaining stock record table. The remaining prize inventory table may be as shown in table 3, in which the prize group number, prize number, date, and inventory are recorded. Wherein, the date is the date of the current time period, which is the valid period for which the prize can be drawn; inventory is the remaining number of prizes in the expiration date. After determining that the user wins a prize, judging whether the prize has stock in the current time period, and if not, prompting the user not to win the prize; if the stock exists, calling the prize distributing interface to distribute the corresponding prize, and subtracting 1 from the stock of the prize.
TABLE 3
Prize group number Prize numbering Date Stock quantity
In one possible implementation mode, the winning list inquiring interface can be called according to the request of inquiring the winning result of the user, whether the user wins or not is inquired in the winning flow water meter, and winning information is returned to the user. An exemplary winning flow meter may be as shown in table 4, in which the user name, prize group number, winning prize number, winning status and winning prize denomination of each user are recorded.
TABLE 4
User name Prize group number Prize number for winning a prize Winning status Prize denomination in prize
In one possible implementation, the client may encrypt the user ID after the user successfully logs in at the client using the user ID and the password. When a user enters a lottery drawing page and clicks a lottery drawing button to draw a lottery, the encrypted user ID is decrypted first in the embodiment of the application so as to verify the validity of the user. If the decryption fails, the decryption is returned directly to prompt the user as an illegal user.
And if the user ID is successfully decrypted, locking the decrypted user ID so as to avoid the situation that the user concurrently draws a lottery. And if the locking fails, directly returning to prompt the user to operate frequently.
After the user ID is successfully locked, checking whether the user ID currently has lottery qualification, namely whether the user ID has residual lottery times, and if not, directly returning to prompt the user that the residual lottery times are 0; if yes, the remaining lottery times are subtracted.
In addition, in the embodiments of the present application, different interfaces may be called to call corresponding table models, such as a region weight table, an image table, a prize remaining inventory record table, and a prize winning flow meter. And parameter configuration in the table can be adjusted according to actual requirements of different lottery activities so as to adapt to various lottery activities and facilitate multiplexing. Each lottery event supports the issuance of multiple types of prizes, such as merchant tickets, e-commerce tickets, and fee tickets.
The embodiments of the present application are not limited to the use of computer programming languages such as JAVA, C #, PHP, database software such as mysql, oracle, and cache middleware such as redis, memcached.
The application provides a lottery method, which determines the corresponding region winning weight and the portrait winning weight according to the region information and the portrait information of users participating in the lottery, can perform differentiated control on the winning probability of the users in different regions and in different portraits, and can make the prizes distributed to the users more targeted.
For better explanation of the embodiment of the present application, fig. 2 exemplarily shows a specific lottery process provided by the embodiment of the present application. As shown in fig. 2, the lottery process includes the following steps:
step 201, decrypt the encrypted user ID.
If the decryption is successful, go to step 202; if the decryption fails, the user is prompted to be an illegal user, and the lottery drawing is finished.
And step 202, locking the decrypted user ID.
If the locking is successful, go to step 203; and if the locking fails, prompting the user of frequent operation and ending the lottery.
And step 203, checking the lottery qualification of the user.
If the user still has the remaining lottery times, subtracting the remaining lottery times, and executing step 204; if the remaining lottery times are not available, the user is prompted that the remaining lottery times are 0, and the lottery is finished.
And step 204, determining the prize group where the user is located.
And determining the prize group where the user is located according to the region information and/or the portrait information of the user.
Step 205, according to the prize winning weight, determining the first preliminary winning result of the user.
If the prize is matched according to the first random number, executing step 206; if the prize is not matched, the user is prompted not to win the prize, and the lottery drawing is finished.
And step 206, determining a second initial winning result of the user according to the regional winning weight.
If the second preliminary winning result is determined to be a winning based on the second random number, go to step 207; if the second preliminary winning result is not winning, the user is prompted not to win, and the lottery is ended.
And step 207, determining a third preliminary winning result of the user according to the portrait winning weight.
If the third preliminary winning result is determined to be won based on the third random number, go to step 208; if the third preliminary winning result is not winning, the user is prompted not to win, and the lottery is ended.
Step 208, lock the prize of the winning prize.
Step 209 updates the remaining inventory of prizes.
Step 209a determines whether the prize is first drawn within the current time period. If yes, initializing a remaining inventory record of the prize; if not, go to step 209 b.
Step 209b, determine whether the prize is in stock. If yes, go to step 209 c; if not, the user is prompted not to win the lottery, and the lottery is finished.
Step 209c, subtract 1 from the inventory amount of the remaining inventory records.
And step 210, returning the winning information of the user.
And (4) issuing prizes, returning the winning information of the user and releasing the locked prizes.
Based on the same technical concept, fig. 3 exemplarily shows a lottery drawing apparatus provided in an embodiment of the present application, which is used for implementing the lottery drawing method in the above-described embodiment. As shown in fig. 3, the apparatus 300 includes:
an obtaining module 301, configured to obtain user information of a user participating in a lottery, where the user information includes geographic information and portrait information of the user;
a processing module 302, configured to determine a region winning weight according to the region information; determining the image winning weight according to the image information; and determining whether the user wins a prize according to the prize winning weight, the region winning weight and the portrait winning weight.
Optionally, the processing module 302 is further configured to determine a first preliminary winning result of the user according to the prize winning weight, where the first preliminary winning result is a winning or a losing; determining a second initial winning result of the user according to the regional winning weight, wherein the second initial winning result is winning or not winning; determining a third preliminary winning result of the user according to the portrait winning weight, wherein the third preliminary winning result is winning or not winning; and if the first preliminary winning result, the second preliminary winning result and the third preliminary winning result are winning, determining that the user wins, otherwise, determining that the user does not win.
Optionally, the processing module 302 is further configured to generate a first random number for the user; and if the first random number falls into a first interval corresponding to the prize winning weight, determining that the first preliminary winning result is a prize winning, and otherwise, determining that the prize winning result is a non-prize winning.
Optionally, the processing module 302 is further configured to determine that the first preliminary winning result is a winning if the first random number falls into a first interval corresponding to the prize winning weight and the inventory of the prize won by the user in the current time period is greater than zero.
Optionally, the processing module 302 is further configured to determine a prize group where the user is located according to the region information and/or the portrait information, where the prize group includes one or more prizes, and the one or more prizes correspond to different prize intervals in the first interval; and if the first preliminary winning result is winning, determining the prize of the user according to the prize interval in which the first random number falls.
Optionally, the processing module 302 is further configured to generate a second random number for the user; and if the second random number falls into the interval corresponding to the regional winning weight, determining that the second preliminary winning result is winning, and otherwise, determining that the second preliminary winning result is not winning.
Optionally, the processing module 302 is further configured to generate a third random number for the user; and if the third random number falls into the section corresponding to the portrait winning weight, determining that the third preliminary winning result is winning, and otherwise, determining that the third preliminary winning result is not winning.
Optionally, the processing module 302 is further configured to determine the zone winning weight from a pre-configured zone weight table according to the zone information, where the zone weight table is used to record zone weights of each zone.
Optionally, the portrait information includes a type of the user and an activity level of the user in different service areas, and the activity level is determined according to the usage information of the user; the processing module 302 is further configured to determine the portrait winning weight according to the type of the user and the liveness of the user in different service fields.
Based on the same technical concept, the embodiment of the present application provides a computer device, as shown in fig. 4, including at least one processor 401 and a memory 402 connected to the at least one processor, where a specific connection medium between the processor 401 and the memory 402 is not limited in the embodiment of the present application, and the processor 401 and the memory 402 are connected through a bus in fig. 4 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present application, the memory 402 stores instructions executable by the at least one processor 401, and the at least one processor 401 may implement the steps of the lottery method described above by executing the instructions stored in the memory 402.
The processor 401 is a control center of the computer device, and may connect various parts of the computer device by using various interfaces and lines, and perform resource setting by executing or executing instructions stored in the memory 402 and calling data stored in the memory 402. Optionally, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles an operating system, a user interface, an application program, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401. In some embodiments, processor 401 and memory 402 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 401 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, and may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
Memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 402 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 402 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 402 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Based on the same technical concept, embodiments of the present application further provide a computer-readable storage medium, which stores computer-readable instructions that, when read and executed by a computer, enable the lottery method listed in any of the above manners to be implemented.
Based on the same technical concept, the embodiment of the present application further provides a computer program product, which includes computer readable instructions, and when the computer readable instructions are executed by a processor, the lottery method listed in any mode above is realized.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (13)

1. A lottery method, characterized in that the method comprises:
acquiring user information of users participating in lottery drawing, wherein the user information comprises region information and portrait information of the users;
determining the winning weight of the region according to the region information;
determining the image winning weight according to the image information;
and determining whether the user wins a prize according to the prize winning weight, the region winning weight and the portrait winning weight.
2. The method of claim 1, wherein said determining whether the user wins based on a prize winning weight, the geographic winning weight, and the portrait winning weight comprises:
determining a first preliminary winning result of the user according to the prize winning weight, wherein the first preliminary winning result is a prize or no prize;
determining a second initial winning result of the user according to the regional winning weight, wherein the second initial winning result is winning or not winning;
determining a third preliminary winning result of the user according to the portrait winning weight, wherein the third preliminary winning result is winning or not winning;
and if the first preliminary winning result, the second preliminary winning result and the third preliminary winning result are winning, determining that the user wins, otherwise, determining that the user does not win.
3. The method of claim 2, wherein said determining a first preliminary winning result for said user based on said prize winning weight comprises:
generating a first random number for the user;
and if the first random number falls into a first interval corresponding to the prize winning weight, determining that the first preliminary winning result is a prize winning, and otherwise, determining that the prize winning result is a non-prize winning.
4. The method of claim 3, wherein determining that the first preliminary winning result is a prize if the first random number falls within a first interval corresponding to the prize winning weight comprises:
and if the first random number falls into a first interval corresponding to the prize winning weight and the inventory of the prize in the user in the current time period is greater than zero, determining that the first preliminary winning result is a prize.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
determining a prize group where the user is located according to the region information and/or the image information, wherein the prize group comprises one or more prizes, and the one or more prizes correspond to different prize sections in the first section;
and if the first preliminary winning result is winning, determining the prize of the user according to the prize interval in which the first random number falls.
6. The method of claim 2, wherein determining a second preliminary winning result for the user based on the regional winning weight comprises:
generating a second random number for the user;
and if the second random number falls into the interval corresponding to the regional winning weight, determining that the second preliminary winning result is winning, and otherwise, determining that the second preliminary winning result is not winning.
7. The method of claim 2, wherein determining a third preliminary winning result for the user based on the portrait winning weights comprises:
generating a third random number for the user;
and if the third random number falls into the section corresponding to the portrait winning weight, determining that the third preliminary winning result is winning, and otherwise, determining that the third preliminary winning result is not winning.
8. The method as claimed in claim 1, wherein the determining a zone winning weight according to the zone information comprises:
and determining the region winning weight from a pre-configured region weight table according to the region information, wherein the region weight table is used for recording the region weight of each region.
9. The method of claim 1, wherein the representation information comprises a type of the user and an activity level of the user in different business fields, the activity level being determined according to the user usage information;
the determining portrait winning weight according to the portrait information comprises:
and determining the portrait winning weight according to the type of the user and the liveness of the user in different service fields.
10. A lottery device, comprising:
the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring user information of users participating in lottery drawing, and the user information comprises region information and portrait information of the users;
the processing module is used for determining the region winning weight according to the region information; determining the image winning weight according to the image information; and determining whether the user wins a prize according to the prize winning weight, the region winning weight and the portrait winning weight.
11. A computer device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the method of any one of claims 1 to 9 in accordance with the obtained program instructions.
12. A computer-readable storage medium comprising computer-readable instructions which, when read and executed by a computer, cause the method of any one of claims 1 to 9 to be carried out.
13. A computer program product comprising computer readable instructions which, when executed by a processor, cause the method of any of claims 1 to 9 to be carried out.
CN202111602624.7A 2021-12-24 2021-12-24 Lottery drawing method and device Pending CN114267113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111602624.7A CN114267113A (en) 2021-12-24 2021-12-24 Lottery drawing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111602624.7A CN114267113A (en) 2021-12-24 2021-12-24 Lottery drawing method and device

Publications (1)

Publication Number Publication Date
CN114267113A true CN114267113A (en) 2022-04-01

Family

ID=80829982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111602624.7A Pending CN114267113A (en) 2021-12-24 2021-12-24 Lottery drawing method and device

Country Status (1)

Country Link
CN (1) CN114267113A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117172842A (en) * 2023-09-07 2023-12-05 银联数据服务有限公司 Lottery configuration method, lottery configuration device, lottery configuration equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080319847A1 (en) * 2007-06-25 2008-12-25 David Shepard Platform for Loyalty Services
CN106530019A (en) * 2016-12-30 2017-03-22 重庆腾帆科技有限公司 Server with function of performing dynamic configuration on winning probability
CN109345281A (en) * 2018-08-22 2019-02-15 中国平安人寿保险股份有限公司 Adjust method and device, the computer storage medium, electronic equipment of winning probability
CN109960487A (en) * 2017-12-14 2019-07-02 北京京东尚科信息技术有限公司 A kind of method and apparatus of extracting object
CN111127108A (en) * 2019-12-27 2020-05-08 北京奇艺世纪科技有限公司 Article distribution method, device, electronic equipment and computer readable storage medium
CN111260418A (en) * 2020-02-18 2020-06-09 深圳市随金科技有限公司 Method, device, server and storage medium for probability selection of object
CN112714332A (en) * 2020-12-28 2021-04-27 广州赞赏信息科技有限公司 Live broadcast online lottery marketing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080319847A1 (en) * 2007-06-25 2008-12-25 David Shepard Platform for Loyalty Services
CN106530019A (en) * 2016-12-30 2017-03-22 重庆腾帆科技有限公司 Server with function of performing dynamic configuration on winning probability
CN109960487A (en) * 2017-12-14 2019-07-02 北京京东尚科信息技术有限公司 A kind of method and apparatus of extracting object
CN109345281A (en) * 2018-08-22 2019-02-15 中国平安人寿保险股份有限公司 Adjust method and device, the computer storage medium, electronic equipment of winning probability
CN111127108A (en) * 2019-12-27 2020-05-08 北京奇艺世纪科技有限公司 Article distribution method, device, electronic equipment and computer readable storage medium
CN111260418A (en) * 2020-02-18 2020-06-09 深圳市随金科技有限公司 Method, device, server and storage medium for probability selection of object
CN112714332A (en) * 2020-12-28 2021-04-27 广州赞赏信息科技有限公司 Live broadcast online lottery marketing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117172842A (en) * 2023-09-07 2023-12-05 银联数据服务有限公司 Lottery configuration method, lottery configuration device, lottery configuration equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2020043086A1 (en) Electronic certificate processing method and system, and electronic business system and storage medium
CN112465528A (en) Digital commodity unsubscribe processing method, device, equipment and storage medium
US7926713B2 (en) Settlement server, settlement request server and settlement execution terminal
CN110852730A (en) Transaction processing method and device based on digital currency and electronic equipment
CN114267113A (en) Lottery drawing method and device
JP2002166042A (en) Ic card system, terminal and ic card used for the same, and returned article processing method
MX2013005933A (en) A lottery system and methods thereof.
CN109587244A (en) Cloud data in mobile phone processing method, device, computer readable storage medium and electronic equipment
CN114255028A (en) Service processing platform, terminal equipment and account binding method
CN108351990A (en) Method and system for distributing physical currency
CN114298785A (en) Preferential activity denomination management method and device, computer equipment and storage medium
CZ225499A3 (en) Chip card and method of use of such chip card
TWI559238B (en) Universal stored value card trading system
CN107341727B (en) Digital currency recycling method and system
WO2019074293A1 (en) Platform apparatus in which virtual currency corresponding to sales reward points is mined
RU2247425C2 (en) Method for playing for money and device for realization of said method
CN109191120A (en) A kind of method preventing block chain bifurcated, equipment and readable storage medium storing program for executing
US20220101317A1 (en) Payment token
JP7312734B2 (en) BALANCE MANAGEMENT SYSTEM, BALANCE MANAGEMENT METHOD, AND BALANCE MANAGEMENT PROGRAM
CN115170198A (en) Task processing method and device, electronic equipment and computer readable storage medium
CN113947404A (en) Virtual object allocation device and method based on block chain system and storage medium
CN112651734A (en) Bill staging processing method, device, equipment and storage medium
RU2291486C1 (en) Method for non-cash payment for goods and services using communication networks
JP2006099692A (en) Device for store and system for store
KR20200078432A (en) User apparatus for O2O service, and method, computer program and recording medium applied to the same

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