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
check
scheme
verification
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.)
Expired - Fee Related
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

本发明的实施方式提供了一种抽奖模型构建方法。该抽奖模型构建方法包括:分别获取抽奖活动配置数据与奖品配置数据;根据所述抽奖活动配置数据建立抽奖活动方案并生成抽奖活动方案号,其中,所述抽奖活动方案号为所述抽奖活动方案的唯一标识号;根据所述奖品配置数据建立奖品方案并生成奖品方案号,其中,所述奖品方案号为所述奖品方案的唯一标识号;根据所述抽奖活动方案号和所述奖品方案号的映射关系生成所述抽奖模型。本发明的方法可以利用通用的抽奖模型构建各种抽奖活动,从而显著地提高了抽奖活动的开发效率。

Figure 201811014466

The embodiment of the present invention provides a lottery model construction method. The method for constructing a lottery model includes: respectively acquiring lottery activity configuration data and prize configuration data; establishing a lottery activity plan according to the lottery activity configuration data and generating a lottery activity plan number, wherein the lottery activity plan number is the lottery activity plan the unique identification number; establish a prize scheme according to the prize configuration data and generate a prize scheme number, wherein the prize scheme number is the unique identification number of the prize scheme; according to the lottery activity scheme number and the prize scheme number The mapping relationship of , generates the lottery model. The method of the present invention can use a general lottery model to construct various lottery activities, thereby significantly improving the development efficiency of lottery activities.

Figure 201811014466

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.一种抽奖模型构建方法,包括:1. A method for constructing a lottery model, comprising: 分别获取抽奖活动配置数据与奖品配置数据;Obtain the configuration data of the sweepstakes and the configuration data of the prizes respectively; 根据所述抽奖活动配置数据建立抽奖活动方案并生成抽奖活动方案号,其中,所述抽奖活动方案号为所述抽奖活动方案的唯一标识号;Establish a lottery activity plan according to the lottery activity configuration data and generate a lottery activity plan number, wherein the lottery activity plan number is the unique identification number of the lottery activity plan; 根据所述奖品配置数据建立奖品方案并生成奖品方案号,其中,所述奖品方案号为所述奖品方案的唯一标识号;Establish a prize scheme according to the prize configuration data and generate a prize scheme number, wherein the prize scheme number is the unique identification number of the prize scheme; 根据所述抽奖活动方案号和所述奖品方案号的映射关系生成所述抽奖模型;Generate the lottery model according to the mapping relationship between the lottery plan number and the prize plan number; 其中,所述抽奖活动配置数据包括:Wherein, the configuration data of the lottery activity includes: 活动任务类型信息与活动任务数量信息;Active task type information and active task quantity information; 在活动任务数量大于或等于2时,根据所述抽奖活动方案号和所述奖品方案号的映射关系生成所述抽奖模型,包括:When the number of activity tasks is greater than or equal to 2, generating the lottery model according to the mapping relationship between the lottery activity plan number and the prize plan number, including: 根据所述抽奖活动方案号对应的抽奖活动方案中多个活动任务与多个所述奖品方案号的映射关系生成所述抽奖模型。The lottery model is generated according to the mapping relationship between a plurality of activity tasks and a plurality of the prize plan numbers in the lottery plan corresponding to the lottery plan number. 2.根据权利要求1所述的抽奖模型构建方法,所述奖品配置数据包括:2. lottery model construction method according to claim 1, described prize configuration data comprises: 奖品类型信息与奖品数量信息。Prize type information and prize quantity information. 3.根据权利要求2所述的抽奖模型构建方法,根据所述奖品配置数据建立奖品方案并生成奖品方案号之前,所述方法还包括:3. The lottery model construction method according to claim 2, before establishing a prize scheme according to the prize configuration data and generating a prize scheme number, the method further comprises: 接收到对所述奖品类型信息与所述奖品数量信息进行的添加、删除、修改中的一种或多种操作时,根据所述操作更新所述奖品配置数据。When receiving one or more operations of adding, deleting, and modifying the prize type information and the prize quantity information, the prize configuration data is updated according to the operation. 4.一种抽奖活动管理方法,应用于权利要求1中所述的抽奖模型,所述抽奖活动管理方法包括:4. a kind of lottery management method, is applied to the lottery model described in claim 1, and described lottery management method comprises: 响应抽奖请求,获取抽奖数据;其中,所述抽奖数据包括抽奖活动方案号及奖品方案号;In response to the lottery request, obtain lottery data; wherein, the lottery data includes the lottery plan number and the prize plan number; 获取用于对所述抽奖数据进行校验的多个校验节点及各个校验节点的校验顺序;Obtain a plurality of check nodes for checking the lottery data and the check sequence of each check node; 根据所述校验节点的校验顺序,生成校验流程,并基于所述校验流程对所述抽奖数据进行校验;Generate a verification process according to the verification sequence of the verification nodes, and verify the lottery data based on the verification process; 判断校验是否成功,并在校验成功时根据所述抽奖活动方案号及奖品方案号返回所述奖品信息。It is judged whether the verification is successful, and when the verification is successful, the prize information is returned according to the lottery plan number and the prize plan number. 5.根据权利要求4所述的抽奖活动管理方法,所述判断校验是否成功包括:5. lottery event management method according to claim 4, whether described judging whether verification is successful comprises: 根据所述校验节点的校验顺序,依次对每个所述校验节点进行校验,并判断校验是否成功;According to the verification sequence of the check nodes, check each of the check nodes in turn, and determine whether the check is successful; 若对任一校验节点校验失败,则停止校验并返回校验失败的校验节点的信息;If the verification of any check node fails, stop the check and return the information of the check node that failed to check; 若对任一校验节点校验成功,则继续校验后一校验节点。If the verification of any check node is successful, continue to check the next check node. 6.根据权利要求4所述的抽奖活动管理方法,在基于所述校验流程对所述抽奖数据进行校验之前还包括:6. The lottery management method according to claim 4, before the lottery data is verified based on the verification process, further comprising: 若接收到调整所述各个校验节点的校验顺序的指令,则根据所述指令更新所述校验流程。If an instruction for adjusting the check sequence of each check node is received, the check flow is updated according to the instruction. 7.根据权利要求4所述的抽奖活动管理方法,在基于所述校验流程对所述抽奖数据进行校验之前还包括:7. The lottery event management method according to claim 4, further comprising: 响应增加节点的请求,获取待增加的校验节点;In response to a request for adding a node, obtain the check node to be added; 根据所述待增加的校验节点更新所述校验流程。The verification process is updated according to the verification node to be added. 8.根据权利要求4所述的抽奖活动管理方法,所述基于所述校验流程对所述抽奖数据进行校验包括:8. lottery event management method according to claim 4, the described lottery data is verified based on described verification process and comprises: 利用可扩展标记语言生成所述校验流程的配置文件,基于所述配置文件对所述抽奖数据进行校验。A configuration file of the verification process is generated using an extensible markup language, and the lottery lottery data is verified based on the configuration file. 9.根据权利要求4-8任一项所述的抽奖活动管理方法,其中,所述获取用于对抽奖数据进行校验的多个校验节点,包括:9. The lottery event management method according to any one of claims 4-8, wherein the acquisition is used to verify a plurality of check nodes for the lottery data, including: 获取所述抽奖数据包含的配置信息;Obtain the configuration information contained in the lottery data; 根据所述配置信息确定所述抽奖数据的多个校验节点。A plurality of check nodes of the lottery data are determined according to the configuration information. 10.根据权利要求9所述的抽奖活动管理方法,所述根据所述配置信息确定所述抽奖数据的多个校验节点,包括:10. The lottery management method according to claim 9, wherein the multiple check nodes of the lottery data are determined according to the configuration information, comprising: 根据所述配置信息中包含的多个字段的信息,确定各个字段对应的校验节点。According to the information of the multiple fields included in the configuration information, the check node corresponding to each field is determined. 11.根据权利要求9所述的抽奖活动管理方法,所述配置信息包括以下任一或多个的组合:抽奖活动方案号、方案名称、方案有效时间、方案状态、奖品方案号、奖品信息、中奖概率。11. lottery activity management method according to claim 9, described configuration information comprises following any or more combination: lottery activity scheme number, scheme name, scheme valid time, scheme state, prize scheme number, prize information, Probability of winning. 12.根据权利要求9所述的抽奖活动管理方法,所述基于所述校验流程对所述抽奖数据进行校验,包括:12. The lottery management method according to claim 9, the described lottery data is verified based on the verification process, comprising: 响应抽奖请求,获取抽奖参数,其中,所述抽奖参数包括抽奖时间、抽奖次数、用户账号、设备号中的多种;Responding to the lottery request, obtaining lottery parameters, wherein the lottery parameters include a variety of lottery time, lottery times, user account numbers, and device numbers; 基于所述校验流程,对所述抽奖参数进行校验。Based on the verification process, verify the lottery parameters. 13.一种介质,其上存储有程序,该程序被处理器执行时实现如权利要求1至3中任一项所述的抽奖模型构建方法或权利要求4至12中任一项所述的抽奖活动管理方法。13. A medium having a program stored thereon which realizes the lottery model construction method as described in any one of claims 1 to 3 or the method described in any one of claims 4 to 12 when the program is executed by the processor Sweepstakes management methods. 14.一种抽奖模型构建装置,包括:14. A lottery model construction device, comprising: 数据获取单元,用于分别获取抽奖活动配置数据与奖品配置数据;The data acquisition unit is used to acquire the lottery activity configuration data and the prize configuration data respectively; 活动配置单元,用于根据所述抽奖活动配置数据建立抽奖活动方案并生成抽奖活动方案号,其中,所述抽奖活动方案号为所述抽奖活动方案的唯一标识号;The activity configuration unit is used to establish a lottery activity plan according to the lottery activity configuration data and generate a lottery activity plan number, wherein the lottery activity plan number is the unique identification number of the lottery activity plan; 奖品配置单元,用于根据所述奖品配置数据建立奖品方案并生成奖品方案号,其中,所述奖品方案号为所述奖品方案的唯一标识号;a prize configuration unit, configured to establish a prize scheme according to the prize configuration data and generate a prize scheme number, wherein the prize scheme number is a unique identification number of the prize scheme; 模型构建单元,用于根据所述抽奖活动方案号和所述奖品方案号的映射关系生成所述抽奖模型;A model building unit for generating the lottery model according to the mapping relationship between the lottery plan number and the prize plan number; 其中,所述抽奖活动配置数据包括:Wherein, the configuration data of the lottery activity includes: 活动任务类型信息与活动任务数量信息;Active task type information and active task quantity information; 在活动任务数量大于或等于2时,所述模型构建单元用于:When the number of active tasks is greater than or equal to 2, the model building unit is used to: 根据所述抽奖活动方案号所对应的抽奖活动方案中多个活动任务与多个所述奖品方案号的映射关系生成所述抽奖模型。The lottery model is generated according to the mapping relationship between a plurality of activity tasks and a plurality of the prize plan numbers in the lottery plan corresponding to the lottery plan number. 15.根据权利要求14所述的抽奖模型构建装置,所述奖品配置数据包括:15. The lottery model building device according to claim 14, wherein the prize configuration data comprises: 奖品类型信息与奖品数量信息。Prize type information and prize quantity information. 16.根据权利要求15所述的抽奖模型构建装置,所述抽奖模型构建装置还包括:16. lottery model building device according to claim 15, described lottery model building device also comprises: 奖品修改单元,用于接收到对所述奖品信息进行的添加、删除、修改中的一种或多种操作时,根据所述操作更新所述奖品配置数据。The prize modification unit is configured to update the prize configuration data according to the operation when receiving one or more operations of adding, deleting and modifying the prize information. 17.一种抽奖活动管理装置,应用于权利要求14中所述的抽奖模型,所述抽奖活动管理装置包括:17. A lottery management device, applied to the lottery model described in claim 14, the lottery management device comprising: 抽奖数据获取单元,用于响应抽奖请求,获取抽奖数据;其中,所述抽奖数据包括抽奖活动方案号及奖品方案号;A lottery data acquisition unit, used for responding to a lottery request to acquire lottery data; wherein, the lottery data includes a lottery plan number and a prize plan number; 校验节点获取单元,用于获取用于对所述抽奖数据进行校验的多个校验节点及各个校验节点的校验顺序;a check node obtaining unit, used to obtain a plurality of check nodes for checking the lottery data and the check sequence of each check node; 校验单元,用于根据所述校验节点的校验顺序,生成校验流程,并基于所述校验流程对所述抽奖数据进行校验;a verification unit, configured to generate a verification process according to the verification sequence of the verification nodes, and verify the lottery data based on the verification process; 奖品获取单元,用于判断校验是否成功,并在校验成功时根据所述抽奖活动方案号及奖品方案号返回所述奖品信息。The prize obtaining unit is used for judging whether the verification is successful, and when the verification is successful, returning the prize information according to the lottery plan number and the prize plan number. 18.根据权利要求17所述的抽奖活动管理装置,所述奖品获取单元还包括:18. The lottery event management device according to claim 17, wherein the prize acquisition unit further comprises: 校验控制单元,用于根据所述校验节点的校验顺序,依次对每个所述校验节点进行校验,并判断校验是否成功;A verification control unit, configured to perform verification on each of the verification nodes in turn according to the verification sequence of the verification nodes, and determine whether the verification is successful; 若对任一校验节点校验失败,则停止校验并返回校验失败的校验节点的信息;If the verification of any check node fails, stop the check and return the information of the check node that failed to check; 若对任一校验节点校验成功,则继续校验后一校验节点。If the verification of any check node is successful, continue to check the next check node. 19.据权利要求17所述的抽奖活动管理装置,所述抽奖活动管理装置还包括:19. The lottery event management device according to claim 17, the lottery event management device further comprising: 校验节点调整单元,用于在接收到调整所述各个校验节点的校验顺序的指令时,根据所述指令更新所述校验流程。A check node adjustment unit, configured to update the check flow according to the instruction when receiving an instruction for adjusting the check sequence of each check node. 20.根据权利要求17所述的抽奖活动管理装置,所述抽奖活动管理装置还包括:20. The lottery event management device according to claim 17, the lottery event management device further comprising: 增加节点单元,用于响应增加节点的请求,获取待增加的校验节点;Adding a node unit, which is used to respond to a request for adding a node and obtain a check node to be added; 更新校验流程单元,用于根据所述待增加的校验节点更新所述校验流程。An update verification process unit, configured to update the verification process according to the to-be-added verification node. 21.根据权利要求17所述的抽奖活动管理装置,所述校验单元用于:21. lottery event management device according to claim 17, described verification unit is used for: 利用可扩展标记语言生成所述校验流程的配置文件,基于所述配置文件对所述抽奖数据进行校验。A configuration file of the verification process is generated using an extensible markup language, and the lottery lottery data is verified based on the configuration file. 22.根据权利要求17-21任一项所述的抽奖活动管理装置,所述校验节点获取单元用于:22. The lottery activity management device according to any one of claims 17-21, wherein the check node acquisition unit is used for: 获取所述抽奖数据包含的配置信息;Obtain the configuration information contained in the lottery data; 根据所述配置信息确定所述抽奖数据的多个校验节点。A plurality of check nodes of the lottery data are determined according to the configuration information. 23.根据权利要求22所述的抽奖活动管理装置,所述校验节点获取单元用于:23. The lottery event management device according to claim 22, the check node acquisition unit is used for: 根据所述配置信息中包含的多个字段的信息,确定各个字段对应的校验节点。According to the information of the multiple fields included in the configuration information, the check node corresponding to each field is determined. 24.根据权利要求22所述的抽奖活动管理装置,所述配置信息包括以下任一或多个的组合:抽奖活动方案号、方案名称、方案有效时间、方案状态、奖品方案号、奖品信息、中奖概率。24. The lottery management device according to claim 22, wherein the configuration information comprises any one or more of the following combinations: lottery scheme number, scheme name, scheme valid time, scheme status, prize scheme number, prize information, Probability of winning. 25.根据权利要求22所述的抽奖活动管理装置,所述校验单元用于:25. lottery event management device according to claim 22, described verification unit is used for: 响应抽奖请求,获取抽奖参数,其中,所述抽奖参数包括抽奖时间、抽奖次数、用户账号、设备号中的多种;Responding to the lottery request, obtaining lottery parameters, wherein the lottery parameters include a variety of lottery time, lottery times, user account numbers, and device numbers; 基于所述校验流程,对所述抽奖参数进行校验。Based on the verification process, verify the lottery parameters. 26.一种计算设备,包括:处理器和存储器,所述存储器存储有可执行指令,所述处理器用于调用所述存储器存储的可执行指令执行如权利要求1至3中任一项所述的抽奖模型构建方法或权利要求4至12中任一项所述的抽奖活动管理方法。26. A computing device comprising: a processor and a memory, wherein the memory stores executable instructions, the processor is configured to invoke the executable instructions stored in the memory to execute the execution of any one of claims 1 to 3 The lottery model construction method or the lottery event management method described in any one 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 Expired - Fee Related 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 Expired - Fee Related 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 (4)

* 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
TWI858323B (en) * 2022-04-08 2024-10-11 軒陽科技股份有限公司 Joint lottery method for combining promotion and multi-variety advertising and system thereof

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
CN109242561B (en) Lottery model construction method, lottery activity management method, device and computing equipment
CN110944048B (en) Service logic configuration method and device
CN104363264B (en) The SDK access systems by all kinds of means of mobile terminal software
US9274780B1 (en) Distribution of applications with a saved state
CN105556919B (en) Multi-factor authentication using service request tickets
CN112433944A (en) Service testing method, device, computer equipment and storage medium
US9665475B2 (en) Application experiment system
CN106075911B (en) A kind of generation method and device at the micro- end of web game
CN109542470A (en) Configuration, installation method and configuration device
CN114185583A (en) Generation and processing method and device of approval process
CN107391219A (en) Function Compilation Method and device
JP3546232B2 (en) Teaching material utilization system and method
US12231378B2 (en) Realtime conversation AI insights and deployment
CN113127336A (en) Data collection method and device
CN116108298A (en) Page data processing method, device, storage medium and electronic equipment
KR20090111633A (en) Mobile game refund guarantee system
US20240419438A1 (en) Program data package generation method, device and storage medium
CN116212398A (en) Game management method, device, equipment and medium based on data center
CN110262780B (en) A method for service configuration and network equipment
KR102050968B1 (en) Mobile device and operating method of the same
CN112308622A (en) Data processing method and device for virtual object, storage medium and electronic device
CN114741307A (en) Use case execution method and device, electronic equipment and storage medium
CN113781200A (en) Automatic credit reporting authorization method, system and electronic device
CN116028138B (en) Application publishing method and device
CN105550355B (en) Rule-based Hose data delivery system and method

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) TECH CO.,LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210518