Movable attendance checking method, apparatus and server
Technical field
The present invention relates to attendance technical fields, more particularly, to a kind of movable attendance checking method, apparatus and server.
Background technique
It turns out for work currently, company personnel and school student require to investigate, needs to register on time, especially to company and enterprise
Industry, attendance are that maintenance works normally order, the important embodiment increased work efficiency.The mode of attendance at present is mostly examined by electronics
Diligent equipment carries out attendance, and traditional electronic attendance equipment is being actually used such as fingerprint attendance system or face attendance checking system
There is inconvenience in the process, especially personnel are more, mobility of people is big, personnel change frequently, institutional framework is complicated being related to
Application scenarios in.Other than needing to dispose special equipment, there is also queuings to carry out attendance low efficiency, needs are managed and safeguarded,
The problems such as one people replaces more people to register.And the attendance checking system based on GPS positioning, due to the different moments in the same place
GPS signal has differences, and the difference of signal makes positioning, and there are deviations, causes the even failure of attendance positional fault.
For the attendance low efficiency of above-mentioned existing attendance mode, and the problem that attendance accuracy rate is not high, it not yet proposes at present
Effective solution scheme.
Summary of the invention
In view of this, can effectively be mentioned the purpose of the present invention is to provide a kind of movable attendance checking method, apparatus and server
High attendance efficiency and attendance accuracy rate.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of movable attendance checking method, this method is executed by server, comprising:
Receive the request of registering that mobile terminal is sent;Wherein, register request carry information include: mobile terminal identification, user information,
It registers and position and registers the time;Whether judging to register according to the information that request carries of registering, it is legal to request;If so, to mobile whole
End issues label and registers success flag.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on
State method further include: if the inquiry request of mobile terminal transmission is received before request is registered in reception, according to inquiry request
Determine response message;Wherein, inquiry request carries the AP information and current time of mobile terminal connection;Response message includes needle
It registers option at least one of AP information and current time;Response message is handed down to mobile terminal, so that mobile terminal is true
Set the goal option of registering, and is registered request based on target option transmission of registering.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect
Possible embodiment, wherein the step of response message is determined according to inquiry request, comprising: pass through pre-recorded choosing of registering
Item table, lookup and AP information and the corresponding option of registering of current time;Wherein, record in pick list of registering have AP information, when
Between and the corresponding relationship of option of registering;The option of registering found is determined as response message.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein label
It further include the first encryption code key to request;Wherein, the first encryption code key is that mobile terminal is generated according to the first preset algorithm;Sentence
It is disconnected register request whether legal step, comprising: according to the information that request of registering carries, generate second according to the second preset algorithm
Encrypt code key;Wherein, the first preset algorithm is related to the second preset algorithm;Judge the first encryption code key and the second encryption code key is
It is no identical;The letter that the request of registering stored in the database of request carries if so, judgement is registered information and server carries
Breath is with the presence or absence of conflict;Wherein, the request of registering of storage is the corresponding request of registering of success flag of registering, the request of registering of storage
The information of carrying includes: mobile terminal identification, user information, registers and position and register the time;If there is no conflict, label are determined
It is legal to requesting.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect
Possible embodiment, wherein the above method further include: if the first encryption code key and the second encryption code key be not identical, determine
Registering, it is illegal to request, and records the user information carried in request of registering, and mark user information;Issued to mobile terminal register it is non-
The mark that method mark and characterization user information have been labeled.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 5th kind of first aspect
Possible embodiment, wherein judgement, which is registered, requests the request of registering stored in the information of carrying and the database of server to be taken
The step of information of band is with the presence or absence of conflict, comprising: search the multiple mobile terminal marks stored in the database of the server
Mobile terminal identification identical with the mobile terminal identification of request carrying of registering in knowledge, and determining and identical mobile terminal identification
The request of registering stored in corresponding database;Judgement, which is registered, requests register time and the request carrying of registering of storage of carrying
Whether time of registering conflicts.
The 5th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 6th kind of first aspect
Possible embodiment, wherein the above method further include: if the request of registering of register time and storage that request of registering carries
The time conflict of registering carried, issues conflict mark of registering to mobile terminal.
Second aspect, the embodiment of the present invention also provide a kind of movable attendance checking device, which is set to server side, the dress
Setting includes: receiving module, for receiving the request of registering of mobile terminal transmission;Wherein, the information that request carries of registering includes: to move
Dynamic terminal iidentification, user information register and position and register the time;Judgment module, for being sentenced according to the information that request carries of registering
Whether disconnected request of registering is legal;Sending module is issued to the mobile terminal and is registered into if requesting legal for described register
Function mark.
The third aspect, the embodiment of the invention provides a kind of servers, including processor and memory;It is stored on memory
There is a computer program, executed when being run by processor such as first aspect to first aspect the 6th kind of computer program is possible
The method of any one of embodiment.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, computer readable storage mediums
On be stored with computer program, above-mentioned first aspect is executed when computer program is run by processor to the 6th kind of first aspect
The step of method of any one of possible embodiment.
The embodiment of the invention provides a kind of movable attendance checking method, apparatus and servers, are sent by receiving mobile terminal
Request of registering, and register request carry mobile terminal identification information, user information, register location information and register the time letter
Breath, so according to register request carry information judgement register request it is whether legal, if register request it is legal, to mobile terminal
Issue success flag of registering.In attendance mode provided in this embodiment, user need to can only be registered by mobile terminal,
It is convenient and efficient, it is directly interacted by server and mobile terminal, can effectively promote attendance efficiency.In addition, mobile terminal is sent out
Mobile terminal identification, user information are carried in the request of registering sent, registers and position and registers the time, due to mobile terminal identification
With uniqueness, therefore can be effectively prevented instead of registering behavior, and register position and register the time can be with time dimension
With Spatial Dimension double definition attendance range, in conjunction with user information, can comprehensive verification register the legitimacy of request, only signing
Success of registering just is thought when legal to request.This mode can make checking-in result more accurate.In conclusion the present embodiment energy
Enough effectively improve attendance efficiency and attendance accuracy rate.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with
Deduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows a kind of flow chart of movable attendance checking method provided by the embodiment of the present invention;
Fig. 2 shows the flow charts of another kind movable attendance checking method provided by the embodiment of the present invention;
Fig. 3 shows the flow chart of another kind movable attendance checking method provided by the embodiment of the present invention;
Fig. 4 shows a kind of flow chart of movable attendance checking method provided by the embodiment of the present invention;
Fig. 5 shows a kind of stream of the mac address information in the corresponding classroom of administrator's typing provided by the embodiment of the present invention
Cheng Tu;
Fig. 6 shows a kind of flow chart of curriculum information typing provided by the embodiment of the present invention;
Fig. 7 shows a kind of structural block diagram of movable attendance checking device provided by the embodiment of the present invention;
Fig. 8 shows a kind of structural schematic diagram of server provided by the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
In view of attendance low efficiency present in existing attendance mode, and the problem that attendance accuracy rate is not high, the present invention are real
A kind of movable attendance checking method, apparatus and server for applying example offer, can effectively improve attendance efficiency and attendance accuracy rate, below
It describes in detail to the embodiment of the present invention.
Embodiment one:
Firstly, describing the movable attendance checking method for realizing the embodiment of the present invention referring to Fig.1.
A kind of flow chart of movable attendance checking method as shown in Figure 1, this method are executed by server, and this method includes following
Step:
Step S102 receives the request of registering that mobile terminal is sent;Wherein, the information that request carries of registering includes: movement
Terminal iidentification, user information register and position and register the time.
Mobile terminal can be the equipment such as mobile phone, iPad, uniquely, i.e., the mobile terminal identification of every mobile terminal is all
The mark of different mobile terminals is different, and user information can be the name of user, register position such as meeting room, office
Or classroom etc..
Step S104, whether judging to register according to the information that request carries of registering, it is legal to request.
Since user may illegally be registered by browser or simulator, it is also possible to pass through movement instead of other people
Terminal is carried out primary or is repeatedly registered, it is therefore desirable to which whether judging to register, it is legal to request.The information carried in requesting of registering has
Mobile terminal identification, by judging that mobile terminal identification may determine that whether user has passed through mobile terminal in some period
It registers success, if having registered success, and received again registers request and received before register requests having time conflict i.e.
Time-interleaving, the then request that judges this time to register do not allow user to register again, that is, prevent from replacing him as conflict request of registering
The case where people registers, that is, each mobile device (time+space region limit within specific a period and region
System) it can only register once.There can also be mobile terminal encryption code key obtained by calculation in request of registering, when server connects
It receives and registers when requesting, if judging to encrypt code key for sky, illustrate that user is by the illegal of browser or simulator progress
It registers request.
Step S106, if so, issuing success flag of registering to mobile terminal.
Success flag of registering can be with registering successful text prompt, and the successful voice that is also possible to indicate to register mentions
Show.If it is determined that request of registering be it is illegal, rushed when request illegally belongs to this register request and success before having time of registering
When prominent situation, conflict mark of registering is issued to mobile terminal;Pass through browser or simulator when request illegally belongs to user
Register when requesting, record is registered the user information carried in request, and marks user information, is registered to mobile terminal transmission
Invalidated identification and the mark that has been labeled of characterization user information, user, which illegally registers, to be reached certain number and will enter black name
It is single.
In above-mentioned Work attendance method provided in this embodiment, user need to can only be registered by mobile terminal, convenient
Fast, it is directly interacted by server and mobile terminal, can effectively promote attendance efficiency.In addition, what mobile terminal was sent
It registers and carries mobile terminal identification, user information in request, register and position and register the time, since mobile terminal identification has
Uniqueness, therefore can be effectively prevented instead of registering behavior, and register position and register the time can be with time dimension and sky
Between dimension double definition attendance range, in conjunction with user information, can comprehensive verification register the legitimacy of request, only ask registering
Success of registering just is thought when asking legal.This mode can make checking-in result more accurate.In conclusion the present embodiment can have
Effect improves attendance efficiency and attendance accuracy rate.
The present embodiment furthermore presents the detailed process of movable attendance checking method on the basis of above-mentioned movable attendance checking method,
The flow chart of another movable attendance checking method as shown in Figure 2, reference can be made to following steps:
Step S202 receives the request of registering that mobile terminal is sent;Wherein, the information that request carries of registering includes: movement
Terminal iidentification, user information register and position and register the time, further include the first encryption code key;Wherein, the first encryption code key is to move
What dynamic terminal was generated according to the first preset algorithm.
First encryption code key is that mobile terminal transmission is registered when requesting, and is generated according to request is registered according to the first preset algorithm
And be attached in request of registering.
Step S204 generates the second encryption code key according to the second preset algorithm according to the information that request of registering carries;Its
In, the first preset algorithm is related to the second preset algorithm.
Correlation can indicate that the first preset algorithm is identical with the second preset algorithm, can also indicate the first preset algorithm and
Two preset algorithms are different.First encryption code key is that mobile terminal is generated according to the first preset algorithm, and the second encryption code key is clothes
Business device is generated according to the first preset algorithm.
Step S206 judges whether the first encryption code key and the second encryption code key are identical.If so, executing step S208;
If not, executing step S216.
Step S208, search in the multiple mobile terminal identifications stored in the database of server with received request of registering
The identical mobile terminal identification of the mobile terminal identification of carrying, and determine in database corresponding with identical mobile terminal identification
The request of registering of storage;Wherein, the request of registering of storage is the corresponding request of registering of success flag of registering, the request of registering of storage
The information of carrying includes: mobile terminal identification, user information, registers and position and register the time.
According to the mobile terminal identification that the request of registering that mobile terminal is sent carries, the multiple movements stored in the server
Identical mobile terminal identification is searched in terminal iidentification, is determined that identical mobile terminal identification is corresponding and is stored in the server
Complete the request of registering registered, that is, the corresponding request of registering of success flag of registering, as student passes through oneself mobile phone to server
Request of registering is had sent, the student, which is transmitted across by the mobile phone of oneself to server, before this registers request registers request simultaneously
And complete and register, then server can store completion and register corresponding request of registering, the information carried including request of registering.
Step S210 judges when the registering of request carrying of registering of received register time and the storage registered and request to carry
Between whether conflict;If not, executing step S212;If so, executing step S214.
The time of registering of the request carrying of registering stored in server can be that the date, what time the form of a few minutes recorded
It registers the time, if being stored in the server after register time and the last register successfully that request of this time registering carries corresponding
Register request in register time of the time phase difference less than a class, then it is assumed that this request of registering be conflict register, conflict
Registering also includes repeating to register, and if student completes to register in certain upper class, is had sent again certainly in the course school session
Oneself request of registering, then it is assumed that the request of registering sent again is to repeat to register.
Step S212 determines to register and requests legal, and issues success flag of registering to mobile terminal.
If the first encryption code key is identical with the second encryption code key, illustrates this time to register request and pass through mobile terminal before
Complete no time conflict of registering, determine register request it is legal.
Step S214 issues conflict mark of registering to mobile terminal.
If this time registering request and registering there are time conflict by mobile terminal completion before, illustrates this time to register and ask
The having time conflict of registering completed before summation by mobile terminal, it may be possible to after user oneself is registered by mobile terminal completion
It helps others to register again by mobile terminal, issues conflict mark of registering to mobile terminal, prevent by replacing other people to sign
To behavior.
Step S216 is determined to register and is requested illegal and record the user information carried in request of registering, under mobile terminal
Send out the mark that invalidated identification of registering has been labeled with characterization user information.
If the first encryption code key is different with the second encryption code key, illustrate that user may be by simulator and send out to server
Request of registering is sent, server can determine whether to register request as illegal request, record the user information such as user carried in request of registering
Name, and user information is marked.Invalidated identification of registering can be text or voice with invalidated identification of registering, table
The mark that sign user information has been labeled can be the text or voice being labeled with information such as address names.
Above-mentioned movable attendance checking method provided in an embodiment of the present invention, the request of registering sent by receiving mobile terminal, and
Request of registering also carries the first encryption code key that mobile terminal is generated according to request of registering according to the first preset algorithm, according to label
The information carried to request, server generate the second encryption code key according to the second preset algorithm, judges that first encrypts code key and the
Whether two encryption code keys are identical, if not identical, indicate the request of registering that user is not sent by mobile terminal, may lead to
The request of registering of the back doors such as browser or simulator transmission is crossed, thus can determine that request of this time registering is illegal
Request to effectively prevent illegally registering behavior for user, therefore keeps checking-in result more accurate, if the first encryption code key and the
Two encryption code keys are identical, then judge when the registering of request carrying of registering of received register time and the storage registered and request to carry
Between whether conflict, if do not conflicted, register success flag to mobile terminal transmission, if conflict, then it represents that user may generation
It registers for other people or the repetition of user oneself is registered, send conflict mark of registering to mobile terminal, prevent that other people is replaced to sign
The behavior arrived can effectively improve attendance accuracy rate.
In the specific implementation, the flow chart of another movable attendance checking method as shown in Figure 3 is given on the basis of Fig. 1,
It can be found in following steps:
Step S302 receives the inquiry request that mobile terminal is sent;Wherein, inquiry request carries mobile terminal connection
AP information and current time.
By user for meeting room is registered, user can send inquiry to server by the mobile phone of oneself and ask
It asks, by utilizing AP (Access Point, the wireless access point) information (such as, MAC Address) connecting with mobile terminal only
The position that one characteristic can uniquely determine AP information corresponding region divides.
Step S304 is searched and AP information and current time are corresponding registers by pre-recorded pick list of registering
Option;Record in pick list of registering has the corresponding relationship of AP information, time and option of registering.
By pre-recorded type selecting table of registering search this AP (MAC Address) corresponding region for example where user meeting room and every
Session topic of the wall meeting room in current time.
The option of registering found is determined as response message by step S306;Wherein, response message includes being directed to AP information
It registers option at least one of current time.
Meeting room where user and next door meeting room are found in the session topic of current time, by find it is current when
Between different meeting rooms correspondence session topic information in response, the option such as Conference Room I of registering for including is in current time
Session topic, Conference Room II are two kinds of options of registering, the option of registering of response message at this time in the session topic of current time
Not less than one.
Response message is handed down to mobile terminal by step S308, so that mobile terminal determines target and registers option, and is based on
Target option transmission of registering is registered request.
User selects option of registering, such as selects Conference Room I current according to the response message for being handed down to mobile terminal
The session topic of time is registered option as target, is registered request based on target option transmission of registering, the letter for request carrying of registering
Breath includes: mobile terminal identification, user information, registers and position and register the time.
Step S310, whether judging to register according to the information that request carries of registering, it is legal to request.
Step S312, if so, issuing success flag of registering to mobile terminal.
Success flag of registering can be with registering successful text prompt, and the successful voice that is also possible to indicate to register mentions
Show, user is prompted to register success.If it is determined that register request be it is illegal, detailed process in step s 106 it is stated that, herein not
It repeats again.
Above-mentioned kind of movable attendance checking method provided in an embodiment of the present invention carries the AP of mobile terminal connection in inquiry request
Information and current time can uniquely determine AP information pair by the unique trait using the AP information connecting with mobile terminal
Answer the position in region to divide, and accurately response message can be issued according to current time, so according to response information by moving
Dynamic terminal sends request of registering, and further improves attendance accuracy rate.
Embodiment two:
Previous embodiment one provide movable attendance checking method on the basis of, the present embodiment by taking student attends class and registers as an example,
It is student by attendance object, attendance occasion is registered for course, is applied to aforementioned movable attendance checking method, a kind of shifting as shown in Figure 4
The flow chart of dynamic Work attendance method, the specific steps are as follows:
(1) if the client (that is, aforementioned mobile terminal) of student connects in the classroom that some has Wi-Fi to cover
WI-FI, student will send inquiry request by user end to server, wherein inquiry request includes that current Wi-Fi includes
MAC Address (that is, aforementioned AP information) and current time.
(2) server is in the inquiry request for receiving client, based on the received mac address information and temporal information pair
Course in MySQL database carries out screening matching, and the selection result is if there is going out to meet the course under current time current location
Curriculum information corresponding under current time and space is then issued to client by information.
(3) client obtains the curriculum information that server end issues, if curriculum information is that sky suggests that student changes a position
It sets or refreshes client and retransmit inquiry request, current location MAC Address letter can also be sent by user end to server
The information of no typing background data base is ceased, if current curriculum information is not sky, can choose the course for needing to register, hair
Send request of registering.
(4) student of client transmission register request when, client can by current student information (student number, name etc.),
Selection curriculum information (course place, course time, course teacher, course name etc.) is currently registered time, the first preset algorithm
The encryption key information being calculated is sent to server as request of registering, and is verified by server.
(5) after server receives the request of registering that client is sent, encryption code key is parsed, if it is secret to parse encryption
Key is sky, then issues invalidated identification of registering to client;If being not sky, it is secret that encryption is calculated by the second preset algorithm
Key judges whether the encryption code key that client calculates and the encryption code key that server calculates are identical, if it is not, then illustrating client
Different with the Encryption Algorithm of server, student is the request of registering sent by simulator, registers to be identified as and illegally register, if
It is to judge whether the client is requesting to have completed in the corresponding course time range of course registered further according to request of registering
The registering of other courses, if it is issues conflict mark of registering to client;If it is not, then whether judging the client again
Registering for the course is had been completed in the corresponding course time range of course registered of request, if it is under client
Duplicate marking of registering is sent out, indicates success of registering if not, the solicited message that will register is stored in database, and issues and register to client
Success flag.
(6) client receives the information that issues of server, if the information issued is to register to mention in conflict mark mark
Whether dendrography is raw needs to cancel the information registered before the mobile terminal, registers if not cancelling and cannot carry out this course;Such as
The information that fruit issues is invalidated identification of registering, then shows that being currently at progress interface simulation forgery registers, in invalidated identification of registering
There is the information for prompting current student information to be labeled, it is invalid to register;If the information issued is success flag of registering, show
It registers success.
Fig. 5 illustrates a kind of flow chart of the mac address information in the corresponding classroom of administrator's typing, reference can be made to following step
It is rapid:
(1) mobile terminal administrator typing classroom mac address information connects upper Wi-Fi information in classroom first, and input is current
The corresponding physical address in classroom, click are uploaded onto the server and are waited from the background.
(2) server receives mobile terminal and sends mac address information and corresponding physical location information (classroom information), sentences
Whether received information of breaking has existed in MySQL database, if received information there are database, illustrates to upload conflict,
Feedback indicator uploads failure;If the information received there is no summarizing with database, illustrates to upload and not conflict, upload successfully,
Database is written, feedback indicator uploads successfully.
(3) the mobile-terminated feedback indicator receiving server and issuing shows current location if feedback indicator is to upload conflict
Mac address information be transmitted through on, the step of administrator just needs shift position to re-start above-mentioned (1) and (2);If anti-
Feedback, which is identified as, to be uploaded the mac address information for successfully showing current location and successfully uploads.
Fig. 6 illustrates a kind of flow chart of curriculum information typing, reference can be made to following steps:
(1) it can be teacher at the end Web or administrator carry out one time of selection, place carries out the structure of curriculum information
It builds, submits the curriculum information of building to server background, the feedback information of waiting for server.
(2) server first judges what Give lecture was included after receiving the information of course construction of the end Web transmission
Classroom, time, judge whether received information clashes with database summary information by specific rule, if it happens
Conflict, then feed back to the end Web is identified as creation course conflict, creates successfully if not conflicting and indicating that, database is written.
(3) the user teacher or administrator at the end Web receive the mark of server background return if it is creation course punching
Prominent, user just needs to carry out edit selection to the period of oneself selection or place to re-start step (1) and (2).
Scheme for student attends class and registers is suitable for the movable attendance checking side based on AP information (such as, MAC Address)
Method.During entirely registering, in order to guarantee the availability of movable attendance checking method, RESTFUL, md5 encryption, information are analyzed
Mutual exclusion and asynchronous load, the technologies such as refreshing are realized by the design of the mac address information to Wi-Fi by Wi-Fi's in real time
Mac address information is automatically added in database, and user will send to backstage automatically after mobile phone links Wi-Fi information and ask
Seek the information for obtaining corresponding attendance classroom.
From the perspective of the acquisition of the mac address information of Wi-Fi, mobile terminal can allow to get linked Wi-Fi
The MAC Address of information, and mac address information therein is all that uniquely, can be used as the mark of unique identification, and attendance
Information corresponding encryption technology has also been made, can guarantee the safety of transmission process, will not be modeled and distort.
The mark requested when mobile terminal is registered simultaneously is also the unique identification of mobile terminal, it can be ensured that Mei Geyi
Dynamic terminal is all to represent a user, register request when, handled by global mutual exclusion, ensure that successful class of registering
When journey is not over, registering for other courses not can be carried out, except non-user cancels this successful information of having registered, just may be used
To carry out registering for next course.
After user registers successfully, solicited message of registering storage to MYSQL database, it is therefore an objective to the information that will register storage
The accuracy and reliability got up and ensure to register.
The process of registering can final overview are as follows: marks user by the unique identifier in mobile terminal, and passes through Wi-
The information of unique identification in the MAC Address of Fi or base station ties up register curriculum information and the classroom information of registering of current time
It is fixed, and be saved in database.It can judge currently whether to register the time by the time of the curriculum information when being registered
It through terminating, and judges whether there is and is registered by a mobile terminal to multiple users, guarantee a mobile terminal only
Effectively to be registered to a course, other information of registering are all invalid, information of finally registering and the binding of each user mobile phone.
The final overview for process of registering is primarily to illustrate that movable attendance checking method is not limited to special scenes, as long as having
Mobile terminal can be marked, the mode of registering an of specific occasion is carried out by two dimensions in time and space, it can
Reach accurate and mode of reliably registering.
By the above-mentioned means, user need to only be registered by client, that is, mobile terminal, and it is convenient and efficient, directly by servicing
Device is interacted with mobile terminal, can effectively promote attendance efficiency.Work as in addition, being had in the inquiry request that mobile terminal is sent
The MAC Address that preceding Wi-Fi includes registers and carries user information, position of registering in requesting, register time and encryption code key, by
In the uniqueness of mac address information, the mark of unique identification can be used as, therefore can be effectively prevented instead of behavior of registering, clothes
Encryption code key is calculated according to request of registering in business device, and then the encryption code key and server meter being calculated according to mobile terminal
Obtained encryption code key, whether judgement request of registering legal, and register position and register the time can with time dimension and
Spatial Dimension double definition attendance range, in conjunction with user information, can comprehensive verification register the legitimacy of request, only registering
Success of registering just is thought when requesting legal.This mode can make checking-in result more accurate.In conclusion the present embodiment can
Effectively improve attendance efficiency and attendance accuracy rate.
Embodiment three:
Corresponding to preceding method embodiment, a kind of movable attendance checking device, one kind shown in Figure 7 are present embodiments provided
The structural block diagram of movable attendance checking device, the device are set to server side, including following module:
Receiving module 702, for receiving the request of registering of mobile terminal transmission;Wherein, the packet that request of registering carries
Include: mobile terminal identification, user information register and position and register the time;
Judgment module 704, for according to register request carry information judgement register request it is whether legal;
Sending module 706 issues success flag of registering to mobile terminal if requesting legal for registering.
Above-mentioned movable attendance checking device provided in an embodiment of the present invention, the request of registering sent by receiving mobile terminal, and
Request of registering carries mobile terminal identification information, user information, register location information and temporal information of registering, and then according to registering
Whether the information judgement that request carries request of registering is legal, requests legal if registered, issues to register to mobile terminal and successfully mark
Know.In attendance mode provided in this embodiment, user need to can only be registered by mobile terminal, convenient and efficient, directly
It is interacted by server and mobile terminal, can effectively promote attendance efficiency.In addition, in the request of registering that mobile terminal is sent
Mobile terminal identification, user information are carried, registers and position and registers the time, since mobile terminal identification has uniqueness, because
This can be effectively prevented instead of registering behavior, and register position and register the time can be dual with time dimension and Spatial Dimension
Limit attendance range, in conjunction with user information, can comprehensive verification register the legitimacy of request, only register request legal when
Think success of registering.This mode can make checking-in result more accurate.In conclusion the present embodiment can effectively improve attendance
Efficiency and attendance accuracy rate.
In the specific implementation, request of registering further includes the first encryption code key;Wherein, the first encryption code key be mobile terminal by
It is generated according to the first preset algorithm;Above-mentioned judgment module 704 is used for the information carried according to request of registering, according to the second pre- imputation
Method generates the second encryption code key;Wherein, the first preset algorithm is related to the second preset algorithm;Judge the first encryption code key and second
Whether identical encrypt code key;Registering for storing in the database of request carries if so, judgement is registered information and server is asked
Ask the information of carrying with the presence or absence of conflict, if there is no conflict, determine register request it is legal.Above-mentioned sending module 706 is used for
If the first encryption code key is different with the second encryption code key, invalidated identification of registering is issued to mobile terminal;If request of registering is taken
The information that request carries of registering stored in the information of band and the database of server, which exists, to conflict, and issues and registers to mobile terminal
Conflict mark.
In another embodiment, above-mentioned receiving module 702 includes: searching unit, if asked for registering in reception
The inquiry request that mobile terminal transmission is received before asking is searched and AP information and is worked as by pre-recorded pick list of registering
Corresponding option of registering of preceding time;Wherein, inquiry request carries the AP information and current time of mobile terminal connection;It registers
Record has the corresponding relationship of AP information, time and option of registering in pick list;Determination unit, the option of registering for that will find
It is determined as response message;Wherein, response message includes registering option for at least one of AP information and current time;It sends single
Member so that mobile terminal determines target and registers option, and is registered choosing for response message to be handed down to mobile terminal based on target
Item sends request of registering.
The technical effect of device provided by the present embodiment, realization principle and generation is identical with previous embodiment, for letter
It describes, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
The embodiment of the invention provides a kind of server, a kind of structural schematic diagram of server shown in Figure 8, the clothes
Business device includes: processor 80, memory 81, bus 82 and communication interface 83, the processor 80, communication interface 83 and memory
81 are connected by bus 82;Processor 80 is for executing the executable module stored in memory 81, such as computer program.
Wherein, memory 81 may include high-speed random access memory (RAM, RandomAccessMemory), can also
It can further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 83 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 82 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 8, it is not intended that an only bus or
A type of bus.
Wherein, memory 81 is for storing program, and the processor 80 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle
In device 80, or realized by processor 80.
Processor 80 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 80 or the instruction of software form.Above-mentioned
Processor 80 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 81, and processor 80 reads the information in memory 81, in conjunction with
Its hardware completes the step of above method.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium
Computer program, when computer program is run by processor the step of the method for any one of execution previous embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, can be with reference to the corresponding process in previous embodiment, and details are not described herein.
The computer program product of movable attendance checking method, apparatus and server provided by the embodiment of the present invention, including deposit
The computer readable storage medium of program code is stored up, the instruction that said program code includes can be used for executing previous methods implementation
Method described in example, specific implementation can be found in embodiment of the method, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.