Prize drawing model building method, sweepstake management method, device and calculating equipment
Technical field
Embodiments of the present invention are related to technical field of data processing, more specifically, embodiments of the present invention are related to taking out
It encourages model building method, sweepstake management method, medium, device and calculates equipment.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein
Description recognizes it is the prior art not because not being included in this section.
With the continuous prosperity of economic market, various marketing activities emerge one after another.Prize drawing is as direct, simple and economical
Activity, have very much temptation to user.
Currently, if needing to create one by management backstage when enterprise or individual operator want to carry out sweepstake
Then a sweepstake configures the relevant informations such as various prizes and winning probability, save in the database.This mode is each
It when carrying out sweepstake, requires that a large amount of manpowers is spent to carry out backstage exploitation, often develops sweepstake and need one month, and
The time for but there was only couple of days is really used, it is very not cost-effective for enterprise or individual operator, after undertaking exploitation
For the personnel of platform, also there are great risk, input and output serious unbalance.
Summary of the invention
But for the different reason of sweepstake held every time, the prior art is needed for each sweepstake
Exploitation is suitable for the front end and backstage of the sweepstake.
Thus, it is also very desirable to a kind of improved prize drawing model, so that each different sweepstake is able to use same mould
Type, rapid build.
In the present context, embodiments of the present invention are intended to provide a kind of prize drawing model building method, sweepstake pipe
Reason method, medium, device and calculating equipment.
In the first aspect of embodiment of the present invention, a kind of prize drawing model building method is provided, comprising: obtain respectively
Sweepstake configuration data and prize configuration data;Sweepstake scheme is established according to the sweepstake configuration data and is generated
Sweepstake scheme number, wherein the sweepstake scheme number is the unique identifying number of the sweepstake scheme;According to described
Prize configuration data establishes prize scheme and generates prize scheme number, wherein the prize scheme number is the prize scheme
Unique identifying number;The prize drawing model is generated according to the mapping relations of the sweepstake scheme number and the prize scheme number.
In some embodiments of the invention, the sweepstake configuration data includes:
Active task type information and active task quantity information.
In some embodiments of the invention, the prize configuration data includes:
Prize type information and prize quantity information.
In some embodiments of the invention, it when the active task quantity is greater than or equal to 2, is lived according to the prize drawing
The mapping relations of dynamic scheme number and the prize scheme number generate the prize drawing model, comprising:
According to multiple active tasks in sweepstake scheme corresponding to the sweepstake scheme number and multiple prizes
The mapping relations of product scheme number generate the prize drawing model.
In some embodiments of the invention, prize scheme is established according to the prize configuration data and generates prize scheme
Before number, the method also includes:
It receives to the prize type information and one in the addition, deletion, modification of prize quantity information progress
When kind or a variety of operations, the prize configuration information is updated according to the operation.
In the second aspect of embodiment of the present invention, a kind of sweepstake management method is provided, comprising: response prize drawing
Request obtains prize drawing data;Wherein, the prize drawing data include sweepstake scheme number and prize scheme number;Obtain for pair
The verification sequence of multiple check-nodes and each check-node that the prize drawing data are verified;According to the check-node
Verification sequence is generated checking process, and is verified based on the checking process to the prize drawing data;Judge verification whether at
Function, and the winnings information is returned to according to the sweepstake scheme number and prize scheme number when verifying successfully.
In some embodiments of the invention, it is described judge verification whether successfully include:
According to the verification of check-node sequence, successively each check-node is verified, and judge to verify
Whether succeed;
Fail if being verified to any check-node, stops the information of the check-node of verification and back-checking failure;
If verifying successfully any check-node, continue to verify latter check-node.
In some embodiments of the invention, before being verified based on the checking process to the prize drawing data also
Include:
If receiving the instruction for adjusting the verification sequence of each check-node, the school is updated according to described instruction
Test process.
In some embodiments of the invention, before being verified based on the checking process to the prize drawing data also
Include:
Response increases the request of node, obtains check-node to be increased;
The checking process is updated according to the check-node to be increased.
In some embodiments of the invention, described that verification packet is carried out to the prize drawing data based on the checking process
It includes:
The configuration file of the checking process is generated using extensible markup language, based on the configuration file to the pumping
Prize data are verified.
In some embodiments of the invention, the multiple check-nodes obtained for being verified to prize drawing data,
Include:
Obtain the configuration information that the prize drawing data include;
Multiple check-nodes of the prize drawing data are determined according to the configuration information.
In some embodiments of the invention, multiple verifications that the prize drawing data are determined according to the configuration information
Node, comprising:
According to the information for the multiple fields for including in the configuration information, the corresponding check-node of each field is determined.
In some embodiments of the invention, the configuration information includes following combination any one or more: sweepstake
Scheme number, Scenario Name, scheme effective time, scheme state, prize scheme number, winnings information, winning probability.
In some embodiments of the invention, described that the prize drawing data are verified based on the checking process, it wraps
It includes:
Response prize drawing request, obtains prize drawing parameter, wherein the prize drawing parameter includes draw times, prize drawing number, user
It is a variety of in account, device number;
Based on the checking process, the prize drawing parameter is verified.
In the third aspect of embodiment of the present invention, a kind of medium is provided, program is stored thereon with, which is located
Reason device realizes the prize drawing model construction or the sweepstake management method when executing.
In the fourth aspect of embodiment of the present invention, a kind of prize drawing model construction device is provided, comprising:
Data capture unit, for obtaining sweepstake configuration data and prize configuration data respectively;
Active configuration unit is lived for establishing sweepstake scheme according to the sweepstake configuration data and generating prize drawing
Dynamic scheme number, wherein the sweepstake scheme number is the unique identifying number of the sweepstake scheme;
Prize configuration unit, for establishing prize scheme according to the prize configuration data and generating prize scheme number,
In, the prize scheme number is the unique identifying number of the prize scheme;
Model construction unit, for being generated according to the mapping relations of the sweepstake scheme number and the prize scheme number
The prize drawing model.
In some embodiments of the invention, the sweepstake configuration data includes:
Active task type information and active task quantity information.
In some embodiments of the invention, the prize configuration data includes:
Prize type information and prize quantity information.
In some embodiments of the invention, when the active task quantity is greater than or equal to 2, the model construction list
Member is used for:
According to multiple active tasks in sweepstake scheme corresponding to the sweepstake scheme number and multiple prizes
The mapping relations of product scheme number generate the prize drawing model.
In some embodiments of the invention, the prize drawing model construction device further include:
Prize modifies unit, for receiving the addition carried out to the winnings information, deletion, one of modification or more
When kind operation, the prize configuration information is updated according to the operation.
In the 5th aspect of embodiment of the present invention, a kind of sweepstake managing device is provided, comprising:
Prize drawing data capture unit, for responding prize drawing request, acquisition prize drawing data;Wherein, the prize drawing data include
Sweepstake scheme number and prize scheme number;
Check-node acquiring unit, for obtaining for multiple check-nodes for being verified of prize drawing data and each
The verification sequence of a check-node;
Verification unit generates checking process for the verification sequence according to the check-node, and is flowed based on the verification
Journey verifies the prize drawing data;
Prize acquiring unit, for judging whether verification succeeds, and when verifying successfully according to the sweepstake scheme
Number and prize scheme number return to the winnings information.
In some embodiments of the invention, the prize acquiring unit further include:
Verify control unit, for according to the verification of check-node sequence, successively to each check-node into
Row verification, and judge whether verification succeeds;
Fail if being verified to any check-node, stops the information of the check-node of verification and back-checking failure;
If verifying successfully any check-node, continue to verify latter check-node.
In some embodiments of the invention, the prize drawing device further include:
Check-node adjustment unit, for when receiving the instruction for adjusting the verification sequence of each check-node,
The checking process is updated according to described instruction.
In some embodiments of the invention, the prize drawing device further include:
Increase node unit, for responding the request for increasing node, obtains check-node to be increased;
Checking process unit is updated, for updating the checking process according to the check-node to be increased.
In some embodiments of the invention, the verification unit is used for:
The configuration file of the checking process is generated using extensible markup language, based on the configuration file to the pumping
Prize data are verified.
In some embodiments of the invention, the check-node acquiring unit is used for:
Obtain the configuration information that the prize drawing data include;
Multiple check-nodes of the prize drawing data are determined according to the configuration information.
In some embodiments of the invention, the check-node acquiring unit is used for:
According to the information for the multiple fields for including in the configuration information, the corresponding check-node of each field is determined.
In some embodiments of the invention, the configuration information includes following combination any one or more: sweepstake
Scheme number, Scenario Name, scheme effective time, scheme state, prize scheme number, winnings information, winning probability.
In some embodiments of the invention, the verification unit further include:
Parameter acquiring unit of drawing a lottery obtains prize drawing parameter, wherein the prize drawing parameter includes for responding prize drawing request
It is draw times, prize drawing number, user account, a variety of in device number;
Subelement is verified, for being based on the checking process, the prize drawing parameter is verified.
In the 6th aspect of embodiment of the present invention, a kind of calculating equipment is provided, comprising: processor and memory,
The memory is stored with executable instruction, and the processor is used to that the executable instruction of the memory storage to be called to execute institute
State prize drawing model construction or the sweepstake management method.
The prize drawing model building method of embodiment according to the present invention, can use the prize drawing model can unify to establish respectively
Kind sweepstake to reduce manpower occupancy significantly, and is saved without carrying out the establishment process of sweepstake every time
Resource has been saved, has brought better experience for user.
The sweepstake management method of embodiment according to the present invention can be managed various sweepstakes, thus
Prize drawing is realized according to different sweepstakes, and corresponding check-node or verification section need to be only adjusted for different sweepstakes
The sequence of point, reduces the operation of developer, saves manpower, reduces the time needed for realizing sweepstake, improves
Efficiency.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention
, feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention
Dry embodiment, in which:
Fig. 1 schematically shows the flow chart of the prize drawing model construction of embodiment according to the present invention;
Fig. 2 schematically shows the application scenarios schematic diagrams of the prize drawing model construction of embodiment according to the present invention;
Fig. 3 schematically shows the application scenarios signal of the prize drawing model construction of another embodiment according to the present invention
Figure;
Fig. 4 schematically shows the flow charts of the sweepstake management method of embodiment according to the present invention;
Fig. 5 schematically shows the flow chart of the sweepstake management method of another embodiment according to the present invention;
Fig. 6 schematically shows the block diagram of the prize drawing model construction device of embodiment according to the present invention;
Fig. 7 schematically shows the block diagram of the sweepstake managing device of embodiment according to the present invention.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this
A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any
Mode limits the scope of the invention.On the contrary, thesing embodiments are provided so that the present invention is more thorough and complete, and energy
It enough will fully convey the scope of the invention to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method
Or computer program product.Therefore, the present invention can be with specific implementation is as follows, it may be assumed that complete hardware, complete software
The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention proposes a kind of prize drawing model construction and sweepstake management method and equipment.
Herein, it is to be understood that related terminological data bank (DB) indicates relevant database.
In addition, any number of elements in attached drawing is used to example rather than limitation and any name are only used for distinguishing,
Without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Summary of the invention
The inventors discovered that will newly add a menu before doing the activity of prize drawing class every time in management backstage, then configure
The relevant informations such as prizes and probability such as discount coupon, material object, reward beans, red packet, are then stored to database, when user reaches certain item
When part granting is rewarded, need all to rebuild a set of prize drawing logic for different movable playing methods, number from database
According to reading out by the way that whether some conditions and probabilistic determination get the winning number in a bond.
It needs that very big manpower is spent to do a backstage every time by current this mode, perhaps this activity is only used
Several days, this seriously affected the efficiency of movable developer, was unfavorable for the exploitation of developer's iteratively faster.According to previous
From the point of view of experience, the prize that each activity includes in fact is essentially all that comparison is fixed, and the prize configuration and verification on backstage are often
It is very complicated.
Therefore, embodiments of the present invention provide a kind of prize drawing model construction and sweepstake management method, medium, pumping
It encourages model construction device, sweepstake managing device and calculates equipment, to substantially reduce the time of sweepstake exploitation, save
Manpower, improves the development efficiency of sweepstake.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention
Formula.
Application scenarios overview
It should be noted which is shown only for the purpose of facilitating an understanding of the spirit and principles of the present invention for following application scenarios, this
The embodiment of invention is unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to it is applicable any
Scene.
It when establishing sweepstake, needs that a large amount of manpower is spent to establish backstage, to configure various prizes and get the winning number in a bond general
The information such as rate.It draws a lottery in user's prize drawing according to the prize, probability and prize drawing logic that have had built up.
Illustrative methods
Below with reference to above-mentioned application scenarios, the pumping of illustrative embodiments according to the present invention is described referring to figs. 1 to Fig. 5
Encourage model construction and sweepstake management method.
Fig. 1 diagrammatically illustrates the flow chart of the prize drawing model construction of embodiment according to the present invention.
Shown in referring to Fig.1, the prize drawing model construction of embodiment according to the present invention, comprising:
Step S11. obtains sweepstake configuration data and prize configuration data respectively;
Step S12. establishes sweepstake scheme according to the sweepstake configuration data and generates sweepstake scheme number,
Wherein, the sweepstake scheme number is the unique identifying number of the sweepstake scheme;
Step S13. establishes prize scheme according to the prize configuration data and generates prize scheme number respectively, wherein institute
State the unique identifying number that prize scheme number is the prize scheme;
Step S14. generates the prize drawing according to the mapping relations of the sweepstake scheme number and the prize scheme number
Model.
Prize drawing model construction shown in FIG. 1 can establish prize drawing model, can be constructed based on this model suitable for various pumpings
Movable prize drawing scheme is encouraged, to substantially reduce the time of sweepstake exploitation, improves the efficiency of sweepstake exploitation.
The realization details of each step shown in Fig. 1 is described in detail below:
In step s 11, sweepstake configuration data and prize configuration data are obtained respectively.
In this illustrative embodiment, sweepstake configuration data may include basic needed for one sweepstake of configuration
Information, for example, activity name, movable time started, activity end time, movable description information etc..The essential information is also
It may include the condition that participates in sweepstake and should have, participated in for example, participating in the user of prize drawing for member, in stipulated time section
Sweepstake etc..Also, a sweepstake can also include multiple tasks, when user completes a task, Ke Yican
With corresponding prize drawing.The corresponding prize of each task can be different.Preferably, sweepstake configuration data may include: activity
Task type information and active task quantity information.Wherein, active task type information may include participating in sweepstake needs
The information of the task of completion, for example, it is desired to complete collecting commodities, commodity add purchase, browsing pages etc. task.It lives in a prize drawing
When having multiple tasks in dynamic, the task type information of each task be may be the same or different.Active task quantity can refer to
The corresponding task quantity of same type active task can also refer to the corresponding task quantity of multiple types active task.
Prize configuration data may include the information of prize, for example, prize title, prize type, prize figure, prize
Winning probability etc..There can be multiple prize schemes in one sweepstake, can have multiple prizes, example in each prize scheme
Such as, it may include prize in prize scheme one: not getting the winning number in a bond, gift package, discount coupon, prize in kind, red packet etc..Therefore, Ke Yiyong
Prize scheme number identifies a prize scheme.Preferably, prize configuration data may include: prize type information and prize number
Measure information.Wherein, prize quantity information can refer to the quantity of the corresponding prize of same prize type, can also refer to all prize classes
The corresponding prize total quantity of type.In addition, same prize type can correspond to multiple prizes.
It obtains above-mentioned sweepstake configuration data and prize configuration data can use form template to obtain, pass through parsing
The information of each unit lattice in form template parses sweepstake configuration data and prize configuration data.It can also be from front end
The page obtains above-mentioned sweepstake configuration data and prize configuration data.The page for obtaining data is provided, so that operation maintenance personnel will
Data filling, the above-mentioned sweepstake configuration data of data acquisition and prize configuration data filled in by receiving operation maintenance personnel.
In step s 12, sweepstake scheme is established according to the sweepstake configuration data and generates sweepstake side
Reference Number, wherein the sweepstake scheme number is the unique identifying number of the sweepstake scheme.
In this illustrative embodiment, sweepstake scheme can establish according to sweepstake configuration data, and with prize drawing
Activity scheme number carrys out unique identification sweepstake scheme.One sweepstake scheme can also include various information, such as scheme
Title, time started, end time etc..It also, may include multiple tasks in sweepstake scheme, each task can be with table
Show a kind of prize scheme, may include multiple prizes in each prize scheme.Operation maintenance personnel can increase or delete prize drawing and live
Dynamic scheme can also carry out various operations to sweepstake scheme, for example, publication, modification etc..Operation maintenance personnel can also be set
The on-line time of sweepstake scheme, or the various information of modification sweepstake scheme, for example, Scenario Name, end time
Etc..
In step s 13, prize scheme is established according to the prize configuration data and generates prize scheme number respectively,
In, the prize scheme number is the unique identifying number of the prize scheme.
In this illustrative embodiment, prize scheme is established according to prize configuration data, wherein prize scheme number is prize
The unique identifying number of scheme, that is to say, that different prize schemes has different prize scheme numbers, any two prize scheme number
It cannot be identical.It can also include other prize configuration informations in prize scheme, for example, prize Scenario Name, prize scheme property
Etc..May include multiple prizes in each prize scheme, may include in prize configuration data prize title, prize type,
The information such as the winning probability of prize figure, prize quantity and prize.Likewise, operation maintenance personnel can also carry out prize scheme
Addition, deletion or other operations, for example, issuing, checking prize, editor, modification etc..Also, operation maintenance personnel is for prize
Multiple prizes in scheme can also be added, delete, modifying operation, for example, in a certain prize scheme, if prize A
Quantity be 0, i.e. prize A has been provided, then prize A can be revised as prize B by operation maintenance personnel.
It further, can be in response to believing the prize type information and prize quantity before establishing prize scheme
Breath one of is added, deletes, modifies or a variety of operations, updates the prize configuration information.
In step S14, according to the generation of the mapping relations of the sweepstake scheme number and the prize scheme number
Prize drawing model.
In this example embodiment, a prize scheme is included at least in sweepstake scheme, each prize scheme has
One sweepstake scheme is corresponding, that is to say, that sweepstake scheme number can correspond at least one prize scheme number, take out
It encourages activity scheme number plus prize scheme number can be with one sweepstake of unique identification.It is living according to the prize drawing of above-mentioned prize drawing model construction
It is dynamic, it can have a sweepstake scheme number, a prize scheme number, and include that sweepstake configuration data and prize are matched
Set data.After the corresponding relationship that sweepstake scheme number and prize scheme number has been determined, by prize configuration data and active configuration
Data and the corresponding relationship save in the database.
Further, if in sweepstake configuration data, when active task quantity is more than or equal to 2, according to activity
The mapping relations of multiple tasks and multiple prize scheme numbers in the corresponding sweepstake scheme of scheme number generate prize drawing model.?
That is including multiple active tasks, the corresponding prize scheme number of each active task in a sweepstake scheme, that is,
One sweepstake scheme number can correspond to multiple prize scheme numbers.
Fig. 2 diagrammatically illustrates the application scenarios schematic diagram of the prize drawing model construction of embodiment according to the present invention.
The front end page of sweepstake configuration data is by taking the page shown in Fig. 2 as an example, in this example embodiment, is transporting
When dimension personnel want one sweepstake of creation, sweepstake scheme is generated by improving sweepstake configuration data.It can be
In front end page, the essential information of sweepstake, active task type information, active task quantity information are supplemented to the page pair
Position is answered, to improve sweepstake configuration data.For example, sweepstake essential information include Scenario Name, the time started,
The information such as end time.And the unique identification program " activity scheme number " can be generated according to the sweepstake scheme.In Fig. 2
In, it include two active tasks in the sweepstake scheme, then two prize scheme numbers identify two active tasks respectively.So
User can be saved the prize drawing scheme of generation by " preservation " button afterwards, or by the Publish button by generation
Sweepstake scheme is issued, so that other users are checked and are participated in.It, can be by " adding in the activity scheme page
Adding prize scheme number " button creates the corresponding prize scheme of active task, and can check generated activity scheme number,
The information of prize scheme can be edited by click " edit scenario ", can be edited by click " editor's prize " button
Winnings information etc..After receiving the information in front end page, using received information as above-mentioned sweepstake configuration data with
And prize configuration data, and above-mentioned prize drawing model is combined, the data that can establish the corresponding sweepstake of the information are stored in number
According in library, so that user draws a lottery.
Fig. 3 diagrammatically illustrates the application scenarios schematic diagram of the prize drawing model construction of another embodiment according to the present invention.
In this illustrative embodiment, for the page page shown in Fig. 3 for configuring prize scheme, it can pass through a little
Hit " preservation ", the winnings information of configuration is saved, issued by " publication ", " addition prize ", or newly-built prize letter
Breath.In a prize scheme, prize scheme number is the identification information of one prize scheme of unique identification.In each prize scheme
There are multiple prizes, 5 kinds of prizes are contained in prize scheme shown in Fig. 3, the corresponding prize configuration data of every kind of prize includes prize
Whether category type, prize title default prize, official documents and correspondence and new/old user's winning probability, redirected link etc..Wherein, official documents and correspondence
It may include the description information of prize, redirected link may include the page that can be jumped to after clicking the prize, Huo Zheyong
Family has suffered the page that can be jumped to after the prize, and default prize may include defaulting granting when user draws some prize
Prize, new/old user's probability can indicate this in new user by probability and old user in the prize probability.And it can be with
Upper limit quantity is configured for prize, what prize 5 was daily in Fig. 3 can at most provide 100, and prize 5 is most during the sweepstake
1000 can mostly be provided.In this example, prize may include " not getting the winning number in a bond ", and when user draws and do not get the winning number in a bond, can be with
Provide default prize.The sum of winning probability of all prizes is 1.After having configured prize scheme on the page, it can receive match from the background
The data set, and it is corresponding with corresponding sweepstake scheme, it saves in the database.
Fig. 4 diagrammatically illustrates the flow chart of the sweepstake management method of embodiment according to the present invention.
Referring to shown in Fig. 4, the sweepstake management method of embodiment according to the present invention, comprising:
Step S41. response prize drawing request, obtains prize drawing data;Wherein, the prize drawing data include sweepstake scheme number
And prize scheme number;
Multiple check-nodes and each check-node of the step S42. acquisition for being verified to the prize drawing data
Verification sequence;
Step S43. generates checking process, and be based on the checking process pair according to the verification sequence of the check-node
The prize drawing data are verified;
Step S44. judges whether verification succeeds, and when verifying successfully according to the sweepstake scheme number and prize side
Reference Number returns to the winnings information.
Sweepstake management method shown in Fig. 4 may be implemented to verify prize drawing data, and return after verifying successfully
It returns winnings information and completes prize drawing, to be managed collectively to various sweepstakes.Different sweepstakes is only needed to adjust
The sequence of corresponding check-node or check-node, reduces the operation of developer, saves manpower, reduces realization and takes out
The prize activity required time, improve efficiency.
The realization details of each step shown in Fig. 4 is described in detail below:
In step S41, response prize drawing request obtains prize drawing data;Wherein, the prize drawing data include sweepstake side
Reference Number and prize scheme number.
In this example embodiment, after the completion of establishing sweepstake scheme, a prize drawing interface can be provided, so that user
It can participate in drawing a lottery.The prize drawing interface may include a prize drawing control and show information, wherein can be with after prize drawing control triggering
Obtain prize drawing data.It is described to show that information may include the information for prompting user's prize drawing rule and drawing manner, or
Show the information of prize.
Based on above-mentioned prize drawing interface, user can issue prize drawing request by triggering above-mentioned prize drawing control, receive
After the prize drawing request of user, the prize drawing request of user is responded, prize drawing data are obtained.That is, being obtained when user triggers prize drawing control
Prize drawing data.Wherein, prize drawing data include above-mentioned sweepstake scheme number and prize scheme number.
In step S42, obtains multiple check-nodes and each verification for being verified to the prize drawing data and save
The verification sequence of point.
In this example embodiment, carrying out verification to prize drawing data includes matching in prize drawing data to each sweepstake for including
It sets data and prize configuration data is verified, for example, verification prize scheme number, sweepstake scheme number, prize are got the winning number in a bond generally
Rate etc..Carrying out verification to prize drawing data further includes verifying in prize drawing data to the other information for including, for example, user uses
In the authentication information etc. that the account, device number, IP address and the user that participate in sweepstake upload.
Preferably, it gets after drawing a lottery data, the configuration information for including in available prize drawing data.The wherein configuration
Information may include sweepstake configuration data and prize configuration data, for example, sweepstake scheme number, Scenario Name, side
Case effective time, winnings information etc..Preferably, configuration information may include following any or multiple combination: prize drawing is lived
Dynamic scheme number, Scenario Name, scheme effective time, scheme state, prize scheme number, winnings information, winning probability.
Further, prize drawing parameter can also be obtained in the prize drawing request for responding user, the prize drawing parameter includes taking out
Encourage time, prize drawing number, user account, a variety of in device number.Wherein prize drawing parameter may include user for participating in prize drawing
Data used in activity, in addition to above-mentioned draw times, prize drawing number, user account, other than device number, prize drawing parameter can be with
Including other data, for example, account, IP address, identifying code etc..
After getting above-mentioned prize drawing data, configuration information and prize drawing parameter, school can be needed according in the data got
The data tested determine its corresponding check-node, for example, according to the sweepstake scheme number and prize that need to verify in prize drawing data
Product scheme number determines activity identification number check-node;According to the verifying for the user account and user for needing to verify in prize drawing parameter
Information determines user identity check-node.It is of course also possible to other check-nodes determine according to actual needs, for example, prize is general
Rate check-node, sweepstake validity check node etc..
Further, after getting above-mentioned configuration information, each field for including in configuration information, root be can be parsed out
According to the information for the multiple fields for including in the configuration information, the corresponding check-node of each field is determined.For example, configuration information
For " sweepstake scheme number 123456abc prize red packet prize winning probability 20% effective time 2017.06.01 is extremely
2017.06.10 ", then the verification of sweepstake scheme number, winning probability verification, activity time verification, three verifications can be determined
Node.Whether activity scheme check-node verifies sweepstake scheme number correct, that is, whether includes configuration text in database
Sweepstake scheme number in part verifies failure if not including if verifying success comprising if.Winning probability verification can refer to school
Whether the winning probability for testing the red packet prize for including in the activity scheme number is consistent with the winning probability in configuration information, for example,
The sum of winning probability of prize in the sweepstake scheme number saved in database is 1, verifies prize in configuration information
Whether the sum of winning probability is 1, if being also 1, verifies success, if not 1, then verify failure.Activity time verification can school
Test movable time started in the sweepstake scheme number and activity end time whether with the effective time pair in configuration file
It answers.Likewise, other check-nodes can be in the data for the sweepstake that saved in calibration database and the prize drawing data of acquisition
Whether the data for including are consistent, and the check results of check-node are successfully, if the verification of inconsistent check-node if consistent
Failure.
After determining check-node, the verification of check-node sequence can according in prize drawing data each check-node it is suitable
Sequence determines, can also be specified by operation maintenance personnel.
In step S43, according to the verification of check-node sequence, checking process is generated, and flow based on the verification
Journey verifies the prize drawing data.
In this example embodiment, it is determined that, can according to the verification of check-node sequence after the verification sequence of check-node
To generate checking process, and prize drawing data are verified based on checking process.Preferably, it can use extensible markup language
The configuration file for generating the checking process verifies the prize drawing data based on the configuration file.Wherein, described to match
Set file may include by extensible markup language (Extensible Markup Language, referred to as xml) generate with
.xml the file of suffix configures the sequence of check-node in the xml document, generates complete checking process, should by executing
Configuration file can execute each node in process according to the process configured in the xml document, and each check-node passes through
Whether the data of the sweepstake saved in the data and database in verification prize drawing data are consistent, to complete to verify.
In addition, the prize drawing process further includes the verification for above-mentioned prize drawing parameter, the number for including in verification prize drawing parameter
According to whether consistent with the data of the sweepstake saved in database, if unanimously, verifying success, verified if inconsistent
Failure.For example, the data for including in prize drawing parameter are: " draw times 2017.06.05 prize drawing number 1 ", then being selected according to user
The sweepstake scheme number for the sweepstake selected inquires movable time started and end time in the sweepstake scheme number
It is respectively as follows: 2017.06.01,2017.06.10, then can determine that time check node verifies successfully, the sweepstake scheme
Prize drawing number in number is 10, then can be verified successfully with determined number check-node.
Further, if receiving the instruction for adjusting the verification sequence of each check-node, school is updated according to the instruction
Test process.For example, checking process are as follows: node A, node B, node C are analyzed the instruction after the instruction for receiving adjustment verification sequence
In include information are as follows: " node C is adjusted to first node ", then the checking process updated are as follows: node C, node A, section
Point B.
Further, it can also include the operation of response increase node before being verified to prize drawing data, obtain
Check-node to be increased updates the checking process according to the check-node to be increased.Wherein it is possible to increase by one
Node control issues the request for increasing node when the control is triggered, and response increases the request of node, obtains to be increased
Check-node, and check-node to be increased is added in checking process.And check-node to be increased can also be obtained
The check-node to be increased is added on the corresponding position of checking process according to verification sequence for verification sequence.
In step S44, judge whether verification succeeds, and when verifying successfully according to the sweepstake scheme number and prize
Product scheme number returns to prize information.
In this example embodiment, judging whether verification is successful can be by judging whether check-node all runs succeeded
Judge, if all check-nodes are carried out success, can determine and verify successfully, if wherein there is a verification section
Point verification failure, then verification failure can be determined.If it is determined that after verifying successfully, according to sweepstake scheme number and prize side
Reference Number returns to prize information.Wherein, prize information may include user in prize, also may include that prize gets mode
Prompt information.Certainly, prize information can also include other information, for example, the official documents and correspondence information etc. of the pattern of prize, prize.
Further, step S44 may include step S441 to step S443.As shown in Figure 5, in which:
Step S441. successively verifies each check-node according to the verification sequence of the check-node, and
Judge whether verification succeeds;
Fail if step S442. verifies any check-node, stops the check-node of verification and back-checking failure
Information;
If step S443. verifies successfully any check-node, continue to verify latter check-node.
In this example embodiment, each check-node is successively executed according to the sequence of check-node, is first carried out first
A check-node, and judge whether the check-node succeeds, second check-node is executed if verifying successfully, and judging should
Whether check-node succeeds, and executes third check-node if success, and so on, until executing the last one verification
Node, and determine that the last one check-node runs succeeded, it is verified successfully then can determine, if wherein any one school
Node verification failure is tested, then stops verifying, and the information of the check-node of back-checking failure.
Exemplary media
After describing the method for exemplary embodiment of the invention, next, to exemplary embodiment of the invention
Medium be illustrated.
In some possible embodiments, various aspects of the invention are also implemented as a kind of medium, store thereon
There is program code, it is above-mentioned " illustrative methods " for realizing this specification when said program code is executed by the processor of equipment
Described in part according to the present invention the prize drawing model building method of various illustrative embodiments the step of.
Specifically, for realizing following steps when the processor of the equipment executes said program code: obtaining take out respectively
Encourage active configuration data and prize configuration data;Sweepstake scheme is established according to the sweepstake configuration data and generates pumping
Encourage activity scheme number, wherein the sweepstake scheme number is the unique identifying number of the sweepstake scheme;According to the prize
Product configuration data establishes prize scheme and generates prize scheme number, wherein the prize scheme number be the prize scheme only
One identification number;The prize drawing model is generated according to the mapping relations of the sweepstake scheme and the prize scheme.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: the sweepstake configuration data includes: active task type information and active task quantity information.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: the prize configuration data includes: prize type information and prize quantity information.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: when the active task quantity is greater than or equal to 2, according to sweepstake corresponding to the sweepstake scheme number
The mapping relations of multiple active tasks and multiple prize scheme numbers generate the prize drawing model in scheme.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: one of the addition to the prize type information and prize quantity information progress, deletion, modification are received
Or when a variety of operations, the prize configuration information is updated according to the operation.
In some possible embodiments, various aspects of the invention are also implemented as a kind of medium, store thereon
There is program code, it is above-mentioned " illustrative methods " for realizing this specification when said program code is executed by the processor of equipment
Step in the sweepstake management method of various illustrative embodiments according to the present invention described in part.
Specifically, for realizing following steps when the processor of the equipment executes said program code:
Response prize drawing request, obtains prize drawing data;Wherein, the prize drawing data include sweepstake scheme number and prize side
Reference Number;Obtain the verification sequence of the multiple check-nodes and each check-node for being verified to the prize drawing data;Root
According to the verification sequence of the check-node, checking process is generated, and school is carried out to the prize drawing data based on the checking process
It tests;Judge whether verification succeeds, and when verifying successfully according to the sweepstake scheme number and the return of prize scheme number
Winnings information.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: according to the verification of check-node sequence, successively verifying each check-node, and judges that verification is
No success;Fail if being verified to any check-node, stops the information of the check-node of verification and back-checking failure;If right
Any check-node verifies successfully, then continues to verify latter check-node.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: if receiving the instruction for adjusting the verification sequence of each check-node, the school is updated according to described instruction
Test process.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: response increases the request of node, obtains check-node to be increased;Institute is updated according to the check-node to be increased
State checking process.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: generating the configuration file of the checking process using extensible markup language, based on the configuration file to the pumping
Prize data are verified.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: the configuration information that the prize drawing data include is obtained;The multiple of the prize drawing data are determined according to the configuration information
Check-node.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: according to the information for the multiple fields for including in the configuration information, the corresponding check-node of each field is determined.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: the configuration information includes following combination any one or more: sweepstake scheme number, Scenario Name, scheme are effective
Time, scheme state, prize scheme number, winnings information, winning probability.
In certain embodiments of the present invention, for realizing such as when the processor of the equipment executes said program code
Lower step: response prize drawing request obtains prize drawing parameter, wherein the prize drawing parameter includes draw times, prize drawing number, user
It is a variety of in account, device number;Based on the checking process, the prize drawing parameter is verified.
It should be understood that above-mentioned medium can be readable signal medium or readable storage medium storing program for executing.Readable storage medium
Matter can be for example but not limited to: electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or it is any
Above combination.The more specific example (non exhaustive list) of readable storage medium storing program for executing includes: to have one or more conducting wires
Electrical connection, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or
The above-mentioned any appropriate combination of person.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying
Readable program code.The data-signal of this propagation can take various forms, including but not limited to: electromagnetic signal, light letter
Number or above-mentioned any appropriate combination.Readable signal medium can also be any readable medium other than readable storage medium storing program for executing,
The readable medium can be sent, propagated or be transmitted for being used by instruction execution system, device or device or being tied with it
Close the program used.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to: wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake
Formula programming language-such as " C " language or similar programming language.Program code can be counted fully in user
It calculates and executes, partially partially executes on a remote computing on the user computing device or completely in remote computation in equipment
It is executed on equipment or server.In the situation for being related to remote computing device, remote computing device can pass through any kind
Network --- it is connected to user calculating equipment including local area network (LAN) or wide area network (WAN)-, or, it may be connected to outside meter
It calculates equipment (such as being connected using ISP by internet).
Exemplary means
After describing the medium of exemplary embodiment of the invention, next, with reference to Fig. 6 to the exemplary reality of the present invention
The prize drawing model construction device for applying mode is illustrated.And with reference to figure X to the sweepstake pipe of exemplary embodiment of the invention
Reason device is illustrated.
Fig. 6 schematically shows the block diagram of the prize drawing model construction device of embodiment according to the present invention.
Fig. 7 schematically shows the block diagram of the sweepstake managing device of embodiment according to the present invention.
Refering to what is shown in Fig. 6, the prize drawing model construction device 60 of embodiment according to the present invention, comprising: data acquisition list
First 61, active configuration unit 62, prize configuration unit 63, model construction unit 64.
Specifically, data capture unit 61, for obtaining sweepstake configuration data and prize configuration data respectively;Activity
Configuration unit 62, for establishing sweepstake scheme according to the sweepstake configuration data and generating sweepstake scheme number,
Wherein, the sweepstake scheme number is the unique identifying number of the sweepstake scheme;Prize configuration unit 63 is used for basis
The prize configuration data establishes prize scheme and generates prize scheme number, wherein the prize scheme number is the prize side
The unique identifying number of case;Model construction unit 64, for reflecting according to the sweepstake scheme number and the prize scheme number
It penetrates relationship and generates the prize drawing model.
In some embodiments of the invention, the sweepstake configuration data includes: active task type information and work
Dynamic task quantity information.
In some embodiments of the invention, the prize configuration data includes: that prize type information and prize quantity are believed
Breath.
In some embodiments of the invention, when the active task quantity is greater than or equal to 2, the model construction list
Member 64 is used for: according to multiple active tasks in sweepstake scheme corresponding to the sweepstake scheme number and multiple prizes
The mapping relations of product scheme number generate the prize drawing model.
In some embodiments of the invention, the prize drawing model construction device 60 further include: prize modifies unit 601,
When for receiving one of the addition to winnings information progress, deletion, modification or a variety of operations, according to the operation
Update the prize configuration information.
Refering to what is shown in Fig. 7, the sweepstake managing device 70 of embodiment according to the present invention, comprising: prize drawing data obtain
Take unit 71, check-node acquiring unit 72, verification unit 73, prize acquiring unit 74.
Specifically, prize drawing data capture unit 71, for responding prize drawing request, acquisition prize drawing data;Wherein, the prize drawing
Data include sweepstake scheme number and prize scheme number;Check-node acquiring unit 72, for obtaining for the prize drawing
The verification sequence for the multiple check-nodes and each check-node that data are verified;Verification unit 73, for according to the school
The verification sequence for testing node is generated checking process, and is verified based on the checking process to the prize drawing data;Prize obtains
Unit 74 is taken, for judging whether verification succeeds, and when verifying successfully according to the sweepstake scheme number and prize scheme
Number return to the winnings information.
In some embodiments of the invention, the prize acquiring unit 74 further include: verification control unit 701 is used for
According to the verification of check-node sequence, successively each check-node is verified, and judges whether verification succeeds;
Fail if being verified to any check-node, stops the information of the check-node of verification and back-checking failure;If to any school
It tests node to verify successfully, then continues to verify latter check-node.
In some embodiments of the invention, the sweepstake managing device 70 further include: check-node adjustment unit
702, for updating the school according to described instruction when receiving the instruction for adjusting the verification sequence of each check-node
Test process.
In some embodiments of the invention, the sweepstake managing device 70 further include: increase node unit 703,
For responding the request for increasing node, check-node to be increased is obtained;Checking process unit 704 is updated, for according to
Check-node to be increased updates the checking process.
In some embodiments of the invention, the verification unit 73 is used for: using described in extensible markup language generation
The configuration file of checking process verifies the prize drawing data based on the configuration file.
In some embodiments of the invention, the check-node acquiring unit 72 is used for: obtaining the prize drawing data packet
The configuration information contained;Multiple check-nodes of the prize drawing data are determined according to the configuration information.
In some embodiments of the invention, the check-node acquiring unit 72 is used for: according in the configuration information
The information for the multiple fields for including determines the corresponding check-node of each field.
In some embodiments of the invention, the configuration information includes following combination any one or more: sweepstake
Scheme number, Scenario Name, scheme effective time, scheme state, prize scheme number, winnings information, winning probability.
In some embodiments of the invention, the verification unit 73 further include: prize drawing parameter acquiring unit 705 is used for
Response prize drawing request, obtains prize drawing parameter, wherein the prize drawing parameter includes draw times, prize drawing number, user account, sets
It is a variety of in standby number;Subelement 706 is verified, for being based on the checking process, the prize drawing parameter is verified.
Exemplary computer device
After method, medium and the device for describing exemplary embodiment of the invention, next, introducing according to this hair
The calculating equipment of bright another exemplary embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
In some possible embodiments, the calculating equipment of embodiment can include at least at least one according to the present invention
A processor and at least one processor.Wherein, the memory is stored with program code, when said program code is by institute
When stating processor execution, so that the processor executes described in above-mentioned " illustrative methods " part of this specification according to this hair
Step in the prize drawing model building method and sweepstake management method of bright various illustrative embodiments.For example, the place
Reason device can execute step S11. as shown in fig. 1 and obtain sweepstake configuration data and prize configuration data respectively;Step
S12. sweepstake scheme is established according to the sweepstake configuration data and generates sweepstake scheme number, wherein the pumping
Encourage the unique identifying number that activity scheme number is the sweepstake scheme;Step S13. is established according to the prize configuration data and is encouraged
Product scheme simultaneously generates prize scheme number respectively, wherein the prize scheme number is the unique identifying number of the prize scheme;Step
S14. the prize drawing model is generated according to the mapping relations of the sweepstake scheme number and the prize scheme number.For another example, institute
Step as shown in Figure 4 can also be executed by stating processor.
It should be noted that although being referred to prize drawing model construction device and sweepstake managing device in the above detailed description
Several unit or sub-units, but it is this division be only exemplary, be not enforceable.In fact, according to this hair
The feature and function of bright embodiment, two or more above-described modules or unit can be in a module or unit
It embodies.Conversely, an above-described module or the feature and function of unit can be with further division by multiple modules or
Unit embodies.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or
Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired
As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one
Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this
Invention is not limited to invented specific embodiment, does not also mean that the feature in these aspects cannot to the division of various aspects
Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and
Included various modifications and equivalent arrangements in range.