CN109034752B - Method of calibration, electronic equipment and the computer storage medium of active configuration time - Google Patents
Method of calibration, electronic equipment and the computer storage medium of active configuration time Download PDFInfo
- Publication number
- CN109034752B CN109034752B CN201810997371.XA CN201810997371A CN109034752B CN 109034752 B CN109034752 B CN 109034752B CN 201810997371 A CN201810997371 A CN 201810997371A CN 109034752 B CN109034752 B CN 109034752B
- Authority
- CN
- China
- Prior art keywords
- active configuration
- subinterval
- taking effect
- time
- effect rules
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0211—Determining the effectiveness of discounts or incentives
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Finance (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Tourism & Hospitality (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses method of calibration, electronic equipment and the computer storage mediums of a kind of active configuration time.Wherein method includes: to generate active configuration time interval according to the active configuration time;At least one the taking effect rules time for searching rule corresponding with activity, generate at least one taking effect rules time subinterval;Judge whether at least one taking effect rules time subinterval or combinations thereof is completely covered active configuration time interval, if so, active configuration time check success.Based on scheme provided by the invention, when active configuration time interval is completely covered at least one taking effect rules time subinterval or combinations thereof, it can determine and be configured with rule within the active configuration time, so as to guarantee after activity is online, it is corresponding preferential that activity can be enjoyed after user's activity, avoid be not configured because being configured with activity rule cause user can not enjoy activity it is corresponding preferential, cause poor user experience, so cause operation platform client measure be lost the problem of.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method of calibration of active configuration time, electronic equipment
And computer storage medium.
Background technique
Many operation platforms often attract user by movable mode, by giving use to raise the professional level
Certain preferential makes more users participate at family, and then promotes the turnover.Usually in configuration activities, activity is needed to configure
Corresponding rule can be online by activity after rule configuration is good, participates in user among activity.
Under normal conditions, activity is to be configured by different backstages from rule, for example, runing the personnel on backstage to configure work
Dynamic, the personnel for paying backstage carry out configuration rule, thus it is easy to appear due to linking up or other reasons and cause to prop up
The taking effect rules time and active configuration time for paying personnel not configuration rule or institute's configuration rule on backstage is not corresponding, leads
It applies after family takes part in activity, it is corresponding preferential to enjoy activity, causes poor user experience.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State method of calibration, electronic equipment and the computer storage medium of the active configuration time of problem.
According to an aspect of the invention, there is provided a kind of method of calibration of active configuration time, comprising:
According to the active configuration time, active configuration time interval is generated;Search at least one of rule corresponding with activity
The taking effect rules time generates at least one taking effect rules time subinterval;Judge at least one subinterval taking effect rules time or
Whether a combination thereof is completely covered active configuration time interval, if so, active configuration time check success.
According to another aspect of the present invention, a kind of electronic equipment/terminal/server is provided, comprising: processor, storage
Device, communication interface and communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute following operation for storing an at least executable instruction, executable instruction:
According to the active configuration time, active configuration time interval is generated;Search at least one of rule corresponding with activity
The taking effect rules time generates at least one taking effect rules time subinterval;Judge at least one subinterval taking effect rules time or
Whether a combination thereof is completely covered active configuration time interval, if so, active configuration time check success.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium
Executable instruction, executable instruction make processor execute following operation:
According to the active configuration time, active configuration time interval is generated;Search at least one of rule corresponding with activity
The taking effect rules time generates at least one taking effect rules time subinterval;Judge at least one subinterval taking effect rules time or
Whether a combination thereof is completely covered active configuration time interval, if so, active configuration time check success.
The scheme provided according to the present invention generates active configuration time interval according to the active configuration time;It searches and activity
At least one taking effect rules time of corresponding rule, generate at least one taking effect rules time subinterval;Judge at least one
Whether taking effect rules time subinterval or combinations thereof is completely covered active configuration time interval, if so, active configuration time school
Test success.Based on scheme provided by the invention, it can verify and whether all be configured with rule within the active configuration time, at least one
In the case that active configuration time interval is completely covered in subinterval of a taking effect rules time or combinations thereof, it can determine and match in activity
It sets and is configured with rule in the time, so as to guarantee that movable correspondence can be enjoyed after user's activity after activity is online
It is preferential, avoid be not configured because being configured with activity rule cause user can not enjoy activity it is corresponding preferential, cause user
It is poor to experience, and then the client of operation platform is caused to measure the problem of being lost.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the method for calibration of active configuration time according to an embodiment of the invention;
Fig. 2 shows the flow diagrams of the method for calibration of active configuration time in accordance with another embodiment of the present invention;
Fig. 3 shows the flow diagram of the method for calibration of the active configuration time of another embodiment according to the present invention;
Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
In practical applications, many operation platforms often attract use by movable mode to raise the professional level
Family makes more users participate, and then promotes the turnover by giving certain preferential of user.
Specifically, user can check understanding activity particular content, and participation activity by its user terminal, for example, logical
Cross activity verbal description and/or picture concerned understanding activity.Therefore, in configuration activities, the activity that needs to configure is identified, in activity
Appearance, active configuration time etc., wherein activity mark for example can be activity name, activity description be to movable specific introduction,
Family can be used by activity description and understand this movable specifying information, when the active configuration time refers to each movable lasting
Between, it is movable effective time, for example, the active configuration time is on August on August 15th, 10,2018, in the active configuration
In time, user's participation activity can enjoy activity it is corresponding preferential, after the active configuration time, user will be unable to participate in
It is corresponding preferential can not also to enjoy activity for activity.
Under normal conditions, activity is corresponding with rule, and an activity can correspond to a rule, can also correspond to multiple
Rule, only in the case where the activity that is configured with corresponding rule, activity can be effective, therefore, in order to avoid being configured with work
It moves and the problem that rule causes activity invalid is not configured, the present inventor provides the verification side of active configuration time a kind of
Method.
Fig. 1 shows the flow diagram of the method for calibration of active configuration time according to an embodiment of the invention.Such as
Shown in Fig. 1, method includes the following steps:
Step S100 generates active configuration time interval according to the active configuration time.
Wherein, the active configuration time is movable effective time, in configuration activities, when needing to configure movable effective
Between, for example, the active configuration time is on August on August 15th, 10,2018, then, get active configuration time, root
According to the active configuration time, active configuration time interval is generated, the active configuration time is indicated with range format, can be convenient to activity
Setup time is verified, and determines that the active configuration time is corresponding whether provided with rule.
Step S101 searches at least one taking effect rules time of rule corresponding with activity, generates at least one rule
Entry-into-force time subinterval.
Activity and rule are usually corresponding, and one or more rules can be set for an activity, and for one
One or more taking effect rules times may be arranged in rule.When rule is arranged, setting rule mark can be identified according to activity
Know, therefore, at least one can be generated according at least one taking effect rules time of movable identifier lookup rule corresponding with activity
Subinterval of a taking effect rules time.Subinterval in the present embodiment is for active configuration time interval.
Existing activity is returned for example, being configured with and supplementing with money, this can supplement with money according to movable identifier lookup and return the corresponding rule of existing activity,
At least one taking effect rules time for determining rule, for example, regular are as follows: supplement 100 yuan with money and return 5 yuan, supplement first 3 with money daily and return now
Deng the taking effect rules time are as follows: August August 15th -2018 years on the 10th in 2018 is merely illustrative of here, and activity is corresponding with activity
Rule, the taking effect rules time can be set according to actual needs.
Step S102, when judging whether at least one taking effect rules time subinterval or combinations thereof is completely covered active configuration
Between section;If so, thening follow the steps S103.
Here judge whether at least one taking effect rules time subinterval or combinations thereof is completely covered active configuration time zone
Between, it is in order to which whether determination is all configured with corresponding rule within the corresponding active configuration time, if at least one taking effect rules
Active configuration time interval can not be completely covered in time subinterval or combinations thereof, then explanation is not configured within the active configuration time
The period of rule, active configuration time check failure, activity can not be online;If at least one subinterval taking effect rules time or
Active configuration time interval is completely covered in a combination thereof, then the period of explanation configuration rule within the active configuration time, activity are matched
Time check success is set, can be online by activity, participate in user among activity.In the present embodiment, it is understood that there may be one
The case where active configuration time interval just can be completely covered in taking effect rules time subinterval, it is also possible to when there are multiple taking effect rules
Between subinterval combination the case where active configuration time interval can just be completely covered, subinterval or at least of any taking effect rules time
Active configuration time interval is completely covered in two taking effect rules time subintervals, then active configuration time check success
Step S103, active configuration time check success.
The method provided according to that above embodiment of the present invention generates active configuration time interval according to the active configuration time;
At least one the taking effect rules time for searching rule corresponding with activity, generate at least one taking effect rules time subinterval;Sentence
Whether at least one taking effect rules time subinterval or combinations thereof of breaking is completely covered active configuration time interval, if so, movable
Setup time verifies successfully.Based on scheme provided by the invention, it can verify and whether all be configured with rule within the active configuration time
It then, can be in the case where active configuration time interval is completely covered at least one taking effect rules time subinterval or combinations thereof
Determination is configured with rule within the active configuration time, can after user's activity so as to guarantee after activity is online
Enjoyment activity is corresponding preferential, avoid be not configured because being configured with activity rule cause user can not enjoy activity it is corresponding excellent
Favour causes poor user experience, and then the client of operation platform is caused to measure the problem of being lost.
Fig. 2 shows the flow diagrams of the method for calibration of active configuration time in accordance with another embodiment of the present invention.
As shown in Fig. 2, method includes the following steps:
Step S200 generates active configuration time interval according to the active configuration time.
The active configuration time is obtained, for example, on August on August 16th, 10,2018, by the active configuration time 2018
Is converted to corresponding UNIX timestamp on August on August 16th, 10, wherein the 00:00:00 conversion on the 10th of August in 2018
It is that be converted to UNIX timestamp be 1534435199 to the 23:59:59 on the 16th of August in 1533830400,2018 for UNIX timestamp, it is raw
At movable setup time section [1533830400,1534435199].Active configuration time interval is specially UNIX timestamp area
Between
UNIX timestamp is the number of seconds passed through since on January 1st, 1970 (midnight of UTC/GMT), wherein one small
When be expressed as UNIX timestamp format are as follows: 3600 seconds;Being expressed as within one day UNIX timestamp is 86400 seconds, therefore, be can be as accurate as
Second, guarantee the accuracy of verification.For the ease of citing description, be only here schematically illustrate active configuration time interval, for example,
Active configuration time interval is [1,8].
Step S201 searches at least one taking effect rules time of rule corresponding with activity, generates at least one rule
Entry-into-force time subinterval.
Activity and rule are usually corresponding, one or more rules can be set for an activity, in setting rule
When, setting rule mark can be identified according to activity, it therefore, can be according to movable identifier lookup rule corresponding with activity extremely
Few taking effect rules time, generate at least one taking effect rules time subinterval.Wherein, at least one taking effect rules chronon
Section is specially UNIX timestamp section.For example, at least one the taking effect rules time subinterval generated are as follows: [2,6], [Isosorbide-5-Nitrae],
[3,6], [3,7], [6,8], [2,4], [3,5] only schematically illustrate here.
Step S202, the sequence from small to large of the left end point according at least one taking effect rules time subinterval, to extremely
A few taking effect rules time subinterval is ranked up.
It, can be raw according at least one rule after generating at least one taking effect rules time subinterval according to step S201
The sequence from small to large for imitating the left end point in time subinterval, is ranked up at least one taking effect rules time subinterval, example
Such as, at least one taking effect rules time subinterval after sequence are as follows: [Isosorbide-5-Nitrae], [2,4], [2,6], [3,5], [3,6], [3,7],
[6,8]。
It, can be according to collating sequence, successively from row after being ranked up at least one taking effect rules time subinterval
Selection rule entry-into-force time subinterval at least one taking effect rules time subinterval after sequence, by the taking effect rules time of selection
The left end point in subinterval and the left end point of active configuration time interval, the right endpoint in the taking effect rules time subinterval of selection and work
Left end point, the right endpoint in dynamic setup time section are compared, according to the left end point in the taking effect rules time subinterval of selection with
The size relation of the left end point of active configuration time interval, and choose taking effect rules time subinterval right endpoint and activity
The size relation of the left end point in setup time section, right endpoint, to judge at least one subinterval or its group taking effect rules time
It closes and active configuration time interval whether is completely covered, and determine whether to carry out more active configuration time interval according to judging result
New processing.
Wherein, the size of the left end point of the left end point and active configuration time interval in the taking effect rules time subinterval of selection
Relationship, and the right endpoint in taking effect rules time subinterval and the left end point of active configuration time interval, the right endpoint chosen
Size relation determines whether the taking effect rules time subinterval of selection can cover left end point, the right side of active configuration time interval
Endpoint.
Specifically, if the left end point in the taking effect rules time subinterval chosen is less than or equal to active configuration time interval
Left end point, and the right endpoint in the taking effect rules time subinterval chosen is greater than or equal to the right endpoint of active configuration time interval,
The taking effect rules time subinterval then chosen can cover the left end point of active configuration time interval, right endpoint, at least one rule
Then entry-into-force time subinterval or combinations thereof completely covers active configuration time interval, active configuration time check success;
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval,
And the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, and matches greater than activity
The left end point for setting time interval, then the taking effect rules time subinterval chosen can cover the left end of active configuration time interval
Point, but the right endpoint of active configuration time interval cannot be covered, according to the right endpoint pair in the taking effect rules time subinterval of selection
The left end point of active configuration time interval is updated processing, and the left end point of active configuration time interval is updated to the rule chosen
The then right endpoint+1 in entry-into-force time subinterval continues to choose subinterval of next taking effect rules time, arrives last one until choosing
Subinterval of a taking effect rules time, if the left end point in the last one taking effect rules time subinterval is less than or equal to active configuration
Between section left end point and the last one taking effect rules time subinterval right endpoint be less than active configuration time interval the right side
Endpoint, and it is greater than the left end point of active configuration time interval, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is less than the left end point of active configuration time interval, and chooses
The right endpoint in taking effect rules time subinterval be less than the left end point of active configuration time interval, it is raw to continue to choose next rule
Time subinterval is imitated, subinterval of the last taking effect rules time is arrived until choosing, if the last one taking effect rules time sub-district
Between left end point be less than active configuration time interval left end point and the last one taking effect rules time subinterval right endpoint
Less than the left end point of active configuration time interval, active configuration time check failure.
If the left end point in the taking effect rules time subinterval chosen is greater than the left end point of active configuration time interval, activity
Setup time verification failure.
In the present embodiment, continue after choosing subinterval of next taking effect rules time, the rule of selection will be compared again
The right side of the left end point in entry-into-force time subinterval and the left end point of active configuration time interval, the taking effect rules time subinterval of selection
The size of the left end point of endpoint and active configuration time interval, right endpoint, different steps is executed according to different comparison results.
In order to more clearly describe active configuration time check process, carried out below with reference to step S203- step S210
Description will be since i=1 after being sorted according to step S202 at least one taking effect rules time subinterval, and selection rule is raw
Effect time subinterval verifies active configuration time interval:
Step S203, judges whether the left end point in i-th of taking effect rules time subinterval is greater than active configuration time interval
Left end point;If so, thening follow the steps S209;If it is not, then executing S204.
Judging whether at least one taking effect rules time subinterval or combinations thereof can be completely covered the active configuration time
When section, it is necessary first to judge whether the left end point in i-th of taking effect rules time subinterval is greater than active configuration time interval
Left end point can be true if the left end point in i-th of taking effect rules time subinterval is greater than the left end point of active configuration time interval
Fixed i-th of taking effect rules time subinterval cannot cover the left end point of active configuration time interval, then cannot also cover completely
Lid active configuration time interval;If the left end point in i-th of taking effect rules time subinterval is less than or equal to active configuration time zone
Between left end point, then can determine that i-th of taking effect rules time subinterval may cover the left end point of active configuration time interval,
Then continue to execute step S204.
Specifically, if judging, the left end point in i-th of taking effect rules time subinterval is greater than active configuration time interval
Left end point illustrates that active configuration time interval can not be completely covered in i-th of taking effect rules time subinterval, due to being according at least
The sequence from small to large of the left end point in one taking effect rules time subinterval, at least one taking effect rules time subinterval into
Row sequence, then the left end point in the taking effect rules time subinterval after i-th of taking effect rules time subinterval is all larger than or waits
Left end point in i-th of taking effect rules time subinterval, therefore, if the left end point in i-th of taking effect rules time subinterval is greater than
The left end point of active configuration time interval, then taking effect rules time subinterval after i-th of taking effect rules time subinterval
Left end point is also all larger than the left end point of active configuration time interval, it is possible thereby to determine, at least one taking effect rules time sub-district
Between or combinations thereof active configuration time interval can not be completely covered, and then can determine active configuration time check fail, activity
It cannot be online.
For example, the left end point of active configuration time interval is 5, the left end point of i-th of taking effect rules time interval is
6, the left end point of i-th of taking effect rules time interval is greater than the left end point of active configuration time interval, then active configuration time school
Test failure;Again for example, the left end point of active configuration time interval is 5, the left end point of i-th of taking effect rules time interval is
4 or 5, the left end point of i-th of taking effect rules time interval is less than or equal to the left end point of active configuration time interval, continues to hold
Row step S204.
Step S204, when judging whether the right endpoint in i-th of taking effect rules time subinterval is greater than or equal to active configuration
Between section right endpoint;If so, thening follow the steps S210;If it is not, thening follow the steps S205.
If judging, the left end point in i-th of taking effect rules time subinterval is less than or equal to a left side for active configuration time interval
Endpoint, in order to further determine that whether taking effect rules time subinterval can be completely covered active configuration time interval, also
Need to continue to judge whether the right endpoint in i-th of taking effect rules time subinterval is greater than or equal to the right side of active configuration time interval
Endpoint.
If the right endpoint in i-th of taking effect rules time subinterval is greater than or equal to the right endpoint of active configuration time interval,
The right endpoint that can then determine i-th of taking effect rules time subinterval covering active configuration time interval, then at least one is advised
Then active configuration time interval can be also completely covered in entry-into-force time subinterval, then active configuration time check success;If i-th
The right endpoint in subinterval of a taking effect rules time is less than the right endpoint of active configuration time interval, then continues to execute subsequent step.
Step S205, when judging whether the right endpoint in i-th of taking effect rules time subinterval is greater than or equal to active configuration
Between section left end point, if so, thening follow the steps S206;If it is not, thening follow the steps S207.
This step judges whether the right endpoint in i-th of taking effect rules time subinterval is greater than or equal to active configuration time zone
Between left end point be in order to determine whether to be updated processing to active configuration time interval, if i-th of taking effect rules chronon
The right endpoint in section is less than the left end point of active configuration time interval, then i-th of taking effect rules time subinterval does not cover
It is raw can to continue next rule it is therefore not necessary to be updated processing to active configuration time interval for active configuration time interval
Imitate the judgement in time subinterval;If the right endpoint in i-th of taking effect rules time subinterval is greater than or equal to active configuration time zone
Between left end point, then i-th of taking effect rules time subinterval covers piecemeal activity setup time section, then can be according to i-th
The right endpoint in subinterval of a taking effect rules time is updated processing to the left end point of active configuration time interval, and by i assignment
For i+1.
Step S206, according to the right endpoint in i-th of taking effect rules time subinterval to the left end of active configuration time interval
Point is updated processing, and i is assigned a value of i+1.
It is less than or equal to active configuration in the left end point for determining i-th of taking effect rules time subinterval according to above-mentioned steps
The left end point of time interval, the right endpoint in i-th of taking effect rules time subinterval are less than the right endpoint of active configuration time interval,
And the right endpoint in i-th of taking effect rules time subinterval be greater than or equal to active configuration time interval left end point when, according to i-th
The right endpoint in subinterval of a taking effect rules time is updated processing to the left end point of active configuration time interval, for example, movable
Setup time section is [1,8], and the 1st taking effect rules time subinterval is [Isosorbide-5-Nitrae], is determining the 1st taking effect rules chronon
In the case that section meets above-mentioned condition, according to the right endpoint 4 in the 1st taking effect rules time subinterval to active configuration time zone
Between left end point be updated processing, updating that treated, active configuration time interval is [5,8], and i is assigned a value of i+1.?
Processing is updated to the left end point of active configuration time interval in the present embodiment, convenient for utilizing subsequent taking effect rules chronon
Section verifies active configuration time interval.
I is assigned a value of i+1 by step S207.
It is less than active configuration time zone in the left end point for determining i-th of taking effect rules time subinterval according to above-mentioned steps
Between left end point, the right endpoint in i-th of taking effect rules time subinterval is less than the right endpoint of active configuration time interval, and i-th
When the right endpoint in subinterval of a taking effect rules time is less than the left end point of active configuration time interval, i is assigned a value of i+1.
Step S208, judges whether i is greater than n, if so, thening follow the steps S209;Step S203 is executed if it is not, then jumping.
Wherein, n is the last one taking effect rules time subinterval, judges whether i is greater than n, is to determine whether to utilize
Strictly all rules entry-into-force time subinterval verifies active configuration time interval, when i is greater than n, active configuration time check failure,
When i is less than or equal to n, then jump procedure S203.
Step S209, active configuration time check failure.
In the case where determining active configuration time check failure, illustrate not configuring corresponding rule for activity,
Then activity can not be online.
Step S210, active configuration time check success.
In the case where determining the successful situation of active configuration time check, illustrate then to live for the corresponding rule of active configuration
Moving can be online.
The verification of active configuration time can be specifically realized by following code:
Illustrate below with reference to example, active configuration time interval is [1,8], at least one taking effect rules time after sequence
Subinterval are as follows: [Isosorbide-5-Nitrae], [2,4], [2,6], [3,5], [3,6], [3,7], [6,8], active configuration time check process are as follows:
Since i=1, for the 1st taking effect rules time subinterval, executes step S203: judging the 1st taking effect rules
Whether the left end point in time subinterval [Isosorbide-5-Nitrae] is greater than the left end point of active configuration time interval [1,8], by comparing the determining 1st
The left end point in subinterval of a taking effect rules time [Isosorbide-5-Nitrae] is equal to the left end point of active configuration time interval [1,8], illustrates the 1st
Taking effect rules time subinterval covers the left end point of active configuration time interval, then executes step S204: judging the 1st rule
Then whether the right endpoint of entry-into-force time subinterval [Isosorbide-5-Nitrae] is greater than or equal to the right endpoint of active configuration time interval [1,8], passes through
Compare the right end for determining that the right endpoint of the 1st taking effect rules time subinterval [1,4] is less than active configuration time interval [1,8]
Point, thens follow the steps S206: according to the right endpoint of the 1st taking effect rules time subinterval [Isosorbide-5-Nitrae] to active configuration time interval
Left end point be updated processing, be updated to [5,8], i be assigned a value of i+1, at this time i=2, then execute step S208: judge i
Whether it is greater than n (wherein, the quantity that n is taking effect rules time subinterval), determines that i is less than n by judging, then for the 2nd rule
Then entry-into-force time subinterval continues with the method judgement in step S203- step S210.
When taking effect rules time subinterval is recycled to the 3rd taking effect rules time subinterval [2,6], step is utilized
Active configuration time interval can be updated to [7,8], then proceed to cycline rule and come into force by the method in S203- step S210
Time subinterval utilizes step when taking effect rules time subinterval is recycled to the 6th taking effect rules time subinterval [3,7]
Active configuration time interval can be updated to [8,8], then proceed to cycline rule and come into force by the method in S203- step S210
Time subinterval determines the 7th when taking effect rules time subinterval is recycled to the 7th taking effect rules time subinterval [6,8]
The right endpoint in taking effect rules time subinterval [6,8] be equal to the active configuration time right endpoint, then active configuration time check at
Function terminates verification, can be online by activity.
For another example active configuration time interval is [1,8], at least one taking effect rules time subinterval after sequence are as follows:
[2,4], [2,6], [3,5], [3,6], [3,7], [6,8], active configuration time check process:
Since i=1, for the 1st taking effect rules time subinterval, executes step S203: judging the 1st taking effect rules
Whether the left end point in time subinterval [2,4] is greater than the left end point of active configuration time interval [1,8], by comparing the determining 1st
The left end point in subinterval of a taking effect rules time [2,4] is greater than the left end point of active configuration time interval [1,8], illustrates the 1st
Taking effect rules time subinterval can not cover the left end point of active configuration time interval, then the 1st taking effect rules time subinterval
Active configuration time interval can not be completely covered;Due to be left end point according at least one taking effect rules time subinterval from
It is small to arrive big sequence, at least one taking effect rules time subinterval is ranked up, then taking effect rules time subinterval [2,
6], the left end point of [3,5], [3,6], [3,7], [6,8] be all larger than or equal to the 1st taking effect rules time subinterval left end
Point, therefore, taking effect rules time subinterval [2,6], [3,5], [3,6], [3,7], the left end point of [6,8] is also all larger than activity and matches
The left end point of time interval is set, it is possible thereby to determine, at least one taking effect rules time subinterval or combinations thereof can not be covered completely
Lid active configuration time interval, and then can determine that active configuration time check fails, activity cannot be online, without in basis
The verification of Else Rule entry-into-force time subinterval.
For another example active configuration time interval is [1,8], at least one taking effect rules time subinterval after sequence are as follows:
[Isosorbide-5-Nitrae], [6,8], active configuration time check process:
Since i=1, for the 1st taking effect rules time subinterval, executes step S203: judging the 1st taking effect rules
Whether the left end point in time subinterval [Isosorbide-5-Nitrae] is greater than the left end point of active configuration time interval [1,8], by comparing discovery the 1st
The left end point in subinterval of a taking effect rules time [Isosorbide-5-Nitrae] is equal to the left end point of active configuration time interval [1,8], illustrates the 1st
Taking effect rules time subinterval covers the left end point of active configuration time interval, then executes step S204: judging the 1st rule
Then whether the right endpoint of entry-into-force time subinterval [Isosorbide-5-Nitrae] is greater than or equal to the right endpoint of active configuration time interval [1,8], passes through
It was found that the right endpoint of the 1st taking effect rules time subinterval [1,4] is less than the right end of active configuration time interval [1,8]
Point, thens follow the steps S206: according to the right endpoint of the 1st taking effect rules time subinterval [Isosorbide-5-Nitrae] to active configuration time interval
Left end point be updated processing, be updated to [5,8], i be assigned a value of i+1;
Then i=2 at this time executes step S208: judge whether to be greater than n by i that (wherein, n is taking effect rules time subinterval
Number), n is less than by judgement discovery i, then is directed to the 2nd taking effect rules time subinterval, judges the 2nd taking effect rules time
Whether the left end point in subinterval [6,8] is greater than the left end point of active configuration time interval [5,8], by comparing the 2nd rule of discovery
Then the left end point of entry-into-force time subinterval [6,8] is greater than the left end point of active configuration time interval [5,8], illustrates the 2nd rule
Entry-into-force time subinterval can not cover the left end point of active configuration time interval, and the 2nd taking effect rules time subinterval can not be complete
All standing active configuration time interval, it is possible thereby to determine, at least one taking effect rules time subinterval or combinations thereof can not be complete
All standing active configuration time interval, active configuration time check failure, activity cannot be online.
For another example active configuration time interval is [1,8], at least one taking effect rules time subinterval after sequence are as follows:
[Isosorbide-5-Nitrae], [2,4], [6,8], active configuration time check process:
Since i=1, for the 1st taking effect rules time subinterval, executes step S203: judging the 1st taking effect rules
Whether the left end point in time subinterval [Isosorbide-5-Nitrae] is greater than the left end point of active configuration time interval [1,8], by comparing discovery the 1st
The left end point in subinterval of a taking effect rules time [Isosorbide-5-Nitrae] is equal to the left end point of active configuration time interval [1,8], illustrates the 1st
Taking effect rules time subinterval covers the left end point of active configuration time interval, then executes step S204: judging the 1st rule
Then whether the right endpoint of entry-into-force time subinterval [Isosorbide-5-Nitrae] is greater than or equal to the right endpoint of active configuration time interval [1,8], passes through
It was found that the right endpoint of the 1st taking effect rules time subinterval [1,4] is less than the right end of active configuration time interval [1,8]
Point, thens follow the steps S206: according to the right endpoint of the 1st taking effect rules time subinterval [Isosorbide-5-Nitrae] to active configuration time interval
Left end point be updated processing, be updated to [5,8], i be assigned a value of i+1;
Then i=2 at this time executes step S208: judge whether to be greater than n by i that (wherein, n is taking effect rules time subinterval
Number), n is less than by judgement discovery i, then is directed to the 2nd taking effect rules time subinterval, judges the 2nd taking effect rules time
Whether the left end point in subinterval [2,4] is greater than the left end point of active configuration time interval [5,8], by comparing the 2nd rule of discovery
Then the left end point of entry-into-force time subinterval [2,4] is less than the left end point of active configuration time interval [5,8], then executes step
S204: judge whether the right endpoint of the 2nd taking effect rules time subinterval [2,4] is greater than or equal to active configuration time interval
The right endpoint of [5,8], when by comparing finding that the right endpoint of the 2nd taking effect rules time subinterval [2,4] is less than active configuration
Between section [1,8] right endpoint, then execute step S205: judge the right endpoint of the 2nd taking effect rules time subinterval [2,4]
Whether it is greater than or equal to the left end point of active configuration time interval [5,8], determines the 2nd taking effect rules time sub-district by judging
Between [2,4] right endpoint be less than active configuration time interval [5,8] left end point, i is assigned a value of i+1;
Then i=3 at this time executes step S208: judge whether to be greater than n by i that (wherein, n is taking effect rules time subinterval
Number), n is less than by judgement discovery i, then is directed to the 3rd taking effect rules time subinterval, judges the 3rd taking effect rules time
Whether the left end point in subinterval [6,8] is greater than the left end point of active configuration time interval [5,8], by comparing the 3rd rule of discovery
Then the left end point of entry-into-force time subinterval [6,8] is greater than the left end point of active configuration time interval [5,8], illustrates the 3rd rule
Entry-into-force time subinterval can not cover the left end point of active configuration time interval, and the 3rd taking effect rules time subinterval can not be complete
All standing active configuration time interval, it is possible thereby to determine, at least one taking effect rules time subinterval or combinations thereof can not be complete
All standing active configuration time interval, active configuration time check failure, activity cannot be online.
The method provided according to that above embodiment of the present invention generates UNIX timestamp corresponding active configuration time and at least
The verification of active configuration time can be accurate to the second, improve the accuracy of verification by one taking effect rules time subinterval, be led to
It crosses and loops to determine whether taking effect rules time subinterval covers active configuration time interval, judgement ground accuracy is improved, extremely
In the case that active configuration time interval is completely covered in few taking effect rules time subinterval or combinations thereof, it can determine in work
It is configured with rule in dynamic setup time, so as to guarantee that activity can be enjoyed after user's activity after activity is online
It is corresponding preferential, avoid be not configured because being configured with activity rule cause user can not enjoy activity it is corresponding preferential, cause
Poor user experience, and then the client of operation platform is caused to measure the problem of being lost.
Fig. 3 shows the flow diagram of the method for calibration of the active configuration time of another embodiment according to the present invention.
As shown in figure 3, method includes the following steps:
Step S300 generates active configuration time interval according to the active configuration time.
Step S301 searches at least one taking effect rules time of rule corresponding with activity, generates at least one rule
Entry-into-force time subinterval.
Step S302, the sequence from small to large of the left end point according at least one taking effect rules time subinterval, to extremely
A few taking effect rules time subinterval is ranked up.
The step S200- step S202 class in step S300- step S302 and embodiment illustrated in fig. 2 in the present embodiment
Seemingly, it is no longer described in detail here.
After being ranked up at least one taking effect rules time subinterval, need from least one rule after sequence
The selection rule entry-into-force time, subinterval verified active configuration time interval in entry-into-force time subinterval, when in order to save verification
Between, every time from least one taking effect rules time subinterval after sequence when selection rule entry-into-force time subinterval, choose left
Endpoint is less than or equal to the left end point of active configuration time interval and right endpoint is greater than or equal to a left side for active configuration time interval
Right endpoint maximum taking effect rules time subinterval at least one taking effect rules time subinterval of endpoint, wherein right endpoint
Subinterval of maximum taking effect rules time can more cover active configuration time interval, to realize raw with least rule
Effect time subinterval is judged.
Taking effect rules time subinterval is arrived if choosing, according to the right endpoint in the taking effect rules time subinterval of selection and activity
Completely whether the size relation of the right endpoint in setup time section judge at least one taking effect rules time subinterval or combinations thereof
Active configuration time interval is covered, and is determined whether to be updated processing to active configuration time interval according to judging result, is had
Body, if the right endpoint in the taking effect rules time subinterval chosen is greater than or equal to the right endpoint of active configuration time interval,
At least one taking effect rules time subinterval or combinations thereof is completely covered active configuration time interval, active configuration time check at
Function;If the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, according to selection
The right endpoint in taking effect rules time subinterval processing is updated to the left end point of active configuration time interval, by active configuration
The left end point of time interval be updated to choose taking effect rules time subinterval right endpoint+1, execute choose left end point be less than or
Left end point and right endpoint equal to active configuration time interval are greater than or equal to the left end point of active configuration time interval at least
In one taking effect rules time subinterval the step of right endpoint maximum taking effect rules time subinterval.
If unselected get taking effect rules time subinterval, show unselected at least one taking effect rules time subinterval
Taking effect rules time subinterval active configuration time interval can not be completely covered, then active configuration time check fail.
In order to more clearly describe active configuration time check process, carried out below with reference to step S303- step S310
It describes, the checking procedure of the active configuration time in this implementation includes judging subprocess at least once, since j=1:
Step S303, be less than with the presence or absence of left end point at least one taking effect rules time subinterval after judging sequence or
Left end point and right endpoint equal to active configuration time interval are greater than or equal to the left end point of active configuration time interval at least
One jth taking effect rules time subinterval, if so, S304 is thened follow the steps, if it is not, thening follow the steps S309.
In the present embodiment, the mode that will no longer pass traversal rule entry-into-force time subinterval one by one judges at least one
Can taking effect rules time subinterval be completely covered the active configuration time, but be come with subinterval of least taking effect rules time true
Whether at least one fixed taking effect rules time subinterval can be completely covered active configuration time interval, therefore, judge every time
It in subprocess, needs to choose the taking effect rules time subinterval that can cover active configuration time interval, to realize with minimum
Taking effect rules time subinterval judged.
Specifically, judge in subprocess every time, at least one taking effect rules time sub-district after needing first to judge sequence
Between in the presence or absence of left end point be less than or equal to active configuration time interval left end point and right endpoint match more than or equal to activity
Set at least one jth taking effect rules time subinterval of the left end point of time interval, and if it exists, show at least one after sorting
In the presence of the taking effect rules time subinterval that can cover active configuration time subinterval in taking effect rules time subinterval, then continue
Execute subsequent step;If it does not exist, there is no can cover at least one taking effect rules time subinterval after showing sequence
The taking effect rules time subinterval in active configuration time subinterval, then active configuration time check fails, verification terminates.
Step S304, when determining the maximum taking effect rules of right endpoint from least one jth taking effect rules time subinterval
Between subinterval the jth taking effect rules time subinterval of subprocess time is judged as jth.
Step S305, judge jth time judge the right endpoint in the jth taking effect rules time subinterval of subprocess whether be greater than or
Equal to the right endpoint of active configuration time interval;If so, thening follow the steps S310;If it is not, then executing S306.
There are left end points to be less than or equal to activity at least one the taking effect rules time subinterval judged after sequence
The left end point and right endpoint in setup time section are greater than or equal at least one jth of the left end point of active configuration time interval
In the case where taking effect rules time subinterval, determine that right endpoint is maximum from least one jth taking effect rules time subinterval
Taking effect rules time subinterval judges the jth taking effect rules time subinterval of subprocess as jth time, wherein right endpoint is maximum
Taking effect rules time subinterval can more cover active configuration time interval, thus reduce verification needed for taking effect rules when
Between subinterval quantity.
After being determined that jth time judges the jth taking effect rules time subinterval of subprocess, it is also necessary to judge that jth time is sentenced
Whether the right endpoint in the jth taking effect rules time subinterval of disconnected subprocess is greater than or equal to the right end of active configuration time interval
Point, to determine that jth time judges whether the jth taking effect rules time subinterval of subprocess can be completely covered current active configuration
Time interval.
If jth time judges that the right endpoint in the jth taking effect rules time subinterval of subprocess is greater than or equal to active configuration
Between section right endpoint, then when can determine that jth time judge that the jth taking effect rules time subinterval of subprocess covers active configuration
Between section right endpoint, then jth time judges that the jth taking effect rules time subinterval of subprocess completely covers current activity
Active configuration time interval can be completely covered in setup time section, at least one taking effect rules time subinterval, then activity
Setup time verifies successfully;If jth time judges that the right endpoint in the jth taking effect rules time subinterval of subprocess is less than active configuration
The right endpoint of time interval, then jth time judges that the jth taking effect rules time subinterval of subprocess cannot cover the active configuration time
The right endpoint in section, then jth time judges that current activity cannot be completely covered in the jth taking effect rules time subinterval of subprocess
Setup time section, it is also necessary to judge that jth time judges whether the taking effect rules time subinterval of subprocess is the last one rule
Entry-into-force time subinterval determines the difference for executing step according to judging result.
Step S306 judges the right endpoint in the jth taking effect rules time subinterval of subprocess to active configuration according to jth time
The left end point of time interval is updated processing.
When judging that jth time judges the right endpoint in the jth taking effect rules time subinterval of subprocess less than active configuration
Between section right endpoint when, need time to be judged according to jth the right endpoint in the jth taking effect rules time subinterval of subprocess to activity
The left end point in setup time section is updated processing, for example, active configuration time interval is [5,8], jth time judges subprocess
Jth taking effect rules time subinterval be [3,7], then the jth taking effect rules time subinterval of subprocess time is judged according to jth
The right endpoint 7 of [3,7] is updated processing to the left end point of active configuration time interval, and update processing here is to match activity
Set time interval left end point be updated to jth time judge subprocess jth taking effect rules time subinterval right endpoint it is next
Numerical value, for example, updating treated active configuration time interval is [8,8].In the present embodiment to active configuration time interval
Left end point be updated processing, convenient for using subinterval of subsequent taking effect rules time verify active configuration time interval.
Step S307 judges that jth time judges whether the jth taking effect rules time subinterval of subprocess is the last one rule
Entry-into-force time subinterval;If so, thening follow the steps S309;If it is not, thening follow the steps S308.
Judge jth time judges whether the jth taking effect rules time subinterval of subprocess is the last one taking effect rules time
Subinterval is in order to determine whether to continue next judgement subprocess, if jth time judges the jth taking effect rules chronon of subprocess
Section is the last one taking effect rules time subinterval, then jth time judges that subprocess is that last time judges subprocess, by
It is less than active configuration time zone in the right endpoint for having determined that the secondary jth taking effect rules time subinterval for judging subprocess of jth
Between right endpoint, then active configuration time check fail;It is not if jth time judges the taking effect rules time subinterval of subprocess
J, then can be assigned a value of j+1 by the last one taking effect rules time subinterval, and continuation judges subprocess next time.
J is assigned a value of j+1 by step S308, and is jumped and executed step S303.
Step S309, active configuration time check failure.
In the case where determining active configuration time check failure, illustrate not configuring corresponding rule for activity,
Then activity can not be online.
Step S310, active configuration time check success.
In the case where determining the successful situation of active configuration time check, illustrate then to live for the corresponding rule of active configuration
Moving can be online.
Illustrate below with reference to example, active configuration time interval is [1,8], at least one taking effect rules time after sequence
Subinterval are as follows: [Isosorbide-5-Nitrae], [1,5], [2,4], [2,6], [3,5], [3,6], [3,7], [6,8], active configuration time check process
It is as follows:
Since j=1, subprocess is judged the 1st time: step S303: at least one taking effect rules time after judgement sequence
In subinterval with the presence or absence of left end point be less than or equal to active configuration time interval [1,8] left end point and right endpoint be greater than or
Equal at least one the 1st taking effect rules time subinterval of the left end point of active configuration time interval [1,8], determined by judgement
In the presence of, it is determined that going out at least one the 1st taking effect rules time subinterval is [Isosorbide-5-Nitrae], [1,5], executes step S304: from least one
Determine right endpoint maximum taking effect rules time subinterval as the 1st in subinterval of a 1st taking effect rules time [1,4], [1,5]
1st taking effect rules time subinterval of secondary judgement subprocess, wherein taking effect rules time subinterval [1,5] is confirmed as the 1st time
The 1st taking effect rules time subinterval for judging subprocess judges the 1st the 1st taking effect rules time subinterval for judging subprocess
Whether the right endpoint of [1,5] is greater than or equal to the right endpoint of active configuration time interval [1,8], is determined the 1st time and is sentenced by judgement
The right endpoint in the 1st taking effect rules time subinterval [1,5] of disconnected subprocess is less than the right end of active configuration time interval [1,8]
Point executes step S305: according to the right endpoint in the 1st taking effect rules time subinterval [1,5] for judging subprocess for the 1st time to activity
The left end point in setup time section [1,8] is updated processing, and updated active configuration time interval is [6,8], executes step
Rapid S306: whether the 1st taking effect rules time subinterval [1,5] for judging that the 1st time judges subprocess is the last one taking effect rules
Time subinterval is not to execute step S307: j being assigned a value of j+1, the 2nd time is then proceeded to and judges subprocess.
Judge subprocess 2nd time: step S303: at least one taking effect rules time subinterval after judging sequence whether
It is less than or equal to the left end point of active configuration time interval [6,8] there are left end point and right endpoint is greater than or equal to active configuration
At least one the 2nd taking effect rules time subinterval of the left end point of time interval [6,8] determines exist by judgement, it is determined that
At least one the 2nd taking effect rules time subinterval is [2,6], [3,6], [3,7], [6,8] out, executes step S304: from least
One the 2nd taking effect rules time subinterval [2,6], [3,6], [3,7], when determining the maximum taking effect rules of right endpoint in [6,8]
Between subinterval the 2nd taking effect rules time subinterval of subprocess is judged as the 2nd time, wherein the taking effect rules time subinterval [6,
8] it is confirmed as the 2nd the 2nd taking effect rules time subinterval for judging subprocess, judges the 2nd the 2nd rule for judging subprocess
Whether the right endpoint in entry-into-force time subinterval [6,8] is greater than or equal to the right endpoint of active configuration time interval [6,8], by sentencing
Break determination the 2nd time and judges that the right endpoint in the 2nd taking effect rules time subinterval [6,8] of subprocess is equal to active configuration time interval
The right endpoint of [6,8], it is possible thereby to determine, when active configuration is completely covered in the combination at least one taking effect rules time subinterval
Between section, then active configuration time check success, verification terminates, can will activity it is online.
For another example active configuration time interval is [5,8], at least one taking effect rules time subinterval after sequence are as follows:
[Isosorbide-5-Nitrae], [2,4], [6,8], active configuration time check process:
Since j=1, subprocess is judged the 1st time: step S303: at least one taking effect rules time after judgement sequence
In subinterval with the presence or absence of left end point be less than or equal to active configuration time interval [1,8] left end point and right endpoint be greater than or
Equal at least one the 1st taking effect rules time subinterval of the left end point of active configuration time interval [1,8], determined by judgement
It is not present, it is possible thereby to determine, when active configuration can not be completely covered at least one taking effect rules time subinterval or combinations thereof
Between section, then active configuration time check fail.
For another example active configuration time interval is [1,8], at least one taking effect rules time subinterval after sequence are as follows:
[1,5], [2,4], [2,5], [7,8], active configuration time check process:
Since j=1, subprocess is judged the 1st time: step S303: at least one taking effect rules time after judgement sequence
In subinterval with the presence or absence of left end point be less than or equal to active configuration time interval [1,8] left end point and right endpoint be greater than or
Equal at least one the 1st taking effect rules time subinterval of the left end point of active configuration time interval [1,8], determined by judgement
In the presence of, it is determined that going out at least one the 1st taking effect rules time subinterval is [1,5], executes step S304: due to only having a rule
Taking effect rules time subinterval [1,5] is therefore judged that the 1st rule of subprocess is raw as the 1st time by then entry-into-force time subinterval
Time subinterval is imitated, judges to judge whether the right endpoint in the 1st taking effect rules time subinterval [1,5] of subprocess is greater than the 1st time
Or it is equal to the right endpoint of active configuration time interval [1,8], the 1st the 1st taking effect rules for judging subprocess are determined by judgement
The right endpoint in time subinterval [1,5] is less than the right endpoint of active configuration time interval [1,8], executes step S305: according to the 1st
Left end of the right endpoint in the 1st taking effect rules time subinterval [1,5] of secondary judgement subprocess to active configuration time interval [1,8]
Point is updated processing, and updated active configuration time interval is [6,8], executes step S306: judging to judge sub- mistake the 1st time
Whether the 1st taking effect rules time subinterval [1,5] of journey is the last one taking effect rules time subinterval, is not, executes step
S307: being assigned a value of j+1 for j, then proceedes to the 2nd time and judges subprocess.
Judge subprocess 2nd time: step S303: at least one taking effect rules time subinterval after judging sequence whether
It is less than or equal to the left end point of active configuration time interval [6,8] there are left end point and right endpoint is greater than or equal to active configuration
At least one the 2nd taking effect rules time subinterval of the left end point of time interval [6,8], by judging that determination is not present, thus
It was determined that active configuration time interval can not be completely covered at least one taking effect rules time subinterval or combinations thereof, then live
Dynamic setup time verification failure.
The method provided according to that above embodiment of the present invention generates UNIX timestamp corresponding active configuration time and at least
The verification of active configuration time can be accurate to the second, improve the accuracy of verification by one taking effect rules time subinterval, be led to
The verification mode of minimum step is crossed, promotion can verify speed, the time required to saving verification, at least one taking effect rules chronon
In the case that active configuration time interval is completely covered in section, it can determine and be configured with rule within the active configuration time, from
And can guarantee activity it is online after, can be enjoyed after user's activity activity it is corresponding preferential, avoid because being configured with work
It is dynamic and rule is not configured to cause user that can not enjoy activity corresponding preferential, poor user experience is caused, and then lead to operation platform
Client measure be lost the problem of.
The embodiment of the present application also provides a kind of nonvolatile computer storage media, computer storage medium be stored with to
The school of the active configuration time in above-mentioned any means embodiment can be performed in a few executable instruction, the computer executable instructions
Proved recipe method.
Executable instruction specifically can be used for so that processor executes following operation:
According to the active configuration time, active configuration time interval is generated;Search at least one of rule corresponding with activity
The taking effect rules time generates at least one taking effect rules time subinterval;Judge at least one subinterval taking effect rules time or
Whether a combination thereof is completely covered active configuration time interval, if so, active configuration time check success.
In a kind of optional embodiment, executable instruction also makes processor execute following operation: according at least one
The sequence from small to large of the left end point in taking effect rules time subinterval arranges at least one taking effect rules time subinterval
Sequence.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: successively from row
Selection rule entry-into-force time subinterval at least one taking effect rules time subinterval after sequence, when according to the taking effect rules of selection
Between subinterval left end point and active configuration time interval left end point size relation, and choose taking effect rules chronon
The right endpoint in section and the left end point of active configuration time interval, the size relation of right endpoint, judge at least one taking effect rules
Whether time subinterval or combinations thereof is completely covered active configuration time interval, and determines whether to match activity according to judging result
It sets time interval and is updated processing.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if choose
The left end point in taking effect rules time subinterval is less than or equal to the left end point of active configuration time interval, and the taking effect rules chosen
The right endpoint in time subinterval is greater than or equal to the right endpoint of active configuration time interval, then at least one taking effect rules chronon
Active configuration time interval, active configuration time check success is completely covered in section or combinations thereof;
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval,
And the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, and matches greater than activity
The left end point of time interval is set, then according to the right endpoint in the taking effect rules time subinterval of selection to active configuration time interval
Left end point is updated processing, continues to choose subinterval of next taking effect rules time, until choosing raw to a last rule
Imitate time subinterval, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is less than the left end point of active configuration time interval, and chooses
The right endpoint in taking effect rules time subinterval be less than the left end point of active configuration time interval, it is raw to continue to choose next rule
Time subinterval is imitated, arrives subinterval of the last taking effect rules time until choosing, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is greater than the left end point of active configuration time interval, activity
Setup time verification failure.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: every time from row
In at least one taking effect rules time subinterval after sequence when selection rule entry-into-force time subinterval, chooses left end point and be less than or wait
It is greater than or equal at least the one of the left end point of active configuration time interval in the left end point and right endpoint of active configuration time interval
Right endpoint maximum taking effect rules time subinterval in subinterval of a taking effect rules time;
Taking effect rules time subinterval is arrived if choosing, according to the right endpoint in the taking effect rules time subinterval of selection and activity
Completely whether the size relation of the right endpoint in setup time section judge at least one taking effect rules time subinterval or combinations thereof
Active configuration time interval is covered, and is determined whether to be updated processing to active configuration time interval according to judging result;
If unselected get taking effect rules time subinterval, active configuration time check failure.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if choose
The right endpoint in taking effect rules time subinterval is greater than or equal to the right endpoint of active configuration time interval, then at least one rule is raw
Active configuration time interval, active configuration time check success is completely covered in effect time subinterval or combinations thereof;
If the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, basis
The right endpoint in the taking effect rules time subinterval of selection is updated processing to the left end point of active configuration time interval, executes choosing
The left end point and right endpoint for taking left end point to be less than or equal to active configuration time interval are more than or equal to active configuration time interval
Left end point at least one taking effect rules time subinterval in right endpoint maximum taking effect rules time subinterval.
In a kind of optional embodiment, active configuration time interval and at least one taking effect rules time subinterval tool
Body is UNIX timestamp section.
Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention, the specific embodiment of the invention
The specific implementation of electronic equipment is not limited.
As shown in figure 4, the electronic equipment may include: processor (processor) 402, communication interface
(Communications Interface) 404, memory (memory) 406 and communication bus 408.
Wherein:
Processor 402, communication interface 404 and memory 406 complete mutual communication by communication bus 408.
Communication interface 404, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 402, for executing program 410, the method for calibration that can specifically execute the above-mentioned active configuration time is implemented
Correlation step in example.
Specifically, program 410 may include program code, which includes computer operation instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 406, for storing program 410.Memory 406 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 410 specifically can be used for so that processor 402 executes following operation: according to the active configuration time, generating and lives
Dynamic setup time section;At least one the taking effect rules time for searching rule corresponding with activity, it is raw to generate at least one rule
Imitate time subinterval;Judge whether at least one taking effect rules time subinterval or combinations thereof is completely covered active configuration time zone
Between, if so, active configuration time check success.
In a kind of optional embodiment, program 410 also makes processor 402 execute following operation: according at least one
The sequence from small to large of the left end point in taking effect rules time subinterval arranges at least one taking effect rules time subinterval
Sequence.
In a kind of optional embodiment, program 410 further makes processor 402 execute following operation: successively from row
Selection rule entry-into-force time subinterval at least one taking effect rules time subinterval after sequence, when according to the taking effect rules of selection
Between subinterval left end point and active configuration time interval left end point size relation, and choose taking effect rules chronon
The right endpoint in section and the left end point of active configuration time interval, the size relation of right endpoint, judge at least one taking effect rules
Whether time subinterval or combinations thereof is completely covered active configuration time interval, and determines whether to match activity according to judging result
It sets time interval and is updated processing.
In a kind of optional embodiment, program 410 further makes processor 402 execute following operation: if choose
The left end point in taking effect rules time subinterval is less than or equal to the left end point of active configuration time interval, and the taking effect rules chosen
The right endpoint in time subinterval is greater than or equal to the right endpoint of active configuration time interval, then at least one taking effect rules chronon
Active configuration time interval, active configuration time check success is completely covered in section or combinations thereof;
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval,
And the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, and matches greater than activity
The left end point of time interval is set, then according to the right endpoint in the taking effect rules time subinterval of selection to active configuration time interval
Left end point is updated processing, continues to choose subinterval of next taking effect rules time, until choosing raw to a last rule
Imitate time subinterval, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is less than the left end point of active configuration time interval, and chooses
The right endpoint in taking effect rules time subinterval be less than the left end point of active configuration time interval, it is raw to continue to choose next rule
Time subinterval is imitated, arrives subinterval of the last taking effect rules time until choosing, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is greater than the left end point of active configuration time interval, activity
Setup time verification failure.
In a kind of optional embodiment, program 410 further makes processor 402 execute following operation: every time from row
In at least one taking effect rules time subinterval after sequence when selection rule entry-into-force time subinterval, chooses left end point and be less than or wait
It is greater than or equal at least the one of the left end point of active configuration time interval in the left end point and right endpoint of active configuration time interval
Right endpoint maximum taking effect rules time subinterval in subinterval of a taking effect rules time;
Taking effect rules time subinterval is arrived if choosing, according to the right endpoint in the taking effect rules time subinterval of selection and activity
Completely whether the size relation of the right endpoint in setup time section judge at least one taking effect rules time subinterval or combinations thereof
Active configuration time interval is covered, and is determined whether to be updated processing to active configuration time interval according to judging result;
If unselected get taking effect rules time subinterval, active configuration time check failure.
In a kind of optional embodiment, program 410 further makes processor 402 execute following operation: if choose
The right endpoint in taking effect rules time subinterval is greater than or equal to the right endpoint of active configuration time interval, then at least one rule is raw
Active configuration time interval, active configuration time check success is completely covered in effect time subinterval or combinations thereof;
If the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, basis
The right endpoint in the taking effect rules time subinterval of selection is updated processing to the left end point of active configuration time interval, executes choosing
The left end point and right endpoint for taking left end point to be less than or equal to active configuration time interval are more than or equal to active configuration time interval
Left end point at least one taking effect rules time subinterval in right endpoint maximum taking effect rules time subinterval.
In a kind of optional embodiment, active configuration time interval and at least one taking effect rules time subinterval tool
Body is UNIX timestamp section.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.
Claims (15)
1. a kind of method of calibration of active configuration time, comprising:
According to the active configuration time, active configuration time interval is generated;
At least one the taking effect rules time for searching rule corresponding with activity, generate at least one taking effect rules time sub-district
Between;
Judge whether at least one described taking effect rules time subinterval or combinations thereof is completely covered the active configuration time zone
Between, if so, active configuration time check success;
Wherein, after described at least one taking effect rules time subinterval of generation, which comprises according to it is described at least one
The sequence from small to large of the left end point in taking effect rules time subinterval, at least one subinterval taking effect rules time into
Row sequence;
It is described to judge whether at least one taking effect rules time subinterval or combinations thereof is completely covered the active configuration time zone
Between further comprise: the selection rule entry-into-force time subinterval from least one taking effect rules time subinterval after sequence every time
When, when choosing the left end point that left end point is less than or equal to active configuration time interval and right endpoint more than or equal to active configuration
Between section left end point at least one taking effect rules time subinterval in right endpoint maximum taking effect rules time subinterval;If
Taking effect rules time subinterval is chosen, according to the right endpoint in the taking effect rules time subinterval of selection and active configuration time zone
Between right endpoint size relation, judge whether at least one taking effect rules time subinterval or combinations thereof is completely covered the work
Dynamic setup time section, and determined whether to be updated processing to active configuration time interval according to judging result;If not choosing
To taking effect rules time subinterval, then active configuration time check fails.
2. according to the method described in claim 1, wherein, described at least one taking effect rules time subinterval of judgement or combinations thereof
The active configuration time interval, which whether is completely covered, further comprises:
The successively selection rule entry-into-force time subinterval from least one taking effect rules time subinterval after sequence, according to selection
Taking effect rules time subinterval left end point and active configuration time interval left end point size relation, and choose rule
The then size relation of the left end point of the right endpoint in entry-into-force time subinterval and active configuration time interval, right endpoint, judgement is at least
Whether one taking effect rules time subinterval or combinations thereof is completely covered the active configuration time interval, and according to judging result
Determine whether to be updated processing to active configuration time interval.
3. according to the method described in claim 2, wherein, the left end point in the taking effect rules time subinterval according to selection with
The size relation of the left end point of active configuration time interval, and choose taking effect rules time subinterval right endpoint and activity
The size relation of the left end point in setup time section, right endpoint, judges at least one taking effect rules time subinterval or combinations thereof
The active configuration time interval whether is completely covered, and determines whether to carry out active configuration time interval according to judging result
Update processing further comprises:
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval, and selects
The right endpoint in the taking effect rules time subinterval taken is greater than or equal to the right endpoint of active configuration time interval, then at least one is advised
Then entry-into-force time subinterval or combinations thereof is completely covered the active configuration time interval, the active configuration time check at
Function;
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval, and
The right endpoint in the taking effect rules time subinterval of selection be less than active configuration time interval right endpoint, and be greater than active configuration when
Between section left end point, then according to the right endpoint in the taking effect rules time subinterval of selection to the left end of active configuration time interval
Point is updated processing, continues to choose subinterval of next taking effect rules time, until when a last taking effect rules are arrived in selection
Between subinterval, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is less than the left end point of active configuration time interval, and the rule chosen
Then the right endpoint in entry-into-force time subinterval is less than the left end point of active configuration time interval, when continuing to choose next taking effect rules
Between subinterval, arrive subinterval of the last taking effect rules time until choosing, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is greater than the left end point of active configuration time interval, active configuration
Time check failure.
4. according to the method described in claim 1, wherein, the right endpoint in the taking effect rules time subinterval according to selection with
Whether the size relation of the right endpoint of active configuration time interval judges at least one taking effect rules time subinterval or combinations thereof
The active configuration time interval is completely covered, and determines whether to be updated active configuration time interval according to judging result
Processing further comprises:
If the right endpoint in the taking effect rules time subinterval chosen is greater than or equal to the right endpoint of active configuration time interval, until
The active configuration time interval, the active configuration time is completely covered in few taking effect rules time subinterval or combinations thereof
It verifies successfully;
If the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, according to selection
The right endpoint in taking effect rules time subinterval processing is updated to the left end point of active configuration time interval, execute choose it is left
Endpoint is less than or equal to the left end point of active configuration time interval and right endpoint is greater than or equal to a left side for active configuration time interval
In at least one taking effect rules time subinterval of endpoint the step of right endpoint maximum taking effect rules time subinterval.
5. method according to any of claims 1-4, wherein the active configuration time interval and described at least one
Subinterval of a taking effect rules time is specially UNIX timestamp section.
6. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction
Make:
According to the active configuration time, active configuration time interval is generated;
At least one the taking effect rules time for searching rule corresponding with activity, generate at least one taking effect rules time sub-district
Between;
Judge whether at least one described taking effect rules time subinterval or combinations thereof is completely covered the active configuration time zone
Between, if so, active configuration time check success;
The executable instruction also makes the processor execute following operation: according at least one described taking effect rules time sub-district
Between left end point sequence from small to large, at least one described taking effect rules time subinterval is ranked up;
The executable instruction further makes the processor execute following operation: raw from least one rule after sequence every time
When imitating selection rule entry-into-force time subinterval in time subinterval, chooses left end point and be less than or equal to active configuration time interval
Left end point and right endpoint are greater than or equal at least one taking effect rules time subinterval of the left end point of active configuration time interval
Subinterval of middle right endpoint maximum taking effect rules time;Taking effect rules time subinterval is arrived if choosing, it is raw according to the rule of selection
The size relation for imitating the right endpoint in time subinterval and the right endpoint of active configuration time interval, judges at least one taking effect rules
Whether time subinterval or combinations thereof is completely covered the active configuration time interval, and is determined whether according to judging result to work
Dynamic setup time section is updated processing;If unselected get taking effect rules time subinterval, active configuration time check is lost
It loses.
7. electronic equipment according to claim 6, the executable instruction further makes the processor execute following behaviour
Make: the successively selection rule entry-into-force time subinterval from least one taking effect rules time subinterval after sequence, according to selection
Taking effect rules time subinterval left end point and active configuration time interval left end point size relation, and choose rule
The then size relation of the left end point of the right endpoint in entry-into-force time subinterval and active configuration time interval, right endpoint, judgement is at least
Whether one taking effect rules time subinterval or combinations thereof is completely covered the active configuration time interval, and according to judging result
Determine whether to be updated processing to active configuration time interval.
8. electronic equipment according to claim 7, the executable instruction further makes the processor execute following behaviour
Make: if the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval, and selecting
The right endpoint in the taking effect rules time subinterval taken is greater than or equal to the right endpoint of active configuration time interval, then at least one is advised
Then entry-into-force time subinterval or combinations thereof is completely covered the active configuration time interval, the active configuration time check at
Function;
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval, and
The right endpoint in the taking effect rules time subinterval of selection be less than active configuration time interval right endpoint, and be greater than active configuration when
Between section left end point, then according to the right endpoint in the taking effect rules time subinterval of selection to the left end of active configuration time interval
Point is updated processing, continues to choose subinterval of next taking effect rules time, until when a last taking effect rules are arrived in selection
Between subinterval, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is less than the left end point of active configuration time interval, and the rule chosen
Then the right endpoint in entry-into-force time subinterval is less than the left end point of active configuration time interval, when continuing to choose next taking effect rules
Between subinterval, arrive subinterval of the last taking effect rules time until choosing, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is greater than the left end point of active configuration time interval, active configuration
Time check failure.
9. electronic equipment according to claim 6, the executable instruction further makes the processor execute following behaviour
Make: if the right endpoint in the taking effect rules time subinterval chosen is greater than or equal to the right endpoint of active configuration time interval, until
The active configuration time interval, the active configuration time is completely covered in few taking effect rules time subinterval or combinations thereof
It verifies successfully;
If the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, according to selection
The right endpoint in taking effect rules time subinterval processing is updated to the left end point of active configuration time interval, execute choose it is left
Endpoint is less than or equal to the left end point of active configuration time interval and right endpoint is greater than or equal to a left side for active configuration time interval
Right endpoint maximum taking effect rules time subinterval at least one taking effect rules time subinterval of endpoint.
10. the electronic equipment according to any one of claim 6-9, the active configuration time interval and described at least one
Subinterval of a taking effect rules time is specially UNIX timestamp section.
11. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium
Processor is set to execute following operation:
According to the active configuration time, active configuration time interval is generated;
At least one the taking effect rules time for searching rule corresponding with activity, generate at least one taking effect rules time sub-district
Between;
Judge whether at least one described taking effect rules time subinterval or combinations thereof is completely covered the active configuration time zone
Between, if so, active configuration time check success;
The executable instruction also makes the processor execute following operation: according at least one described taking effect rules time sub-district
Between left end point sequence from small to large, at least one described taking effect rules time subinterval is ranked up;
The executable instruction further makes the processor execute following operation: raw from least one rule after sequence every time
When imitating selection rule entry-into-force time subinterval in time subinterval, chooses left end point and be less than or equal to active configuration time interval
Left end point and right endpoint are greater than or equal at least one taking effect rules time subinterval of the left end point of active configuration time interval
Subinterval of middle right endpoint maximum taking effect rules time;Taking effect rules time subinterval is arrived if choosing, it is raw according to the rule of selection
The size relation for imitating the right endpoint in time subinterval and the right endpoint of active configuration time interval, judges at least one taking effect rules
Whether time subinterval or combinations thereof is completely covered the active configuration time interval, and is determined whether according to judging result to work
Dynamic setup time section is updated processing;If unselected get taking effect rules time subinterval, active configuration time check is lost
It loses.
12. computer storage medium according to claim 11, the executable instruction further holds the processor
The following operation of row: the successively selection rule entry-into-force time subinterval from least one taking effect rules time subinterval after sequence,
According to the size relation of the left end point in the taking effect rules time subinterval of selection and the left end point of active configuration time interval, and
The right endpoint in the taking effect rules time subinterval of selection and the left end point of active configuration time interval, the size relation of right endpoint,
Judge whether at least one taking effect rules time subinterval or combinations thereof is completely covered the active configuration time interval, and according to
Judging result determines whether to be updated processing to active configuration time interval.
13. computer storage medium according to claim 12, the executable instruction further holds the processor
The following operation of row: if the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end of active configuration time interval
Point, and the right endpoint in the taking effect rules time subinterval chosen is greater than or equal to the right endpoint of active configuration time interval, then extremely
The active configuration time interval, the active configuration time is completely covered in few taking effect rules time subinterval or combinations thereof
It verifies successfully;
If the left end point in the taking effect rules time subinterval chosen is less than or equal to the left end point of active configuration time interval, and
The right endpoint in the taking effect rules time subinterval of selection be less than active configuration time interval right endpoint, and be greater than active configuration when
Between section left end point, then according to the right endpoint in the taking effect rules time subinterval of selection to the left end of active configuration time interval
Point is updated processing, continues to choose subinterval of next taking effect rules time, until when a last taking effect rules are arrived in selection
Between subinterval, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is less than the left end point of active configuration time interval, and the rule chosen
Then the right endpoint in entry-into-force time subinterval is less than the left end point of active configuration time interval, when continuing to choose next taking effect rules
Between subinterval, arrive subinterval of the last taking effect rules time until choosing, active configuration time check failure;
If the left end point in the taking effect rules time subinterval chosen is greater than the left end point of active configuration time interval, active configuration
Time check failure.
14. computer storage medium according to claim 11, the executable instruction further holds the processor
The following operation of row: if the right endpoint in the taking effect rules time subinterval chosen is greater than or equal to the right end of active configuration time interval
Point, then the active configuration time interval, the activity is completely covered at least one taking effect rules time subinterval or combinations thereof
Setup time verifies successfully;
If the right endpoint in the taking effect rules time subinterval chosen is less than the right endpoint of active configuration time interval, according to selection
The right endpoint in taking effect rules time subinterval processing is updated to the left end point of active configuration time interval, execute choose it is left
Endpoint is less than or equal to the left end point of active configuration time interval and right endpoint is greater than or equal to a left side for active configuration time interval
Right endpoint maximum taking effect rules time subinterval at least one taking effect rules time subinterval of endpoint.
15. computer storage medium described in any one of 1-14 according to claim 1, the active configuration time interval and institute
Stating at least one taking effect rules time subinterval is specially UNIX timestamp section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997371.XA CN109034752B (en) | 2018-08-29 | 2018-08-29 | Method of calibration, electronic equipment and the computer storage medium of active configuration time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997371.XA CN109034752B (en) | 2018-08-29 | 2018-08-29 | Method of calibration, electronic equipment and the computer storage medium of active configuration time |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109034752A CN109034752A (en) | 2018-12-18 |
CN109034752B true CN109034752B (en) | 2019-07-05 |
Family
ID=64625341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810997371.XA Active CN109034752B (en) | 2018-08-29 | 2018-08-29 | Method of calibration, electronic equipment and the computer storage medium of active configuration time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109034752B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109873921B (en) * | 2019-02-14 | 2023-04-07 | 魔门塔(苏州)科技有限公司 | Image timestamp transmission method, image timestamp analysis method and image timestamp analysis device |
CN110572596A (en) | 2019-09-11 | 2019-12-13 | 深圳创维-Rgb电子有限公司 | television and backlight control method and device thereof and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102132588A (en) * | 2008-02-01 | 2011-07-20 | 高通股份有限公司 | Platform for mobile advertising and micro-targeted promotions |
CN105224289A (en) * | 2014-07-03 | 2016-01-06 | 阿里巴巴集团控股有限公司 | A kind of action message matching process and equipment |
CN105574739A (en) * | 2015-12-15 | 2016-05-11 | 中国建设银行股份有限公司 | Data processing system and method applied to e-commerce promotions |
CN106408345A (en) * | 2016-09-29 | 2017-02-15 | 上海宝尊电子商务有限公司 | Sale promotion engine realization method catering for Chinese marketing habit |
CN106952113A (en) * | 2017-03-16 | 2017-07-14 | 跨海侠科技(武汉)有限公司 | A kind of data handling system and method applied to electric business advertising campaign |
CN107977848A (en) * | 2016-10-21 | 2018-05-01 | 浙江银泰电子商务有限公司 | promotion rule generation method and promotion rule generation system |
CN108363775A (en) * | 2018-02-09 | 2018-08-03 | 上海宝尊电子商务有限公司 | Preview environment method on the high scalability line of rule-based engine |
-
2018
- 2018-08-29 CN CN201810997371.XA patent/CN109034752B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102132588A (en) * | 2008-02-01 | 2011-07-20 | 高通股份有限公司 | Platform for mobile advertising and micro-targeted promotions |
CN105224289A (en) * | 2014-07-03 | 2016-01-06 | 阿里巴巴集团控股有限公司 | A kind of action message matching process and equipment |
CN105574739A (en) * | 2015-12-15 | 2016-05-11 | 中国建设银行股份有限公司 | Data processing system and method applied to e-commerce promotions |
CN106408345A (en) * | 2016-09-29 | 2017-02-15 | 上海宝尊电子商务有限公司 | Sale promotion engine realization method catering for Chinese marketing habit |
CN107977848A (en) * | 2016-10-21 | 2018-05-01 | 浙江银泰电子商务有限公司 | promotion rule generation method and promotion rule generation system |
CN106952113A (en) * | 2017-03-16 | 2017-07-14 | 跨海侠科技(武汉)有限公司 | A kind of data handling system and method applied to electric business advertising campaign |
CN108363775A (en) * | 2018-02-09 | 2018-08-03 | 上海宝尊电子商务有限公司 | Preview environment method on the high scalability line of rule-based engine |
Also Published As
Publication number | Publication date |
---|---|
CN109034752A (en) | 2018-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Nachmanson et al. | Optimal strategies for testing nondeterministic systems | |
CN110134375B (en) | Game character behavior control method and device and readable storage medium | |
CN109034752B (en) | Method of calibration, electronic equipment and the computer storage medium of active configuration time | |
CN102184205B (en) | Based on the Multi-Pattern Matching method of easily extensible precision chaos Hash | |
CN109951547A (en) | Transactions requests method for parallel processing, device, equipment and medium | |
CN109542410A (en) | Rule engine system, method, equipment and storage medium | |
CN112163394B (en) | CPU chip design method and device and electronic equipment | |
CN104133666A (en) | Method and device for determining AI behaviors and AI server | |
US9383978B2 (en) | Apparatus and method for on-demand optimization of applications | |
EP3827380A1 (en) | Secure exploration for reinforcement learning | |
WO2015078174A1 (en) | Method, apparatus, and artificial intelligence editor for implementing artificial intelligence behavior | |
CN104679634A (en) | Self-adapted random verification method used for simulating ultra-large-scale chip | |
CN109542395A (en) | Lottery information determines method, apparatus, equipment and storage medium | |
CN104424352B (en) | The system and method that agency service is provided to user terminal | |
CN109145608A (en) | A kind of data processing method and device based on block chain | |
CN117582652A (en) | Weiqi man-machine playing method, device, computer equipment and storage medium | |
CN109581194B (en) | Dynamic generation method for electronic system fault test strategy | |
CN115186305B (en) | Method for constructing data element model and producing data element | |
CN109002511A (en) | A kind of intelligent recommendation method and apparatus of public lavatory | |
CN110347916A (en) | Cross-scenario item recommendation method, device, electronic equipment and storage medium | |
CN109346080A (en) | Sound control method, device, equipment and storage medium | |
Ewald et al. | A non-fragmenting partitioning algorithm for hierarchical models | |
CN110456737B (en) | Automatic task deployment method and device for robot | |
CN109582802A (en) | A kind of entity embedding grammar, device, medium and equipment | |
CN111159966A (en) | Nonvolatile memory verification 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |