Disclosure of Invention
Therefore, it is necessary to provide a check-in method and device for solving the problem of low intelligence degree of the conventional check-in mode, which can utilize a check-in rule engine database including location, time and weight factors to realize automatic check-in, liberate the whole check-in process, simplify the process and realize the whole-process automation of the check-in process as a whole.
A check-in method, the method comprising:
acquiring current time and current position, and judging whether the current time is within a preset check-in time range and whether the current position is within a preset check-in position range;
if yes, entering a prepared check-in state, calling a check-in rule engine database acquired from a server to calculate the stay time in the prepared check-in state;
acquiring a current preset check-in rule weight influence value corresponding to a current user to be checked-in according to the check-in rule engine database, wherein the current preset check-in rule weight influence value is a total weight value calculated according to a current preset check-in rule weight factor;
and generating a check-in result according to the retention time and the current preset check-in rule weight influence value.
In one embodiment, the step of obtaining the current time and determining whether the current time matches a preset check-in time further includes:
and initiating a registration request to the server, receiving registration response information returned by the server, and acquiring a corresponding preset sign-in time range and a corresponding preset sign-in position range according to the registration response information.
In one embodiment, the preset check-in rule weight factor includes at least two of user identity information, data integrity, successful check-in times in a preset time period, and successful check-in times of an assembly, and the step of obtaining a current preset check-in rule weight influence value corresponding to a current user to be checked-in according to the check-in rule engine database includes:
acquiring at least two of user identity information, information integrity, successful check-in times in a preset time period and successful check-in times of an assembly corresponding to a current user to be checked-in from the check-in rule engine database to obtain a current preset check-in rule weight factor;
and obtaining a current preset check-in rule weight value corresponding to the current preset check-in rule weight factor, and calculating according to the current preset check-in rule weight factor and the corresponding current preset check-in rule weight value to obtain a current preset check-in rule weight influence value.
In one embodiment, the step of generating a check-in result according to the staying time and the current preset check-in rule weight influence value includes:
judging whether the residence time reaches a first preset time interval or not, and if so, confirming that the check-in result is successful; if not, judging whether the staying time accords with a second preset time interval or not, wherein the first preset time interval is larger than the second preset time interval, if not, confirming that the check-in result is check-in failure, and entering the step of acquiring the current time and the current position; if so, judging whether the weight influence value of the current preset check-in rule reaches a preset weight influence threshold value, if so, confirming that the check-in result is a check-in success, if not, confirming that the check-in result is a check-in failure, and entering the step of judging whether the retention time exceeds a first preset time interval.
In one embodiment, the method further comprises:
and acquiring check-in data corresponding to the check-in result, and returning the check-in data to the server, so that the server updates a corresponding check-in rule database in the server according to the check-in data.
A check-in apparatus, the apparatus comprising:
the time and position judging module is used for acquiring current time and current position, judging whether the current time is in a preset sign-in time range or not and whether the current position is in a preset sign-in position range or not, and entering the staying time calculating module if the current time is in the preset sign-in time range or not;
the stay time calculation module is used for entering a prepared check-in state and calling a check-in rule engine database acquired from a server to calculate stay time in the prepared check-in state;
a current preset check-in rule weight influence value obtaining module, configured to obtain a current preset check-in rule weight influence value corresponding to a current user to be checked-in according to the check-in rule engine database, where the current preset check-in rule weight influence value is a total weight value calculated according to a current preset check-in rule weight factor;
and the check-in result generation module is used for generating a check-in result according to the retention time and the weight influence value of the current preset check-in rule.
In one embodiment, the apparatus comprises:
and the check-in information acquisition module is used for initiating a registration request to the server, receiving registration response information returned by the server, and acquiring a corresponding preset check-in time range and a preset check-in position range according to the registration response information.
In one embodiment, the preset check-in rule weight factor includes at least two of user identity information, integrity of data, successful check-in times in a preset time period, and successful check-in times of an assembly, and the current preset check-in rule weight influence value obtaining module includes:
the system comprises a current preset check-in rule weight factor obtaining unit, a check-in rule processing unit and a check-in rule processing unit, wherein the current preset check-in rule weight factor obtaining unit is used for obtaining at least two of user identity information, information integrity, successful check-in times in a preset time period and successful check-in times of an assembly corresponding to a current user to be checked-in from the check-in rule engine database to obtain a current preset check-in rule weight factor;
and the current preset check-in rule weight influence value acquisition unit is used for acquiring a current preset check-in rule weight value corresponding to the current preset check-in rule weight factor, and calculating to obtain a current preset check-in rule weight influence value according to the current preset check-in rule weight factor and the corresponding current preset check-in rule weight value.
In one embodiment, the check-in result generation module includes:
the first judgment unit is used for judging whether the staying time reaches a first preset time threshold value, if so, the check-in result generation unit is entered, and if not, the second judgment unit is entered;
the second judging unit is used for judging whether the staying time reaches a second preset time interval or not, the first preset time interval is larger than the second preset time interval, if not, the check-in result is checked as check-in failure, the current time and current position judging module is entered, and if yes, the third judging unit is entered;
and the third judging unit is used for judging whether the weight influence value of the current preset check-in rule reaches a preset weight influence threshold value, if so, entering the check-in result generating unit, and if not, confirming that the check-in result is check-in failure and entering the first judging unit.
And the check-in result generating unit is used for confirming that the check-in result is successful.
In one embodiment, the apparatus further comprises:
and the data returning module is used for acquiring the check-in data corresponding to the check-in result and returning the check-in data to the server so that the server updates the corresponding check-in rule database in the server according to the check-in data.
The check-in method and the check-in device judge whether the current time is in the preset check-in time range and the current position is in the preset check-in position range by obtaining the current time and the current position, if so, enter the prepared check-in state, call the check-in rule engine database obtained from the server to calculate the stay time in the prepared check-in state, obtain the current preset check-in rule weight influence value corresponding to the current user to be checked-in according to the check-in rule engine database, the current preset check-in rule weight influence value is the total weight value calculated according to the current preset check-in rule weight factor, generate the check-in result according to the stay time and the current preset check-in rule weight influence value, combine the time, the position and the preset check-in rule weight factor together, construct a strong preset check-in rule engine database, and change the manual operation into the automatic operation based on the preset check-in rule engine database, therefore, automatic sign-in is realized, the whole traditional sign-in process is liberated, the complexity is reduced, and the intelligent degree of the whole sign-in process is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In one embodiment, an application environment of the check-in method is shown in fig. 1, and includes a terminal 110 and a server 120, where the terminal 110 and the server 120 communicate via a network, the terminal 110 includes, but is not limited to, a mobile phone, a tablet, an intelligent wearable device, and the like, and services provided by the server 120 include a front-end service, an application service, a business service, a data service, and the like.
In one embodiment, the server 120 includes a server and a database, wherein the server and the database are separately deployed, which is beneficial to improve the processing efficiency and the architecture layering.
In one embodiment, as shown in fig. 2, there is provided a check-in method applied to the application environment, including the following steps:
step S210, obtaining the current time and the current position, determining whether the current time is within the preset check-in time range and the current position is within the preset check-in position range, if yes, going to step S220.
Specifically, the terminal may obtain the current time and the preset check-in time, or obtain the current position and the preset check-in position, and then determine whether the current time is within the preset check-in time range and the current position is within the preset check-in position range, if so, the process goes to step S220.
In an embodiment, a terminal acquires an operation instruction for opening a corresponding active APP, sends a request for acquiring current time and a preset check-in time range to a server, receives the current time and the preset check-in time range returned by the server, compares the current time with the preset check-in time range, determines whether the current time is within the preset check-in time range, if not, continues to acquire the current time and determines whether the current time is within the preset check-in time range, if yes, further sends a request for acquiring the preset check-in position range to the server, receives the preset check-in position range returned by the server, determines whether the current position is within the preset check-in position range, if not, continues to send a request for acquiring the current position to the server for determination, and if yes, the step S220 is entered.
In one embodiment, the terminal locates the current position of the terminal through a GPS (Global Positioning System) or a BeiDou Navigation Satellite System (BDS) Positioning function, and acquires the current position.
In one embodiment, the preset check-in location and the current location may be in the form of a house number or a longitude and latitude.
Step S220, entering a prepared check-in state, calling a check-in rule engine database acquired from the server to calculate the stay time in the prepared check-in state.
Specifically, when the terminal acquires that the corresponding current time is in the preset check-in time range and the corresponding current position is in the preset check-in position range, the terminal starts to enter a prepared check-in state, and the terminal calls a check-in rule engine database acquired from the server to calculate the duration of the prepared check-in state, namely the stay time in the prepared check-in state.
The check-in rule engine database can be downloaded to the terminal in advance before entering the prepared check-in state, and can also be obtained from the server in real time after entering the prepared check-in state.
In one embodiment, the activity start time is 9 a.m.: 00, the preset activity check-in time is 8:30 in the morning, when the terminal enters the prepared check-in state, the current time is obtained, the check-in rule engine database obtained from the server is called to calculate the difference value between the preset activity check-in time and the preset activity check-in time, namely the stay time in the prepared state.
Step S230, obtaining a current preset check-in rule weight influence value corresponding to the current user to be checked-in according to the check-in rule engine database, where the current preset check-in rule weight influence value is a total weight value calculated according to the current preset check-in rule weight factor.
Specifically, the check-in rule engine database includes check-in rules preset by the background server and weight values corresponding to the check-in rules, and the terminal can further calculate to obtain a corresponding total weight value, namely a current preset check-in rule weight influence value, by obtaining a current preset check-in rule weight factor corresponding to the check-in rule.
The check-in rule database reflects historical check-in information of a current user to be checked-in, can support a background server system manager to preset rules, can be finely adjusted according to the check-in and actual check-in rules in the early period, namely, the check-in and use process accumulated day by month is continuously improved, the check-in rule engine database is optimized, the optimal use effect is achieved, and the weight influence value of the current preset check-in rule is finally formed.
Step S240, generating a check-in result according to the retention time and the weight influence value of the current preset check-in rule.
Specifically, according to the stay time and the weight influence value of the current preset check-in rule, whether the current user to check in is checked in or not can be comprehensively judged, and a check-in result is obtained.
The stay time can be used as a basis for judging whether the current check-in user has checked in before, and the stay time of the current check-in user and the weight influence value of the current preset check-in rule can be combined for judgment.
The check-in method comprises the steps of judging whether the current time is within a preset check-in time range and whether the current position is within the preset check-in position range or not by acquiring the current time and the current position, entering a prepared check-in state if the current time is within the preset check-in time range and the current position is within the preset check-in position range, calling a check-in rule engine database acquired from a server to calculate the stay time in the prepared check-in state, acquiring a current preset check-in rule weight influence value corresponding to a current user to be checked-in according to the check-in rule engine database, generating a check-in result according to the stay time and the current preset check-in rule weight influence value, combining the time, the position and the preset check-in rule weight factor, constructing a strong preset check-in rule engine database, and changing manual operation into automatic operation based on the preset check-in rule database, therefore, automatic sign-in is realized, the whole traditional sign-in process is liberated, the complexity is reduced, and the intelligent degree of the whole sign-in process is improved.
In one embodiment, as shown in fig. 3, step 210 further includes:
step S250, initiating a registration request to the server, receiving registration response information returned by the server, and acquiring a corresponding preset sign-in time range and a corresponding preset sign-in position range according to the registration response information.
Specifically, a user to be checked in currently uses a terminal to initiate a registration request to a server, receives registration response information returned by the server, logs in through the registration response information, and then obtains a corresponding preset check-in time range and a corresponding preset check-in position range.
The registration response information comprises an account number and password information of a current user to sign in, the current user to sign in logs in the server through the user account number and the password information to register to participate in corresponding activities, and then the starting time, the activity position, the preset sign-in time range and the preset sign-in position range of the corresponding activities are obtained.
In one embodiment, the preset check-in rule weighting factor includes at least two of user identity information, data integrity, successful check-in times within a preset time period, and successful check-in times of the assembly, as shown in fig. 4, step S230 includes:
step S232, at least two of user identity information, information integrity, successful sign-in times in a preset time period and successful sign-in times of the assembly corresponding to the current user to be signed in are obtained from the sign-in rule engine database, and a current preset sign-in rule weight factor is obtained.
Specifically, the terminal receives a check-in rule engine database sent by the server, and then obtains corresponding preset check-in rule weight factors, wherein the preset check-in rule weight factors generally comprise at least two of user identity information, information integrity, successful check-in times in a preset time period and successful check-in times of the assembly, the preset check-in rule weight factors can be increased or decreased according to specific conditions, adjustment is flexibly performed, and the check-in conditions of the current user to be checked-in are better reflected.
In one embodiment, the user identity information includes a user level, the number of successful check-ins in a preset time period can be generally set according to specific situations, such as the number of successful check-ins in a month, the number of check-ins in a week, and the like, and the total number of successful check-ins refers to the historical total number of check-ins of the user.
The higher the sign-in level of the user is, the greater the viscosity of the user is, the higher the sign-in participation degree is, and the higher the sign-in success rate is; the more perfect the user data is, the more the user sees the sign-in of the time, the more serious the sign-in is to be, and the higher the sign-in success rate is; successful single month sign-in times: within a period of time (defined as 1 month here), the more times of successfully participating in check-in, which indicates that the user is an active user, the greater will and possibility of successfully participating in the next check-in are, and the higher the corresponding check-in success rate is; factors such as historical sign-in success times show that the more total sign-in success times, the more user participation, the more abundant experience and the stronger will, and the more active and mature user is supposed to be added to the sign-in success rate.
Of course, the preset sign-in rule weight factor can be increased or decreased according to needs, so that the sign-in condition of user activities can be better reflected.
Step S234, obtaining a current preset check-in rule weight value corresponding to the current preset check-in rule weight factor, and calculating according to the current preset check-in rule weight factor and the corresponding current preset check-in rule weight value to obtain a current preset check-in rule weight influence value.
Specifically, the weight corresponding to each specific preset check-in rule weight factor may be set, and a percentage weight is usually used for setting to obtain a current preset check-in rule weight value, and then a current preset check-in rule weight influence value is obtained by calculating according to the current preset check-in rule weight factor and the corresponding current preset check-in rule weight value.
In one embodiment, as shown in fig. 5, step S240 includes:
step S242, determining whether the staying time reaches a first preset time interval, if yes, confirming that the check-in result is a successful check-in, if not, entering step S244.
Specifically, when the user to be checked in enters the pre-check-in state using the terminal, it is determined whether the staying time exceeds a first preset time interval, if the staying time exceeds the set first preset time interval, the check-in result is determined to be successful, otherwise, the step S244 is performed.
In one embodiment, the activity start time is set to 9:00 am, the activity preset check-in time is 8:30 am, and the first preset time interval may be set to 28 minutes, after the terminal enters the pre-check-in state, the stay time is calculated, if the stay time exceeds 28 minutes, it is determined that the current user to check in has checked in, otherwise, the step S244 is performed.
Step S244, determining whether the staying time reaches a second preset time interval, where the first preset time interval is greater than the second preset time interval, if yes, going to step S246, if not, determining that the check-in result is a check-in failure, and going to step S210.
Specifically, if the staying time does not reach the first preset time interval, it is determined whether the staying time reaches the second preset time interval, where the first preset time interval is greater than the second preset time interval, if so, step S246 is performed, and if not, the check-in result is determined to be a check-in failure, and step S210 is performed.
In one embodiment, the activity start time is set to 9:00 am, the activity preset check-in time is 8:30 am, the first preset time interval may be set to 28 minutes, the second preset time interval is set to 25 minutes, after the terminal enters the pre-check-in state, the staying time is calculated, if the staying time does not exceed 28 minutes, the staying time is continuously determined not to exceed 25 minutes, if the staying time reaches 25 minutes, step S246 is performed, and if the terminal does not enter the check-in state, the check-in result is determined to be a check-in failure, step S210 is performed.
In step S246, it is determined whether the current preset check-in rule weight influence value reaches the preset weight influence threshold, if yes, the process proceeds to step S248, and if no, the process proceeds to step S242.
Specifically, when the staying time exceeds the second preset time interval, a current preset check-in rule weight influence value corresponding to the current user to check in needs to be further considered, if the current preset check-in rule weight influence value exceeds a preset weight influence threshold, it may be determined that the check-in result is a successful check-in, otherwise, the step S242 is performed.
In an embodiment, current check-in rule weight values of identity information, data integrity, successful check-in times in a preset time period and successful check-in times of the assembly corresponding to the user to check in are set according to specific conditions, for example, set to 20%, 30% and 20% respectively, then corresponding current preset check-in rule weight influence values are calculated, if the current preset check-in rule weight influence values are greater than a preset weight influence threshold value, the step S248 is entered, and if the current check-in rule weight influence values are not greater than the preset weight influence threshold value, the check-in result is confirmed to be a check-in failure, and the step S242 is.
The processing procedure combines the current stay time of the user to be checked in with the current preset check-in rule weight influence value to judge the check-in condition of the user to be checked in, and the intelligent characteristic of the check-in rule engine database is embodied.
In step S248, the check-in result is confirmed to be a successful check-in.
In one embodiment, as shown in fig. 6, the method further includes:
step S260, obtaining the check-in data corresponding to the check-in result, and returning the check-in data to the server, so that the server check-in data updates the corresponding check-in rule database in the server.
Specifically, the terminal starts from obtaining the current time and the current position until generating a check-in result, corresponding check-in data are generated in the whole process, the check-in data can also comprise check-in rule engine configuration data, namely, the configuration file generated by the check-in rule is adjusted by the background server when the user to be checked in is managed, and the check-in data are sent to the server, so that the background server can analyze whether the check-in rule is proper or not according to the check-in data, the check-in rule database is continuously adjusted and updated, the check-in rule engine database is obtained, and the corresponding intelligent degree is further improved.
In addition, as shown in fig. 7, there is also provided a check-in apparatus, including:
a time and position determining module 310, configured to obtain a current time and a current position, determine whether the current time is within a preset check-in time range and the current position is within a preset check-in position range, and if yes, enter a staying time calculating module;
the stay time calculation module 320 is used for entering a prepared check-in state and calling a check-in rule engine database acquired from the server to calculate the stay time in the prepared check-in state;
a current preset check-in rule weight influence value obtaining module 330, configured to obtain a current preset check-in rule weight influence value corresponding to a current user to be checked-in according to the check-in rule engine database, where the current preset check-in rule weight influence value is a total weight value calculated according to a current preset check-in rule weight factor;
and the sign-in result generating module 340 is configured to generate a sign-in result according to the retention time and the current preset sign-in rule weight influence value.
In one embodiment, as shown in fig. 8, the above apparatus comprises:
the sign-in information obtaining module 350 is configured to initiate a registration request to the server, receive registration response information returned by the server, and obtain a corresponding preset sign-in time range and a corresponding preset sign-in position range according to the registration response information.
In one embodiment, the preset check-in rule weight factor includes at least two of user identity information, integrity of data, successful check-in times in a preset time period, and successful check-in times of the assembly, as shown in fig. 9, the current preset check-in rule weight influence value obtaining module 330 includes:
a current preset check-in rule weight factor obtaining unit 332, configured to obtain, from the check-in rule engine database, at least two of user identity information, information integrity, successful check-in times within a preset time period, and successful check-in times of the assembly corresponding to the current user to be checked-in, so as to obtain a current preset check-in rule weight factor;
the current preset check-in rule weight influence value obtaining unit 334 is configured to obtain a current preset check-in rule weight value corresponding to the current preset check-in rule weight factor, and calculate a current preset check-in rule weight influence value according to the current preset check-in rule weight factor and the corresponding current preset check-in rule weight value.
In one embodiment, as shown in fig. 10, the check-in result generating module 340 includes:
a first judging unit 342, configured to judge whether the staying time reaches a first preset time threshold, if yes, enter the check-in result generating unit 348, and if not, enter the second judging unit 344;
a second determining unit 344, configured to determine whether the staying time reaches a second preset time interval, where the first preset time interval is greater than the second preset time interval, if not, determine that the check-in result is a check-in failure, enter the current time and current position determining module, and if yes, enter a third determining unit 346;
the third determining unit 346 is configured to determine whether the weight influence value of the current preset check-in rule reaches a preset weight influence threshold, if yes, enter the check-in result generating unit 348, and if not, determine that the check-in result is a check-in failure, and enter the first determining unit 342.
And a check-in result generating unit 348 for confirming that the check-in result is a successful check-in.
In one embodiment, as shown in fig. 11, the apparatus further includes:
and the data returning module 360 is configured to obtain the check-in data corresponding to the check-in result, and return the check-in result and the check-in data to the server, so that the server updates the corresponding check-in rule database in the server according to the check-in result and the check-in data.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by hardware related to instructions of a computer program, which may be stored in a computer readable storage medium, for example, in the storage medium of a computer system, and executed by at least one processor in the computer system, so as to implement the processes of the embodiments including the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.