CN109242561B - Lottery model construction method, lottery activity management method, device and computing equipment - Google Patents

Lottery model construction method, lottery activity management method, device and computing equipment Download PDF

Info

Publication number
CN109242561B
CN109242561B CN201811014466.1A CN201811014466A CN109242561B CN 109242561 B CN109242561 B CN 109242561B CN 201811014466 A CN201811014466 A CN 201811014466A CN 109242561 B CN109242561 B CN 109242561B
Authority
CN
China
Prior art keywords
lottery
prize
activity
scheme
check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811014466.1A
Other languages
Chinese (zh)
Other versions
CN109242561A (en
Inventor
陈仁广
黄晓军
牛洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201811014466.1A priority Critical patent/CN109242561B/en
Publication of CN109242561A publication Critical patent/CN109242561A/en
Application granted granted Critical
Publication of CN109242561B publication Critical patent/CN109242561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0212Chance discounts or incentives

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The embodiment of the invention provides a lottery drawing model construction method. The lottery drawing model construction method comprises the following steps: respectively acquiring lottery activity configuration data and prize configuration data; establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is the unique identification number of the lottery activity scheme; establishing a prize scheme according to the prize configuration data and generating a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme; and generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number. The method of the invention can utilize a general lottery model to construct various lottery activities, thereby obviously improving the development efficiency of the lottery activities.

Description

Lottery model construction method, lottery activity management method, device and computing equipment
Technical Field
Embodiments of the present invention relate to the field of data processing technologies, and in particular, to a lottery model construction method, a lottery activity management method, a medium, an apparatus, and a computing device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the continued prosperity of the economic market, various marketing activities are developed. The lottery is a direct, simple and economical activity, and is very attractive to users.
At present, if an enterprise or an individual operator wants to develop a lottery activity, a lottery activity needs to be newly established through a management background, and then various prizes, related information such as winning probability and the like are configured and stored in a database. In the method, a large amount of manpower is needed to develop the lottery activities in the background every time, one month is often needed for developing the lottery activities, the actual use time is only two or three days, the enterprise or the individual operator is not cost-effective, personnel undertaking the development of the background are also at great risk, and the investment and the output are seriously unbalanced.
Disclosure of Invention
However, for the reason that the lottery events held at each time are different, the prior art needs to develop a front end and a back end suitable for the lottery event for each lottery event.
For this reason, there is a strong need for an improved lottery model that enables each of the different lottery activities to be quickly built using the same model.
In this context, embodiments of the present invention are intended to provide a lottery model construction method, a lottery activity management method, a medium, an apparatus, and a computing device.
In a first aspect of an embodiment of the present invention, there is provided a lottery model construction method including: respectively acquiring lottery activity configuration data and prize configuration data; establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is the unique identification number of the lottery activity scheme; establishing a prize scheme according to the prize configuration data and generating a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme; and generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number.
In some embodiments of the invention, the lottery activity configuration data comprises:
activity task type information and activity task number information.
In some embodiments of the invention, the prize configuration data comprises:
prize type information and prize amount information.
In some embodiments of the present invention, when the number of the activity tasks is greater than or equal to 2, generating the lottery model according to a mapping relationship between the lottery activity scheme number and the prize scheme number includes:
and generating the lottery drawing model according to the mapping relation between a plurality of activity tasks and a plurality of prize scheme numbers in the lottery drawing activity scheme corresponding to the lottery drawing activity scheme number.
In some embodiments of the invention, before establishing a prize scheme and generating a prize scheme number according to the prize configuration data, the method further comprises:
and when one or more operations of adding, deleting and modifying the prize type information and the prize number information are received, updating the prize configuration information according to the operations.
In a second aspect of an embodiment of the present invention, there is provided a lottery activity management method including: responding to the lottery drawing request, and acquiring lottery drawing data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number; acquiring a plurality of check nodes for checking the lottery drawing data and a check sequence of each check node; generating a verification process according to the verification sequence of the verification nodes, and verifying the lottery drawing data based on the verification process; and judging whether the verification is successful or not, and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
In some embodiments of the present invention, the determining whether the verification is successful comprises:
according to the checking sequence of the checking nodes, checking each checking node in sequence and judging whether the checking is successful or not;
if the check of any check node fails, stopping the check and returning the information of the check node with the failed check;
if any check node is successfully checked, the check of the next check node is continued.
In some embodiments of the present invention, before verifying the lottery data based on the verification process, the method further comprises:
and if an instruction for adjusting the checking sequence of each checking node is received, updating the checking flow according to the instruction.
In some embodiments of the present invention, before verifying the lottery data based on the verification process, the method further comprises:
responding to a request for adding a node, and acquiring a check node to be added;
and updating the check flow according to the check node to be added.
In some embodiments of the present invention, the verifying the lottery data based on the verification process includes:
and generating a configuration file of the verification process by using an extensible markup language, and verifying the lottery drawing data based on the configuration file.
In some embodiments of the present invention, the obtaining a plurality of check nodes for checking lottery data includes:
acquiring configuration information contained in the lottery drawing data;
and determining a plurality of check nodes of the lottery drawing data according to the configuration information.
In some embodiments of the present invention, the determining a plurality of check nodes of the lottery data according to the configuration information includes:
and determining the check node corresponding to each field according to the information of the fields contained in the configuration information.
In some embodiments of the invention, the configuration information comprises a combination of any one or more of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
In some embodiments of the present invention, the verifying the lottery data based on the verification process includes:
responding to a lottery drawing request, and acquiring lottery drawing parameters, wherein the lottery drawing parameters comprise a plurality of lottery drawing time, lottery drawing times, a user account and an equipment number;
and checking the lottery drawing parameters based on the checking process.
In a third aspect of the embodiments of the present invention, there is provided a medium having stored thereon a program that, when executed by a processor, implements the lottery model construction or the lottery activity management method.
In a fourth aspect of the embodiments of the present invention, there is provided a lottery-drawing model construction apparatus including:
the data acquisition unit is used for respectively acquiring lottery activity configuration data and prize configuration data;
the activity configuration unit is used for establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is a unique identification number of the lottery activity scheme;
the prize configuration unit is used for establishing a prize scheme according to the prize configuration data and generating a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme;
and the model building unit is used for generating the lottery model according to the mapping relation between the lottery activity scheme number and the prize scheme number.
In some embodiments of the invention, the lottery activity configuration data comprises:
activity task type information and activity task number information.
In some embodiments of the invention, the prize configuration data comprises:
prize type information and prize amount information.
In some embodiments of the invention, when the number of active tasks is greater than or equal to 2, the model construction unit is configured to:
and generating the lottery drawing model according to the mapping relation between a plurality of activity tasks and a plurality of prize scheme numbers in the lottery drawing activity scheme corresponding to the lottery drawing activity scheme number.
In some embodiments of the present invention, the lottery model construction apparatus further comprises:
and the prize modifying unit is used for updating the prize configuration information according to one or more operations of adding, deleting and modifying the prize information when the operation is received.
In a fifth aspect of an embodiment of the present invention, there is provided a lottery activity management apparatus including:
the lottery drawing data acquisition unit is used for responding to the lottery drawing request and acquiring lottery drawing data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number;
a check node acquisition unit configured to acquire a plurality of check nodes used for checking the lottery data and a check sequence of each check node;
the verification unit is used for generating a verification process according to the verification sequence of the verification nodes and verifying the lottery drawing data based on the verification process;
and the prize acquisition unit is used for judging whether the verification is successful or not and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
In some embodiments of the invention, the prize acquisition unit further comprises:
the verification control unit is used for sequentially verifying each verification node according to the verification sequence of the verification nodes and judging whether the verification is successful;
if the check of any check node fails, stopping the check and returning the information of the check node with the failed check;
if any check node is successfully checked, the check of the next check node is continued.
In some embodiments of the invention, the lottery device further comprises:
and the check node adjusting unit is used for updating the check flow according to the instruction when the instruction for adjusting the check sequence of each check node is received.
In some embodiments of the invention, the lottery device further comprises:
the node adding unit is used for responding to the request of adding the node and acquiring a check node to be added;
and the verification flow updating unit is used for updating the verification flow according to the verification node to be added.
In some embodiments of the invention, the verification unit is configured to:
and generating a configuration file of the verification process by using an extensible markup language, and verifying the lottery drawing data based on the configuration file.
In some embodiments of the present invention, the check node obtaining unit is configured to:
acquiring configuration information contained in the lottery drawing data;
and determining a plurality of check nodes of the lottery drawing data according to the configuration information.
In some embodiments of the present invention, the check node obtaining unit is configured to:
and determining the check node corresponding to each field according to the information of the fields contained in the configuration information.
In some embodiments of the invention, the configuration information comprises a combination of any one or more of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
In some embodiments of the invention, the verification unit further comprises:
the system comprises a lottery drawing parameter acquisition unit, a lottery drawing parameter acquisition unit and a lottery drawing processing unit, wherein the lottery drawing parameter acquisition unit is used for responding to a lottery drawing request and acquiring lottery drawing parameters, and the lottery drawing parameters comprise a plurality of lottery drawing time, lottery drawing times, a user account and equipment numbers;
and the verification subunit is used for verifying the lottery drawing parameters based on the verification process.
In a sixth aspect of embodiments of the present invention, there is provided a computing device comprising: a processor and a memory, the memory storing executable instructions, the processor for invoking the executable instructions stored by the memory to perform the lottery model construction or the lottery activity management method.
According to the lottery drawing model construction method provided by the embodiment of the invention, various lottery drawing activities can be uniformly established by utilizing the lottery drawing model without the establishment process of the lottery drawing activities each time, so that the manpower occupation is remarkably reduced, the resources are saved, and better experience is brought to users.
According to the lottery activity management method provided by the embodiment of the invention, various lottery activities can be managed, so that lottery is realized according to different lottery activities, and for different lottery activities, only corresponding check nodes or the sequence of the check nodes need to be adjusted, so that the operation of developers is reduced, the labor is saved, the time for realizing the lottery activities is reduced, and the efficiency is improved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 schematically shows a flow chart of lottery model construction according to an embodiment of the present invention;
fig. 2 schematically illustrates an application scenario of lottery model construction according to an embodiment of the present invention;
fig. 3 schematically shows an application scenario of the lottery model construction according to still another embodiment of the present invention;
fig. 4 schematically shows a flowchart of a lottery activity management method according to an embodiment of the present invention;
fig. 5 schematically shows a flowchart of a lottery activity management method according to another embodiment of the present invention;
fig. 6 schematically shows a block diagram of a lottery model construction apparatus according to an embodiment of the present invention;
fig. 7 schematically shows a block diagram of a lottery activity management apparatus according to an embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Thus, the present invention may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a lottery model construction and lottery activity management method and equipment are provided.
In this context, it is to be understood that the term Database (DB) in question represents a relational database.
Moreover, any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that before each lottery-drawing activity, a menu is added in a management background, then relevant information such as coupons, real objects, awards such as bonus beans and red packages, and probability is configured and stored in a database, when a user reaches a certain condition to issue the bonus, a set of lottery-drawing logic needs to be reconstructed according to playing methods of different activities, and data are read from the database to judge whether a prize is won or not according to the certain condition and the probability.
According to the current mode, great manpower is needed to do a background every time, perhaps the activity only takes a few days, so that the efficiency of the activity developer is seriously influenced, and the rapid iterative development of the developer is not facilitated. According to past experience, the prizes contained in each activity are basically fixed, and background prize configuration and verification are complex.
Therefore, the embodiment of the invention provides a lottery model construction method, a lottery activity management method, a medium, a lottery model construction device, a lottery activity management device and a computing device, so that the time for developing lottery activities is obviously reduced, the labor is saved, and the development efficiency of the lottery activities is improved.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
It should be noted that the following application scenarios are merely illustrated to facilitate understanding of the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
When a lottery is established, a large amount of manpower is needed to establish a background, and information such as various prizes, winning probability and the like is configured. And when the user draws a lottery, drawing the lottery according to the established prize, probability and lottery drawing logic.
Exemplary method
A lottery model construction and lottery event management method according to an exemplary embodiment of the present invention will be described below with reference to fig. 1 to 5 in conjunction with the above application scenarios.
Fig. 1 schematically shows a flowchart of lottery model construction according to an embodiment of the present invention.
Referring to fig. 1, a lottery model construction according to an embodiment of the present invention includes:
s11, respectively acquiring lottery activity configuration data and prize configuration data;
s12, establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is the unique identification number of the lottery activity scheme;
s13, establishing a prize scheme according to the prize configuration data and respectively generating prize scheme numbers, wherein the prize scheme numbers are unique identification numbers of the prize scheme;
and S14, generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number.
The lottery model construction shown in fig. 1 can establish a lottery model, and a lottery scheme suitable for various lottery activities can be constructed based on the model, so that the time for developing the lottery activities is remarkably reduced, and the efficiency for developing the lottery activities is improved.
Details of the implementation of the various steps shown in FIG. 1 are described in detail below:
in step S11, lottery event configuration data and prize configuration data are acquired, respectively.
In the present exemplary embodiment, the lottery event configuration data may include basic information required to configure one lottery event, such as an event name, an event start time, an event end time, description information of the event, and the like. The basic information may also include conditions that should be met for participating in the lottery, for example, the users participating in the lottery are members, participate in the lottery for a prescribed period of time, and the like. And, one lottery activity may further include a plurality of tasks, and when the user completes one task, the user may participate in a corresponding lottery. The prize for each task may be different. Preferably, the lottery activity configuration data may include: activity task type information and activity task number information. The activity task type information may include information of tasks to be completed for participating in the lottery activity, for example, tasks of collecting commodities, purchasing commodities, browsing pages, and the like are required to be completed. When there are a plurality of tasks in one lottery event, the task type information of the respective tasks may be the same or different. The number of activity tasks may refer to the number of tasks corresponding to the same type of activity tasks, or may refer to the number of tasks corresponding to multiple types of activity tasks.
The prize configuration data may include information of the prizes, such as prize name, prize type, prize match map, probability of winning a prize, and so forth. There may be multiple prize schemes in a lottery event, and there may be multiple prizes in each prize scheme, for example, prize scheme one may include prizes: a win, a big gift bag, a coupon, a physical award, a red envelope, etc. Thus, a prize scheme may be identified by a prize scheme number. Preferably, the prize configuration data may include: prize type information and prize amount information. The prize amount information may refer to the amount of the prizes corresponding to the same prize type, or may refer to the total amount of the prizes corresponding to all the prize types. Further, the same prize type may correspond to a plurality of prizes.
The lottery event configuration data and the prize configuration data can be acquired by using a table template, and the lottery event configuration data and the prize configuration data can be analyzed by analyzing the information of each cell in the table template. The lottery event configuration data and the prize configuration data may be acquired from a front page. And providing a data acquisition page for the operation and maintenance personnel to fill in the data, and acquiring the lottery activity configuration data and the prize configuration data by receiving the data filled in by the operation and maintenance personnel.
In step S12, a lottery event scenario is established according to the lottery event configuration data and a lottery event scenario number is generated, wherein the lottery event scenario number is a unique identification number of the lottery event scenario.
In the present exemplary embodiment, a lottery activity scenario may be established from the lottery activity configuration data and uniquely identified with a lottery activity scenario number. A lottery event scheme may also include various information such as the scheme name, start time, end time, etc. Also, a plurality of tasks may be included in the lottery event scheme, each task may represent a prize scheme, and each prize scheme may include a plurality of prizes. The operation and maintenance personnel can add or delete the lottery activity scheme, and can also perform various operations on the lottery activity scheme, such as publishing, modifying and the like. The operation and maintenance personnel can also set the online time of the lottery activity scheme or modify various information of the lottery activity scheme, such as scheme name, end time and the like.
In step S13, prize schemes are established according to the prize configuration data and prize scheme numbers are generated respectively, wherein the prize scheme numbers are unique identification numbers of the prize schemes.
In this exemplary embodiment, a prize scheme is established according to the prize configuration data, wherein the prize scheme number is a unique identification number of the prize scheme, that is, different prize schemes have different prize scheme numbers, and any two prize scheme numbers cannot be the same. Other prize configuration information may also be included in the prize scheme, such as the prize scheme name, the nature of the prize scheme, and so forth. Each prize scheme may include a plurality of prizes, and the prize configuration data may include information such as prize name, prize type, prize mapping, prize number, and prize winning probability. Similarly, the operation and maintenance personnel can add, delete or otherwise manipulate the prize scheme, such as publish, view prizes, edit, modify, etc. In addition, the operation and maintenance staff may also add, delete, and modify a plurality of prizes in the prize scheme, for example, in a certain prize scheme, if the number of the prizes a is 0, that is, the prizes a have been already issued, the operation and maintenance staff may modify the prizes a to the prizes B.
Further, the prize configuration information may be updated in response to one or more of adding, deleting, modifying the prize type information and prize amount information prior to establishing a prize scheme.
In step S14, the lottery model is generated based on the mapping relationship between the lottery event scenario number and the prize scenario number.
In this exemplary embodiment, the lottery activity schemes at least include one prize scheme, and each prize scheme has one lottery activity scheme corresponding to it, that is, the number of the lottery activity scheme may correspond to at least one prize scheme number, and the number of the lottery activity scheme and the number of the prize scheme may uniquely identify one lottery activity. The lottery activity constructed according to the lottery model may have one lottery activity scheme number and one prize scheme number, and include lottery activity configuration data and prize configuration data. After the corresponding relation between the lottery event scheme number and the prize scheme number is determined, the prize configuration data, the event configuration data and the corresponding relation are stored in a database.
Further, if the number of the activity tasks in the lottery activity configuration data is greater than or equal to 2, generating a lottery model according to the mapping relation between the plurality of tasks and the plurality of prize scheme numbers in the lottery activity scheme corresponding to the activity scheme number. That is, one lottery activity scheme includes a plurality of activity tasks, and each activity task corresponds to one prize scheme number, that is, one lottery activity scheme number may correspond to a plurality of prize scheme numbers.
Fig. 2 schematically shows an application scenario of the lottery model construction according to the embodiment of the invention.
The front-end page of the lottery activity configuration data takes the page shown in fig. 2 as an example, and in the present exemplary embodiment, when an operation and maintenance person wants to create a lottery activity, a lottery activity scheme is generated by perfecting the lottery activity configuration data. Basic information, activity task type information and activity task quantity information of the lottery activity can be supplemented to the corresponding position of the page in the front-end page, and therefore configuration data of the lottery activity is perfected. For example, the lottery event basic information includes information of a scheme name, a start time, an end time, and the like. And from the lottery activity scheme, an "activity scheme number" is generated that uniquely identifies the scheme. In fig. 2, the lottery event scheme includes two event tasks, and then two prize scheme numbers identify the two event tasks, respectively. The user may then save the generated lottery scheme via a "save" button, or publish the generated lottery activity scheme via a "publish" button for other users to view and participate. In the activity scheme page, an activity scheme corresponding to the activity task may be created by an "add prize scheme number" button, and the generated activity scheme number may be viewed, information of the prize scheme may be edited by clicking on an "edit scheme", prize information may be edited by clicking on an "edit prize" button, and so on. After receiving the information on the front-end page, the received information is used as the configuration data of the lottery event and the configuration data of the prize, and the data of the lottery event corresponding to the information can be established and stored in a database by combining the lottery model so that the user can draw the lottery.
Fig. 3 schematically shows an application scenario of the lottery model construction according to still another embodiment of the present invention.
In the present exemplary embodiment, the page for configuring the prize scenario is exemplified by the page shown in fig. 3, and configured prize information may be saved, distributed, or newly created by clicking "save", "distribute", "add a prize". In one prize scheme, the prize scheme number is identification information that uniquely identifies one prize scheme. There are multiple prizes in each prize scheme, 5 prizes are included in the prize scheme shown in fig. 3, and the prize configuration data corresponding to each prize includes prize type, prize name, whether the prize is default, copy, probability of winning by new/old users, skip link, and so on. The scrip can include description information of the prizes, the skip link can include a page which can be skipped to after the prizes are clicked or a page which can be skipped to after the prizes are played by the user, the default prize can include a prize which is issued by default when the user draws a certain prize, and the probability of the new/old user can represent the probability of the future prize in the new user and the probability of the prize in the old user. And an upper limit number may be configured for prizes, with a maximum of 100 prizes 5 being awarded per day in fig. 3, and a maximum of 1000 prizes 5 being awarded during the lottery event. In this example, the prize may include "no win," and a default prize may be awarded when the user wins no win. The sum of the probability of winning all prizes is 1. After the prize scheme is configured on the page, the background receives the configured data, corresponds the configured data with the corresponding lottery activity scheme, and stores the configured data in the database.
Fig. 4 schematically shows a flowchart of a lottery activity management method according to an embodiment of the present invention.
Referring to fig. 4, a lottery activity management method according to an embodiment of the present invention includes:
s41, responding to a lottery drawing request and acquiring lottery drawing data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number;
s42, acquiring a plurality of check nodes for checking the lottery drawing data and a check sequence of each check node;
s43, generating a verification flow according to the verification sequence of the verification nodes, and verifying the lottery drawing data based on the verification flow;
and S44, judging whether the verification is successful or not, and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
The lottery activity management method shown in fig. 4 can realize the verification of lottery data, and return prize information to complete lottery after the verification is successful, thereby performing unified management on various lottery activities. For different lottery activities, only the corresponding check nodes or the sequence of the check nodes need to be adjusted, so that the operation of developers is reduced, the labor is saved, the time for realizing the lottery activities is reduced, and the efficiency is improved.
Details of the implementation of the various steps shown in FIG. 4 are described in detail below:
in step S41, in response to the lottery drawing request, lottery drawing data is acquired; wherein the lottery data includes a lottery event scheme number and a prize scheme number.
In the present exemplary embodiment, after the establishment of the lottery activity scheme is completed, a lottery interface may be provided to enable the user to participate in the lottery. The lottery interface may include a lottery control and presentation information, wherein the lottery control may be triggered to obtain lottery data. The display information may include information for prompting the user of lottery rules and lottery modes, or information for displaying prizes.
Based on the lottery drawing interface, the user can send out a lottery drawing request by triggering the lottery drawing control, and after receiving the lottery drawing request of the user, the user responds to the lottery drawing request of the user to obtain lottery drawing data. That is, when the user triggers the lottery control, lottery data is acquired. The lottery data comprises the lottery activity scheme number and the prize scheme number.
In step S42, a plurality of verification nodes and a verification order of each verification node used for verifying the lottery data are acquired.
In the present exemplary embodiment, verifying the lottery data includes verifying each lottery event configuration data and prize configuration data included in the lottery data, for example, verifying a prize scheme number, a lottery event scheme number, a prize winning probability, and the like. Verifying the lottery data further includes verifying other information contained in the lottery data, such as an account number, a device number, an IP address, and authentication information uploaded by the user for participating in the lottery.
Preferably, after the lottery data is acquired, configuration information included in the lottery data may be acquired. Wherein the configuration information may include lottery event configuration data and prize configuration data, such as lottery event scheme number, scheme name, scheme expiration time, prize information, and the like. Preferably, the configuration information may comprise any one or a combination of more than one of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
Further, when responding to a lottery drawing request of a user, obtaining lottery drawing parameters, wherein the lottery drawing parameters comprise a plurality of lottery drawing time, lottery drawing times, a user account number and an equipment number. The lottery parameters may include data used by the user to participate in the lottery, and may include other data, such as account number, IP address, authentication code, etc., in addition to the lottery time, lottery times, user account number, device number, etc., as described above.
After the lottery data, the configuration information and the lottery parameters are acquired, a corresponding check node can be determined according to the data needing to be checked in the acquired data, for example, an activity identification number check node is determined according to the lottery activity scheme number and the prize scheme number needing to be checked in the lottery data; and determining a user identity verification node according to the user account needing to be verified and the verification information of the user in the lottery drawing parameters. Of course, other check nodes may also be determined according to actual needs, for example, a prize probability check node, a lottery activity validity check node, and the like.
Further, after the configuration information is obtained, each field included in the configuration information may be analyzed, and according to information of a plurality of fields included in the configuration information, a check node corresponding to each field is determined. For example, the configuration information is "lottery event scheme number 123456abc prize bonus probability 20% validity time 2017.06.01 to 2017.06.10", then the lottery event scheme number check, the winning probability check, the event time check, three check nodes may be determined. The activity scheme number check node checks whether the lottery activity scheme number is correct, that is, whether the database contains the lottery activity scheme number in the configuration file, if so, the check is successful, and if not, the check is failed. The winning probability check may refer to checking whether or not the winning probability of the bonus award included in the event number is identical to the winning probability in the configuration information, for example, the sum of the winning probabilities of the bonus awards in the event number stored in the database is 1, checking whether or not the sum of the winning probabilities of the bonus awards in the configuration information is 1, if the sum is also 1, the check is successful, and if not, the check is failed. The activity time check may check whether the activity start time and the activity end time in the lottery activity scenario number correspond to the valid time in the configuration file. Similarly, other check nodes may check whether the data of the lottery activity stored in the database is consistent with the data included in the acquired lottery data, if so, the check result of the check node is successful, and if not, the check of the check node is failed.
After the check nodes are determined, the check sequence of the check nodes may be determined according to the sequence of each check node in the lottery drawing data, or may be specified by operation and maintenance personnel.
In step S43, a verification procedure is generated according to the verification order of the verification nodes, and the lottery data is verified based on the verification procedure.
In this example embodiment, after the check sequence of the check nodes is determined, a check flow may be generated according to the check sequence of the check nodes, and the lottery data is checked based on the check flow. Preferably, a configuration file of the verification process may be generated using an extensible markup language, and the lottery data may be verified based on the configuration file. The configuration file may include an xml suffix file, an order of check nodes is configured in the xml file to generate a complete check flow, and by executing the configuration file, each node in the flow may be executed according to the flow configured in the xml file, and each check node completes the check by checking whether data in the lottery data is consistent with data of the lottery activity stored in the database.
In addition, the lottery process also comprises the verification of the lottery parameters, and the verification of whether the data contained in the lottery parameters are consistent with the data of the lottery activities stored in the database or not is carried out, if so, the verification is successful, and if not, the verification is failed. For example, the data contained in the lottery parameters are: "lottery time 2017.06.05 lottery times 1", then according to the lottery activity scheme number of the lottery activity selected by the user, the activity start time and end time in the lottery activity scheme number are respectively inquired as: 2017.06.01, 2017.06.10, then it may be determined that the time check node check was successful and the number of drawings in the drawing activity scenario number is 10, then it may be determined that the number check node check was successful.
Further, if an instruction for adjusting the check sequence of each check node is received, the check flow is updated according to the instruction. For example, the verification process is: after receiving the instruction for adjusting the checking sequence, the node A, the node B and the node C analyze the information contained in the instruction as follows: "adjust node C to the first node", then the updated check flow is: node C, node a, node B.
Furthermore, before the lottery drawing data is verified, the method may further include responding to an operation of adding a node, acquiring a check node to be added, and updating the verification process according to the check node to be added. When the control is triggered, a request for adding nodes is sent out, the request for adding nodes is responded, check nodes to be added are obtained, and the check nodes to be added are added into the check process. And the check sequence of the check node to be added can be obtained, and the check node to be added is added to the corresponding position of the check process according to the check sequence.
In step S44, it is determined whether the verification is successful, and winning information is returned based on the lottery event scheme number and prize scheme number when the verification is successful.
In this exemplary embodiment, the determination of whether the verification is successful may be performed by determining whether all of the verification nodes are successfully performed, and if all of the verification nodes are successfully performed, it may be determined that the verification is successful, and if one of the verification nodes is failed, it may be determined that the verification is failed. And if the verification is successful, returning winning information according to the lottery activity scheme number and the prize scheme number. The prize winning information may include a prize of the user, or may include a prompt of a prize getting method. Of course, the winning information may also include other information, such as a pattern of the prize, a copy of the prize, and so on.
Further, step S44 may include steps S441 to S443. As shown in fig. 5, wherein:
step S441, according to the checking sequence of the checking nodes, checking each checking node in sequence and judging whether the checking is successful or not;
step S442, if any check node fails to be checked, stopping checking and returning information of the check node which fails to be checked;
and S443. if the verification of any check node is successful, continuing to verify the next check node.
In this exemplary embodiment, each check node is executed in sequence according to the order of the check nodes, a first check node is executed first, and whether the check node is successful is judged, if the check is successful, a second check node is executed, and whether the check node is successful is judged, if the check node is successful, a third check node is executed, and so on, until the last check node is executed, and it is determined that the last check node is executed successfully, the check can be determined to be successful, and if any one of the check nodes fails to check, the check is stopped, and information of the check node that fails to check is returned.
Exemplary Medium
Having described the method of the exemplary embodiments of the present invention, the media of the exemplary embodiments of the present invention will be described next.
In some possible embodiments, aspects of the present invention may also be implemented as a medium having stored thereon program code for implementing the steps of the lottery model construction method according to various exemplary embodiments of the present invention described in the above-mentioned "exemplary method" section of this specification when the program code is executed by a processor of an apparatus.
Specifically, the processor of the device, when executing the program code, is configured to implement the following steps: respectively acquiring lottery activity configuration data and prize configuration data; establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is the unique identification number of the lottery activity scheme; establishing a prize scheme according to the prize configuration data and generating a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme; and generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme and the prize scheme.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: the lottery activity configuration data comprises: activity task type information and activity task number information.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: the prize configuration data includes: prize type information and prize amount information.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: and when the number of the activity tasks is more than or equal to 2, generating the lottery drawing model according to the mapping relation between a plurality of activity tasks and a plurality of prize scheme numbers in the lottery drawing activity scheme corresponding to the lottery drawing activity scheme number.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: and when one or more operations of adding, deleting and modifying the prize type information and the prize number information are received, updating the prize configuration information according to the operations.
In some possible embodiments, aspects of the present invention may also be implemented as a medium having stored thereon program code for implementing, when executed by a processor of a device, the steps in the lottery activity management method according to various exemplary embodiments of the present invention described in the above section "exemplary method" of this specification.
Specifically, the processor of the device, when executing the program code, is configured to implement the following steps:
responding to the lottery drawing request, and acquiring lottery drawing data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number; acquiring a plurality of check nodes for checking the lottery drawing data and a check sequence of each check node; generating a verification process according to the verification sequence of the verification nodes, and verifying the lottery drawing data based on the verification process; and judging whether the verification is successful or not, and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: according to the checking sequence of the checking nodes, checking each checking node in sequence and judging whether the checking is successful or not; if the check of any check node fails, stopping the check and returning the information of the check node with the failed check; if any check node is successfully checked, the check of the next check node is continued.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: and if an instruction for adjusting the checking sequence of each checking node is received, updating the checking flow according to the instruction.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: responding to a request for adding a node, and acquiring a check node to be added; and updating the check flow according to the check node to be added.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: and generating a configuration file of the verification process by using an extensible markup language, and verifying the lottery drawing data based on the configuration file.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: acquiring configuration information contained in the lottery drawing data; and determining a plurality of check nodes of the lottery drawing data according to the configuration information.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: and determining the check node corresponding to each field according to the information of the fields contained in the configuration information.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: the configuration information includes a combination of any one or more of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
In some embodiments of the invention, the program code is executable by a processor of the device to perform the steps of: responding to a lottery drawing request, and acquiring lottery drawing parameters, wherein the lottery drawing parameters comprise a plurality of lottery drawing time, lottery drawing times, a user account and an equipment number; and checking the lottery drawing parameters based on the checking process.
It should be noted that: the above-mentioned medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
Exemplary devices
Having described the medium of an exemplary embodiment of the present invention, a lottery-drawing model construction apparatus of an exemplary embodiment of the present invention will next be described with reference to fig. 6. And a lottery activity management apparatus according to an exemplary embodiment of the present invention will be described with reference to fig. X.
Fig. 6 schematically shows a block diagram of a lottery model construction apparatus according to an embodiment of the present invention.
Fig. 7 schematically shows a block diagram of a lottery activity management apparatus according to an embodiment of the present invention.
Referring to fig. 6, a lottery model construction apparatus 60 according to an embodiment of the present invention includes: a data acquisition unit 61, a campaign configuration unit 62, a prize configuration unit 63, a model construction unit 64.
Specifically, the data acquiring unit 61 is configured to acquire lottery event configuration data and prize configuration data, respectively; the activity configuration unit 62 is configured to establish a lottery activity scheme according to the lottery activity configuration data and generate a lottery activity scheme number, where the lottery activity scheme number is a unique identification number of the lottery activity scheme; a prize configuration unit 63, configured to establish a prize scheme according to the prize configuration data and generate a prize scheme number, where the prize scheme number is a unique identification number of the prize scheme; and the model building unit 64 is used for generating the lottery drawing model according to the mapping relation between the lottery drawing scheme number and the prize scheme number.
In some embodiments of the invention, the lottery activity configuration data comprises: activity task type information and activity task number information.
In some embodiments of the invention, the prize configuration data comprises: prize type information and prize amount information.
In some embodiments of the present invention, when the number of active tasks is greater than or equal to 2, the model building unit 64 is configured to: and generating the lottery drawing model according to the mapping relation between a plurality of activity tasks and a plurality of prize scheme numbers in the lottery drawing activity scheme corresponding to the lottery drawing activity scheme number.
In some embodiments of the present invention, the lottery model construction apparatus 60 further comprises: a prize modification unit 601, configured to update the prize configuration information according to one or more operations of adding, deleting, and modifying the prize information when the operation is received.
Referring to fig. 7, the lottery activity management apparatus 70 according to the embodiment of the present invention includes: a lottery data acquisition unit 71, a check node acquisition unit 72, a check unit 73, and a prize acquisition unit 74.
Specifically, the lottery data acquisition unit 71 is configured to respond to a lottery request and acquire lottery data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number; a check node obtaining unit 72 configured to obtain a plurality of check nodes used for checking the lottery data and a check sequence of each check node; a verification unit 73, configured to generate a verification process according to the verification sequence of the verification nodes, and verify the lottery drawing data based on the verification process; and the prize obtaining unit 74 is used for judging whether the verification is successful or not, and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
In some embodiments of the present invention, the prize acquisition unit 74 further comprises: a verification control unit 701, configured to sequentially verify each verification node according to the verification sequence of the verification nodes, and determine whether the verification is successful; if the check of any check node fails, stopping the check and returning the information of the check node with the failed check; if any check node is successfully checked, the check of the next check node is continued.
In some embodiments of the present invention, the lottery activity management apparatus 70 further comprises: a check node adjusting unit 702, configured to update the check flow according to an instruction when the instruction for adjusting the check sequence of each check node is received.
In some embodiments of the present invention, the lottery activity management apparatus 70 further comprises: an add node unit 703, configured to respond to a request for adding a node, and obtain a check node to be added; an update check flow unit 704, configured to update the check flow according to the check node to be added.
In some embodiments of the present invention, the verification unit 73 is configured to: and generating a configuration file of the verification process by using an extensible markup language, and verifying the lottery drawing data based on the configuration file.
In some embodiments of the present invention, the check node obtaining unit 72 is configured to: acquiring configuration information contained in the lottery drawing data; and determining a plurality of check nodes of the lottery drawing data according to the configuration information.
In some embodiments of the present invention, the check node obtaining unit 72 is configured to: and determining the check node corresponding to each field according to the information of the fields contained in the configuration information.
In some embodiments of the invention, the configuration information comprises a combination of any one or more of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
In some embodiments of the present invention, the verification unit 73 further comprises: a lottery parameter obtaining unit 705, configured to respond to a lottery request and obtain lottery parameters, where the lottery parameters include multiple types of lottery time, lottery times, a user account, and a device number; a checking subunit 706, configured to check the lottery parameters based on the checking process.
Exemplary computing device
Having described the method, medium, and apparatus of exemplary embodiments of the present invention, a computing device in accordance with another exemplary embodiment of the present invention is described.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device according to an embodiment of the invention may include at least one processor, and at least one memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the lottery model construction method and lottery activity management method according to various exemplary embodiments of the present invention described in the above section "exemplary method" of this specification. For example, the processor may perform step s11 as shown in fig. 1. obtain lottery event configuration data and prize configuration data, respectively; s12, establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is the unique identification number of the lottery activity scheme; s13, establishing a prize scheme according to the prize configuration data and respectively generating prize scheme numbers, wherein the prize scheme numbers are unique identification numbers of the prize scheme; and S14, generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number. As another example, the processor may also perform the steps as shown in fig. 4.
It should be noted that although several units or sub-units of the lottery model construction apparatus and lottery activity management apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the particular embodiments disclosed, nor is the division of the aspects, which is for convenience only as the features in these aspects may not be combined to benefit from the present disclosure. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (26)

1. A lottery model construction method comprises the following steps:
respectively acquiring lottery activity configuration data and prize configuration data;
establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is the unique identification number of the lottery activity scheme;
establishing a prize scheme according to the prize configuration data and generating a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme;
generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number;
wherein the lottery activity configuration data comprises:
activity task type information and activity task quantity information;
when the number of the activity tasks is more than or equal to 2, generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number, wherein the method comprises the following steps:
and generating the lottery drawing model according to the mapping relation between a plurality of activity tasks and a plurality of prize scheme numbers in the lottery drawing activity scheme corresponding to the lottery drawing activity scheme numbers.
2. The lottery model construction method of claim 1, the prize configuration data comprising:
prize type information and prize amount information.
3. The lottery model construction method of claim 2, before establishing a prize scheme according to the prize configuration data and generating a prize scheme number, the method further comprising:
and when one or more operations of adding, deleting and modifying the prize type information and the prize number information are received, updating the prize configuration data according to the operations.
4. A lottery activity management method applied to the lottery model set forth in claim 1, the lottery activity management method comprising:
responding to the lottery drawing request, and acquiring lottery drawing data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number;
acquiring a plurality of check nodes for checking the lottery drawing data and a check sequence of each check node;
generating a verification process according to the verification sequence of the verification nodes, and verifying the lottery drawing data based on the verification process;
and judging whether the verification is successful or not, and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
5. The lottery activity management method according to claim 4, the judging whether the check is successful includes:
according to the checking sequence of the checking nodes, checking each checking node in sequence and judging whether the checking is successful or not;
if the check of any check node fails, stopping the check and returning the information of the check node with the failed check;
if any check node is successfully checked, the check of the next check node is continued.
6. The lottery activity management method according to claim 4, further comprising, before the verifying the lottery data based on the verification process:
and if an instruction for adjusting the checking sequence of each checking node is received, updating the checking flow according to the instruction.
7. The lottery activity management method according to claim 4, further comprising, before the verifying the lottery data based on the verification process:
responding to a request for adding a node, and acquiring a check node to be added;
and updating the check flow according to the check node to be added.
8. The lottery activity management method according to claim 4, the verifying the lottery data based on the verification process comprising:
and generating a configuration file of the verification process by using an extensible markup language, and verifying the lottery drawing data based on the configuration file.
9. The lottery activity management method according to any one of claims 4 to 8, wherein said acquiring a plurality of check nodes for checking lottery data includes:
acquiring configuration information contained in the lottery drawing data;
and determining a plurality of check nodes of the lottery drawing data according to the configuration information.
10. The lottery activity management method of claim 9, said determining a plurality of check nodes for the lottery data based on the configuration information, comprising:
and determining the check node corresponding to each field according to the information of the fields contained in the configuration information.
11. The lottery activity management method of claim 9, the configuration information comprising a combination of any one or more of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
12. The lottery activity management method according to claim 9, the verifying the lottery data based on the verification process, comprising:
responding to a lottery drawing request, and acquiring lottery drawing parameters, wherein the lottery drawing parameters comprise a plurality of lottery drawing time, lottery drawing times, a user account and an equipment number;
and checking the lottery drawing parameters based on the checking process.
13. A medium on which a program is stored, the program, when executed by a processor, implementing the lottery model construction method according to any one of claims 1 to 3 or the lottery activity management method according to any one of claims 4 to 12.
14. A lottery model construction apparatus comprising:
the data acquisition unit is used for respectively acquiring lottery activity configuration data and prize configuration data;
the activity configuration unit is used for establishing a lottery activity scheme according to the lottery activity configuration data and generating a lottery activity scheme number, wherein the lottery activity scheme number is a unique identification number of the lottery activity scheme;
the prize configuration unit is used for establishing a prize scheme according to the prize configuration data and generating a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme;
the model building unit is used for generating the lottery drawing model according to the mapping relation between the lottery drawing activity scheme number and the prize scheme number;
wherein the lottery activity configuration data comprises:
activity task type information and activity task quantity information;
when the number of active tasks is greater than or equal to 2, the model building unit is configured to:
and generating the lottery drawing model according to the mapping relation between a plurality of activity tasks and a plurality of prize scheme numbers in the lottery drawing activity scheme corresponding to the lottery drawing activity scheme number.
15. The lottery model building apparatus of claim 14, the prize configuration data comprising:
prize type information and prize amount information.
16. The lottery model construction apparatus according to claim 15, further comprising:
and the prize modification unit is used for updating the prize configuration data according to one or more operations of adding, deleting and modifying the prize information when receiving the operations.
17. A lottery activity management apparatus applied to the lottery model set forth in claim 14, the lottery activity management apparatus comprising:
the lottery drawing data acquisition unit is used for responding to the lottery drawing request and acquiring lottery drawing data; wherein the lottery data comprises a lottery activity scheme number and a prize scheme number;
a check node acquisition unit configured to acquire a plurality of check nodes used for checking the lottery data and a check sequence of each check node;
the verification unit is used for generating a verification process according to the verification sequence of the verification nodes and verifying the lottery drawing data based on the verification process;
and the prize acquisition unit is used for judging whether the verification is successful or not and returning the prize information according to the lottery activity scheme number and the prize scheme number when the verification is successful.
18. The lottery activity management apparatus of claim 17, the prize acquisition unit further comprising:
the verification control unit is used for sequentially verifying each verification node according to the verification sequence of the verification nodes and judging whether the verification is successful;
if the check of any check node fails, stopping the check and returning the information of the check node with the failed check;
if any check node is successfully checked, the check of the next check node is continued.
19. The lottery activity management apparatus as set forth in claim 17, further comprising:
and the check node adjusting unit is used for updating the check flow according to the instruction when the instruction for adjusting the check sequence of each check node is received.
20. The lottery activity management apparatus as set forth in claim 17, further comprising:
the node adding unit is used for responding to the request of adding the node and acquiring a check node to be added;
and the verification flow updating unit is used for updating the verification flow according to the verification node to be added.
21. The lottery activity management apparatus as set forth in claim 17, said verification unit being for:
and generating a configuration file of the verification process by using an extensible markup language, and verifying the lottery drawing data based on the configuration file.
22. The lottery activity management apparatus according to any one of claims 17 to 21, the check node acquisition unit operable to:
acquiring configuration information contained in the lottery drawing data;
and determining a plurality of check nodes of the lottery drawing data according to the configuration information.
23. The lottery activity management apparatus as set forth in claim 22, said check node acquisition unit being configured to:
and determining the check node corresponding to each field according to the information of the fields contained in the configuration information.
24. The lottery activity management apparatus of claim 22, the configuration information comprising a combination of any one or more of: the lottery event scheme number, the scheme name, the scheme effective time, the scheme state, the prize scheme number, the prize information and the prize winning probability.
25. The lottery activity management apparatus of claim 22, said verification unit being adapted to:
responding to a lottery drawing request, and acquiring lottery drawing parameters, wherein the lottery drawing parameters comprise a plurality of lottery drawing time, lottery drawing times, a user account and an equipment number;
and checking the lottery drawing parameters based on the checking process.
26. A computing device, comprising: a processor and a memory, the memory storing executable instructions for invoking the memory stored executable instructions to perform a lottery model construction method as claimed in any of claims 1 to 3 or a lottery activity management method as claimed in any of claims 4 to 12.
CN201811014466.1A 2018-08-31 2018-08-31 Lottery model construction method, lottery activity management method, device and computing equipment Active CN109242561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811014466.1A CN109242561B (en) 2018-08-31 2018-08-31 Lottery model construction method, lottery activity management method, device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811014466.1A CN109242561B (en) 2018-08-31 2018-08-31 Lottery model construction method, lottery activity management method, device and computing equipment

Publications (2)

Publication Number Publication Date
CN109242561A CN109242561A (en) 2019-01-18
CN109242561B true CN109242561B (en) 2021-05-18

Family

ID=65059952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811014466.1A Active CN109242561B (en) 2018-08-31 2018-08-31 Lottery model construction method, lottery activity management method, device and computing equipment

Country Status (1)

Country Link
CN (1) CN109242561B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046384B (en) * 2019-03-12 2021-02-12 北京字节跳动网络技术有限公司 Model instantiation method and device, electronic equipment and computer-readable storage medium
CN110322280A (en) * 2019-06-05 2019-10-11 上海易点时空网络有限公司 The discount coupon second based on fair competition kills system and method
CN112508623A (en) * 2020-12-16 2021-03-16 福州凌云数据科技有限公司 Lottery system based on block chain intelligent contract

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767166A (en) * 2017-06-06 2018-03-06 中粮福临门食品营销有限公司 Scanning Quick Response Code gets method, system, relevant device and the storage medium of red packet
CN107862540A (en) * 2017-09-27 2018-03-30 天脉聚源(北京)科技有限公司 A kind of lottery drawing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649623A (en) * 2016-12-05 2017-05-10 乐视控股(北京)有限公司 Data updating method and system for virtual pool
CN107038788B (en) * 2017-04-06 2019-05-14 福建新大陆软件工程有限公司 A kind of sequences match prize drawing control method and system
CN107122992A (en) * 2017-04-17 2017-09-01 南京欣网互联信息技术有限公司 A kind of method that sweepstake is produced in the network platform
CN108038738A (en) * 2017-12-27 2018-05-15 安徽和叶网络科技有限公司 Advertising method, client and computer-readable recording medium on line

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767166A (en) * 2017-06-06 2018-03-06 中粮福临门食品营销有限公司 Scanning Quick Response Code gets method, system, relevant device and the storage medium of red packet
CN107862540A (en) * 2017-09-27 2018-03-30 天脉聚源(北京)科技有限公司 A kind of lottery drawing method and device

Also Published As

Publication number Publication date
CN109242561A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
US9952834B2 (en) Distribution of applications with a saved state
CN109242561B (en) Lottery model construction method, lottery activity management method, device and computing equipment
CN110944048B (en) Service logic configuration method and device
CN103999047B (en) repair delivery system
CN109656538A (en) Generation method, device, system, equipment and the medium of application program
CN109951547B (en) Transaction request parallel processing method, device, equipment and medium
CN107436832A (en) A kind of dynamic buries method, apparatus and electronic equipment a little
US8776021B1 (en) Application experiment system
CN107896244A (en) A kind of distribution method of version file, client and server
CN107977308A (en) interface test method and device
CN106294094A (en) The method of testing of game server, client, server and system
CN112689155B (en) Virtual resource pushing method and device and server
CN107729246A (en) For the auxiliary test methods of intended application, device, equipment and storage medium
US20080082964A1 (en) Method and system for data preparation and communication between software applications
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN107391219A (en) Function Compilation Method and device
WO2014107489A2 (en) System and method for crowdsourcing map production
CN109542470A (en) Configuration, installation method and configuration device
US9542161B2 (en) Method and system for generating a source code for a computer program for execution and simulation of a process
JP3546232B2 (en) Teaching material utilization system and method
US20210182767A1 (en) Scoring platform and engine for software engineering contributions
CN107273112A (en) A kind of present list method for information display and device
CN112561690B (en) Method, system, equipment and storage medium for testing credit card staged service interface
CN104468549B (en) Client operation request responding method, device and server
CN109815106B (en) Interactive function testing method and device of information delivery platform

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
TA01 Transfer of patent application right

Effective date of registration: 20191104

Address after: 310012 G building, 10 floor, A building, Paradise Software Park, 3 West Road, Hangzhou, Xihu District, Zhejiang

Applicant after: Alibaba (China) Co., Ltd.

Address before: Hangzhou City, Zhejiang province 310051 Binjiang District River Street No. 1786 Jianghan Road Longsheng Building Room 803

Applicant before: Netease Koala (Hangzhou) Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant