CN116661777A - Lottery drawing control method, lottery drawing control device and storage medium - Google Patents

Lottery drawing control method, lottery drawing control device and storage medium Download PDF

Info

Publication number
CN116661777A
CN116661777A CN202310695432.8A CN202310695432A CN116661777A CN 116661777 A CN116661777 A CN 116661777A CN 202310695432 A CN202310695432 A CN 202310695432A CN 116661777 A CN116661777 A CN 116661777A
Authority
CN
China
Prior art keywords
lottery
logic
activity
target
inventory
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
CN202310695432.8A
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.)
Beijing Momo Information Technology Co ltd
Original Assignee
Beijing Momo Information Technology 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 Beijing Momo Information Technology Co ltd filed Critical Beijing Momo Information Technology Co ltd
Priority to CN202310695432.8A priority Critical patent/CN116661777A/en
Publication of CN116661777A publication Critical patent/CN116661777A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application provides a lottery control method, a lottery control device and a storage medium, wherein a first lottery request is sent, and the first lottery request carries a lottery activity identifier; analyzing the lottery activity identifier in the first lottery request, and matching target lottery logic from a lottery logic pool according to the lottery activity identifier; and completing lottery according to the target lottery logic, and updating the inventory parameters of the target lottery logic in the lottery logic pool. The multiplexing rate of lottery drawing codes is improved, and the design process of lottery drawing function codes is simplified.

Description

Lottery drawing control method, lottery drawing control device and storage medium
Technical Field
The present application relates to the field of program control, and in particular, to a lottery drawing control method, apparatus, and storage medium.
Background
Lottery drawing is a common random rewarding way in various types of applications such as e-commerce, games, social interactions, etc. or in the online/physical industry of sales etc. The usual active play of online lottery is that the user consumes a certain virtual coin, points, cash or performs a certain task, and can have a corresponding time to click a button or participate in a game to obtain the opportunity to draw certain prizes, and a background program checks whether the user wins a prize and which prizes are obtained according to random probability distribution.
The lottery function generally comprises a plurality of modules, lottery logic, prize allocation, prize winning control, etc., and the plurality of modules in the lottery function in the prior art implement corresponding functions based on preset codes of given logic. At the beginning of code writing, the design of lottery logic and functional parameters, prizes and other information is needed, and then the lottery logic and functional parameters, prizes and other information are directly written in a logic code section. However, different lottery application scenes, different lottery topics, the contents of the prizes, the probability of each prize and the rewards contained in the lottery application scenes are different, the code segments for realizing the lottery function are not reusable, when a plurality of places in the application program all need similar lottery activities, the development is still required to be repeated due to the non-multiplexing, and a set of new code logic is developed, tested and maintained from 0, so that a great amount of time cost, labor cost and the like are consumed; when the prize or probability needs to be adjusted, the wiring release process is needed, and the response is slower. The traditional lottery drawing function requires each business party to develop and maintain a set of codes by himself or herself, if emergency situations such as inventory of a certain prize or adjustment of winning probability are met, the research and development personnel of the business party are required to modify the codes and verify the functions by test personnel to be online, and for the winning situation of users, the corresponding function modules are required to be independently developed and developed, so that the whole flow is slower, and the time cost and the personnel cost are increased;
and once the design of the lottery function is finished, the composition and probability of the prize are not changed any more, so that when a large number of users participate in the lottery by using the same set of logic, the code of the lottery function cannot be modified according to the real-time inventory condition due to high code modification cost and slow time, and the prize overdriving is easy to occur.
Disclosure of Invention
In view of the above, the present application provides a lottery control method, apparatus and storage medium, so as to solve the technical problems that codes for implementing lottery functions in the prior art cannot be reused and modified inconveniently.
The first aspect of the present application provides a lottery drawing control method, which specifically includes:
a first lottery request is sent, wherein the first lottery request carries a lottery activity identifier;
analyzing the lottery activity identifier in the first lottery request, and matching target lottery logic from a lottery logic pool according to the lottery activity identifier;
wherein the first lottery activity frame is matched based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; the first lottery activity codes and the corresponding lottery activity identifiers are stored in a lottery logic pool in an associated mode;
and completing lottery according to the target lottery logic, and updating the inventory parameters of the target lottery logic in the lottery logic pool.
Preferably, before the first lottery request is sent, the method further includes:
generating a first lottery request carrying a lottery activity identification and a lottery user identification,
resolving the lottery user identification in the first lottery request,
and auditing the lottery drawing user corresponding to the lottery drawing user identifier.
Preferably, the lottery logic pool has a plurality of lottery logic stored therein, each lottery logic including activity identification information,
the activity identification information includes at least: lottery logic numbers corresponding to the activity types;
after receiving the first lottery request, analyzing the lottery activity identification from the first lottery request,
matching target lottery logic from a pool of lottery logic based on the lottery activity identification,
the target lottery logic is a code segment for implementing the lottery function, including lottery prize parameters and inventory parameters,
the prize parameters are used to characterize the composition of the prizes and their corresponding weights, and the inventory parameters are used to characterize the inventory to which each prize corresponds.
Preferably, the lottery result is obtained according to the target lottery logic to complete a lottery, and specifically includes:
obtaining lottery results according to the target lottery logic,
the lottery results are presented in a second active interface,
occupying an inventory of an amount corresponding to the lottery result in a lottery activity, prompting a service party whether to receive the lottery result,
if the lottery result is accepted, updating the inventory parameters of the target lottery logic in the lottery logic pool and the information of the lottery users according to the lottery result so as to complete lottery;
if not, resetting the occupied inventory, and returning to the step of completing lottery according to the target lottery logic.
Preferably, updating the inventory parameters of the target lottery logic in the pool of lottery logic includes,
and if so, deducting occupied inventory from the inventory parameters of the target lottery logic.
Preferably, the lottery control method further includes:
an alarm threshold value of the inventory monitoring policy is set,
if the updated inventory parameters reach the alarm threshold, prompting the business party of the lottery drawing activity to carry out inventory replenishment; if the business side chooses not to supplement the stock, deleting the lottery prize corresponding to the updated stock parameter reaching the alarm threshold.
Preferably, before completing the lottery according to the target lottery logic, the method further comprises:
determining the number of times the lottery user corresponding to the lottery user identifier is lottery-drawn under the lottery activity identifier based on the lottery user identifier,
and if the lottery number is greater than a threshold value, adjusting the prize parameters in the target lottery logic to finish lottery according to the target lottery logic.
Preferably, before completing the lottery according to the target lottery logic, the method further comprises:
determining the number of times the lottery user corresponding to the lottery user identifier is lottery-drawn under the lottery activity identifier based on the lottery user identifier,
if the number of the lottery drawing times is larger than the threshold value, judging the role of the lottery drawing user,
if the role of the lottery drawing user meets the preset condition, changing the weight distribution of a plurality of prizes;
if the business side judges that the users participating in lottery drawing for many times are malicious bill brushing users, the weight of each non-empty prize item is set to be 0;
if the service side judges that the user participating in the lottery a plurality of times is a premium user, the weight of the target prize is set to 100,
the weight of the awards other than the target award is set to 0.
A second aspect of the present application provides a lottery drawing control apparatus, comprising:
the lottery drawing initiating module is used for sending a first lottery drawing request, wherein the first lottery drawing request carries a lottery drawing activity identifier;
the matching module is used for analyzing the lottery activity identifier in the first lottery request and matching target lottery logic from a lottery logic pool according to the lottery activity identifier;
wherein the first lottery activity frame is matched based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; the first lottery activity codes and the corresponding lottery activity identifiers are stored in a lottery logic pool in an associated mode;
and the lottery module is used for completing lottery according to the target lottery logic and updating the inventory parameters of the target lottery logic in the lottery logic pool.
A third aspect of the present application provides a computer-readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor implements the steps of the lottery control method of any one of the above.
According to the lottery control method, the lottery control device and the storage medium, before lottery, the lottery activity code frames are only related to the types of activities to be created, and activities of the same type can be multiplexed on the lottery activity code frames, so that the reusability of codes is improved; on the basis of multiplexing codes, frame winning item parameters and inventory parameters can be configured so as to obtain complete targeted lottery logic codes, so that multiplexing of lottery activity codes is realized based on the logic of frame multiplexing-fine tuning application, the development difficulty and complexity of lottery function codes are reduced, and the development time of the lottery function codes is shortened.
Drawings
Fig. 1 is a flowchart illustrating a lottery control method according to an exemplary embodiment of the present application;
fig. 2 is a schematic diagram showing a configuration of a lottery control apparatus according to an exemplary embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For the lottery system, the traditional lottery system implementation needs to be restarted, code logic is built by the lottery system, and lottery modules meeting specific logic functions are generated by writing lottery types, lottery modes and lottery item setting and probability into a program. In the course of the lottery, in order to secure the effect of the lottery, it is necessary to set information of the type and content of the prize, the weight of each prize, the probability of winning, and the like, which are written in a program so as to realize lottery logic. For different lottery activities or one or more lottery activities which are parallel at the same time, the information such as the types of the prizes and the like are different, so that in order to realize a plurality of different lottery activities, the traditional abstract component generating codes do not have universality and portability, special software developers are required to carry out complex program design according to the processes of research, design, test and release, the whole design process is complex, and the code multiplexing rate is low; the traditional lottery activity logic only can meet the lottery function of a specific activity, has no generality and portability, and needs to be re-built from 0 when another lottery activity needs to be built; the traditional lottery function does not have a visual background management system, and can not dynamically adjust the movable data such as inventory, probability and the like; if the code is changed, the code can be modified only, and then the testing and publishing processes are carried out, so that the convenience is not provided. The conventional lottery system generation process needs to rely on the expertise of professionals, and has low code multiplexing rate and complex design process,
in addition to the traditional pure code design, some lottery systems of the prior art place lottery prizes and inventory in a configuration center, such that the adjustment of inventory and prizes is accomplished by adjusting the configuration center. However, the configured awards can only be awarded for specific activities, have no generality and portability, and cannot be applied to most businesses.
After the lottery system is designed, the lottery system is used for controlling the management of the lottery process, however, the composition, distribution and probability configuration of the prizes in the whole management process can not be changed any more, namely, the logic of the lottery system is relatively fixed. After a period of use, based on lottery results of a large number of users, the lottery system hits n first-class prizes, and the actual stock quantity corresponding to the first-class prizes is smaller than n, and then the phenomenon of overdriving prizes occurs.
The lottery module code utilization rate is low, and the lottery module code is inconvenient to adjust after being generated. A first embodiment of the present application provides a lottery control method, as shown in fig. 1, including:
a first lottery request is sent, wherein the first lottery request carries a lottery activity identifier;
analyzing the lottery activity identifier in the first lottery request, and matching target lottery logic from a lottery logic pool according to the lottery activity identifier;
wherein the first lottery activity frame is matched based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; the first lottery activity codes and the corresponding lottery activity identifiers are stored in a lottery logic pool in an associated mode;
and completing lottery according to the target lottery logic, and updating the inventory parameters of the target lottery logic in the lottery logic pool.
The lottery control method provided by the application comprises an automatic creation process of a lottery activity logic code and a control process of a lottery process. On the one hand, before lottery, the lottery activity code frame is only related to the type of activity to be created, and activities of the same type can be multiplexed on the lottery activity code frame, so that the reusability of codes is improved; on the basis of multiplexing codes, frame winning item parameters and inventory parameters can be configured so as to obtain complete targeted lottery logic codes, so that multiplexing of lottery activity codes is realized based on the logic of frame multiplexing-fine tuning application, the development difficulty and complexity of lottery function codes are reduced, and the development time of the lottery function codes is shortened. On the other hand, after the target lottery logic is obtained, the information in the target logic code is continuously updated, so that the parameter information in the corrected target lottery logic is automatically modified.
Specifically, the lottery control method includes a client and a server for receiving and transmitting instructions to manage a plurality of lottery logics corresponding to the activity types, and a lottery user transmits a lottery request and checks a lottery result using the client; the active party uses the client to configure and modify lottery logic stored in the server. Before the first lottery request is sent, the method further comprises the following steps: generating a first lottery request carrying a lottery activity identifier and a lottery user identifier, analyzing the lottery user identifier in the first lottery request, and auditing the lottery user corresponding to the lottery user identifier. The lottery user participates in lottery through an active interface in the terminal equipment, preferably, the terminal equipment comprises a first active interface, a lottery mode, a rule and a lottery entry are displayed in the first active interface, the lottery entry in the first active interface is triggered, a lottery active identifier of a lottery activity and a lottery user identifier of a lottery control are extracted, the lottery active identifier and the lottery user identifier are added in a lottery request, and a first lottery request is generated. The server receives a first lottery request, analyzes the first lottery request, obtains a lottery activity identifier and a lottery user identifier, and performs an audit on a corresponding lottery user based on the lottery user identifier, wherein the audit comprises: qualification auditing, behavior legal auditing, namely whether the auditing lottery user accords with lottery activity rules, such as whether the registration time meets a threshold value, whether the integral reaches the threshold value, whether the online market reaches the threshold value, whether the times of behaviors (praise and comment) reach the threshold value, and whether the behavior legal auditing is illegal or not.
And after the verification is passed, matching target lottery logic from a lottery logic pool according to the lottery activity identifier in the first lottery request obtained through analysis. The lottery logic pool is located in the server and stores lottery logic corresponding to a plurality of lottery activity types, specifically, the lottery logic pool stores a plurality of lottery logic, each lottery logic comprises activity identification information, and the activity identification information at least comprises: lottery logic corresponds to the activity type, lottery logic number. After a first lottery request is received, analyzing the lottery activity identifier from the first lottery request, and matching a target lottery logic from a lottery logic pool according to the lottery activity identifier, wherein the target lottery logic is a code segment for realizing a lottery function, and comprises lottery item parameters and inventory parameters, wherein the lottery item parameters are used for representing the composition of the lottery items and the corresponding weights of the lottery items, and the inventory parameters are used for representing the inventory corresponding to each lottery item.
After the target lottery logic is obtained through matching, a second active interface is generated according to the target lottery logic, the second active interface at least comprises prize information and lottery trigger controls, lottery results are obtained according to the target lottery logic to complete lottery in response to the lottery trigger controls triggering the second active interface, and inventory parameters of the target lottery logic in the lottery logic pool are updated according to the lottery results. Obtaining lottery results according to the target lottery logic to complete lottery, wherein the method specifically comprises the following steps: obtaining a lottery result according to the target lottery logic, displaying the lottery result in the second activity interface, occupying the inventory corresponding to the lottery result in the lottery activity, prompting whether an active party receives the lottery result, and if so, updating the inventory parameters of the target lottery logic and the information of the lottery user in the lottery logic pool according to the lottery result to finish lottery; if not, clearing the occupied inventory, and returning to the step of completing the lottery according to the target lottery logic, namely, the user conducting the lottery again. Updating the inventory parameters of the target lottery logic in the pool of lottery logic includes deducting occupied inventory from the inventory parameters of the target lottery logic if accepted.
As an alternative embodiment, the lottery control method further includes: setting an alarm threshold of an inventory monitoring strategy, and prompting a business party of the lottery drawing activity to carry out inventory replenishment if the updated inventory parameter reaches the alarm threshold. The lottery control method provided by the application integrates the inventory monitoring function, does not need to independently develop a control module, and can automatically inform a business party to adjust the inventory after the prize is consumed to the appointed threshold value, thereby having more convenience.
As an alternative embodiment, before completing the lottery according to the target lottery logic, the method further comprises: and determining the number of the lottery drawing times of the lottery drawing user corresponding to the lottery drawing user identification under the lottery drawing activity identification based on the lottery drawing user identification, and if the number of the lottery drawing times is greater than a threshold value, adjusting the prize parameters in the target lottery drawing logic so as to complete lottery drawing according to the target lottery logic. The business side sets a threshold value corresponding to the lottery drawing times through the client side, after the lottery drawing times are determined, the lottery drawing times are sent to the business side, the business side judges whether the lottery drawing times are larger than the threshold value, if so, prize parameters are adjusted and sent to the server, and the server updates the parameters so as to set new target lottery drawing logic. Specifically, if the number of lottery drawings is greater than a threshold, determining the role of the lottery drawing user, and if the role of the lottery drawing user meets a preset condition, changing the weight distribution of a plurality of prizes.
For the users participating in lottery for many times, there are various situations, if the users participating in lottery for many times are malicious bill brushing users, the weight of each non-empty prize item is set to 0; if the user participating in the lottery a plurality of times is an advanced user, the weight of the target prize is set to 100 and the weights of prizes other than the target prize are set to 0. For the users participating in lottery for many times, judging the lottery number by the service party, if the users belong to malicious users, adjusting the weight of each non-empty prize to be 0, and sending the set parameters to a server to update the target lottery logic; similarly, if the service party judges that the service party belongs to the advanced user, the weight of the target prize is adjusted to be 100, and the set parameters are sent to the server to update the target lottery logic. After the lottery logic code is generated, parameters in the lottery logic can be still adjusted according to the specific situation of a lottery user, so that lottery results are interfered without repeated design of the whole code, and the lottery control process is simplified.
As an alternative embodiment, the lottery control method further includes: obtaining an activity identification list to be queried and lottery user identifications, generating a query request carrying the activity numbers to be queried and the lottery user identifications, matching winning results of the lottery user identifications under all lottery activities, and displaying winning results of the lottery users under all lottery activities.
As an alternative embodiment, the lottery control method further includes: a logical pool of lottery drawings is created. Specifically, matching a first lottery activity frame based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; and storing the first lottery activity code and the corresponding lottery activity identification in a lottery logic pool in an associated manner. The lottery control method comprises a client and a server, wherein an active service party is used for creating an active lottery code, and a code matching request is sent to the server, wherein the code matching request carries an active type to be created; the server analyzes the type of the activity to be created, matches a first lottery activity frame matched with the type of the activity to be created from a plurality of lottery activity frames corresponding to the types of the activity, displays a third interface on a client side used by an activity business side, and displays a parameter setting interface in the first lottery activity frame for setting prize parameters and inventory parameters in the first lottery activity frame.
The prize parameters include at least: prize, weight of prize for lottery, whether empty prize is allowed; one or more prizes can be set, each prize has a weight value corresponding to the prize, and during the lottery, hit prizes are calculated as lottery results according to the weights of all prizes in the lottery activity and a random algorithm. Whether the empty prize is allowed to indicate whether the hit of the inventory-free prize is allowed or not, if the empty prize is allowed, automatically returning the empty prize when the hit of the inventory-free prize is achieved according to the weight of all the prizes and a random algorithm in the lottery drawing process; if not, the weight value of the inventory-less prize is assigned to the prize in inventory in the lottery before the lottery result is calculated.
The inventory parameters at least comprise inventory limits of one or more awards, inventory limit strategies including total number control of awards, daily issue number control, month issue number control and single user issue number control strategies, and in the lottery process, the inventory parameters are used as limit conditions, and the awards in the lottery are calculated based on weights of all the awards and a random algorithm. As an alternative embodiment, the business of the lottery may view and modify the inventory parameters and prize parameters at any time based on the lottery identification.
The lottery control method provided by the application does not need to additionally develop an external control program, and realizes lottery functions and manages inventory through own logic codes. In the aspect of codes of lottery functions, the application can multiplex the existing lottery function codes through the function of visual background management, adjust the customized parameters, only maintain the customized parameters in the whole lottery process, support single lottery and batch lottery in parallel, cover common lottery activity scenes, save research and development and test flows, integrate inventory monitoring functions, and automatically inform a business party to adjust the inventory after the prize is consumed to a specified threshold value, thereby having more convenience.
A second embodiment of the present application provides a lottery control apparatus, as shown in fig. 2, including:
the lottery drawing initiating module is used for sending a first lottery drawing request, wherein the first lottery drawing request carries a lottery drawing activity identifier;
the matching module is used for analyzing the lottery activity identifier in the first lottery request and matching target lottery logic from a lottery logic pool according to the lottery activity identifier;
wherein the first lottery activity frame is matched based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; the first lottery activity codes and the corresponding lottery activity identifiers are stored in a lottery logic pool in an associated mode;
and the lottery module is used for completing lottery according to the target lottery logic and updating the inventory parameters of the target lottery logic in the lottery logic pool.
It should be noted that each module in this embodiment is a logic module, and in practical application, one logic unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, units that are not so close to solving the technical problem presented by the present application are not introduced in the present embodiment, but this does not indicate that other units are not present in the present embodiment.
The present specification also provides a computer-readable storage medium storing a computer program operable to execute a lottery control method provided in fig. 1 as described above.
The present specification also provides a schematic structural diagram of an electronic device shown in fig. 3. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, as described in fig. 3, although other hardware required by other services may be included. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs the same to implement the lottery control method described above with respect to fig. 1. Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (10)

1. The lottery drawing control method is characterized by comprising the following steps of:
a first lottery request is sent, wherein the first lottery request carries a lottery activity identifier;
analyzing the lottery activity identifier in the first lottery request, and matching target lottery logic from a lottery logic pool according to the lottery activity identifier;
wherein the first lottery activity frame is matched based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; the first lottery activity codes and the corresponding lottery activity identifiers are stored in a lottery logic pool in an associated mode;
and completing lottery according to the target lottery logic, and updating the inventory parameters of the target lottery logic in the lottery logic pool.
2. The lottery control method as in claim 1, wherein,
before the first lottery request is sent, the method further comprises the following steps:
generating a first lottery request carrying a lottery activity identification and a lottery user identification,
resolving the lottery user identification in the first lottery request,
and auditing the lottery drawing user corresponding to the lottery drawing user identifier.
3. The lottery control method as in claim 1, wherein,
a plurality of lottery logics are stored in the lottery logic pool, each lottery logic including activity identification information,
the activity identification information includes at least: lottery logic numbers corresponding to the activity types;
after receiving the first lottery request, analyzing the lottery activity identification from the first lottery request,
matching target lottery logic from a pool of lottery logic based on the lottery activity identification,
the target lottery logic is a code segment for implementing the lottery function, including lottery prize parameters and inventory parameters,
the prize parameters are used to characterize the composition of the prizes and their corresponding weights, and the inventory parameters are used to characterize the inventory to which each prize corresponds.
4. A lottery control method as in claim 3, wherein,
obtaining lottery results according to the target lottery logic to complete lottery, wherein the method specifically comprises the following steps:
obtaining lottery results according to the target lottery logic,
the lottery results are presented in a second active interface,
occupying an inventory of an amount corresponding to the lottery result in a lottery activity, prompting a service party whether to receive the lottery result,
if the lottery result is accepted, updating the inventory parameters of the target lottery logic in the lottery logic pool and the information of the lottery users according to the lottery result so as to complete lottery;
if not, resetting the occupied inventory, and returning to the step of completing lottery according to the target lottery logic.
5. The lottery control method as in claim 1, wherein,
updating inventory parameters of the target lottery logic in the pool of lottery logic includes,
and if so, deducting occupied inventory from the inventory parameters of the target lottery logic.
6. The lottery control method as in claim 1, wherein,
the lottery control method further includes:
an alarm threshold value of the inventory monitoring policy is set,
if the updated inventory parameters reach the alarm threshold, prompting a business party of lottery drawing activities to carry out inventory replenishment;
if the business side chooses not to supplement the stock, deleting the lottery prize corresponding to the updated stock parameter reaching the alarm threshold.
7. The lottery control method as in claim 1, wherein,
before completing the lottery according to the target lottery logic, the method further comprises:
determining the number of times the lottery user corresponding to the lottery user identifier is lottery-drawn under the lottery activity identifier based on the lottery user identifier,
and if the lottery number is greater than a threshold value, adjusting the prize parameters in the target lottery logic to finish lottery according to the target lottery logic.
8. The lottery control method as in claim 1, wherein,
before completing the lottery according to the target lottery logic, the method further comprises:
the business side determines the lottery drawing times of the lottery drawing user corresponding to the lottery drawing user identification under the lottery drawing activity identification based on the lottery drawing user identification,
if the number of the lottery drawing times is larger than the threshold value, judging the role of the lottery drawing user,
if the role of the lottery drawing user meets the preset condition, changing the weight distribution of a plurality of prizes;
if the business side judges that the users participating in lottery drawing for many times are malicious bill brushing users, the weight of each non-empty prize item is set to be 0;
if the service side judges that the user participating in the lottery a plurality of times is a premium user, the weight of the target prize is set to 100,
the weight of the awards other than the target award is set to 0.
9. A lottery control apparatus, comprising:
the lottery drawing initiating module is used for sending a first lottery drawing request, wherein the first lottery drawing request carries a lottery drawing activity identifier;
the matching module is used for analyzing the lottery activity identifier in the first lottery request and matching target lottery logic from a lottery logic pool according to the lottery activity identifier;
wherein the first lottery activity frame is matched based on the type of activity to be created; setting prize parameters and inventory parameters in the first lottery activity frame to obtain a first lottery activity code; the first lottery activity codes and the corresponding lottery activity identifiers are stored in a lottery logic pool in an associated mode;
and the lottery module is used for completing lottery according to the target lottery logic and updating the inventory parameters of the target lottery logic in the lottery logic pool.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor implements the steps of the lottery control method as claimed in any one of claims 1 to 8.
CN202310695432.8A 2023-06-12 2023-06-12 Lottery drawing control method, lottery drawing control device and storage medium Pending CN116661777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310695432.8A CN116661777A (en) 2023-06-12 2023-06-12 Lottery drawing control method, lottery drawing control device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310695432.8A CN116661777A (en) 2023-06-12 2023-06-12 Lottery drawing control method, lottery drawing control device and storage medium

Publications (1)

Publication Number Publication Date
CN116661777A true CN116661777A (en) 2023-08-29

Family

ID=87711626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310695432.8A Pending CN116661777A (en) 2023-06-12 2023-06-12 Lottery drawing control method, lottery drawing control device and storage medium

Country Status (1)

Country Link
CN (1) CN116661777A (en)

Similar Documents

Publication Publication Date Title
US20090143128A1 (en) Providing centralized services to game operators
CN110109746B (en) Task processing method, device, equipment and medium
US20080305864A1 (en) Power winners processing system
WO2019034164A1 (en) Competition event voting system and method
US8715071B2 (en) Power winners processing system and method
CN103203100A (en) Non-transitory computer-readable storage medium, game system and information processing apparatus
WO2008056844A1 (en) Free game service system based on the interactive advertisement during the game play
CN106997546A (en) A kind of order processing method and device
CN105727555B (en) The upgrade method and upgrade-system of user gradation in social software
CN110111149B (en) Season task settlement method and device and server
CN106570388A (en) Method and device for processing interactive application
CN112000895A (en) Task allocation method and system based on user behavior analysis
CN116152034A (en) Processing system, device, terminal and method for guessing game
US9311779B2 (en) Power winners processing method
CN110585722A (en) Block chain-based game time information processing method and device and game control method and device
US20050107161A1 (en) Game execution system and game execution method
CN112308582B (en) Resource processing method and device, storage medium and electronic device
CN116661777A (en) Lottery drawing control method, lottery drawing control device and storage medium
KR20150138811A (en) Method for processing system for providing mobile free gift games combined with advertisement
JP6853844B2 (en) Computer programs and computer equipment
BR112019002765A2 (en) reactive and independent square games adapted for employment in a fantasy sports league environment
US20030109309A1 (en) Game system and game control method
KR101796996B1 (en) Method for compiling fixed odds of sports betting using poisson distribution
CN108543310A (en) Reward the treating method and apparatus provided
AU2018274936A1 (en) Gaming method, gaming system and game controller

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