CN108711206A - Gate control method, relevant device, system and storage medium - Google Patents

Gate control method, relevant device, system and storage medium Download PDF

Info

Publication number
CN108711206A
CN108711206A CN201810471712.XA CN201810471712A CN108711206A CN 108711206 A CN108711206 A CN 108711206A CN 201810471712 A CN201810471712 A CN 201810471712A CN 108711206 A CN108711206 A CN 108711206A
Authority
CN
China
Prior art keywords
user
station
gate
server
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810471712.XA
Other languages
Chinese (zh)
Other versions
CN108711206B (en
Inventor
印冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810471712.XA priority Critical patent/CN108711206B/en
Publication of CN108711206A publication Critical patent/CN108711206A/en
Application granted granted Critical
Publication of CN108711206B publication Critical patent/CN108711206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/30Individual registration on entry or exit not involving the use of a pass
    • G07C9/32Individual registration on entry or exit not involving the use of a pass in combination with an identity check

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a kind of gate control method, relevant device, system and storage mediums, and the embodiment of the present invention receives the data related to user that gate is sent, and is verified to the data;If the verification does not pass through, go out state out of the station from the extracting data;When the state out of the station is to enter the station state, the credit grade of the user is obtained;When the credit grade is more than predetermined threshold value, instruction of letting pass is returned to the gate, so that the gate is based on instruction control gate switch opening of letting pass.The program can not only verify data, but also verify the obstructed out-of-date reliability and flexibility that can also decide whether clearance user according to the credit grade of user, improve that gate controls.

Description

Gate control method, relevant device, system and storage medium
Technical field
This application involves Internet technical fields, and in particular to a kind of gate control method, relevant device, system and storage Medium.
Background technology
With the development of science and technology, occur a plurality of types of communal facilitys in public place, for example, by bus communal facility or Scenic spot communal facility etc. brings many facilities for people's lives, and when people use certain communal facilitys, it can use Mobile terminal pays certain expense to the provider of communal facility.
For by bus, subway or bus trip are at indispensable part in for people's lives, with mobile terminal Intelligent and internet development, can virtualize ticket, for example, user can show Quick Response Code by mobile terminal, and It is supplied to gate to scan the Quick Response Code, you can to realize and pay by bus.In the prior art, during barcode scanning is ridden, gate When scanning mobile terminal displaying Quick Response Code, gate can locally test the legitimacy of Quick Response Code (whether be by bus Quick Response Code) Card, when verify the Quick Response Code it is legal when just let pass user, when verify the Quick Response Code it is illegal when just user is forbidden to pass through.
In the research and practice process to the prior art, the inventors of the present application found that existing barcode scanning is ridden only Simple authentication is carried out by the local legitimacy to Quick Response Code of gate, reliability is not high, and verifies and obstructed out-of-date forbid using Family is passed through, and processing mode is relatively simple, and larger limitation is brought by bus to user.
Invention content
A kind of gate control method of the embodiment of the present application offer, relevant device, system and storage medium, it is intended to improve gate The reliability of control and flexibility.
In order to solve the above technical problems, the embodiment of the present application provides following technical scheme:
A kind of gate control method, the method includes:
The data related to user that gate is sent are received, and the data are verified;
If the verification does not pass through, go out state out of the station from the extracting data;
When the state out of the station is to enter the station state, the credit grade of the user is obtained;
When the credit grade is more than predetermined threshold value, instruction of letting pass is returned to the gate, so that the gate base Control gate switch is instructed to open in letting pass.
A kind of gate control method, the method includes:
The graphic code that scanning mobile terminal is generated based on data related to user, to obtain the institute for including in graphic code State data;
The data are verified;
If the verification does not pass through, go out state out of the station from the extracting data;
When the state out of the station is to enter the station state, the credit grade of the user is obtained;
When the credit grade is more than predetermined threshold value, control gate switch is opened.
A kind of station server, including:
Verification unit, the data related to user for receiving gate transmission, and the data are verified;
Extraction unit goes out state out of the station if not passing through for the verification from the extracting data;
Acquiring unit, for when the state out of the station is to enter the station state, obtaining the credit grade of the user;
Returning unit, for when the credit grade is more than predetermined threshold value, instruction of letting pass to be returned to the gate, so that It obtains the gate and opening is switched based on instruction control gate of letting pass.
A kind of gate, including:
Scanning element, the graphic code generated based on data related to user for scanning mobile terminal, to obtain figure The data for including in shape code;
Verification unit, for being verified to the data;
Extraction unit goes out state out of the station if not passing through for the verification from the extracting data;
Acquiring unit, for when the state out of the station is to enter the station state, obtaining the credit grade of the user;
Control unit, for when the credit grade is more than predetermined threshold value, control gate switch to be opened.
A kind of gate control system, the gate control system include any gate provided in an embodiment of the present invention, with And any station server provided in an embodiment of the present invention.
A kind of storage medium, the storage medium are stored with a plurality of instruction, and described instruction is loaded suitable for processor, with Execute the step in any gate control method provided in an embodiment of the present invention.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the calculating When machine program is executed by the processor so that the processor executes any gate controlling party provided in an embodiment of the present invention Step in method.
The embodiment of the present invention can receive the data related to user of gate transmission, and be verified to data, such as It checks and repeats out of the station and state out of the station is checked etc.;If verification does not pass through, go out shape out of the station from extracting data State;When state out of the station is to enter the station state, the credit grade of user can be obtained, and when credit grade is more than predetermined threshold value When, instruction of letting pass is returned to gate, is opened so that gate is based on clearance instruction control gate switch.The program not only can be right Data carry out full validation, and verify it is obstructed it is out-of-date can also decide whether clearance user according to the credit grade of user, Improve reliability and the flexibility of gate control.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of gate control system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 3 is a flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 4 is a flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 5 is a flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 6 is a flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 7 is a flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 8 is a flow diagram of gate control method provided in an embodiment of the present invention;
Fig. 9 is a flow diagram of gate control method provided in an embodiment of the present invention;
Figure 10 is a flow diagram of gate control method provided in an embodiment of the present invention;
Figure 11 is a flow diagram of gate control method provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of station server provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of gate provided in an embodiment of the present invention;
Figure 14 is the structural schematic diagram of computer equipment provided in an embodiment of the present invention;
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
A kind of gate control method of offer of the embodiment of the present invention, relevant device, system and storage medium, wherein correlation is set Standby includes station server, gate and computer equipment etc..
Referring to Fig. 1, the schematic diagram of a scenario for the gate control system that Fig. 1 is provided by the embodiment of the present invention, the gate control System processed may include gate, server of standing and central server etc., wherein can be carried out between gate and station server Wired or wireless connection, wired or wireless connection can be carried out by standing between server and central server, and therefore, gate can be with By standing, server carries out information exchange with central server.The station server is used to control the gate, Server of standing can be deployed in the same area with gate, for example, gate is deployed in a certain subway station, server of standing is also portion It is deployed on the identical subway station.Server of standing is not directly connected to internet, is connected by central server and internet It connecing, central server is connect by internet with application server, when central server can not access internet, interior service of standing Device can not also access internet.
The gate control system can also include mobile terminal and application server etc., wherein mobile terminal may include Smart mobile phone and tablet computer etc. can install application program on the mobile terminal, and the application program is corresponding with application server, I.e. the application server can be used for managing the application program, can be carried out between the application server and central server wired Or it is wirelessly connected.
Specifically, application server can be sent to mobile terminal data related to user (such as card certificate (such as with Family identifies and user data is signed etc.) and industry data (such as entry/exit station record etc.)), mobile terminal can be based on and user Relevant data etc. generate graphic code (such as Quick Response Code) by application program (such as wechat small routine), at this time in mobile terminal Display interface in can show the graphic code.Gate can scan mobile terminal by preset code reader and be based on and user's phase The graphic code that the data of pass are generated to obtain the data for including in graphic code, and verifies (for example, to movement data Error, card certificate, signing messages and graphic code effective time between the location information of terminal and the location information of gate carry out Verification).
Pass through if gate carries out verification to data, and gate docking station server, then gate can be sent the data to It stands server, so that station server verifies data (for example, repeating to enter the station or outbound verification, blacklist verify Deng).When passing through if server of standing carries out verification to data, and needing to access central server, server of standing can will be used Family mark is sent to central server, at this point, central server can in the database be searched and the user according to user identifier Identify relevant information, with currently enter the station to user or it is outbound verify etc. with the relevant information of the user identifier, if center Server verification passes through, then can return to instruction of letting pass to gate by server of standing, gate is referred to based on the clearance received It enables control gate switch open, and generates user and enter the station record, server enters the station to central server transmission user by standing Record.
Do not pass through if gate verifies data, and the not connected station server of gate, then gate can be from data State out of the station is extracted, when state out of the station is to enter the station state, the credit grade of user can be obtained, and work as credit grade When more than predetermined threshold value, control gate switch is opened, and is generated user and is entered the station record, and at gate docking station server and center After server, gate can enter the station user to record is sent to central server by server of standing.If gate to data into Row verification does not pass through, and when state out of the station is outbound state, gate can control gate switch and open, and it is outbound to generate user Record can be sent the outbound record of user by server of standing after gate docking station server and central server To central server.
When gate docking station server, and when can not access central server, if station server carries out school to data It tests and does not pass through, then server of standing can go out state out of the station from extracting data;When state out of the station is to enter the station state, obtain Take the credit grade at family;When credit grade is more than predetermined threshold value, instruction of letting pass is returned to gate, so that gate is based on putting Row instruction control gate switch is opened, and is generated user and entered the station record, and gate can will be used when being able to access that central server Family enters the station to record is sent to central server by server of standing.
Central server enters the station after record or the outbound record of user receiving user, can be entered the station according to user record or The outbound record of user updates industry data, and updated industry data is sent to application server.Central server may be used also To generate resource transfers voucher according to the outbound record of user, resource transfers voucher is sent to application server, so that using Server executes the operation of resource transfers;Etc..
It should be noted that the schematic diagram of a scenario of gate control system shown in FIG. 1 is only an example, the present invention is real The gate control system and scene for applying example description are in order to more clearly illustrate the technical solution of the embodiment of the present invention, not The restriction for technical solution provided in an embodiment of the present invention is constituted, those of ordinary skill in the art are it is found that as gate controls The appearance of the differentiation and new business scene of system, technical solution provided in an embodiment of the present invention is for similar technical problem, together Sample is applicable in.
It is described in detail separately below.
In the present embodiment, the angle of slave station server is described, a kind of gate control method, including:It receives The data related to user that gate is sent, and data are verified;If verification does not pass through, go out disengaging from extracting data It stands state;When state out of the station is to enter the station state, the credit grade of user is obtained;When credit grade is more than predetermined threshold value, Instruction of letting pass is returned to gate, is opened so that gate is based on clearance instruction control gate switch.
Referring to Fig. 2, Fig. 2 is the flow diagram for the gate control method that one embodiment of the invention provides.This method can Under scene can not access central server applied to station server, which may include:
In step S101, the data related to user that gate is sent are received, and verify to data.
Wherein, gate control method can be applied under being required to the scene of ticket checking when passing in and out a certain region, for example, lock Machine control method can be applied in subway station by bus or in high ferro station equal communal facility of riding by bus, can also be applied to travelling The scenic spots such as scenic spot or exhibition center communal facility can also be applied to the scene of other communal facilitys, when setting applied to scenic spot is public Shi Shi can will enter the station and be interpreted as entering scenic spot, scenic spot etc. is interpreted as out by outbound.It is appreciated that it is understood that entering the station It is outbound to can be understood as leaving a certain region to enter a certain region.
Specifically, server of standing can receive the data related to user of gate transmission, which can be gate It is obtained by scanning the graphic code shown on the mobile terminal that holds of user, it is default which can be that mobile terminal passes through Application program generate.The graphic code may include Quick Response Code or bar code etc., which may include wechat little Cheng Sequence (such as code small routine by bus) or application etc. by bus.It should be noted that the graphic code can be that mobile terminal is pre- when online It first generates, and is stored, be supplied to gate to scan when offline.Since gate may be mounted at bus station or subway station Entrance or outlet, when the graphic code on gate scanning mobile terminal, gate can be by the entrance or outlet information simultaneously It is transferred to station server, therefore, the information related to user that gate is sent to station server further includes state out of the station, State out of the station is the state that enters the station if gate is in entrance, if gate, which is in, exports state out of the station as outbound state.
The data may include industry data, card certificate, dynamic data and application program operator signature etc., wherein should Industry data may include user enter the station record and user it is outbound record etc., for example, the time that user is entered the station in website A, user In the website B outbound times etc.;The card certificate may include credit grade, user identifier, the user data signature (explanation of user User authorizes) etc., which may include credit grade by bus, can also include online payment credit grade or other Credit grade etc., which can be User ID (identification), and user data signature can be user It is generated after being authorized during by application program register account number;The dynamic data may include graphic code generated time, The effective time etc. of the means of payment, graphic code, the application program operator sign for illustrating that application program operator has authorized.
After the graphic code shown on the mobile terminal that the gate is held by scanning user obtains data, server of standing exists After receiving above-mentioned data, data can be verified, which may include according to the application program pair for generating graphic code The verification mode that the application program operator answered provides carries out local verification, for example, verification whether Multiple-Scan graphic code, verification Whether card certificate is that application program operator provides, whether signature verification is that user has authorized, verified whether graphic code is having In effect time range etc.;The verification may include the information school mobile location-based service (Location Based Service, LBS) It tests, that is, whether within the allowable range etc. to verify error between the location information and the location information of gate of mobile terminal.It is optional , can be executed in whole or in part by gate in above-mentioned checking procedure.
Server of standing can verify data after the data for receiving gate transmission.In certain embodiments In, the step of being verified to data may include:
Obtain pre-stored blacklist list and pre-stored industry data;From extracting data go out user identifier and State out of the station;It is verified based on blacklist list, industry data, user identifier and state out of the station.
Specifically, server of standing can pre-set blacklist list, which, which can be used for storing, exists The user identifier of record of bad behavior, for example, non-paid after last time is outbound and credit grade is more low, server of standing can also be advance Storage user enter the station record and user it is outbound record etc. industry datas.At this point, station server can be obtained from local data base Take blacklist list and pre-stored industry data, or station server that can obtain blacklist from storage server List and pre-stored industry data etc..
After obtaining the information such as blacklist list and industry data, server of standing can be from the extracting data received Go out user identifier and state out of the station, which may include then the state of entering the station and outbound state etc. are based on black name Single-row table, industry data, user identifier and state out of the station are verified.
It should be noted that station server can also pre-set white list, which can be used for Storage records good user identifier, and server of standing can obtain white list from local data base or storage server And industry data etc., and go out user identifier and state out of the station from extracting data, based on white list, industry data, use Family identifies and state out of the station is verified.
Optionally, the step of being verified based on blacklist list, industry data, user identifier and state out of the station is wrapped It includes:
User identifier is inquired whether in blacklist list and whether graphic code is repetitively scanned;According to user identifier Search the record of user's last time in industry data;If finding the record of user's last time in industry data, and user upper one Secondary record is matched with state out of the station, user identifier is not in blacklist list and graphic code is not repetitively scanned, it is determined that Verification passes through.
Specifically, during being verified, server of standing may include verifying as follows:It verifies (1) and inquires user It identifies whether in blacklist list, for example, can will store in user identifier and blacklist list that extracting data goes out User identifier is compared one by one.Verify (2) according to user identifier search industry data in user's last time record (for example, The record of user's last time be user enter the station record or user it is outbound record etc.), and judge user's last time record and into Whether outbound state matches;After gate scanning figure shape code, will produce a barcode scanning voucher, for record user's barcode scanning into Stand or outbound behavior, a pair of matched user enter the station record and the outbound record of user can as resource transfers voucher, therefore, when User's last time is recorded as the record that enters the station, and current state out of the station is when entering the station state, to illustrate the note of user's last time Record is mismatched with state out of the station, alternatively, when the outbound record that is recorded as of user's last time, and current state out of the station is When state of standing, illustrate that the record of user's last time is mismatched with state out of the station, at this point, will produce corresponding with the user unilateral Account.Wherein, user needs pairs of user by bus and enters the station record and the outbound record of user, if there is an individual user into It stands record, without the outbound record of user for the record matching that enters the station with this individual consumer, or there is an individual user to go out It stands record, without entering the station record with the user of the individual outbound record matching of user of this, then this individual consumer is entered the station note Record or the outbound record of this individual consumer are referred to as unilateral account.Whether verification (3) graphic code is repetitively scanned, for example, graphic code After scanned first time, interval is scanned second after several seconds, then illustrates that graphic code is repetitively scanned.
Wherein, server of standing can call multiple thread parallels to execute verification (1), verification (2) and verification (3) etc., stand Server can also first carry out verification (1), execute verification (2) again after verification (1) passes through, and after verification (2) passes through Verification (3) is executed again, either, first carries out verification (2), executes verification (1) again after verification (2) passes through, and in verification (1) Execute verification (3) again after;Specific verification mode can be flexibly arranged according to actual needs, be not construed as limiting here.
If user identifier is not in blacklist list and graphic code is not repetitively scanned, it is determined that verification passes through;If according to User identifier can find the record of the last time of user described in industry data, then judge record and the disengaging of user's last time Whether state of standing matches, if record of the user identifier not in blacklist list, primary on user matched with state out of the station and Graphic code is not repetitively scanned, it is determined that verification passes through;If record of the user identifier in blacklist list, primary on user with Any one or more condition during state mismatch out of the station or graphic code are repetitively scanned is set up, it is determined that verification is obstructed It crosses;For example, if record of the user identifier in blacklist list, primary on user is matched with state out of the station and graphic code quilt Multiple scanning, it is determined that verification does not pass through;If record of the user identifier not in blacklist list, primary on user with it is out of the station State matches and graphic code is not repetitively scanned, it is determined that verification passes through;If user identifier is not in blacklist list, user Last record is matched with state out of the station and graphic code is repetitively scanned, it is determined that verification does not pass through;If user identifier is not Record in blacklist list, primary on user is mismatched with state out of the station and graphic code is repetitively scanned, it is determined that school It tests and does not pass through;Either, if the record of user's last time and state out of the station mismatch, user identifier in blacklist list, And graphic code be repetitively scanned etc. in any one or more conditions meet, it is determined that verification does not pass through;Etc..
In some embodiments, the data related to user that gate is sent are received, and to step that data are verified After rapid, gate control method can also include:
If verification passes through, verification is sent by as a result, and going out state out of the station from extracting data to gate;
When state out of the station is to enter the station state, receives gate and entered the station record based on the user that is sent by result of verification;
When being connect with central server, user's record that enters the station is sent to central server, so that central server It is entered the station according to user and records update industry data.
Specifically, when passed the verification, server of standing can send verification by as a result, the verification passes through knot to gate Clearance instruction etc. can be carried in fruit, instruct control gate switch to open so that gate is based on letting pass;And server of standing State out of the station can be gone out from extracting data, then judge that state out of the station enters the station state or outbound state etc..When into Outbound state is when entering the station state, and server of stand can receive gate and be entered the station note based on verifying the user that is sent by result Record, the user record that enters the station can be gate after receiving verification by result, and control gate switch is opened, so as to use of letting pass Family, and generate user and enter the station record, the user record that enters the station may include that user is entered the station time and the website etc. that enters the station.It stands for oral administration Whether business device enters the station after record receiving user, it can be determined that exist with central server and connect, when station server is in When central server connects, user's record that enters the station is sent to central server, so that central server enters the station note according to user Record update industry data, for example, record that this user can be entered the station is added in history industry data.
It should be noted that if station server does not pass through data check, then directly verification can be sent to gate not By as a result, so that gate does not show that gate switchs the relevant information that do not open based on verification by result.The verification is obstructed Forbid letting pass instruction and the obstructed reason of verification etc. can be carried by crossing in result, so that gate is based on forbidding letting pass instructing The closed state of gate switch is maintained, and the phase for showing that gate switch is not opened in screen is being shown based on obstructed reason is verified Information is closed, which may include that reason includes that graphic code is expired, it is out of the station to repeat, is put on the blacklist, shape out of the station State mismatch etc., the relevant information can prompt or guide user to carry out corresponding processing etc..Either, if verification does not pass through, Then go out state out of the station from extracting data, when state out of the station is to enter the station state, the credit grade that can obtain user is come Determine whether clearance user.It is carried out for determining whether clearance user according to the credit grade of user by the latter below detailed Explanation.
In some embodiments, if verification passes through, verification is sent by as a result, and going out from extracting data to gate After the step of state out of the station, gate control method can also include:
When state out of the station is outbound state, the outbound record of user that gate is sent based on verification by result is received;
When being connect with central server, the outbound record of user is sent to central server, so that central server Industry data is updated according to the outbound record of user, and resource transfers voucher is generated according to the outbound record of user.
Specifically, when server of standing carries out verification to data to be passed through, server of standing can send to gate and verify By as a result, and from extracting data go out state out of the station, then judge that state out of the station enters the station state or outbound shape State etc..When state out of the station is outbound state, server of standing can receive the use that gate is sent based on verification by result The outbound record in family, the outbound record of the user can be gates after receiving verification by result, and control gate switch is opened, with Just clearance user is generated, and the outbound record of the user may include user's outbound time and outbound website etc..Service in standing Device, can be genuinely convinced in being sent to the outbound record of user after being connect with central server after receiving the outbound record of user Business device, so that central server updates industry data according to the outbound record of user, for example, can be by the outbound record of this user It is added in history industry data.And central server can be obtained and be entered the station note with the user of the outbound record matching of the user Record, entering the station to record according to the outbound record of user and user generates resource transfers voucher, which can deduct fees to order It is single.Then resource transfers voucher can be sent to application server by central server, so that application server executes resource The operation of transfer, i.e. application server execute operation of deducting fees, and successfully order of deducting fees is sent to the mobile end for providing graphic code End.
It should be noted that gate after generating the outbound record of user, if being not connected with station server, can be stored first The outbound record of the user, and it is sent to station server after docking station server, then by the outbound record of the user.It stands for oral administration Device be engaged in after receiving the outbound record of user, if not connected central server, can first store the outbound record of the user, and After being connect with central server, by user it is outbound record be sent to central server so that central server can according to The outbound record in family updates industry data, and obtains and enter the station record with the user of the outbound record matching of the user, is gone out according to user Stand record and user enter the station record generate resource transfers voucher, resource transfers voucher is sent to application server, so that answering The operation of resource transfers is executed with server.
In step s 102, if verification does not pass through, go out state out of the station from extracting data.
Due to that there may be the case where gate connect disconnection with station server, and cause to fail to give birth in time in gate At user enter the station record or the outbound record of user is sent to station server, therefore, gate is controlled in order to improve Accuracy and reliability, when station server verification is obstructed out-of-date, server of standing can go out shape out of the station from extracting data State, and determine that user needs to enter the station or outbound according to state out of the station, the strategy gone out by using Yan Jinkuan to gate into Row control.
In some embodiments, if after the step of verification does not pass through, goes out state out of the station from extracting data, lock Machine control method can also include:When state out of the station is outbound state, instruction of letting pass is returned to gate, so that gate base It instructs control gate switch to open in letting pass, and generates the outbound record of user;The outbound record of user that reception gate is sent, and When being connect with central server, the outbound record of user is sent to central server, so that central server goes out according to user Record of standing updates industry data, and generates resource transfers voucher according to the outbound record of user;Resource transfers voucher is sent to Application server, so that application server executes the operation of resource transfers.
In some embodiments, when state out of the station is outbound state, the verification does not pass through, and school is sent to gate After testing not by result, gate control method can also include:
The outbound record of user that gate is sent is received, the outbound gate that is recorded as of user is not received based on verification by result It is sent after setting instruction input by user, and when being connect with central server, it is genuinely convinced during the outbound record of user is sent to Business device.
Specifically, after sending verification not by result to gate, gate can be based on verification and not pass through server of standing As a result show that gate switchs the relevant information that do not open in display screen, to prompt or user guided to be handled accordingly, For example, user can the self-service processing on self-service machine (Booking Office Machine, BOM), which can integrate Can also be independently of gate, user can guide according to BOM and input enter the station information or other information on BOM on gate Deng i.e. gate can be based on verification and not receive setting input by user by result instructing, and be instructed based on setting to passing through Relevant information out of the station is configured.After user carries out self-service processing by BOM, it can be regenerated by mobile terminal Graphic code, and it is supplied to gate to scan the graphic code regenerated, it can be verified after gate scanning figure shape code, and in school It tests by rear, control gate is opened, and generates the outbound record of user, and the outbound record of user is sent to station server.
Server of standing is after the outbound record of user for receiving gate transmission, can be with after being connect with central server The outbound record of user is sent to central server, so that central server updates industry data according to the outbound record of user, The outbound record of the user may include user's outbound time and outbound website etc., for example, can be by the outbound record of this user It is added in history industry data.And central server can be obtained and be entered the station note with the user of the outbound record matching of the user Record, entering the station to record according to the outbound record of user and user generates resource transfers voucher, which can deduct fees to order It is single.Then resource transfers voucher can be sent to application server by central server, so that application server executes resource The operation of transfer, i.e. application server execute operation of deducting fees, and successfully order of deducting fees is sent to the mobile end for providing graphic code End.
In step s 103, when state out of the station is to enter the station state, the credit grade of pre-stored user is obtained.
Obstructed out-of-date when verifying, server of standing can go out state out of the station from extracting data, if state out of the station is Enter the station state, then server of standing can obtain the credit grade of user.The credit grade may include by bus credit grade and Other credit grades etc., wherein by bus credit grade primarily directed to user ride situation setting credit grade, for example, working as User is by application program register account number, and when being scanned by bus for providing graphic code, can be when user uses for the first time should The highest credit grade by bus of user setting, such as when credit grade by bus includes A grades, B grades, C grades, D grades, E grades, F grades, G grades With H grades, and when not successively decreasing step by step from A grades to H grades, the credit grade by bus of the user used for the first time can be set as A grades. During scanning by bus is used for a long time in user, when user there are bad behavior (such as provide deceptive information or it is outbound after a few weeks Or non-paid etc. in some months) when, the credit grade by bus of user can be lowered according to actual demand;When there is no bad by user When behavior, the credit grade by bus of user maintains always the superlative degree.Other credit grades be mainly used for evaluate user other The credit situation of aspect may include online payment credit grade or loan credit grade etc..
In some embodiments, the step of credit grade for obtaining user may include:
Obtain credit grade and other credit grades by bus of pre-stored user;
The first weight is set for credit grade of riding, and the second weight is set for other credit grades;
According to credit grade by bus and its corresponding first weight and other credit grades and its corresponding second weight Generate credit grade.
Specifically, the credit grade by bus of user can be carried in data related to user, therefore server of standing The credit grade by bus of user can be gone out from extracting data.Server of standing can go out other letters of user from extracting data Use grade.It is understood that credit grade and other credit grades by bus of user can also by other acquisition modes into Row obtains, and particular content is not construed as limiting here.
After obtaining credit grade and other credit grades by bus, server of stand can be that credit grade be arranged the by bus One weight, and the second weight is set for other credit grades, wherein the first weight and the second weight can be according to actual needs Flexibly it is arranged, for example, the first weight can be more than the second weight.Then, according to credit grade by bus and its corresponding One weight and other credit grades and its corresponding second weight generate credit grade.For example, credit etc. by bus can be calculated Product between grade and its corresponding first weight, obtains the first numerical value, calculates other credit grades and its corresponding second power Product between weight, obtains second value;Then the accumulated value of the first numerical value and second value is set to the credit etc. of user Grade.It should be noted that station server can only obtain the credit grade by bus of user, the credit grade by bus of user is set It is set to the credit grade of user.
In step S104, when credit grade is more than predetermined threshold value, instruction of letting pass is returned to gate, so that gate base Control gate switch is instructed to open in letting pass.
After obtaining the credit grade of user, it can be determined that whether the credit grade is more than predetermined threshold value, wherein default threshold Value can be flexibly arranged according to actual needs, and specific value is not construed as limiting here.When credit grade is more than predetermined threshold value When, illustrate that the credit grade of user is higher, server of standing at this time can return to instruction of letting pass to gate, so that gate is based on Instruction control gate switch of letting pass is opened, and is generated user and entered the station record.
In some embodiments, when credit grade is less than or equal to predetermined threshold value, forbidding letting pass to gate return refers to It enables, so that gate is based on forbidding letting pass instructing that gate switch is maintained to close.
From the foregoing, it will be observed that station of embodiment of the present invention server receives the data related to user that gate is sent, and logarithm According to being verified, such as check whether that repetition is out of the station and checks etc. state out of the station;If verification does not pass through, from number State out of the station is extracted in;When state out of the station is to enter the station state, the credit grade of user can be obtained, and work as credit When grade is more than predetermined threshold value, instruction of letting pass is returned to gate, so that gate is based on instruction control gate switch opening of letting pass. The program can not only carry out data full validation, but also verify obstructed out-of-date can also determine according to the credit grade of user The fixed user that whether lets pass improves reliability and the flexibility of gate control.
In the present embodiment, it will be described from the angle of gate, a kind of gate control method, including:Scanning is mobile eventually The graphic code that end group is generated in data related to user, to obtain the data for including in graphic code;Data are verified; If verification does not pass through, and the not connected station server of gate, then go out state out of the station from extracting data;When state out of the station is When the state that enters the station, the credit grade of user is obtained;When credit grade is more than predetermined threshold value, control gate switch is opened.It is optional , it enters the station record it is also possible that generating user, and after gate docking station server, user's record that enters the station is sent in station Server.
Referring to Fig. 3, Fig. 3 is a flow diagram of the gate control method that one embodiment of the invention provides.The gate Control method is executed by gate, and in the case of being disconnected with station server applied to gate, which can be with Including:
In step s 201, the graphic code that scanning mobile terminal is generated based on data related to user, to obtain figure The data for including in shape code.
Wherein, which can be that mobile terminal is generated by preset application program, which may include Quick Response Code or bar code etc., mobile terminal can be based on data related to user and generate figure by preset application program Code, the application program may include wechat small routine or application etc. by bus.It should be noted that the graphic code can be mobile whole It is generated in advance, and is stored when holding online, be supplied to gate to scan when offline;Either, which can be mobile What terminal generated online, and it is supplied to gate to scan online.Since graphic code is generated based on data related to user, Therefore, gate can get the data for including in graphic code after scanning figure shape code.
The data may include industry data, card certificate, dynamic data and application program operator signature etc., wherein should Industry data may include user enter the station record and user it is outbound record etc.;Card certificate may include the credit grade of user, use Family mark, user data signature etc., which may include credit grade by bus, can also include online payment credit etc. Grade or other credit grades etc., the user identifier can be User ID, and user data signature can be user by answering With what is generated after authorizing during program registration account;The dynamic data may include the generated time of graphic code, payer The effective time etc. of formula, graphic code.
It should be noted that mobile terminal, before generating Quick Response Code, user can first carry out user's registration:Mode one, User can download and install relevant application program in advance on mobile terminals, which has scanning figure shape code, net Go to bank the functions such as payment or Third-party payment.Enter register interface, Yong Hu by opening the application program in mobile terminal The register interface fills in contact method and name etc., to improve relevant log-on message.Mode two, user can utilize mobile whole Public platform of riding is paid close attention in end by wechat platform or above-mentioned mounted application program or other platform scanner Quick Response Codes, Register interface is popped up, after filling in the log-on messages such as contact method and name, completes user's registration.It is understood that may be used also To be registered by other means, particular content is not construed as limiting here.After the registration is finished, user can be by registering Account be based on the generated graphic code of data related to user.
In step S202, data are verified.
After obtaining data related to user, gate can verify data, which may include according to life The verification mode provided at the corresponding application program operator of the application program of graphic code carries out local verification, for example, verification is Whether no Multiple-Scan graphic code, check card certificate are that application program operator provides, whether signature verification is that user has awarded Whether power, verification graphic code are within effective time etc.;The verification may include LBS information checkings, that is, verify mobile terminal Location information and the location information of gate between error whether within the allowable range etc..
In some embodiments, the step of gate verifies data may include:
From the location information of extracting data card release certificate, signing messages, graphic code effective time and mobile terminal, and Obtain the location information of gate;
Location information to mobile terminal and the error between the location information of gate, card certificate, signing messages and figure Code effective time is verified.
Specifically, gate can be from extracting data card release certificate, signing messages, graphic code effective time and mobile terminal Location information etc., which may include the signature that user authorizes and the signature etc. that application program operator authorizes, with And the location information of gate is obtained, then calculate the error between the location information and the location information of gate of mobile terminal.If Error between the location information of mobile terminal and the location information of gate within a preset range, the letters such as card certificate and signing messages Errorless and current time is ceased in the range of graphic code effective time, then can determine that verification passes through;If the position of mobile terminal Confidence ceases the error between the location information of gate not within a preset range, and the information such as card certificate and signing messages are wrong, or Current time can then determine that verification does not pass through not in the range of graphic code effective time;Either, if the position of mobile terminal Confidence cease the error between the location information of gate not within a preset range, the information such as card certificate and signing messages it is wrong and/ Or current time can then determine that verification does not pass through not in the range of graphic code effective time.
In some embodiments, after the step of being verified to data, gate control method can also include:If school It tests and does not pass through, then gate switch is maintained to close, and show that gate switchs the relevant information that do not open.
Specifically, obstructed out-of-date when verifying, illustrate that graphic code that mobile terminal provides has exceeded the time limit or card certificate and signature The information such as information are wrong etc., if at this point, gate docking station server or the not connected station server of gate, gate To maintain gate switch to close, and display gate switchs the relevant information that do not open, which may include reason packet Include the wrong information such as expired graphic code, card certificate and signing messages or the location information of mobile terminal and the location information of gate Between error not within a preset range etc., which can prompt or guide user to carry out corresponding processing etc..
Pass through it should be noted that if gate carries out verification to data, and the not connected station server of gate, then gate can It is opened with controlling gate switch, and generates the outbound record of user;After gate docking station server, the outbound record of user is sent out Give station server.Specifically, when passed the verification, gate can detect and stand server whether be in connection status, If the not connected station server of gate, the server that can need not stand further is verified, at this point, gate can control Gate switch is opened, and generates the outbound record of user, and the outbound record of the user is stored, and the outbound record of the user can be with Including user's outbound time and outbound website etc..Gate can in real time or interval preset time detect whether with station server Connection, after detecting gate docking station server, the outbound record of user can be sent to station server by gate, so that The outbound record in family is sent to central server by the server that must stand, so that central server can be according to the outbound record of user Update industry data, and generate resource transfers voucher etc..Either, if verification passes through, and the not connected station server of gate, Then go out state out of the station from extracting data, when state out of the station is to enter the station state, gate can obtain the credit etc. of user Grade determines whether clearance user.It is carried out for determining whether clearance user according to the credit grade of user by the latter below It is described in detail.
In step S203, if verification does not pass through, go out state out of the station from extracting data.
If verification passes through, and gate docking station server, then station server is sent the data to, so that station is for oral administration Business device verifies data.
When passed the verification, gate can detect and stand server whether in connection status, if in gate docking station Server can then send the data to station server, so that station server verifies data, server of standing Blacklist list and pre-stored industry data can be obtained;Go out user identifier and state out of the station from extracting data;Base It is verified etc. in blacklist list, industry data, user identifier and state out of the station, the verification and the above-mentioned verification class being related to Seemingly, therefore not to repeat here.
In some embodiments, if verification does not pass through, and the not connected station server of gate, gate control method may be used also To include:
Do not show that gate switchs the relevant information that do not open by result based on verification;
The setting instruction that user is inputted based on relevant information is received, is instructed according to setting and generates setting interface, be provided with Interface includes configuration interface;
By configuring interface configuration information input by user;
It is opened based on configuration information control gate switch, and generates the outbound record of user.
When gate docking station server, the outbound record of user is sent to station server by gate.
For example, user can the self-service processing on BOM, which can be integrated on gate, can also be independently of Gate is described for convenience, will can be integrated on gate illustrate with self-service machine below.Gate can receive user Setting instruction based on relevant information input, instructs according to setting and generates setting interface, and it includes configuration interface to be provided with interface; By configuring interface configuration information input by user, for example, user can guide according to BOM inputs the letter that enters the station on BOM Breath or other information etc..After completing information configuration, gate can be based on configuration information control gate switch and open, and generate The outbound record of user, alternatively, after completing information configuration, mobile terminal can regenerate graphic code based on configuration information, and By again at graphic code be supplied to gate, gate can rescan the graphic code that mobile terminal provides again, and to figure Control gate switch is opened after the information checking for including in shape code passes through, and generates the outbound record of user.
Optionally, if verification does not pass through, and the not connected station server of gate, then go out shape out of the station from extracting data State.
In order to improve the accuracy controlled gate and reliability, when verify it is obstructed out-of-date, gate can detect with Whether server of standing is in connection status, if the not connected station server of gate, can go out out of the station from extracting data State, and determine that user needs to enter the station or outbound according to state out of the station, gate is switched using the strategy that Yan Jinkuan goes out It is controlled.
In some embodiments, if verification does not pass through, and the not connected station server of gate, then go out from extracting data After the step of state out of the station, gate control method can also include:
When state out of the station is outbound state, control gate switch is opened, and generates the outbound record of user;
After gate docking station server, the outbound record of user is sent to station server.
Specifically, if verification does not pass through, and the not connected station server of gate, then when state out of the station is outbound state When, gate can control gate switch and open, and generate the outbound record of user, and the outbound record of the user is stored, should The outbound record of user may include user's outbound time and outbound website etc..Gate can real-time or interval preset time detection Whether it is connect with station server, after detecting gate docking station server, gate can send the outbound record of user Station server is given, so that the outbound record in family is sent to central server by station server, so that central server can be with Update industry data according to the outbound record of user, and generate resource transfers voucher etc..
In step S204, when state out of the station is to enter the station state, the credit grade of user is obtained.
Do not pass through if gate verifies data, and the not connected station server of gate, then when state out of the station be into When state of standing, gate can obtain the credit grade of user.The credit grade can only include credit grade by bus, or including Credit grade and other credit grades etc. by bus, wherein by bus credit grade primarily directed to user ride situation setting letter With grade, for example, when user is by application program register account number, when being scanned by bus for providing graphic code, user is for the first time It can be the user setting highest credit grade by bus when use.User be used for a long time barcode scanning ride during, when with Family there are bad behavior (such as provide deceptive information or it is outbound after in a few weeks or months it is non-paid etc.) when, can be according to reality Demand lowers the credit grade by bus of user;When bad behavior is not present in user, the credit grade by bus of user maintains always In the superlative degree.Other credit grades are mainly used for evaluating the otherwise credit situation of user, may include online payment letter With grade or loan credit grade etc..
For example, the credit grade by bus of user can be carried in data related to user, therefore gate can be from number Credit grade or the gate by bus of user are extracted in can go out other credit grades of user from extracting data. After obtaining credit grade by bus and other credit grades, gate can be credit grade the first weight of setting of riding, and be it The second weight is arranged for credit grade in he, wherein the first weight and the second weight can be flexibly arranged according to actual needs, example Such as, the first weight can be more than the second weight.Then, gate according to by bus credit grade and its corresponding first weight, and Other credit grades and its corresponding second weight generate credit grade.For example, credit grade by bus and its correspondence can be calculated The first weight between product, obtain the first numerical value, calculate multiplying between other credit grades and its corresponding second weight Product, obtains second value;Then the accumulated value of the first numerical value and second value is set to the credit grade of user.It needs to illustrate , gate can only obtain the credit grade by bus of user, set the credit grade by bus of user to the credit etc. of user Grade.It is understood that the credit grade of user can also be obtained by other acquisition modes, particular content does not limit here It is fixed.
In step S205, when credit grade is more than predetermined threshold value, control gate switch is opened.
Optionally, gate can also generate user and enter the station record, and after gate docking station server, user is entered the station Record is sent to station server.
After obtaining the credit grade of user, it can be determined that whether the credit grade is more than predetermined threshold value, wherein default threshold Value can be flexibly arranged according to actual needs, and specific value is not construed as limiting here.When credit grade is more than predetermined threshold value When, illustrating that the credit grade of user is higher, gate can control gate switch and open at this time, and generates user and enter the station record, The user record that enters the station is stored, the user record that enters the station may include that user is entered the station time and the website etc. that enters the station.Lock Machine can in real time or interval preset time detects whether to connect with server of standing, when detecting gate docking station server Afterwards, gate user can be entered the station record is sent to station server, so that station server sends user's record that enters the station To central server, update industry data etc. is recorded so that central server can enter the station according to user.
In some embodiments, when state out of the station is to enter the station state, the step of obtaining the credit grade of user it Afterwards, gate control method can also include:
When credit grade is less than or equal to predetermined threshold value, control gate switch is not opened, and shows that gate switch is not beaten The relevant information opened, the relevant information may include that the credit grade of user is more low.
From the foregoing, it will be observed that gate of the embodiment of the present invention can scan what mobile terminal was generated based on data related to user Graphic code, to obtain the data for including in graphic code;Data are verified;If verification does not pass through, and in the not connected station of gate Server then goes out state out of the station from extracting data;When state out of the station is to enter the station state, the credit etc. of user is obtained Grade;When credit grade is more than predetermined threshold value, control gate switch is opened, and is generated user and is entered the station record, and in gate docking station After server, user's record that enters the station is sent to station server.The program can not only verify data, but also school Test it is obstructed it is out-of-date can also decide whether clearance user according to the credit grade of user, improve gate control reliability and Flexibility.
According to method described in above-described embodiment, citing is described in further detail below.
The present embodiment by graphic code be Quick Response Code and by be applied to subway station barcode scanning ride for, below will be to need to access Central server, without accessing central server, situations such as server of standing exception and central server is abnormal is respectively to entering the station It is described in detail with outbound flow.
(1) it needs to access central server.
Wherein, need access central server the case where may include:It opens pressure and accesses central server configuration, or Person needs to access center service in the case where not opening pressure access central server configuration according to the judgement of Quick Response Code state Device etc..
(1) it enters the station
The case where for needing to access central server when entering the station, which can be refering to Fig. 4, the corresponding sides of Fig. 4 Method flow may include:
301, application server is to application program sending card certificate and industry data.
Wherein, application server can be corresponding with the application program of Quick Response Code is provided, it can be used for management of the application program. Application server can receive the industry data (such as entry/exit station record etc.) of central server transmission, and application server can be with The card certificate (such as user identifier and user data signature etc.) that user is provided by mobile terminal is received, at this time application server Utility card certificate and industry data can be sent to application program, which can code small routine or multiply by bus Vehicle application etc..
302, application program generates Quick Response Code.
Application program can generate Quick Response Code after user's login account based on the card certificate received and industry data, It can be combined with other data related to user and generate Quick Response Code.
303, application rollouts Quick Response Code.
Application program can show the Quick Response Code of generation in display interface.
304, the gate that enters the station scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
The Quick Response Code of displaying can be supplied to gate scanning of entering the station by application program, and the gate that enters the station, which scans the two-dimensional code, to be counted According to the data may include industry data, card certificate, dynamic data and application program operator signature etc., wherein the sector number According to may include user enter the station record and user it is outbound record etc.;Card certificate may include the credit grade of user, user identifier, User data signature etc., which may include credit grade by bus, can also include online payment credit grade or Other credit grades etc., the user identifier can be User ID, and user data signature can be that user passes through application program It is generated after being authorized during register account number;The dynamic data may include generated time of graphic code, the means of payment, figure The effective time etc. of code.
After obtaining data related to user, the gate that enters the station can carry out local verification Quick Response Code and verification LBS information, Specifically, the verification mode that the gate that enters the station can be provided according to the corresponding application program operator of the application program for generating Quick Response Code Local verification is carried out, for example, whether Multiple-Scan graphic code, check card certificate are that application program operator provides for verification , signature verification whether be that user has authorized, verified graphic code whether within effective time etc.;And carry out LBS information Whether within the allowable range etc. verification verifies error between the location information and the location information of gate of mobile terminal.
If the error between the location information of mobile terminal and the location information of gate is within a preset range, card certificate and label The information such as name information are errorless and current time is in the range of graphic code effective time, then can determine that verification passes through;If moving Error between the location information and the location information of gate of dynamic terminal not within a preset range, the letters such as card certificate and signing messages Wrong or current time is ceased not in the range of graphic code effective time, then can determine that verification does not pass through.
It is generated in advance, and is stored when online or offline it should be noted that the graphic code can be mobile terminal, and It is supplied to gate to scan in the term of validity of graphic code.
305, enter the station gate to station server transmission data.
When locally verification and LBS information checkings by when, enter the station gate can to station server transmission data so that Server of standing further verifies data.When locally verification and LBS information checkings not by when, the gate that enters the station can be tieed up It holds gate switch to close, forbids clearance user.
306, server of standing carries out repeatedly enter the station verification and blacklist verification.
Server stand after receiving the data, enter the station inspection and blacklist verification are may be repeated, for example, station is for oral administration Business device can pre-set blacklist, which can be used for storing there are the user identifier of record of bad behavior, for example, last time goes out Non-paid and credit grade is more low after standing.Server of standing can go out user identifier from extracting data, inquire user identifier Whether in blacklist, for example, the user identifier that can will be stored in user identifier and blacklist list that extracting data goes out It is compared one by one.And whether Quick Response Code is repetitively scanned, for example, after Quick Response Code is scanned first time, interval is after several seconds Scanned second, then illustrate that Quick Response Code is repetitively scanned.When user identifier is not in blacklist, and Quick Response Code is not repeated and sweeps It retouches, it is determined that verification passes through, otherwise, when user identifier is in blacklist or Quick Response Code is repetitively scanned, it is determined that verification is obstructed It crosses.
User identifier is sent to central server by server of 307, standing.
When repeat enter the station verification and blacklist verification pass through when, server of stand according to open pressure access center service Device configures, alternatively, when needing to access central server according to the determination of Quick Response Code state, it is genuinely convinced in user identifier being sent to Business device, so that central server is further verified.
When repeat enter the station verification and blacklist verification not by when, server of standing can with back-checking not by result to Enter the station gate, and the gate that enters the station can not show that the correlation that gate switch is not opened is believed based on verification in display interface by result Breath, the relevant information can prompt or guide user to carry out corresponding processing etc..
308, central server verifies Quick Response Code state.
Central server can verify Quick Response Code state after receiving user identifier, for example, central server can root Searched in the database according to user identifier with the relevant information of the user identifier, to user currently with the relevant letter of the user identifier Breath verifies etc., for example, it may be determined that user's last time enters the station or outbound in the information of storage, if user last Secondary is outbound, and what the gate that currently enters the station scanned is outbound Quick Response Code, then illustrates that the two-dimensional code data of mobile terminal storage can Can not be newest, then the information of central server of being subject to storage, central server can be taken industry data by application Business device is sent to application program, so that application program is updated industry data, and is given birth to again based on updated data At Quick Response Code, in order to provide to gate scanning of entering the station.
If user's last time is outbound, and what the gate that currently enters the station scanned is the Quick Response Code that enters the station, it is determined that in it is genuinely convinced Business device verification Quick Response Code state passes through.
309, central server sends to verify to station server passes through result.
310, server of standing sends verification to the gate that enters the station and passes through result.
After verification Quick Response Code state passes through, central server can send verification by server of standing to the gate that enters the station Pass through result.The verification is by that can carry instruction etc. of letting pass in result, so that the gate that enters the station is based on instruction control lock of letting pass Machine switch is opened.
When verification Quick Response Code state is obstructed out-of-date, central server can not pass through knot by server back-checking of standing Fruit to entering the station gate, enter the station gate can in display interface based on verification not by as a result, what display gate switch was not opened Relevant information, the relevant information can prompt or guide user to carry out corresponding processing etc..
311, the gate that enters the station opens gate switch.
Gate enter the station after receiving verification by result, control can be instructed by the clearance carried in result based on verification Check machine switch is opened.
312, the gate that enters the station sends user to station server and enters the station record.
313, server of standing sends user to central server and enters the station record.
The gate that enters the station controls after gate switch opens, and can generate user and enter the station record, and the user record that enters the station can wrap User is included to enter the station time and the website etc. that enters the station, enter the station gate can by stand server to central server send user into It stands record.
314, central server updates industry data.
315, central server sends updated industry data to application server.
Central server enters the station after record receiving user, and can enter the station record update industry data according to user, example Such as, the record that this user can be entered the station is added in history industry data.And central server can be to application server Updated industry data is sent, application server can send updated industry data to application program.
(2) outbound
For it is outbound when need access central server the case where, which can be refering to Fig. 5, the corresponding sides of Fig. 5 Method flow may include:
401, application server is to application program sending card certificate and industry data.
402, application program generates Quick Response Code.
403, application rollouts Quick Response Code.
404, outbound gate scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
405, outbound gate to station server transmission data.
It should be noted that step 401 in the corresponding embodiments of Fig. 5 is to step 405, in embodiment corresponding with Fig. 4 Step 301 it is similar to step 305, do not repeat here.
406, server of standing carries out repeating outbound verification.
Server stand after receiving the data, can verify whether Quick Response Code is repetitively scanned, for example, Quick Response Code is swept After retouching first time, interval is scanned second after several seconds, then illustrates that Quick Response Code is repetitively scanned.It is swept when Quick Response Code is not repeated It retouches, it is determined that verification passes through, otherwise, when Quick Response Code is repetitively scanned, it is determined that verification does not pass through.
User identifier is sent to central server by server of 407, standing.
408, central server verifies Quick Response Code state.
409, central server sends to verify to station server passes through result.
410, server of standing sends verification to outbound gate and passes through result.
It should be noted that step 407 in the corresponding embodiments of Fig. 5 is to step 410, in embodiment corresponding with Fig. 4 Step 307 it is similar to step 310, do not repeat here.
After verification Quick Response Code state passes through, central server can be sent to outbound gate by server of standing and be verified Pass through result.The verification is by that can carry instruction etc. of letting pass in result, so that outbound gate is based on instruction control lock of letting pass Machine switch is opened.
When verification Quick Response Code state is obstructed out-of-date, central server can not pass through knot by server back-checking of standing Fruit gives outbound gate, outbound gate that can not show that gate switchs the phase that do not open by result based on verification in display interface Information is closed, which can prompt or guide user to carry out corresponding processing etc..
411, outbound gate opens gate switch.
Outbound gate can instruct control based on verification after receiving verification by result by the clearance carried in result Check machine switch is opened.
412, outbound gate sends the outbound record of user to station server.
413, server of standing sends the outbound record of user to central server.
After outbound gate control gate switch is opened, the outbound record of user can be generated, the outbound record of the user can wrap User's outbound time and outbound website etc. are included, outbound gate can send user to central server by server of standing and go out It stands record.
414, central server updates industry data, and generates order of deducting fees.
415, central server sends updated industry data and order of deducting fees to application server.
416, application server executes operation of deducting fees based on order of deducting fees.
Central server can update industry number after receiving the outbound record of user according to the outbound record of user According to for example, the outbound record of this user can be added in history industry data.And central server can generate button Take order, enters the station record with the user of the outbound record matching of the user for example, central server can be obtained, it is outbound according to user Record and user, which enter the station to record, generates order of deducting fees.Then central server can send updated industry to application server Data and order of deducting fees, the application server order execution that can be based on deducting fees be deducted fees operation, such as by payment platform to subway Operator's paying riding expense etc., and updated industry data can be sent to application program.
(2) it is not necessarily to access central server.
(1) it enters the station
The case where for being not necessarily to access central server when entering the station, which can be refering to Fig. 6, the corresponding sides of Fig. 6 Method flow may include:
501, application server is to application program sending card certificate and industry data.
502, application program generates Quick Response Code.
503, application rollouts Quick Response Code.
504, the gate that enters the station scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
505, enter the station gate to station server transmission data.
506, server of standing carries out repeatedly enter the station verification and blacklist verification.
It should be noted that step 501 in the corresponding embodiments of Fig. 6 is to step 506, in embodiment corresponding with Fig. 4 Step 301 it is similar to step 306, do not repeat here.
507, server of standing sends verification to the gate that enters the station and passes through result.
Server stand after verification passes through, can force to access central server configuration according to not opening, alternatively, according to When the determination of Quick Response Code state need not access central server, central server can not be accessed, but directly passes through verification As a result it is sent to the gate that enters the station.
508, the gate that enters the station opens gate switch.
509, the gate that enters the station sends user to station server and enters the station record.
510, server of standing sends user to central server and enters the station record.
511, central server updates industry data.
512, central server sends updated industry data to application server.
It should be noted that step 508 in the corresponding embodiments of Fig. 6 is to step 512, in embodiment corresponding with Fig. 4 Step 311 it is similar to step 315, do not repeat here.
(2) outbound
For it is outbound when without access central server the case where, which can be refering to Fig. 7, the corresponding sides of Fig. 7 Method flow may include:
601, application server is to application program sending card certificate and industry data.
602, application program generates Quick Response Code.
603, application rollouts Quick Response Code.
604, outbound gate scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
605, outbound gate to station server transmission data.
606, server of standing carries out repeating verification of entering the station.
It should be noted that step 601 in the corresponding embodiments of Fig. 7 is to step 606, in embodiment corresponding with Fig. 5 Step 401 it is similar to step 406, do not repeat here.
607, server of standing sends verification to outbound gate and passes through result.
Server stand after verification passes through, can force to access central server configuration according to not opening, alternatively, according to When the determination of Quick Response Code state need not access central server, central server can not be accessed, but directly passes through verification As a result it is sent to outbound gate.
608, outbound gate opens gate switch.
609, outbound gate sends the outbound record of user to station server.
610, server of standing sends the outbound record of user to central server.
611, central server updates industry data, and generates order of deducting fees.
612, central server sends updated industry data and order of deducting fees to application server.
613, application server executes operation of deducting fees based on order of deducting fees.
It should be noted that step 608 in the corresponding embodiments of Fig. 7 is to step 613, in embodiment corresponding with Fig. 5 Step 411 it is similar to step 416, do not repeat here.
(3) server of standing is abnormal.
For example, gate can not connect station server.
(1) it enters the station
For the situation for server exception of standing when entering the station, which can be refering to Fig. 8, the corresponding method streams of Fig. 8 Journey may include:
701, application server is to application program sending card certificate and industry data.
702, application program generates Quick Response Code.
703, application rollouts Quick Response Code.
704, the gate that enters the station scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
It should be noted that step 701 in the corresponding embodiments of Fig. 8 is to step 704, in embodiment corresponding with Fig. 4 Step 301 it is similar to step 304, do not repeat here.
705, gate is entered the station when determining that Quick Response Code state mismatches, the credit grade of user is verified, if verification Pass through, then opens gate switch.
When local verification and LBS information checkings by when, the gate that enters the station can access station server, when can not access station When server, illustrating to enter the station is not connected between gate and station server, or other abnormal conditions occurs in station server, At this point, the gate that enters the station can verify Quick Response Code state, for example, it may be determined that user's last time is in the information of storage It enters the station or outbound, if user's last time is outbound, what the gate that currently enters the station scanned is the Quick Response Code that enters the station, then illustrates two dimension Code state matching determines that verification Quick Response Code state passes through, can open gate switch, and generates user and enter the station record.
If user's last time is outbound, what the gate that currently enters the station scanned is outbound Quick Response Code, then illustrates Quick Response Code shape State mismatches, and determines that verification Quick Response Code state does not pass through, at this point, the gate that enters the station can obtain the credit grade of user, and to The credit grade at family is verified, if credit grade is less than or equal to predetermined threshold value, is illustrated that credit grade verification does not pass through, is then tieed up Hold gate switch closed state, and show verification not by relevant information, to prompt or user guided to be located accordingly Reason.If credit grade be more than predetermined threshold value, illustrate credit grade verification pass through, then open gate switch, and generate user into It stands record.
706, when the gate that enters the station is with station server successful connection, the gate that enters the station sends user to station server and enters the station Record.
707, server of standing sends user to central server and enters the station record.
708, central server updates industry data.
709, central server sends updated industry data to application server.
It should be noted that step 706 in the corresponding embodiments of Fig. 8 is to step 709, in embodiment corresponding with Fig. 4 Step 312 it is similar to step 315, do not repeat here.
(2) outbound
For it is outbound when stand server exception situation, which can be refering to Fig. 9, the corresponding method streams of Fig. 9 Journey may include:
801, application server is to application program sending card certificate and industry data.
802, application program generates Quick Response Code.
803, application rollouts Quick Response Code.
804, outbound gate scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
It should be noted that step 801 in the corresponding embodiments of Fig. 9 is to step 804, in embodiment corresponding with Fig. 5 Step 401 it is similar to step 404, do not repeat here.
805, outbound gate opens gate switch when determining the matching of Quick Response Code state.
When local verification and LBS information checkings by when, outbound gate can access station server, when can not access station When server, illustrate to be not connected between outbound gate and station server, or other abnormal conditions occurs in station server, At this point, outbound gate can verify Quick Response Code state, for example, it may be determined that user's last time is in the information of storage It enters the station or outbound, if user's last time is to enter the station, what current outbound gate scanned is outbound Quick Response Code, then illustrates two dimension Code state matching determines that verification Quick Response Code state passes through, can open gate switch, and generate the outbound record of user.
If user's last time is outbound, what current outbound gate scanned is outbound Quick Response Code, then illustrates Quick Response Code shape State mismatches, and determines that verification Quick Response Code state does not pass through, at this point, maintaining the closed state of gate switch, and shows that verification is obstructed The relevant information crossed, to prompt or user is guided to be handled accordingly.If it is determined that verification Quick Response Code state does not pass through, at this point, The strategy gone out according to Yan Jinkuan can open gate switch.
806, when outbound gate is with station server successful connection, outbound gate is outbound to station server transmission user Record.
807, server of standing sends the outbound record of user to central server.
808, central server updates industry data, and generates order of deducting fees.
809, central server sends updated industry data and order of deducting fees to application server.
810, application server executes operation of deducting fees based on order of deducting fees.
It should be noted that step 806 in the corresponding embodiments of Fig. 9 is to step 810, in embodiment corresponding with Fig. 5 Step 412 it is similar to step 416, do not repeat here.
(4) central server is abnormal.
For example, station server can not connect central server.
(1) it enters the station
For the situation of central server exception when entering the station, which can be in the corresponding methods of 0, Figure 10 refering to fig. 1 Flow may include:
901, application server is to application program sending card certificate and industry data.
902, application program generates Quick Response Code.
903, application rollouts Quick Response Code.
904, the gate that enters the station scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
905, enter the station gate to station server transmission data.
906, server of standing carries out repeatedly enter the station verification and blacklist verification.
It should be noted that step 901 in the corresponding embodiments of Figure 10 is to step 906, in embodiment corresponding with Fig. 4 Step 301 it is similar to step 306, do not repeat here.
907, gate is entered the station when determining that Quick Response Code state mismatches, and the credit grade of user is verified.
When server verification of standing passes through, server of standing can access central server, for oral administration when that can not access station When business device, there are other abnormal conditions in the not connected or central server between server and central server that illustrates to stand, this When, server of standing can verify Quick Response Code state, for example, it may be determined that user's last time is in the information of storage It enters the station or outbound, if user's last time is outbound, what the gate that currently enters the station scanned is the Quick Response Code that enters the station, then illustrates two dimension Code state matching determines that verification Quick Response Code state passes through, can open gate switch, and generates user and enter the station record.
If user's last time is outbound, what the gate that currently enters the station scanned is outbound Quick Response Code, then illustrates Quick Response Code shape State mismatches, and determines that verification Quick Response Code state does not pass through, at this point, station server can obtain the credit grade of user, and it is right The credit grade of user verifies, if credit grade is less than or equal to predetermined threshold value, illustrates that credit grade verification does not pass through, then Verification is sent not by as a result, so that the closed state that the gate that enters the station maintains gate to switch, and shows verification to the gate that enters the station Not by relevant information, to prompt or user guided to be handled accordingly.If credit grade is more than predetermined threshold value, illustrate letter With grade verification pass through, then can to enter the station gate send verification pass through as a result, so that enter the station gate open gate switch, with And it generates user and enters the station record.
908, server of standing sends verification to the gate that enters the station and passes through result.
909, the gate that enters the station opens gate switch.
910, the gate that enters the station sends user to station server and enters the station record.
911, when station server and central server successful connection, server of standing sends user to central server Enter the station record.
912, central server updates industry data.
913, central server sends updated industry data to application server.
It should be noted that step 908 in the corresponding embodiments of Figure 10 is to step 913, in embodiment corresponding with Fig. 4 Step 310 it is similar to step 315, do not repeat here.
(2) outbound
For it is outbound when stand server exception situation, which can be in the corresponding methods of 1, Figure 11 refering to fig. 1 Flow may include:
1001, application server is to application program sending card certificate and industry data.
1002, application program generates Quick Response Code.
1003, application rollouts Quick Response Code.
1004, outbound gate scans the two-dimensional code to obtain data, carries out local verification Quick Response Code and verification LBS information.
1005, outbound gate to station server transmission data.
1006, server of standing carries out repeating verification of entering the station.
It should be noted that step 1001 in the corresponding embodiments of Figure 11 is to step 1006, embodiment corresponding with Fig. 5 In step 401 it is similar to step 406, do not repeat here.
When server verification of standing passes through, server of standing can access central server, genuinely convinced in it can not access When business device, there are other abnormal conditions in the not connected or central server between server and central server that illustrates to stand, this When, server of standing can verify Quick Response Code state, for example, it may be determined that user's last time is in the information of storage It enters the station or outbound, if user's last time is to enter the station, what current outbound gate scanned is outbound Quick Response Code, then illustrates two dimension Code state matching determines that verification Quick Response Code state passes through, and can send verification to outbound gate and pass through result.
If user's last time is outbound, what current outbound gate scanned is outbound Quick Response Code, then illustrates Quick Response Code shape State mismatch, determine verification Quick Response Code state do not pass through, at this point it is possible to outbound gate send verification not by as a result, so that Outbound gate maintains the closed state of gate switch, and show verification not by relevant information, to prompt or guide user It is handled accordingly.If it is determined that verification Quick Response Code state does not pass through, the strategy gone out according to Yan Jinkuan can also control gate and beat It opens.
1007, server of standing sends verification to outbound gate and passes through result.
1008, outbound gate opens gate switch.
1009, outbound gate sends the outbound record of user to station server.
1010, when station server and central server successful connection, server of standing sends to central server and uses The outbound record in family.
1011, central server updates industry data, and generates order of deducting fees.
1012, central server sends updated industry data and order of deducting fees to application server.
1013, application server executes operation of deducting fees based on order of deducting fees.
It should be noted that step 1007 in the corresponding embodiments of Figure 11 is to step 1013, embodiment corresponding with Fig. 5 In step 410 it is similar to step 416, do not repeat here.
For ease of preferably implementing gate control method provided in an embodiment of the present invention, the embodiment of the present invention also provides one kind Station server based on above-mentioned gate control method.Wherein the meaning of noun is identical with above-mentioned gate control method, specifically Realize that details can be with the explanation in reference method embodiment.
The structural schematic diagram that 2, Figure 12 is station server provided in an embodiment of the present invention is please referred to Fig.1, wherein in the station Server may include verification unit 1101, extraction unit 1102, acquiring unit 1103 and returning unit 1104 etc..
Wherein, verification unit 1101, the data related to user for receiving gate transmission, and school is carried out to data It tests.
In some embodiments, verification unit 1101 may include:
Subelement is obtained, for obtaining pre-stored blacklist list and industry data;
Subelement is extracted, for going out user identifier and state out of the station from the extracting data;
Subelement is verified, school is carried out for being based on the blacklist list, industry data, user identifier and state out of the station It tests.
In some embodiments, server of standing can also include:
First transmission unit sends verification by as a result, and going out from extracting data if passing through for verifying to gate State out of the station;
First receiving unit, for when the state out of the station is to enter the station state, receiving the gate and being based on the school The user sent by result is tested to enter the station record;
Second transmission unit, for when being connect with central server, by the user enter the station record be sent to it is described in Central server, so that the central server enters the station according to the user records update industry data.
In some embodiments, server of standing further includes:
Second receiving unit is sent out based on verification by result for when state out of the station is outbound state, receiving gate The outbound record of user sent;
Third transmission unit, for when being connect with central server, the outbound record of user to be sent to central server, So that central server updates industry data according to the outbound record of user, and resource transfers are generated according to the outbound record of user Voucher.
Extraction unit 1102 goes out state out of the station if not passing through for verifying from extracting data.
Acquiring unit 1103, for when state out of the station is to enter the station state, obtaining the credit grade of user.
In some embodiments, acquiring unit 1103 is specifically used for:Pre-stored user by bus credit grade and Other credit grades;The first weight is set for credit grade of riding, and the second weight is set for other credit grades;According to multiplying Vehicle credit grade and its corresponding first weight and other credit grades and its corresponding second weight generate credit grade.
Returning unit 1104, for when credit grade is more than predetermined threshold value, instruction of letting pass being returned to gate, so that lock Machine, which is based on letting pass, instructs control gate switch to open.
In some embodiments, server of standing can also include:Second returning unit is less than for working as credit grade Or when equal to predetermined threshold value, returned to gate and forbid instruction of letting pass, so that gate is based on forbidding letting pass instructing that gate is maintained to open It closes.
From the foregoing, it will be observed that verification unit of the embodiment of the present invention 1101 can receive the data related to user of gate transmission, And data are verified;If verification does not pass through, extraction unit 1102 goes out state out of the station from extracting data, when out of the station State is when entering the station state, and acquiring unit 1103 can obtain the credit grade of user, and be more than predetermined threshold value in credit grade When, instruction of letting pass is returned from returning unit 1104 to gate, is opened so that gate is based on clearance instruction control gate switch.It should Scheme can not only carry out data full validation, but also verify obstructed out-of-date can also be determined according to the credit grade of user Whether user, improve reliability and the flexibility of gate control if letting pass.
For ease of preferably implementing gate control method provided in an embodiment of the present invention, the embodiment of the present invention also provides one kind Gate based on above-mentioned gate control method.Wherein the meaning of noun is identical with above-mentioned gate control method, and specific implementation is thin Section can be with the explanation in reference method embodiment.
The structural schematic diagram that 3, Figure 13 is gate provided in an embodiment of the present invention is please referred to Fig.1, the wherein gate can wrap Include scanning element 1201, verification unit 1202, extraction unit 1203, acquiring unit 1204 and control unit 1205 etc..
Wherein, scanning element 1201, the graphic code generated based on data related to user for scanning mobile terminal, To obtain the data for including in graphic code.
Wherein, which can be that mobile terminal is generated by preset application program, which may include Quick Response Code or bar code etc., mobile terminal can be based on data related to user and generate figure by preset application program Code, the application program may include wechat small routine or application etc. by bus.It should be noted that the graphic code can be mobile whole It is generated in advance, and is stored when holding online, be supplied to gate to scan when offline;Either, which can be mobile Terminal generates online, and is supplied to gate to scan online.Since graphic code is generated based on data related to user, because This, scanning element 1201 can get the data for including in graphic code after scanning figure shape code.
The data may include industry data, card certificate, dynamic data and application program operator signature etc., wherein should Industry data may include user enter the station record and user it is outbound record etc.;Card certificate may include the credit grade of user, use Family mark, user data signature etc., which may include credit grade by bus, can also include online payment credit etc. Grade or other credit grades etc., the user identifier can be User ID, and user data signature can be user by answering With what is generated after authorizing during program registration account;The dynamic data may include the generated time of graphic code, payer The effective time etc. of formula, graphic code.
Verification unit 1202, for being verified to data.
After obtaining data related to user, verification unit 1202 can verify data, which can wrap The verification mode provided according to the corresponding application program operator of the application program for generating graphic code is provided and carries out local verification, example Such as, verification whether Multiple-Scan graphic code, check card certificate whether be application program operator provide, signature verification whether be User has authorized, has verified graphic code whether within effective time etc.;The verification may include LBS information checkings, that is, verify Within the allowable range etc. whether error between the location information of mobile terminal and the location information of gate.
In some embodiments, verification unit 1202 specifically can be used for:From extracting data card release certificate, A.L.S. The location information of breath, graphic code effective time and mobile terminal, and obtain the location information of gate;To the position of mobile terminal Error, card certificate, signing messages and graphic code effective time between information and the location information of gate are verified.
Extraction unit 1203 goes out state out of the station if not passing through for verifying from extracting data.
Obstructed out-of-date when verifying, whether the server that can detect and stand is in connection status, if gate docking station is for oral administration Business device, then can send the data to station server, so that station server verifies data.
In some embodiments, gate can also include:
Display unit, for not showing that gate switchs the relevant information that do not open by result based on verification;
Generation unit, the setting instruction inputted based on relevant information for receiving user, is instructed according to setting and generates setting Interface, it includes configuration interface to be provided with interface;
Second receiving unit, for by configuring interface configuration information input by user;
4th control unit for being opened based on configuration information control gate switch, and generates the outbound record of user.
In some embodiments, gate can also include:
Second control unit, for when state out of the station is outbound state, control gate switch to be opened, and generates user Outbound record;
Second transmission unit, for after gate docking station server, the outbound record of user to be sent to service in station Device.
Acquiring unit 1204, for when state out of the station is to enter the station state, obtaining the credit grade of user.
Pass through if gate carries out verification to data, and the not connected station server of gate, then when state out of the station is to enter the station When state, acquiring unit 1204 can obtain the credit grade of user.The credit grade can only include credit grade by bus, or Person includes credit grade and other credit grades etc. by bus, wherein credit grade is set primarily directed to user's situation of riding by bus The credit grade set when being scanned by bus for providing graphic code, is used for example, when user is by application program register account number Family can be the user setting highest credit grade by bus when using for the first time.The process of scanning by bus is used for a long time in user In, when user there are bad behavior (such as provide deceptive information or it is outbound after in a few weeks or months it is non-paid etc.) when, can be with Lower the credit grade by bus of user according to actual demand;When bad behavior is not present in user, the credit grade by bus of user The superlative degree is maintained always.Other credit grades are mainly used for evaluating the otherwise credit situation of user, may include net Upper payment credit grade or loan credit grade etc..
Control unit 1205, for when credit grade is more than predetermined threshold value, control gate switch to be opened.
Control unit 1205 is additionally operable to generate user and enter the station record, and after gate docking station server, by user into Record of standing is sent to station server.
In some embodiments, gate can also include:Third control unit is less than or equal to for working as credit grade When predetermined threshold value, control gate switch is not opened, and shows that gate switchs the relevant information that do not open.
From the foregoing, it will be observed that scanning element of the embodiment of the present invention 1201, which can scan mobile terminal, is based on data related to user The graphic code generated to obtain the data for including in graphic code, and verifies data by verification unit 1202;If verification Do not pass through, and the not connected station server of gate, then extraction unit 1203 goes out state out of the station from extracting data, and when disengaging State of standing is when entering the station state, and acquiring unit 1204 obtains the credit grade of user;When credit grade is more than predetermined threshold value, control Unit 1205 processed controls gate switch and opens, and generates user and enters the station record, and after gate docking station server, by user into Record of standing is sent to station server.The program can not only verify data, and verify it is obstructed it is out-of-date can be with root Decide whether clearance user according to the credit grade of user, improves reliability and the flexibility of gate control.
The embodiment of the present invention also provides a kind of gate control system, the gate control system may include station server and Gate etc., wherein gate includes any gate provided in an embodiment of the present invention, and server of standing includes that the embodiment of the present invention carries Any station server supplied.
The embodiment of the present invention also provides a kind of computer equipment, which can be server or the gate of standing, As shown in figure 14, it illustrates the structural schematic diagrams of the computer equipment involved by the embodiment of the present invention, specifically:
The computer equipment may include the processor 1301, one or one of one or more than one processing core with The components such as upper memory 1302, power supply 1303 and input unit 1304 comprising computer readable storage medium.Art technology Personnel are appreciated that network equipment infrastructure shown in Figure 14 does not constitute the restriction to computer equipment, may include than figure Show more or fewer components, either combines certain components or different components arrangement.Wherein:
Processor 1301 is the control centre of the computer equipment, is set using various interfaces and the entire computer of connection Standby various pieces, by running or executing the software program and/or module that are stored in memory 1302, and calling storage Data in memory 1302 execute the various functions and processing data of computer equipment, to be carried out to computer equipment Integral monitoring.Optionally, processor 1301 may include one or more processing cores;Preferably, processor 1301 can be integrated and be answered With processor and modem processor, wherein the main processing operation system of application processor, user interface and application program Deng modem processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also integrate Into processor 1301.
Memory 1302 can be used for storing software program and module, and processor 1301 is stored in memory by operation 1302 software program and module, to perform various functions application and gate control.Memory 1302 can include mainly Storing program area and storage data field, wherein storing program area can storage program area, the application journey needed at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be created according to using for the network equipment The data etc. built.In addition, memory 1302 may include high-speed random access memory, can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 1302 can also include Memory Controller, to provide access of the processor 1301 to memory 1302.
Computer equipment further includes the power supply 1303 powered to all parts, and optionally, power supply 1303 can pass through power supply Management system and processor 1301 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.Power supply 1303 can also include one or more direct current or AC power, recharging system, power failure The random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
The computer equipment may also include input unit 1304, the input unit 1304 can be used for receive input number or Character information, and generate keyboard related with user setting and function control, mouse, operating lever, optics or trace ball Signal inputs.
Although being not shown, computer equipment can also be including display unit etc., and details are not described herein.
Specifically in the present embodiment, the processor 1301 in computer equipment can be according to following instruction, by one or one The corresponding executable file of process of a above application program is loaded into memory 1302, and is run by processor 1301 The application program being stored in memory 1302 is as follows to realize gate control method provided in an embodiment of the present invention:
(1) when the computer equipment is station server, processor 1301, which can be run, to be stored in memory 1302 Application program, it is as follows to realize various functions:
The data related to user that gate is sent are received, and data are verified;If verification does not pass through, from data In extract state out of the station;When state out of the station is to enter the station state, the credit grade of user is obtained;When credit grade is more than When predetermined threshold value, instruction of letting pass is returned to gate, is opened so that gate is based on clearance instruction control gate switch.
(2) when the computer equipment is gate, processor 1301 can run the application being stored in memory 1302 Program is as follows to realize various functions:
The graphic code that scanning mobile terminal is generated based on data related to user, to obtain the number for including in graphic code According to;Data are verified;If verification does not pass through, go out state out of the station from extracting data;When state out of the station is to enter the station When state, the credit grade of user is obtained;When credit grade is more than predetermined threshold value, control gate switch is opened.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, the detailed description above with respect to gate control method is may refer to, details are not described herein again.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with It is completed by instructing, or controls relevant hardware by instructing and complete, which can be stored in one and computer-readable deposit In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be handled Device is loaded, to execute the step in any gate control method that the embodiment of the present invention is provided.For example, the instruction can To execute following steps:
The data related to user that gate is sent are received, and data are verified;If verification does not pass through, from data In extract state out of the station;When state out of the station is to enter the station state, the credit grade of user is obtained;When credit grade is more than When predetermined threshold value, instruction of letting pass is returned to gate, is opened so that gate is based on clearance instruction control gate switch.
In another example following steps can also be performed in the instruction:
The graphic code that scanning mobile terminal is generated based on data related to user, to obtain the number for including in graphic code According to;Data are verified;If verification does not pass through, go out state out of the station from extracting data;When state out of the station is to enter the station When state, the credit grade of user is obtained;When credit grade is more than predetermined threshold value, control gate switch is opened.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any gate control that the embodiment of the present invention is provided can be executed Step in method processed, it is thereby achieved that achieved by any gate control method that the embodiment of the present invention is provided Advantageous effect refers to the embodiment of front, and details are not described herein.
Be provided for the embodiments of the invention above a kind of gate control method, relevant device, system and storage medium into It has gone and has been discussed in detail, principle and implementation of the present invention are described for specific case used herein, the above implementation The explanation of example is merely used to help understand the method and its core concept of the present invention;Meanwhile for those skilled in the art, according to According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (15)

1. a kind of gate control method, which is characterized in that the method includes:
The data related to user that gate is sent are received, and the data are verified;
If the verification does not pass through, go out state out of the station from the extracting data;
When the state out of the station is to enter the station state, the credit grade of the user is obtained;
When the credit grade is more than predetermined threshold value, instruction of letting pass is returned to the gate, so that the gate is based on putting Row instruction control gate switch is opened.
2. gate control method according to claim 1, which is characterized in that described to receive the related to user of gate transmission Data, and after the step of being verified to the data, the method further includes:
If the verification passes through, verification is sent by as a result, and going out shape out of the station from the extracting data to the gate State;
When the state out of the station is to enter the station state, receive user that the gate is sent by result based on the verification into It stands record;
When being connect with central server, the user record that enters the station is sent to the central server, so that in described Central server enters the station according to the user records update industry data.
3. gate control method according to claim 2, which is characterized in that if the verification passes through, to described Gate send verification by as a result, and the step of go out state out of the station from the extracting data after, the method further includes:
When the state out of the station is outbound state, receives the user that the gate is sent based on the verification by result and go out It stands record;
When being connect with central server, the outbound record of the user is sent to the central server, so that in described Central server updates industry data according to the outbound record of the user, and generates resource transfers according to the outbound record of the user Voucher.
4. gate control method according to any one of claims 1 to 3, which is characterized in that described to be carried out to the data The step of verification includes:
Obtain pre-stored blacklist list and industry data;
Go out user identifier and state out of the station from the extracting data;
It is verified based on the blacklist list, industry data, user identifier and state out of the station.
5. gate control method according to any one of claims 1 to 3, which is characterized in that described to obtain the user's The step of credit grade includes:
Obtain credit grade and other credit grades by bus of the pre-stored user;
The first weight is set for the credit grade by bus, and the second weight is set for other described credit grades;
According to credit grade and its corresponding first weight and other described credit grades and its corresponding second by bus Weight generates credit grade.
6. a kind of gate control method, which is characterized in that the method includes:
The graphic code that scanning mobile terminal is generated based on data related to user, to obtain the number for including in graphic code According to;
The data are verified;
If the verification does not pass through, go out state out of the station from the extracting data;
When the state out of the station is to enter the station state, the credit grade of the user is obtained;
When the credit grade is more than predetermined threshold value, control gate switch is opened.
7. gate control method according to claim 6, which is characterized in that the method further includes:
It generates user to enter the station record, and after the gate Connection Service device, the user record that enters the station is sent to server.
8. gate control method according to claim 6, which is characterized in that if the verification does not pass through, from institute After stating the step of extracting data goes out state out of the station, the method further includes:
When the state out of the station is outbound state, control gate switch is opened, and generates the outbound record of user;
After the gate connects the server, the outbound record of the user is sent to the server.
9. gate control method according to claim 6, which is characterized in that if the verification does not pass through, the side Method further includes:
Setting instruction input by user is received, is instructed according to the setting and generates setting interface, wherein the setting interface includes Configure interface;
Pass through configuration interface configuration information input by user;
It is opened based on configuration information control gate switch, and generates user's record out of the station.
10. according to claim 6 to 9 any one of them gate control method, which is characterized in that described to be carried out to the data The step of verification includes:
From the location information of the extracting data card release certificate, signing messages, effective time and the mobile terminal, and obtain Take the location information of the gate;
The error between location information and the location information of the gate to the mobile terminal, the card certificate, the label Name information and the effective time are verified.
11. a kind of station server, which is characterized in that the station server includes:
Verification unit, the data related to user for receiving gate transmission, and the data are verified;
Extraction unit goes out state out of the station if not passing through for the verification from the extracting data;
Acquiring unit, for when the state out of the station is to enter the station state, obtaining the credit grade of the user;
Returning unit, for when the credit grade is more than predetermined threshold value, instruction of letting pass being returned to the gate, so that institute Gate is stated based on instruction control gate switch opening of letting pass.
12. a kind of gate, which is characterized in that the gate includes:
Scanning element, the graphic code generated based on data related to user for scanning mobile terminal, to obtain graphic code In include the data;
Verification unit, for being verified to the data;
Extraction unit goes out state out of the station if not passing through for the verification from the extracting data;
Acquiring unit, for when the state out of the station is to enter the station state, obtaining the credit grade of the user;
Control unit, for when the credit grade is more than predetermined threshold value, control gate switch to be opened.
13. a kind of gate control system, which is characterized in that the gate control system includes lock as claimed in claim 12 Machine, and server of standing as claimed in claim 11.
14. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, to execute the step in such as gate control method described in any one of claim 1 to 5, alternatively, to execute as weighed Profit requires the step in 6 to 10 any one of them gate control methods.
15. a kind of computer equipment, including memory and processor, which is characterized in that the memory is stored with computer journey Sequence, when the computer program is executed by the processor so that the processor is executed such as any one of claim 1 to 5 institute Step in the gate control method stated, or so that the processor executes such as claim 6 to 10 any one of them lock Step in machine control method.
CN201810471712.XA 2018-05-17 2018-05-17 Gate control method, related equipment, system and storage medium Active CN108711206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810471712.XA CN108711206B (en) 2018-05-17 2018-05-17 Gate control method, related equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810471712.XA CN108711206B (en) 2018-05-17 2018-05-17 Gate control method, related equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN108711206A true CN108711206A (en) 2018-10-26
CN108711206B CN108711206B (en) 2021-11-30

Family

ID=63868204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810471712.XA Active CN108711206B (en) 2018-05-17 2018-05-17 Gate control method, related equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN108711206B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109544764A (en) * 2018-12-19 2019-03-29 广州羊城通有限公司 Lockage control method and system based on two dimensional code
CN110111470A (en) * 2019-05-16 2019-08-09 郑州博雅讯科技有限公司 A kind of current data linkage control method and control device
CN110443603A (en) * 2019-07-26 2019-11-12 南京熊猫电子股份有限公司 A kind of method and system that code passes in and out lock real-time matching and settles accounts by bus for track transportation industry
CN110442916A (en) * 2019-07-05 2019-11-12 济南百真智能科技有限公司 A kind of undirected drawing generating method of door and window manufacturing BOM, system, terminal and storage medium
CN110490580A (en) * 2019-07-31 2019-11-22 南京熊猫电子股份有限公司 Method and system are used in combination based on rail traffic mobile payment service two dimensional code in one kind
CN110648147A (en) * 2019-09-11 2020-01-03 郑州地铁集团有限公司 Information interaction method and storage medium for two-dimensional code transaction of rail transit gate
CN110706377A (en) * 2019-08-19 2020-01-17 厦门路桥信息股份有限公司 Passing method, medium and system based on face recognition and riding code intercommunication
CN111160915A (en) * 2018-11-08 2020-05-15 腾讯科技(深圳)有限公司 Bus code verification method and device, traffic code scanning equipment and terminal equipment
CN111245947A (en) * 2020-01-16 2020-06-05 深圳市永达电子信息股份有限公司 Ticket selling voucher generating method, mobile terminal and ticket selling system applying same
CN111369727A (en) * 2020-02-20 2020-07-03 上海商汤智能科技有限公司 Traffic control method and device
CN111951412A (en) * 2020-03-13 2020-11-17 武汉小码联城科技有限公司 Travel control method, device and system based on subway riding codes and electronic equipment
CN112446995A (en) * 2020-10-20 2021-03-05 支付宝(杭州)信息技术有限公司 Identity information registration processing method, device, equipment and system
CN113660200A (en) * 2021-07-08 2021-11-16 雅宝科技(深圳)有限公司 Network breaking processing method and system for full-automatic car washing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008269118A (en) * 2007-04-18 2008-11-06 Fuji Xerox Co Ltd Control program and information processor
CN106600716A (en) * 2016-12-07 2017-04-26 深圳市万通顺达科技股份有限公司 One-way ticket purchasing and checking method and system based on two-dimensional code
CN106846506A (en) * 2017-01-25 2017-06-13 腾讯科技(深圳)有限公司 A kind of method and system that Information Authentication is carried out based on message identification code
CN106960377A (en) * 2017-04-10 2017-07-18 上海量明科技发展有限公司 With implementation, system and the client for opening many shared vehicles
CN206639284U (en) * 2017-04-19 2017-11-14 山东大学 Subway based on internet payment exempts from entity ticket riding system
CN107633072A (en) * 2017-09-22 2018-01-26 邓文志 A kind of article sharing method and system based on intelligence rent purchase showcase
CN107895414A (en) * 2017-10-31 2018-04-10 成都起能起重设备技术服务有限公司 A kind of visitor's concierge system based on Quick Response Code

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008269118A (en) * 2007-04-18 2008-11-06 Fuji Xerox Co Ltd Control program and information processor
CN106600716A (en) * 2016-12-07 2017-04-26 深圳市万通顺达科技股份有限公司 One-way ticket purchasing and checking method and system based on two-dimensional code
CN106846506A (en) * 2017-01-25 2017-06-13 腾讯科技(深圳)有限公司 A kind of method and system that Information Authentication is carried out based on message identification code
CN106960377A (en) * 2017-04-10 2017-07-18 上海量明科技发展有限公司 With implementation, system and the client for opening many shared vehicles
CN206639284U (en) * 2017-04-19 2017-11-14 山东大学 Subway based on internet payment exempts from entity ticket riding system
CN107633072A (en) * 2017-09-22 2018-01-26 邓文志 A kind of article sharing method and system based on intelligence rent purchase showcase
CN107895414A (en) * 2017-10-31 2018-04-10 成都起能起重设备技术服务有限公司 A kind of visitor's concierge system based on Quick Response Code

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111160915A (en) * 2018-11-08 2020-05-15 腾讯科技(深圳)有限公司 Bus code verification method and device, traffic code scanning equipment and terminal equipment
CN111160915B (en) * 2018-11-08 2024-01-09 腾讯科技(深圳)有限公司 Riding code verification method and device, traffic code scanning equipment and terminal equipment
CN109544764A (en) * 2018-12-19 2019-03-29 广州羊城通有限公司 Lockage control method and system based on two dimensional code
CN110111470A (en) * 2019-05-16 2019-08-09 郑州博雅讯科技有限公司 A kind of current data linkage control method and control device
CN110442916B (en) * 2019-07-05 2023-05-26 济南百真智能科技有限公司 Undirected graph generation method, undirected graph generation system, undirected graph generation terminal and undirected graph generation storage medium for manufacturing BOM (building object model) of doors and windows
CN110442916A (en) * 2019-07-05 2019-11-12 济南百真智能科技有限公司 A kind of undirected drawing generating method of door and window manufacturing BOM, system, terminal and storage medium
CN110443603A (en) * 2019-07-26 2019-11-12 南京熊猫电子股份有限公司 A kind of method and system that code passes in and out lock real-time matching and settles accounts by bus for track transportation industry
CN110490580A (en) * 2019-07-31 2019-11-22 南京熊猫电子股份有限公司 Method and system are used in combination based on rail traffic mobile payment service two dimensional code in one kind
CN110706377A (en) * 2019-08-19 2020-01-17 厦门路桥信息股份有限公司 Passing method, medium and system based on face recognition and riding code intercommunication
CN110648147A (en) * 2019-09-11 2020-01-03 郑州地铁集团有限公司 Information interaction method and storage medium for two-dimensional code transaction of rail transit gate
CN110648147B (en) * 2019-09-11 2023-11-21 郑州地铁集团有限公司 Information interaction method and storage medium for two-dimension code transaction of rail transit gate
CN111245947A (en) * 2020-01-16 2020-06-05 深圳市永达电子信息股份有限公司 Ticket selling voucher generating method, mobile terminal and ticket selling system applying same
CN111369727A (en) * 2020-02-20 2020-07-03 上海商汤智能科技有限公司 Traffic control method and device
CN111951412A (en) * 2020-03-13 2020-11-17 武汉小码联城科技有限公司 Travel control method, device and system based on subway riding codes and electronic equipment
CN112446995A (en) * 2020-10-20 2021-03-05 支付宝(杭州)信息技术有限公司 Identity information registration processing method, device, equipment and system
CN113660200A (en) * 2021-07-08 2021-11-16 雅宝科技(深圳)有限公司 Network breaking processing method and system for full-automatic car washing

Also Published As

Publication number Publication date
CN108711206B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN108711206A (en) Gate control method, relevant device, system and storage medium
CN102973116B (en) Intelligent mailbox system and control method
CN100535946C (en) Method for gaming and gaming system
CN108665562A (en) Stop field control method, system and computer readable storage medium in hotel
CN107730634A (en) Parking lot is without the parking fee on-line payment method, apparatus and system under network environment
CN105976529A (en) Charger baby leasing method
CN101211437A (en) Electronic payment failure testing method, device and electronic payment system
CN108197913A (en) Method of payment, system and computer readable storage medium based on block chain
CN107590546A (en) A kind of hotel information processing system
CN107767166A (en) Scanning Quick Response Code gets method, system, relevant device and the storage medium of red packet
CN207690150U (en) AFC system and Rail Transit System
CN107590705A (en) Sequence information processing method, apparatus and system
KR101941347B1 (en) Transport system user inspection
CN110009820A (en) Mobile charging treasured leasing system
WO2020041982A1 (en) Method and system for using vehicle diagnostic device and vehicle diagnostic device
CN107784557A (en) A kind of method of sharing articles, equipment and computer-readable storage medium
CN107301541A (en) A kind of register method of portable power source
CN110555692A (en) virtual resource transfer method, device and storage medium
CN109978714A (en) Electrical changing station changes electric treatment system, electrical changing station server-side and changes electric treatment method
CN107578273A (en) Prize and prize check and write off method, server and system
CN109670563A (en) A kind of anti-counterfeit authentication method and device
CN111260530A (en) Lottery entrusted service system and method
CN110189183A (en) Invoice allocator and device based on robot
CN105550926A (en) Self-service tax handling device, method and system
CN106887047A (en) A kind of processing method of ticket information, device and server

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