CN108257226A - Barcode scanning ticket checking method, system, device, computer equipment and storage medium - Google Patents

Barcode scanning ticket checking method, system, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108257226A
CN108257226A CN201810031302.3A CN201810031302A CN108257226A CN 108257226 A CN108257226 A CN 108257226A CN 201810031302 A CN201810031302 A CN 201810031302A CN 108257226 A CN108257226 A CN 108257226A
Authority
CN
China
Prior art keywords
bus
newly
quick response
response code
record
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
CN201810031302.3A
Other languages
Chinese (zh)
Other versions
CN108257226B (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.)
Shenzhen Haidong Green Software Polytron Technologies Inc
Original Assignee
Shenzhen Haidong Green Software Polytron Technologies Inc
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 Shenzhen Haidong Green Software Polytron Technologies Inc filed Critical Shenzhen Haidong Green Software Polytron Technologies Inc
Priority to CN201810031302.3A priority Critical patent/CN108257226B/en
Publication of CN108257226A publication Critical patent/CN108257226A/en
Application granted granted Critical
Publication of CN108257226B publication Critical patent/CN108257226B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B11/00Apparatus for validating or cancelling issued tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The present invention provides a kind of barcode scanning ticket checking method, system, device, computer equipment and storage medium, method and includes:It scans and parses Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;Legitimate verification is carried out according to Quick Response Code source field and Quick Response Code generated time;When legitimate verification by when, generation disengaging station identifications;Disengaging station identifications indicate entry into or leave current site;When the disengaging station identifications passed in and out in record of riding recently of the station identifications with corresponding to user identifier of generation are inconsistent, gate door is opened;Newly-increased record by bus corresponding with user identifier, newly-increased record by bus include disengaging station identifications, user identifier, time out of the station and the current site mark of generation.By carrying out legitimate verification to Quick Response Code, when legitimate verification by when, then verify whether existing recording by bus according to respective two-dimensional code disengaging website, so as to control the unlatching of gate door, reduce the loss of ticket fee, improve ticket checking efficiency.

Description

Barcode scanning ticket checking method, system, device, computer equipment and storage medium
Technical field
The present invention relates to public transport technical field, more particularly to a kind of barcode scanning ticket checking method, system, device, calculating Machine equipment and storage medium.
Background technology
With the continuous development of public transport technology, type, performance and covering surface of the vehicles etc. also constantly become Change.Subway is increasingly becoming the preferred public transport of trip because its freight volume is big, safety, punctual, amenity and the advantages that low energy consumption Tool.The major way for taking subway is to utilize to supplement entity card or purchase one-way ticket with money.Supplement with money entity card it is inconvenient to carry and Easily lose, purchase one-way ticket needs to expend the additional time buying and needs that a large amount of manpower and materials is spent to carry out one-way ticket Management.
To solve the above-mentioned problems, urban tentatively realizes the mode by bus identified based on Quick Response Code, subway at present Gate verifies two dimension by identifying that Quick Response Code obtains corresponding Quick Response Code source field according to the Quick Response Code source field of acquisition The legitimacy of code, when the legitimate verification of Quick Response Code is by then opening gate door.The unlatching of gate door is controlled by this kind of mode, It solves and supplements the above problem existing for rechargeable card and purchase one-way ticket with money, but there may be repeat to enter the station by replicating Quick Response Code Or the problem of outbound, so as to cause the loss of ticket fee, reduce the ticket checking efficiency of gate.
Invention content
Based on this, it is necessary to check the technical issues of efficiency is low for current subway gate out of the station, provide one kind and sweep Code ticket checking method, system, device, computer equipment and storage medium.
A kind of barcode scanning ticket checking method, the method includes:
It scans and parses Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;
Legitimate verification is carried out according to the Quick Response Code source field and the Quick Response Code generated time;
When legitimate verification by when, generation disengaging station identifications;The disengaging station identifications are indicated entry into or left when next stop Point;
When generation disengaging station identifications with corresponding to the user identifier recently by bus record in disengaging station identifications not When consistent, gate door is opened;
Newly-increased record by bus corresponding with the user identifier, the newly-increased record by bus include the disengaging of generation Station identifications, the user identifier, time out of the station and current site mark.
It is described when the disengaging station identifications generated and multiplying recently corresponding to the user identifier in one of the embodiments, When disengaging station identifications in vehicle record are inconsistent, gate door is opened, including:
Verification request by bus is sent to server;The request of verification by bus includes the disengaging of the user identifier and generation Station identifications;It is described to verify request by bus, the disengaging station identifications of the server verification generation are used to indicate with corresponding to the use Out of the station in the recording by bus recently of family mark identifies whether consistent, obtains check results by bus;
Receive the check results by bus that the server returns;
When the disengaging station identifications of the expression verification of check results by bus are inconsistent, gate door is opened;
The method further includes:
Newly-increased record by bus is sent to the server.
The method further includes in one of the embodiments,:
When not receiving the check results by bus in the preset duration after the request of verification by bus is sent, then open Open the gate door;Newly-increased record by bus further includes non-checking mark;
Wherein, the non-checking mark in the newly-increased record by bus, it is more described newly-increased to be used to indicate the server Record by bus in disengaging station identifications and it is described it is newly-increased record by bus before note by bus recently corresponding with the user identifier Disengaging station identifications in record add user identifications into blacklist when consistent.
The server is website ticket server in one of the embodiments,;The method further includes:
The newly-increased record by bus is sent to ticketing service liquidation center server;
Wherein, the newly-increased record by bus, it is more described newly-increased to be used to indicate ticketing service liquidation center server It is corresponding with the user identifier before disengaging station identifications and the newly-increased record by bus in recording by bus to record by bus recently In disengaging station identifications, add user identifications into blacklist when consistent.
The server is ticketing service liquidation center server in one of the embodiments,;It is described to remember newly-increased by bus Record is sent to the server, including:
Newly-increased record by bus is sent to ticketing service liquidation center server, and take by the ticketing service liquidation center The newly-increased record by bus is sent to internet ticketing service platform by business device;
Wherein, the newly-increased record by bus, is used to indicate the internet ticketing service platform and is ridden according to described newly-increased Record calculates ticket fee, and the ticket fee calculated is deducted from the corresponding account of the user identifier.
A kind of barcode scanning ticket-checking system, the system comprises:Gate and server;
The gate obtains user identifier, Quick Response Code source field and Quick Response Code generation for scanning and parsing Quick Response Code Time;It is additionally operable to carry out legitimate verification according to the Quick Response Code source field and the Quick Response Code generated time;It is additionally operable to work as Legitimate verification by when, generation disengaging station identifications;The disengaging station identifications indicate entry into or leave current site;Be additionally operable to Server sends verification request by bus;The request of verification by bus includes the disengaging station identifications of the user identifier and generation;
The server, for receiving the verification request by bus of the transmission of the gate;It is additionally operable to the disengaging of verification generation Station identifications are verified knot by bus with being identified whether corresponding to out of the station in the recording by bus recently of the user identifier consistent Fruit;It is additionally operable to return to the check results by bus to the gate;
The gate is additionally operable to, when the disengaging station identifications of the expression verification of check results by bus are inconsistent, open gate Door;Newly-increased record by bus corresponding with the user identifier is additionally operable to, and newly-increased record by bus is sent to the server; The newly-increased record by bus includes the disengaging station identifications, the user identifier, time out of the station and the current site of generation Mark.
The server is website ticket server in one of the embodiments, the system also includes:Ticketing service is cleared Central server;
The gate is additionally operable to send the newly-increased record by bus to ticketing service liquidation center server;
Ticketing service liquidation center server for it is more described it is newly-increased record by bus in disengaging station identifications and described It is newly-increased record by bus before it is corresponding with the user identifier record by bus recently in disengaging station identifications, when consistent by described in User identifier adds in blacklist.
A kind of barcode scanning ticket-checked device, which is characterized in that described device includes:
Quick Response Code parsing module for scanning and parsing Quick Response Code, obtains user identifier, Quick Response Code source field and two dimension Code generated time;
Legitimate verification module, it is legal for being carried out according to the Quick Response Code source field and the Quick Response Code generated time Property verification;
Identifier generation module out of the station, for when legitimate verification by when, generation disengaging station identifications;The mark out of the station Knowledge indicates entry into or leaves current site;
Gate door opening module, for when the disengaging station identifications of generation and remembering by bus recently corresponding to the user identifier When disengaging station identifications in record are inconsistent, gate door is opened;
Record newly-increased module by bus, for it is newly-increased it is corresponding with the user identifier record by bus, it is newly-increased described to ride Record includes the disengaging station identifications, the user identifier, time out of the station and the current site mark of generation.
A kind of gate, including memory and processor, the memory is stored with computer program, the computer program When being performed by the processor so that the processor performs following steps:
It scans and parses Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;
Legitimate verification is carried out according to the Quick Response Code source field and the Quick Response Code generated time;
When legitimate verification by when, generation disengaging station identifications;The disengaging station identifications are indicated entry into or left when next stop Point;
When generation disengaging station identifications with corresponding to the user identifier recently by bus record in disengaging station identifications not When consistent, gate door is opened;
Newly-increased record by bus corresponding with the user identifier, the newly-increased record by bus include the disengaging of generation Station identifications, the user identifier, time out of the station and current site mark.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor performs following steps:
It scans and parses Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;
Legitimate verification is carried out according to the Quick Response Code source field and the Quick Response Code generated time;
When legitimate verification by when, generation disengaging station identifications;The disengaging station identifications are indicated entry into or left when next stop Point;
When generation disengaging station identifications with corresponding to the user identifier recently by bus record in disengaging station identifications not When consistent, gate door is opened;
Newly-increased record by bus corresponding with the user identifier, the newly-increased record by bus include the disengaging of generation Station identifications, the user identifier, time out of the station and current site mark.
Above-mentioned barcode scanning ticket checking method, system, device, computer equipment and storage medium, parse what is obtained with scan mode Quick Response Code verifies the source legitimacy of Quick Response Code according to Quick Response Code source field, and Quick Response Code is verified according to Quick Response Code generated time Validity, by double verification, effectively prevent repeating the problem of out of the station because of the duplication of Quick Response Code, improve ticket checking effect Rate.Further, when Quick Response Code legitimate verification passes through, and the disengaging station identifications being currently generated identified with relative users it is nearest When disengaging station identifications in recording by bus are inconsistent, show that recording by bus according to respective two-dimensional code disengaging website, symbol is not present Combined floodgate gate unlocking condition, so as to open gate door.According to whether existing remembering by bus according to respective two-dimensional code disengaging website Record controls the unlatching of gate door, further avoids because the duplication of Quick Response Code repeats the problem of out of the station, further improves inspection Ticket efficiency.
Description of the drawings
Fig. 1 is the internal structure chart of gate in one embodiment;
Fig. 2 is the flow diagram of barcode scanning ticket checking method in one embodiment;
Fig. 3 is the flow diagram of barcode scanning ticket checking method in another embodiment;
Fig. 4 is the sequence diagram of barcode scanning ticket checking method in one embodiment;
Fig. 5 is the sequence diagram of barcode scanning ticket checking method in another embodiment;
Fig. 6 is the sequence diagram of barcode scanning ticket checking method in another embodiment;
Fig. 7 is the structure chart of barcode scanning ticket-checking system in one embodiment;
Fig. 8 is the structure chart of barcode scanning ticket-checking system in another embodiment;
Fig. 9 is the structure chart of barcode scanning ticket-checking system in another embodiment;
Figure 10 is the structure diagram of barcode scanning ticket-checked device in one embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the internal structure schematic diagram of gate in one embodiment.The gate includes the place connected by system bus Manage device, memory, input unit and network interface.Wherein, memory includes non-volatile memory medium and built-in storage.The lock Computer program is stored in the memory of machine, when which is executed by processor, it is a kind of to may be such that processor is realized Barcode scanning ticket checking method.The built-in storage of the gate provides environment for the operation of the computer program in non-volatile memory medium. The processor supports the operation of entire gate for providing calculating, parsing and control ability.The network interface of the gate is used for evidence To communicate with external computer device, such as to server transmission verification request by bus, and receive riding for server return Check results.The input unit of the gate can be dimensional code scanner, reader or camera etc..
It will be understood by those skilled in the art that the structure shown in Fig. 1, only part knot relevant with the present invention program The block diagram of structure, does not form the restriction for the gate being applied thereon to the present invention program, and specific gate can be included than figure Shown in more or fewer components either combine certain components or arranged with different component.
As shown in Fig. 2, in one embodiment, provide a kind of barcode scanning ticket checking method.The present embodiment is applied in this way Gate in above-mentioned Fig. 1 illustrates.This method specifically comprises the following steps:
S202 is scanned and is parsed Quick Response Code, obtains user identifier, Quick Response Code source field and Quick Response Code generated time.
Wherein, Quick Response Code is the planar graph being distributed by the rule of particular geometric figure in the plane to represent information.With Family mark is for unique mark user.User identifier can be specifically identity card, real-name authentication cell-phone number, user's head portrait etc., When can be user's registration, the mark of the unique mark registered user of system automatically generated.User identifier can be specifically number, The character string of at least one of symbol and letter etc. character composition.Quick Response Code source field is the word for identifying Quick Response Code source Section.Quick Response Code source field generates the internet ticketing service platform of Quick Response Code for identifying.Quick Response Code source field can be specifically Internet ticketing service platform generate Quick Response Code when, for information in ciphering two-dimension code key or be attached to Quick Response Code letter The verification information for being used to verify Quick Response Code legitimacy in breath.Quick Response Code generated time is the time for generating Quick Response Code.
Specifically, the Quick Response Code that gate scanning user terminal provides is parsed by the reader of gate and is obtained with scan mode The Quick Response Code taken obtains user identifier, Quick Response Code source field and the Quick Response Code generated time included in Quick Response Code.
In one embodiment, during internet ticketing service platform generation Quick Response Code, the user in Quick Response Code is marked by private key Know and be encrypted with information such as Quick Response Code generated times, when gate scanning is to Quick Response Code, then with public key corresponding with encryption key The acquired Quick Response Code of decryption, to obtain the user identifier in Quick Response Code, Quick Response Code source field and Quick Response Code generated time.
S204 carries out legitimate verification according to Quick Response Code source field and Quick Response Code generated time.
Wherein, legitimate verification is the legitimacy for verifying Quick Response Code.Legitimate verification can be specifically verification Quick Response Code The generating resource, he can also be the available time for verifying Quick Response Code.
Specifically, gate according to parsing Quick Response Code obtain Quick Response Code source field verification respective two-dimensional code generation come Source if the generating resource is the internet ticketing service platform specified, judges that the source legitimate verification of respective two-dimensional code passes through.Gate According to the Quick Response Code generated time that parsing obtains, the available time of respective two-dimensional code is verified, if the source legitimacy of Quick Response Code It is verified, and available time is verified, then judges that the legitimate verification of Quick Response Code passes through.
In one embodiment, gate matches the Quick Response Code source field for parsing acquisition with default source field, if Successful match then judges that the source legitimate verification of Quick Response Code passes through.The two dimension that gate obtains gate current time with parsing It is poor that code generated time is made, and calculates and obtains gate current time and the time span between Quick Response Code generated time, compares calculating and obtain The time span obtained and preset duration threshold value, if time span is less than preset duration threshold value, judge that the time of Quick Response Code is effective Property is verified.
In one embodiment, the Quick Response Code that gate scanning user terminal provides, providing can on the user terminal of Quick Response Code Client is installed, user terminal can register corresponding platform account by the client to internet ticketing service platform, registration Platform account is corresponding with unique user identifier, the user identifier can be registration when by client input or What ticketing service platform in internet was actively distributed when user terminal is by client registers platform account.User terminal is by register Platform account by client internet login ticketing service platform after, can be by client to platform account charging, additionally it is possible to Quick Response Code generation request is sent to internet ticketing service platform by client.Ticketing service platform in internet is given birth to according to the Quick Response Code of reception Into requesting to generate corresponding Quick Response Code, and the Quick Response Code of generation is returned to corresponding user terminal.
In one embodiment, the Quick Response Code generation that ticketing service platform in internet is sent according to user terminal requests to generate corresponding Quick Response Code after, update corresponding Quick Response Code, and newer Quick Response Code is sent to corresponding user terminal according to predetermined period. By updating Quick Response Code so that generated Quick Response Code fails after predetermined period, with reduce by replicate Quick Response Code repeat into Outbound possibility.Wherein, predetermined period is the preset adjacent time interval for updating Quick Response Code twice.Predetermined period has Body can be 15 seconds or 30 seconds, can also arbitrarily be set according to actual conditions.
S206, when legitimate verification by when, generation disengaging station identifications;Disengaging station identifications are indicated entry into or left when next stop Point.
Wherein, disengaging station identifications enter the station or outbound for identifying.Disengaging station identifications can be specifically into current site or Leave the mark of current site.At least one of characters such as number, symbol and letter can specifically be included by passing in and out station identifications, than It such as says and can represent to enter the station with 1, represent outbound with 0.
Specifically, gate tests respective two-dimensional code progress legitimacy with Quick Response Code generated time according to Quick Response Code source field Card, when legitimate verification by when, gate is generated according to the scan position or scan mechanism of Quick Response Code and default formation condition It indicates entry into current site or leaves the disengaging station identifications of current site.Wherein, default formation condition is preset is used for The disengaging station identifications of judgement generation are used to indicate entry into the condition that current site still leaves current site.What deserves to be explained is The gate of different websites generates consistent for indicating entry into the disengaging station identifications of current site respectively, it is corresponding for represent from The disengaging station identifications for opening current site are also consistent.
S208, when generation disengaging station identifications with corresponding to user identifier recently by bus record in disengaging station identifications not When consistent, gate door is opened.
Wherein, record is that the history of record is ridden situation by bus.It records by bus corresponding for recording each user identifier Each situation of riding.Disengaging station identifications, user identifier, time out of the station and corresponding out of the station can specifically be included by recording by bus Site identity.Record is used to represent in the set of records ends by bus corresponding to user identifier by bus recently, nearest from current time It records by bus.
Specifically, gate sends the Quick Response Code of parsing to server, and server is worked as according to the two-dimentional code check gate of parsing Previous existence into disengaging station identifications, with corresponding to user identifier and it is nearest from current time record by bus in disengaging station identifications It is whether consistent.When inconsistent, server returns to inconsistent check results to gate, and gate receives the school for representing inconsistent It tests as a result, then opening gate door.
S210, increase newly it is corresponding with user identifier record by bus, newly-increased record by bus include the disengaging station identifications generated, User identifier, time out of the station and current site mark.
Wherein, increase newly is to increase newest record by bus.Time out of the station is the gate door opening time.Current site identifies It is the station website belonging to the current gate for opening gate door.Current site mark for identify it is corresponding record by bus it is corresponding into The station website for entering or leaving.Specifically, gate according to generation disengaging station identifications, parsing Quick Response Code obtain user identifier, And the time out of the station obtained and current site mark, generation correspond to the newest of relative users mark and record by bus.
Above-mentioned barcode scanning ticket checking method, parses the Quick Response Code obtained with scan mode, and two are verified according to Quick Response Code source field The source legitimacy of code is tieed up, the validity of Quick Response Code is verified according to Quick Response Code generated time, by double verification, is effectively prevented Because the duplication of Quick Response Code repeats the problem of out of the station, ticket checking efficiency is improved.Further, when Quick Response Code legitimate verification leads to It crosses, and when the disengaging station identifications being currently generated and the inconsistent disengaging station identifications ridden recently in recording of relative users mark, Show that recording by bus according to respective two-dimensional code disengaging website is not present, meet gate door unlocking condition, so as to open gate door. According to whether existing recording by bus according to respective two-dimensional code disengaging website, controls the unlatching of gate door, further avoids Because the duplication of Quick Response Code repeats the problem of out of the station, ticket checking efficiency is further improved.
In one embodiment, step S208 includes:Verification request by bus is sent to server;Verification request by bus includes User identifier and the disengaging station identifications of generation;By bus verification request, be used to indicate server verification generation disengaging station identifications with It is identified whether corresponding to out of the station in the recording by bus recently of user identifier consistent, obtains check results by bus;Receive service The check results by bus that device returns;When check results represent that the disengaging station identifications of verification are inconsistent by bus, gate door is opened;On Barcode scanning ticket checking method is stated to further include:Newly-increased record by bus is sent to server.
Wherein, verification request is to trigger the request of verification by bus by bus.Check results are according to verification request by bus by bus The result for being used to indicate whether to open gate door that verification obtains.
Specifically, gate sends the verification request by bus for the disengaging station identifications for carrying user identifier and generation to server. Server receives corresponding verification request by bus, and corresponding user identifier and out of the station is obtained from the request of verification by bus of reception Mark according to the user identifier of acquisition inquiry recording by bus recently corresponding to the user identifier, verifies the mark out of the station of acquisition Know with inquiry recently by bus record in it is out of the station identify whether it is consistent, obtain correspond to by bus verification request by bus verification As a result, and the check results by bus of acquisition are fed back into gate.
Further, gate receives the check results by bus that server corresponds to verification request feedback by bus, according to reception By bus check results determine whether open gate door.When check results represent the disengaging station identifications and relative users of generation by bus Identify it is corresponding recently by bus record in disengaging station identifications it is inconsistent when, gate open gate door.Gate generation is newest to be multiplied Vehicle records, and the record by bus being newly generated is sent to server, so that server is in the corresponding note by bus of user identifier Increase in record set to record by bus.
In above-described embodiment, ride accordingly by means of whether the Quick Response Code of server verification Current Scan acquisition is existing Record, it is out of the station so as to determine whether there is a situation where to repeat according to identical Quick Response Code, when judgement is not present according to identical When Quick Response Code repeats situation out of the station, then gate door is opened.It can effectively be avoided according to identical Quick Response Code weight by this method The problem of multiple out of the station, the loss of ticket fee is reduced, improves ticket checking efficiency.
In one embodiment, server can be website ticket server, and gate verification request will be sent to station by bus Point ticket server.Website ticket server is according to the verification request by bus of reception, the disengaging station identifications that verification gate generates, with Corresponding to relative users mark and current site identify ride record in it is out of the station identify whether it is consistent.If inconsistent, stand Point ticket server then returns to the check results by bus for representing that the disengaging station identifications of verification are inconsistent to gate, so that gate is opened Lift gate mechanism door.
In above-described embodiment, gate is opened according to the above-mentioned check results control gate door by bus of website ticket server It opens, can effectively avoid repeating disengaging current site or entered the station by non-payment area in current site to pay according to identical Quick Response Code It is outbound and entered the station the outbound situation in non-payment area by paid area in current site to take area, so as to avoid the loss of ticket fee, carries The high efficiency of ticket checking.Further, relative users mark remembering by bus in current site is verified by website ticket server Record, the unlatching of the control gate door of check results by bus according to current site, reduces checking time, improves the timeliness of verification Property further improves the efficiency of ticket checking.
In one embodiment, server can be ticketing service liquidation center server, and gate will be sent in verification request by bus To ticketing service liquidation center server.Ticketing service liquidation center server is corresponding according to the whole network inquiry of verification log-in by bus of reception The record by bus of the corresponding each website of user identifier obtains record by bus nearest in the record by bus of inquiry, verifies gate The disengaging station identifications of generation recorded by bus with what is obtained in it is out of the station identify whether consistent, obtain corresponding verification knot by bus Fruit, and the check results by bus of acquisition are fed back into gate, to control the unlatching of gate door.Wherein, ticketing service liquidation center services Device is connected with each subway line in same city and each website of each subway line by subway Intranet.In ticketing service clearance Central server is also stored with the recording by bus in each website corresponding to each user identifier.
In above-described embodiment, relative users mark multiplying corresponding to multiple websites is inquired by ticketing service liquidation center server Vehicle is nearest in recording to be recorded, and verify the disengaging station identifications in the record by bus of inquiry and the mark out of the station of gate generation by bus Whether consistent know.When check results mark is inconsistent, gate opens gate door.Phase is verified by ticketing service liquidation center server User identifier recording by bus in multiple websites is answered, repeats to pass in and out different websites according to identical Quick Response Code to determine whether to exist Situation can be avoided passing through effectively and replicate the problem of Quick Response Code repeats to pass in and out different websites, avoided the loss of ticket fee, improve Check efficiency.
In one embodiment, above-mentioned barcode scanning ticket checking method further includes:When send by bus verification request after it is default when When not receiving check results by bus in long, then gate door is opened;Newly-increased record by bus further includes non-checking mark;Wherein, Non- checking mark in newly-increased record by bus, the disengaging station identifications being used to indicate in the relatively more newly-increased record by bus of server, With it is newly-increased record by bus before disengaging station identifications in record by bus recently corresponding with user identifier, user is marked when consistent Know and add in blacklist.
Wherein, preset duration is preset time span.Non- checking mark is used to identify gate because in preset duration Do not receive the check results by bus corresponding to verification request by bus inside, the corresponding check results by bus of judgement represent verification into Go out that station identifications are inconsistent, open the situation of gate door.There are unreasonable user identifiers out of the station for identifying for blacklist.Black name It is single specifically can be used for identifying repeat to enter the station according to identical Quick Response Code or outbound user identifier, it can also be used to identify paid area into The outbound user identifier of paid area that non-payment of standing area is outbound or non-payment area enters the station.
Specifically, gate since to server send by bus verification request timing, when time duration reaches it is default when When long, by bus check results of the server for verification request feedback by bus are not received yet, then judgement is corresponding verifies by bus As a result the disengaging station identifications for verification are inconsistent, open gate door.Gate correspond to user identifier generation comprising it is out of the station mark, User identifier, time out of the station, current site identifies and the record by bus of non-checking mark, and the record by bus of generation is sent to Server.
Further, server receives the record by bus that gate is newly generated and sends, and recording by bus for reception is newly-increased Into the corresponding set of records ends by bus of relative users mark.When including non-checking mark in newly-increased record by bus, service Device inquires record by bus recently before newly-increased record by bus in the corresponding set of records ends of riding of relative users mark.Service Device compares the disengaging station identifications in the record by bus of inquiry with the disengaging station identifications in newly-increased record by bus, when what is compared When disengaging station identifications are consistent, corresponding user identifier is added in into blacklist.
In one embodiment, when the disengaging station identifications compared are consistent, server can be by corresponding user identifier Internet ticketing service platform is sent to, so that user identifier is added in blacklist by internet ticketing service platform, can also will add in phase The blacklist after user identifier is answered to be sent to internet ticketing service platform.Internet ticketing service platform is received corresponding to user identifier Quick Response Code generation request, corresponding user identifier and the user identifier in blacklist are matched, when successful match, do not generated Corresponding Quick Response Code comes back for the prompt message of history ticket fee clearance to user terminal.The prompt message of history ticket fee clearance It is used to indicate user terminal and clearance is sent in the presence of abnormal history ticket fee to internet ticketing service platform according to the prompt message of reception.
In above-described embodiment, correspond to the check results by bus for verifying request by bus when not received in preset duration, Then acquiescence disengaging station identifications that check results be verification of riding are consistent, first unlatching gate door, so as not to because etc. to be returned multiply accordingly Vehicle check results and increase the ticket checking time, improve ticket checking efficiency.Further, by server according to by bus record in not Verification mark, verification relative users identify whether to there is a situation where it is out of the station according to the repetition of identical Quick Response Code, effectively prevent because It replicates Quick Response Code caused ticket fee out of the station to be lost in, further improves ticket checking efficiency.
In one embodiment, server is website ticket server;Above-mentioned barcode scanning ticket checking method further includes:By what is increased newly Record is sent to ticketing service liquidation center server by bus;Wherein, newly-increased record by bus, is used to indicate the service of ticketing service liquidation center Device it is relatively newly-increased record by bus in disengaging station identifications and it is newly-increased record by bus before corresponding with user identifier ride recently User identifier is added in blacklist when consistent by the disengaging station identifications in record.
Wherein, website ticket server is the server for being deployed in each website for carrying out website ticket management.Ticketing service Liquidation center's server is unified plan and the server of each website ticketing service is managed for unified clearance.
Specifically, gate sends verification request by bus to website ticket server, and receiving station ticket server corresponds to In the check results by bus of verification request feedback by bus, the unlatching of gate door is controlled according to check results by bus.When gate according to When check results open gate door by bus, generation is corresponding to be recorded by bus, and the record by bus of generation is sent to website ticketing service clothes Business device and ticketing service liquidation center server.The record by bus of reception is increased newly to relative users and identified by ticketing service liquidation center server In corresponding set of records ends by bus, and the note by bus recorded recently before the newly-increased record by bus of inquiry from set of records ends by bus Record compares the disengaging station identifications in the recording by bus of inquiry with the disengaging station identifications in newly-increased record of riding, when comparing Disengaging station identifications it is consistent when, by corresponding user add in blacklist.
In above-described embodiment, when according to website ticket server by bus check results open gate behind the door, it is clear to ticketing service Calculate central server send it is newly-increased record by bus so that other websites of ticketing service liquidation center server authentication whether there is according to According to the situation of identical Quick Response Code disengaging website, blacklist is added in if relative users being identified in the presence of if, when being somebody's turn to do for addition blacklist When user identifier requests to generate Quick Response Code again, ticket fee clearance need to be first carried out, to reduce the loss of ticket fee.
In one embodiment, in above-mentioned barcode scanning ticket checking method, server is ticketing service liquidation center server;By what is increased newly Record is sent to server by bus, including:Newly-increased record by bus is sent to ticketing service liquidation center server, and pass through ticketing service Newly-increased record by bus is sent to internet ticketing service platform by liquidation center's server;Wherein, newly-increased record by bus, for referring to Show that ticketing service platform in internet calculates ticket fee according to newly-increased record by bus, and the ticket calculated is deducted from the corresponding account of user identifier Money.
Wherein, ticketing service platform in internet is the platform for integrated management.Internet ticketing service platform specifically can be used for two Generation and the management of code, the establishment of user account is tieed up the certification of record, the calculating of ticket fee and to withhold or and third with management, by bus Ticket fee clearance of Fang Pingtai etc..Ticket fee corresponds to user's multiplying when secondary generation by bus corresponding to the user identifier recorded by bus Fare is used.Ticket fee can be specifically according to indicating entry into the corresponding current site of disengaging station identifications of current site, with represent from The corresponding current site of disengaging station identifications of current site is opened, the relative users mark of calculating is corresponding when secondary expense by bus.
Specifically, when gate verification request will be sent to ticketing service liquidation center server, and clear according to ticketing service by bus When the check results by bus that central server returns open gate door, recording and sending to ticketing service liquidation center takes by bus for gate generation Business device.Ticketing service liquidation center server increases the record by bus of reception newly by bus set of records ends corresponding to relative users mark In, and newly-increased record by bus is sent to internet ticketing service platform.When the disengaging station identifications in newly-increased record by bus represent When leaving current site, internet ticketing service platform inquire this it is newly-increased record by bus before corresponding with relative users mark multiply recently Disengaging station identifications in vehicle record, the disengaging station identifications in being recorded by bus with what is increased newly according to the disengaging station identifications of inquiry, calculate Relative users mark is when time corresponding ticket fee.Ticketing service platform in internet identifies corresponding account according to the ticket fee of calculating from relative users Corresponding ticket fee is deducted in family.
In one embodiment, when gate sends verification request, and according to website ticketing service by bus to website ticket server When the check results by bus that server returns open gate door, while to website ticket server and ticketing service liquidation center server Send recording by bus for generation.Ticketing service liquidation center server increases the record by bus of reception newly corresponding to relative users mark By bus in set of records ends, and newly-increased record by bus is sent to internet ticketing service platform, so that internet ticketing service platform root The ticket fee of relative users mark is calculated, and identified from relative users and deduct what is calculated in corresponding account according to newly-increased record by bus Ticket fee.
In one embodiment, ticketing service platform in internet receives newly-increased record by bus, to the corresponding use of user identifier Family terminal pushes the newly-increased record by bus.When internet, ticketing service platform monitors that the corresponding account balance of user identifier is insufficient When, to the corresponding user terminal push prompting message that Sorry, your ticket has not enough value of user identifier, in order to timely processing.
In above-described embodiment, newly-increased note by bus is sent to internet ticketing service platform by ticketing service liquidation center server Record, so that ticketing service platform in internet calculates the corresponding ticket fee of relative users mark according to newly-increased record by bus, and from corresponding Corresponding ticket fee is deducted in the corresponding account of user identifier, realizes calculating and button that ticketing service platform in internet uniformly carries out ticket fee It removes, corresponding account balance is identified in order to monitor relative users in time.
As shown in figure 3, in a specific embodiment, provide a kind of barcode scanning ticket checking method.The tool that this method includes Body step is as follows:
S302, gate scan and parse Quick Response Code, when obtaining user identifier, Quick Response Code source field and Quick Response Code generation Between.
S304, gate carry out legitimate verification according to the Quick Response Code source field and the Quick Response Code generated time.
S306, when legitimate verification by when, gate generation disengaging station identifications;It is described disengaging station identifications indicate entry into or from Open current site.
S308, gate send verification request by bus to server;It is described by bus verification request include the user identifier with The disengaging station identifications of generation;The verification request by bus, be used to indicate the disengaging station identifications of server verification generation with it is right Out of the station in the recording by bus recently of user identifier described in Ying Yu identifies whether consistent, obtains check results by bus.
S310 receives the check results by bus that the server returns.
S312 when the disengaging station identifications of the expression verification of check results by bus are inconsistent, opens gate door.
S314, increases record by bus corresponding with the user identifier newly, and the newly-increased record by bus includes the institute of generation State disengaging station identifications, the user identifier, time out of the station and current site mark.
Newly-increased record by bus is sent to the server by S316.
In above-described embodiment, scanned by gate and parse Quick Response Code and carry out the legitimate verification of Quick Response Code.Work as conjunction When method is verified, disengaging station identifications are generated by gate and are concurrently sent to server, then user is corresponded to by server verification Disengaging station identifications in the nearest record by bus of mark identify whether unanimously with the out of the station of generation, and lock is controlled according to check results The unlatching of gate to avoid the situation for repeating to enter the station according to identical Quick Response Code, reduces the loss of ticket fee, improves ticket checking effect Rate.
As shown in figure 4, in one specifically embodiment, a kind of sequence diagram of barcode scanning ticket checking method is provided.In this reality It applies in example, server is ticketing service liquidation center server, and the Quick Response Code of gate scanning is shown by user terminal, and user terminal shows Quick Response Code sent by internet ticketing service platform according to user terminal Quick Response Code generation request to generate and feed back.Based on above-mentioned reality Example is applied, the interactive process of embodiment design is as shown in the timing diagram.
As shown in figure 5, in one specifically embodiment, a kind of sequence diagram of barcode scanning ticket checking method is provided.In the reality It applies in example, the disengaging station identifications in being recorded by bus according to the request verification of verification by bus of gate simultaneously feed back corresponding verification knot by bus The server of fruit is website ticket server, and the Quick Response Code of gate scanning is shown by user terminal, the two dimension that user terminal shows The Quick Response Code generation that code is sent by internet ticketing service platform according to user terminal is requested to generate and is fed back.Gate opens gate behind the door Newly-increased record by bus is also sent to ticketing service liquidation center server, ticketing service liquidation center server multiplies by comparing newly-increased Before disengaging station identifications and the newly-increased record of riding in vehicle record in nearest record by bus corresponding with relative users mark Out of the station to identify whether unanimously, verification whether there is passes in and out recording by bus for other websites according to identical Quick Response Code.Based on above-mentioned Embodiment, the interactive process of embodiment design is as shown in the timing diagram.
As shown in fig. 6, in one specifically embodiment, a kind of sequence diagram of barcode scanning ticket checking method is provided.In the reality It applies in example, the disengaging station identifications in being recorded by bus according to the request verification of verification by bus of gate simultaneously feed back corresponding verification knot by bus The server ticketing service liquidation center server of fruit, gate scanning Quick Response Code shown by user terminal, user terminal show two The Quick Response Code generation that dimension code is sent by internet ticketing service platform according to user terminal is requested to generate and is fed back.Based on above-mentioned implementation Example, the interactive process of embodiment design is as shown in the timing diagram.
As shown in fig. 7, in one embodiment, provide a kind of barcode scanning ticket-checking system 700.With reference to Fig. 7 barcode scannings ticket checking system System 700 includes:Gate 701 and server 702;Gate 701 and server 702 can pass through dedicated Internet access.
Gate 701 is for scanning and parsing Quick Response Code, when obtaining user identifier, Quick Response Code source field and Quick Response Code generation Between;It is additionally operable to carry out legitimate verification according to Quick Response Code source field and Quick Response Code generated time;It is additionally operable to work as legitimate verification By when, generation disengaging station identifications;Disengaging station identifications indicate entry into or leave current site;It is additionally operable to ride to server transmission Verification request;Verification request includes the disengaging station identifications of user identifier and generation by bus;
Server 702, for receiving the verification request by bus of the transmission of gate;It is additionally operable to the disengaging station identifications of verification generation With being identified whether corresponding to out of the station in the recording by bus recently of user identifier consistent, check results by bus are obtained;It is additionally operable to Check results of riding are returned to gate;
Gate 701 is additionally operable to, when check results represent that the disengaging station identifications of verification are inconsistent by bus, open gate door;Also For newly-increased record by bus corresponding with user identifier, and newly-increased record by bus is sent to server;Newly-increased remembers by bus Record includes disengaging station identifications, user identifier, time out of the station and the current site mark of generation.
Above-mentioned barcode scanning ticket-checking system is scanned by gate and parses Quick Response Code and carry out the legitimate verification of Quick Response Code. When legitimate verification by when, by gate generate disengaging station identifications concurrently send to server, then by server verification correspond to Disengaging station identifications in the nearest record by bus of user identifier are identified whether with the out of the station of generation unanimously, according to check results control The unlatching of check gate to avoid the situation for repeating to enter the station according to identical Quick Response Code, reduces the loss of ticket fee, improves ticket checking Efficiency.
In one embodiment, gate 701 is additionally operable to not receive in preset duration after verification request by bus is being sent During to check results by bus, then gate door is opened;Newly-increased record by bus further includes non-checking mark;Server 702, is additionally operable to According to it is newly-increased record by bus in non-checking mark, it is relatively more newly-increased record by bus in disengaging station identifications and newly-increased multiply Disengaging station identifications in record by bus recently corresponding with user identifier, add in black name when consistent by user identifier before vehicle record It is single.
In above-described embodiment, correspond to the check results by bus for verifying request by bus when not received in preset duration, Then acquiescence disengaging station identifications that check results be verification of riding are consistent, first unlatching gate door, so as not to because etc. to be returned multiply accordingly Vehicle check results and increase the ticket checking time, improve ticket checking efficiency.Further, by server according to by bus record in not Verification mark, verification relative users identify whether to there is a situation where it is out of the station according to the repetition of identical Quick Response Code, effectively prevent because It replicates Quick Response Code caused ticket fee out of the station to be lost in, further improves ticket checking efficiency.
As shown in figure 8, in one embodiment, when server 702 is website ticket server 702a, barcode scanning ticket-checking system 700 further include:Ticketing service liquidation center server 702b;
Gate 701 is additionally operable to send newly-increased record by bus to ticketing service liquidation center server.
Ticketing service liquidation center server 702b for it is relatively newly-increased record by bus in disengaging station identifications and newly-increased multiply Disengaging station identifications in record by bus recently corresponding with user identifier, add in black name when consistent by user identifier before vehicle record It is single.
In above-described embodiment, when according to website ticket server by bus check results open gate behind the door, it is clear to ticketing service Calculate central server send it is newly-increased record by bus so that other websites of ticketing service liquidation center server authentication whether there is according to According to the situation of identical Quick Response Code disengaging website, blacklist is added in if relative users being identified in the presence of if, when being somebody's turn to do for addition blacklist When user identifier requests to generate Quick Response Code again, ticket fee clearance need to be first carried out, to reduce the loss of ticket fee.
As shown in figure 9, in one embodiment, barcode scanning ticket-checking system 700 further includes:Internet ticketing service platform 704;Ticketing service Liquidation center server 702b is additionally operable to newly-increased record by bus being sent to internet ticketing service platform 704;Internet ticketing service is put down Platform 704 is used to calculate ticket fee according to newly-increased record by bus, and deduct the ticket fee calculated from the corresponding account of user identifier.
In above-described embodiment, newly-increased note by bus is sent to internet ticketing service platform by ticketing service liquidation center server Record, so that ticketing service platform in internet calculates the corresponding ticket fee of relative users mark according to newly-increased record by bus, and from corresponding Corresponding ticket fee is deducted in the corresponding account of user identifier, realizes calculating and button that ticketing service platform in internet uniformly carries out ticket fee It removes, corresponding account balance is identified in order to monitor relative users in time.
As shown in Figure 10, in one embodiment, a kind of barcode scanning ticket-checked device 1000 is provided.Barcode scanning ticket-checked device 1000 Including:Quick Response Code parsing module 1001, legitimate verification module 1002, identifier generation module out of the station 1003, gate door are opened The newly-increased module 1005 of module 1004 and by bus record.
Quick Response Code parsing module 1001, for scanning and parsing Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;
Legitimate verification module 1002 is tested for carrying out legitimacy according to Quick Response Code source field and Quick Response Code generated time Card;
Identifier generation module 1003 out of the station, for when legitimate verification by when, generation disengaging station identifications;Mark out of the station Knowledge indicates entry into or leaves current site;
Gate door opening module 1004, for when the disengaging station identifications of generation and remembering by bus recently corresponding to user identifier When disengaging station identifications in record are inconsistent, gate door is opened;
Newly-increased module 1005 is recorded by bus, and for newly-increased record by bus corresponding with user identifier, newly-increased records by bus Disengaging station identifications, user identifier, time out of the station and current site mark including generation.
Above-mentioned barcode scanning ticket-checked device, parses the Quick Response Code obtained with scan mode, and two are verified according to Quick Response Code source field The source legitimacy of code is tieed up, the validity of Quick Response Code is verified according to Quick Response Code generated time, by double verification, is effectively prevented Because the duplication of Quick Response Code repeats the problem of out of the station, ticket checking efficiency is improved.Further, when Quick Response Code legitimate verification leads to It crosses, and when the disengaging station identifications being currently generated and the inconsistent disengaging station identifications ridden recently in recording of relative users mark, Show that recording by bus according to respective two-dimensional code disengaging website is not present, meet gate door unlocking condition, so as to open gate door. According to whether existing recording by bus according to respective two-dimensional code disengaging website, controls the unlatching of gate door, further avoids Because the duplication of Quick Response Code repeats the problem of out of the station, ticket checking efficiency is further improved.
In one embodiment, gate door opening module 1004 is additionally operable to send verification request by bus to server;By bus Verification request includes the disengaging station identifications of user identifier and generation;Verification request by bus is used to indicate server verification generation Disengaging station identifications are verified knot by bus with being identified whether corresponding to out of the station in the recording by bus recently of user identifier consistent Fruit;Receive the check results by bus that server returns;When check results represent that the disengaging station identifications of verification are inconsistent by bus, open Lift gate mechanism door;Newly-increased module 1005 is recorded by bus, is additionally operable to newly-increased record by bus being sent to server.
In above-described embodiment, ride accordingly by means of whether the Quick Response Code of server verification Current Scan acquisition is existing Record, it is out of the station so as to determine whether there is a situation where to repeat according to identical Quick Response Code, when judgement is not present according to identical When Quick Response Code repeats situation out of the station, then gate door is opened.It can effectively be avoided according to identical Quick Response Code weight by this method The problem of multiple out of the station, the loss of ticket fee is reduced, improves ticket checking efficiency.
In one embodiment, gate door opening module 1004 is additionally operable to default after verification request by bus is being sent When not receiving check results by bus in duration, then gate door is opened;Newly-increased record by bus further includes non-checking mark;Its In, the non-checking mark in newly-increased record by bus, the mark out of the station being used to indicate in the relatively more newly-increased record by bus of server Know and it is newly-increased record by bus before disengaging station identifications in record by bus recently corresponding with user identifier, will use when consistent Family mark adds in blacklist.
In above-described embodiment, correspond to the check results by bus for verifying request by bus when not received in preset duration, Then acquiescence disengaging station identifications that check results be verification of riding are consistent, first unlatching gate door, so as not to because etc. to be returned multiply accordingly Vehicle check results and increase the ticket checking time, improve ticket checking efficiency.Further, by server according to by bus record in not Verification mark, verification relative users identify whether to there is a situation where it is out of the station according to the repetition of identical Quick Response Code, effectively prevent because It replicates Quick Response Code caused ticket fee out of the station to be lost in, further improves ticket checking efficiency.
In one embodiment, server is website ticket server;Newly-increased module 1005 is recorded by bus, and being additionally operable to will be new The record by bus increased is sent to ticketing service liquidation center server;Wherein, newly-increased record by bus, is used to indicate ticketing service liquidation center It is corresponding with user identifier nearest before disengaging station identifications and newly-increased record by bus in the record by bus that server relatively increases newly User identifier is added in blacklist when consistent by the disengaging station identifications in recording by bus.
In above-described embodiment, when according to website ticket server by bus check results open gate behind the door, it is clear to ticketing service Calculate central server send it is newly-increased record by bus so that other websites of ticketing service liquidation center server authentication whether there is according to According to the situation of identical Quick Response Code disengaging website, blacklist is added in if relative users being identified in the presence of if, when being somebody's turn to do for addition blacklist When user identifier requests to generate Quick Response Code again, ticket fee clearance need to be first carried out, to reduce the loss of ticket fee.
In one embodiment, server is ticketing service liquidation center server;Newly-increased module 1005 is recorded by bus, is additionally operable to Newly-increased record by bus is sent to ticketing service liquidation center server, and passes through ticketing service liquidation center server and newly-increased is ridden Record is sent to internet ticketing service platform;Wherein, it is newly-increased record by bus, internet ticketing service platform is used to indicate according to increasing newly Record calculates ticket fee by bus, and the ticket fee calculated is deducted from the corresponding account of user identifier.
In above-described embodiment, newly-increased note by bus is sent to internet ticketing service platform by ticketing service liquidation center server Record, so that ticketing service platform in internet calculates the corresponding ticket fee of relative users mark according to newly-increased record by bus, and from corresponding Corresponding ticket fee is deducted in the corresponding account of user identifier, realizes calculating and button that ticketing service platform in internet uniformly carries out ticket fee It removes, corresponding account balance is identified in order to monitor relative users in time.
A kind of gate, including memory and processor, memory is stored with computer program, and computer program is by processor During execution so that processor performs following steps:Scan and parse Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;Legitimate verification is carried out according to Quick Response Code source field and Quick Response Code generated time;Work as legitimate verification By when, generation disengaging station identifications;Disengaging station identifications indicate entry into or leave current site;When generation disengaging station identifications with it is right Gate door should be opened when the disengaging station identifications in the record of riding recently of user identifier are inconsistent;Newly-increased and user identifier pair That answers records by bus, and newly-increased record by bus includes disengaging station identifications, user identifier, time out of the station and the current site of generation Mark.
In one embodiment, when generation disengaging station identifications with corresponding to user identifier recently by bus record in into Go out station identifications it is inconsistent when, open gate door, including:Verification request by bus is sent to server;Verification request includes using by bus Family identifies and the disengaging station identifications of generation;By bus verification request, be used to indicate server verification generation disengaging station identifications with it is right It should be identified whether in out of the station in the recording by bus recently of user identifier consistent, obtain check results by bus;Receive server The check results by bus returned;When check results represent that the disengaging station identifications of verification are inconsistent by bus, gate door is opened;It calculates When machine program is executed by processor, also so that processor performs following steps:Newly-increased record by bus is sent to server.
In one embodiment, when computer program is executed by processor, also so that processor performs following steps:When It sends in the preset duration after verification request by bus when not receiving check results by bus, then opens gate door;Newly-increased rides Record further includes non-checking mark;Wherein, the non-checking mark in newly-increased record by bus, it is relatively more newly-increased to be used to indicate server Record by bus in disengaging station identifications and it is newly-increased record by bus before it is corresponding with user identifier recently by bus in record into Go out station identifications, user identifier is added in into blacklist when consistent.
In one embodiment, server is website ticket server;When computer program is executed by processor, also cause Processor performs following steps:Newly-increased record by bus is sent to ticketing service liquidation center server;Wherein, newly-increased note by bus Record, the disengaging station identifications being used to indicate in the record by bus that ticketing service liquidation center server relatively increases newly and newly-increased note by bus Disengaging station identifications in record by bus recently corresponding with user identifier, add in blacklist when consistent by user identifier before record.
In one embodiment, server is ticketing service liquidation center server;Newly-increased record by bus is sent to service Device, including:Newly-increased record by bus is sent to ticketing service liquidation center server, and pass through ticketing service liquidation center server will be new The record by bus increased is sent to internet ticketing service platform;Wherein, newly-increased record by bus, is used to indicate internet ticketing service platform root Ticket fee is calculated, and the ticket fee calculated is deducted from the corresponding account of user identifier according to newly-increased record by bus.
The Quick Response Code that above-mentioned gate parsing is obtained with scan mode verifies the source of Quick Response Code according to Quick Response Code source field Legitimacy is verified the validity of Quick Response Code according to Quick Response Code generated time, by double verification, is effectively prevented because of Quick Response Code It replicates and repeats the problem of out of the station, improve ticket checking efficiency.Further, when Quick Response Code legitimate verification passes through, and work as previous existence Into the recording by bus recently of disengaging station identifications and relative users mark in disengaging station identifications it is inconsistent when, show to be not present according to According to recording by bus for respective two-dimensional code disengaging website, meet gate door unlocking condition, so as to open gate door.According to whether it deposits In recording by bus according to respective two-dimensional code disengaging website, the unlatching of gate door is controlled, further avoids answering because of Quick Response Code System repeats the problem of out of the station, further improves ticket checking efficiency.
A kind of computer readable storage medium is stored with computer program, when computer program is executed by processor so that Processor performs following steps:It scans and parses Quick Response Code, when obtaining user identifier, Quick Response Code source field and Quick Response Code generation Between;Legitimate verification is carried out according to Quick Response Code source field and Quick Response Code generated time;When legitimate verification by when, generate into Go out station identifications;Disengaging station identifications indicate entry into or leave current site;When the disengaging station identifications of generation are with corresponding to user identifier Recently by bus record in disengaging station identifications it is inconsistent when, open gate door;Newly-increased record by bus corresponding with user identifier, Newly-increased record by bus includes disengaging station identifications, user identifier, time out of the station and the current site mark of generation.
In one embodiment, when generation disengaging station identifications with corresponding to user identifier recently by bus record in into Go out station identifications it is inconsistent when, open gate door, including:Verification request by bus is sent to server;Verification request includes using by bus Family identifies and the disengaging station identifications of generation;By bus verification request, be used to indicate server verification generation disengaging station identifications with it is right It should be identified whether in out of the station in the recording by bus recently of user identifier consistent, obtain check results by bus;Receive server The check results by bus returned;When check results represent that the disengaging station identifications of verification are inconsistent by bus, gate door is opened;It calculates When machine program is executed by processor, also so that processor performs following steps:Newly-increased record by bus is sent to server.
In one embodiment, when computer program is executed by processor, also so that processor performs following steps:When It sends in the preset duration after verification request by bus when not receiving check results by bus, then opens gate door;Newly-increased rides Record further includes non-checking mark;Wherein, the non-checking mark in newly-increased record by bus, it is relatively more newly-increased to be used to indicate server Record by bus in disengaging station identifications and it is newly-increased record by bus before it is corresponding with user identifier recently by bus in record into Go out station identifications, user identifier is added in into blacklist when consistent.
In one embodiment, server is website ticket server;When computer program is executed by processor, also cause Processor performs following steps:Newly-increased record by bus is sent to ticketing service liquidation center server;Wherein, newly-increased note by bus Record, the disengaging station identifications being used to indicate in the record by bus that ticketing service liquidation center server relatively increases newly and newly-increased note by bus Disengaging station identifications in record by bus recently corresponding with user identifier, add in blacklist when consistent by user identifier before record.
In one embodiment, server is ticketing service liquidation center server;Newly-increased record by bus is sent to service Device, including:Newly-increased record by bus is sent to ticketing service liquidation center server, and pass through ticketing service liquidation center server will be new The record by bus increased is sent to internet ticketing service platform;Wherein, newly-increased record by bus, is used to indicate internet ticketing service platform root Ticket fee is calculated, and the ticket fee calculated is deducted from the corresponding account of user identifier according to newly-increased record by bus.
Above computer readable storage medium storing program for executing parses the Quick Response Code obtained with scan mode, according to Quick Response Code source field It verifies the source legitimacy of Quick Response Code, the validity of Quick Response Code is verified according to Quick Response Code generated time, by double verification, effectively It avoids because the duplication of Quick Response Code repeats the problem of out of the station, improves ticket checking efficiency.Further, when Quick Response Code legitimacy is tested Card passes through, and the disengaging station identifications being currently generated and relative users identify record by bus recently in disengaging station identifications it is inconsistent When, show that recording by bus according to respective two-dimensional code disengaging website is not present, meet gate door unlocking condition, so as to open gate Door.According to whether existing recording by bus according to respective two-dimensional code disengaging website, controls the unlatching of gate door, further avoids Because the duplication of Quick Response Code repeats the problem of out of the station, ticket checking efficiency is further improved.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, it is provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each step in above method embodiment, which does not limit, performs sequence, can carry out arbitrary adjustment, to make description simple It is clean, the permutation and combination that is possible to of each step in above method embodiment is not all described, as long as however, all these Contradiction is not present in the permutation and combination of step, is all considered to be the range of this specification record.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield is all considered to be the range of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of barcode scanning ticket checking method, the method includes:
It scans and parses Quick Response Code, obtain user identifier, Quick Response Code source field and Quick Response Code generated time;
Legitimate verification is carried out according to the Quick Response Code source field and the Quick Response Code generated time;
When legitimate verification by when, generation disengaging station identifications;The disengaging station identifications indicate entry into or leave current site;
When the disengaging station identifications of generation and the disengaging station identifications in the record of riding recently corresponding to the user identifier are inconsistent When, open gate door;
Newly-increased record by bus corresponding with the user identifier, the newly-increased record by bus include the mark out of the station of generation Knowledge, the user identifier, time out of the station and current site mark.
It is 2. according to the method described in claim 1, it is characterized in that, described when the disengaging station identifications of generation are with corresponding to the use When the disengaging station identifications ridden recently in recording of family mark are inconsistent, gate door is opened, including:
Verification request by bus is sent to server;The request of verification by bus includes the mark out of the station of the user identifier and generation Know;The verification request by bus is used to indicate the disengaging station identifications of the server verification generation with being marked corresponding to the user Out of the station during that knows record by bus recently identifies whether consistent, obtains check results by bus;
Receive the check results by bus that the server returns;
When the disengaging station identifications of the expression verification of check results by bus are inconsistent, gate door is opened;
The method further includes:
Newly-increased record by bus is sent to the server.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When not receiving the check results by bus in the preset duration after the request of verification by bus is sent, then institute is opened State gate door;Newly-increased record by bus further includes non-checking mark;
Wherein, it is described it is newly-increased record by bus in non-checking mark, be used to indicate that the server is more described newly-increased to be multiplied Before disengaging station identifications and the newly-increased record of riding in vehicle record in nearest record by bus corresponding with the user identifier Disengaging station identifications, add user identifications into blacklist when consistent.
4. according to the method described in claim 2, it is characterized in that, the server is website ticket server;The method It further includes:
The newly-increased record by bus is sent to ticketing service liquidation center server;
Wherein, it is described it is newly-increased record by bus, be used to indicate ticketing service liquidation center server it is more described it is newly-increased by bus It is corresponding with the user identifier before disengaging station identifications and the newly-increased record by bus in record to ride recently in recording Station identifications are passed in and out, add user identifications into blacklist when consistent.
5. according to the method described in claim 2, it is characterized in that, the server is ticketing service liquidation center server;It is described Newly-increased record by bus is sent to the server, including:
Newly-increased record by bus is sent to ticketing service liquidation center server, and pass through ticketing service liquidation center server The newly-increased record by bus is sent to internet ticketing service platform;
Wherein, the newly-increased record by bus is used to indicate the internet ticketing service platform and is recorded by bus according to described newly-increased Ticket fee is calculated, and the ticket fee calculated is deducted from the corresponding account of the user identifier.
6. a kind of barcode scanning ticket-checking system, which is characterized in that the system comprises:Gate and server;
The gate obtains user identifier, Quick Response Code source field and Quick Response Code generated time for scanning and parsing Quick Response Code; It is additionally operable to carry out legitimate verification according to the Quick Response Code source field and the Quick Response Code generated time;It is additionally operable to work as legitimacy When being verified, generation disengaging station identifications;The disengaging station identifications indicate entry into or leave current site;It is additionally operable to server Send verification request by bus;The request of verification by bus includes the disengaging station identifications of the user identifier and generation;
The server, for receiving the verification request by bus of the transmission of the gate;It is additionally operable to the mark out of the station of verification generation Know and identified whether corresponding to out of the station in the recording by bus recently of the user identifier consistent, obtain check results by bus; It is additionally operable to return to the check results by bus to the gate;
The gate is additionally operable to, when the disengaging station identifications of the expression verification of check results by bus are inconsistent, open gate door; Newly-increased record by bus corresponding with the user identifier is additionally operable to, and newly-increased record by bus is sent to the server;Newly The record by bus increased includes the disengaging station identifications, the user identifier, time out of the station and the current site mark of generation Know.
7. system according to claim 6, which is characterized in that the server be website ticket server, the system It further includes:Ticketing service liquidation center server;
The gate is additionally operable to send the newly-increased record by bus to ticketing service liquidation center server;
Ticketing service liquidation center server for it is more described it is newly-increased record by bus in disengaging station identifications and described newly-increased Record by bus before disengaging station identifications in record by bus recently corresponding with the user identifier, by the user when consistent Mark adds in blacklist.
8. a kind of barcode scanning ticket-checked device, which is characterized in that described device includes:
Quick Response Code parsing module for scanning and parsing Quick Response Code, obtains user identifier, Quick Response Code source field and Quick Response Code life Into the time;
Legitimate verification module is tested for carrying out legitimacy according to the Quick Response Code source field and the Quick Response Code generated time Card;
Identifier generation module out of the station, for when legitimate verification by when, generation disengaging station identifications;The disengaging station identifications table Show entrance or leave current site;
Gate door opening module, for being passed in and out in record of riding recently of the station identifications with corresponding to the user identifier when what is generated Disengaging station identifications it is inconsistent when, open gate door;
It records by bus and increases module newly, for newly-increased record by bus corresponding with the user identifier, the newly-increased record by bus The disengaging station identifications, the user identifier, time out of the station and current site mark including generation.
9. a kind of gate, including memory and processor, the memory is stored with computer program, the computer program quilt When the processor performs so that the processor perform claim requires the step of any one of 1 to 5 the method.
10. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor perform claim requires the step of any one of 1 to 5 the method.
CN201810031302.3A 2018-01-12 2018-01-12 Code scanning ticket checking method, system, device, computer equipment and storage medium Expired - Fee Related CN108257226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810031302.3A CN108257226B (en) 2018-01-12 2018-01-12 Code scanning ticket checking method, system, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810031302.3A CN108257226B (en) 2018-01-12 2018-01-12 Code scanning ticket checking method, system, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108257226A true CN108257226A (en) 2018-07-06
CN108257226B CN108257226B (en) 2020-11-27

Family

ID=62726549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810031302.3A Expired - Fee Related CN108257226B (en) 2018-01-12 2018-01-12 Code scanning ticket checking method, system, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108257226B (en)

Cited By (12)

* 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
CN109615710A (en) * 2018-11-27 2019-04-12 苏州浪潮智能软件有限公司 A method of processing delay certification bill
CN110533409A (en) * 2019-07-10 2019-12-03 北京如易行科技有限公司 The method for pushing and system of feedback information by bus
CN110634191A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Authentication method, apparatus, medium, and device
CN111160915A (en) * 2018-11-08 2020-05-15 腾讯科技(深圳)有限公司 Bus code verification method and device, traffic code scanning equipment and terminal equipment
CN111417240A (en) * 2019-01-07 2020-07-14 腾讯科技(深圳)有限公司 Method, system and device for processing outgoing and incoming records and computer equipment
CN111951412A (en) * 2020-03-13 2020-11-17 武汉小码联城科技有限公司 Travel control method, device and system based on subway riding codes and electronic equipment
CN112184208A (en) * 2020-08-17 2021-01-05 汉海信息技术(上海)有限公司 Code scanning riding method, client, server, electronic equipment and storage medium
CN112765185A (en) * 2019-11-05 2021-05-07 株洲中车时代电气股份有限公司 Data updating method, device, equipment and storage medium for vehicle-mounted equipment
CN113627920A (en) * 2021-06-25 2021-11-09 上海云从汇临人工智能科技有限公司 Stroke recording method, device and computer storage medium
CN114973435A (en) * 2022-05-18 2022-08-30 西门子交通技术(北京)有限公司 Ticket checking method, gate, server, mobile terminal and storage medium
CN115527295A (en) * 2022-11-03 2022-12-27 北京贝能达信息技术股份有限公司 Automatic ticket checker control method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2629253A1 (en) * 2012-02-15 2013-08-21 Appvantages B.V. Method and system for verifying scannable codes, and code for use therein
CN104268743A (en) * 2014-09-05 2015-01-07 哆啦宝(北京)科技有限公司 Mobile banking payment system based on automatic generation of two-dimension code
CN105976435A (en) * 2016-06-01 2016-09-28 杭州视界科技有限公司 Station electronic ticket booking, automatic checking method and system thereof
CN106327592A (en) * 2016-08-24 2017-01-11 苏州雷格特智能设备股份有限公司 One-dimensional or two-dimensional code processing module for subway automatic ticket checker
CN106373200A (en) * 2016-08-31 2017-02-01 合肥丁点网络科技有限责任公司 Rapid self-service check-in device and method
CN106452756A (en) * 2016-11-08 2017-02-22 王栋 Construction verification method and device capable of verifying security two-dimensional code offline
CN106504171A (en) * 2016-09-28 2017-03-15 深圳大学 A kind of public transport ticket checking method and system
CN106780775A (en) * 2016-11-22 2017-05-31 中南大学 two-dimensional code electronic ticket management method and system
CN107146124A (en) * 2017-03-14 2017-09-08 北京中软万维网络技术有限公司 A kind of implementation method, system and the device of electronics one-way ticket

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2629253A1 (en) * 2012-02-15 2013-08-21 Appvantages B.V. Method and system for verifying scannable codes, and code for use therein
CN104268743A (en) * 2014-09-05 2015-01-07 哆啦宝(北京)科技有限公司 Mobile banking payment system based on automatic generation of two-dimension code
CN105976435A (en) * 2016-06-01 2016-09-28 杭州视界科技有限公司 Station electronic ticket booking, automatic checking method and system thereof
CN106327592A (en) * 2016-08-24 2017-01-11 苏州雷格特智能设备股份有限公司 One-dimensional or two-dimensional code processing module for subway automatic ticket checker
CN106373200A (en) * 2016-08-31 2017-02-01 合肥丁点网络科技有限责任公司 Rapid self-service check-in device and method
CN106504171A (en) * 2016-09-28 2017-03-15 深圳大学 A kind of public transport ticket checking method and system
CN106452756A (en) * 2016-11-08 2017-02-22 王栋 Construction verification method and device capable of verifying security two-dimensional code offline
CN106780775A (en) * 2016-11-22 2017-05-31 中南大学 two-dimensional code electronic ticket management method and system
CN107146124A (en) * 2017-03-14 2017-09-08 北京中软万维网络技术有限公司 A kind of implementation method, system and the device of electronics one-way ticket

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110634191A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Authentication method, apparatus, medium, and device
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
CN109615710A (en) * 2018-11-27 2019-04-12 苏州浪潮智能软件有限公司 A method of processing delay certification bill
CN109544764A (en) * 2018-12-19 2019-03-29 广州羊城通有限公司 Lockage control method and system based on two dimensional code
CN111417240B (en) * 2019-01-07 2022-09-16 腾讯科技(深圳)有限公司 Method, system and device for processing outgoing and incoming records and computer equipment
CN111417240A (en) * 2019-01-07 2020-07-14 腾讯科技(深圳)有限公司 Method, system and device for processing outgoing and incoming records and computer equipment
CN110533409A (en) * 2019-07-10 2019-12-03 北京如易行科技有限公司 The method for pushing and system of feedback information by bus
CN112765185A (en) * 2019-11-05 2021-05-07 株洲中车时代电气股份有限公司 Data updating method, device, equipment and storage medium for vehicle-mounted equipment
CN111951412A (en) * 2020-03-13 2020-11-17 武汉小码联城科技有限公司 Travel control method, device and system based on subway riding codes and electronic equipment
CN112184208A (en) * 2020-08-17 2021-01-05 汉海信息技术(上海)有限公司 Code scanning riding method, client, server, electronic equipment and storage medium
CN113627920A (en) * 2021-06-25 2021-11-09 上海云从汇临人工智能科技有限公司 Stroke recording method, device and computer storage medium
CN114973435A (en) * 2022-05-18 2022-08-30 西门子交通技术(北京)有限公司 Ticket checking method, gate, server, mobile terminal and storage medium
CN115527295A (en) * 2022-11-03 2022-12-27 北京贝能达信息技术股份有限公司 Automatic ticket checker control method and system

Also Published As

Publication number Publication date
CN108257226B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN108257226A (en) Barcode scanning ticket checking method, system, device, computer equipment and storage medium
CN101529412B (en) Data file access control
US20020038290A1 (en) Digital notary system and method
CN110098932A (en) A kind of electronic document signature method based on safe electronic notarization technology
US10382954B2 (en) System and method for providing a service to the user of a mobile terminal
CN107679045A (en) Copyright authorization management method and system
CN108569250A (en) The automatic authorization method of bluetooth key based on shared automobile
CN102984130A (en) Method and system for user authentication and devices used in system
CN107395581A (en) Quick Response Code generates and read method, device, system, equipment and storage medium
CN108090974A (en) gate control method and system
CN107239984A (en) A kind of rent method, device and control device
CN110298152A (en) It is a kind of protection privacy of user and system safety line on identity management method
JP4343567B2 (en) Ticket management method and electronic ticket system
CN110021087A (en) Method based on the quick binding room that wechat is opened the door
CN110022350A (en) The treating method and apparatus of client registers and registration information
CN109815660A (en) Identification electronic certificate information obtains verifying system and method
CN110083782A (en) Inspection method, device, computer equipment and the storage medium of electronic insurance policy
KR100981757B1 (en) Method and system for providing contents-certified service
CN110647737B (en) Enterprise user security authentication method and device in warehouse receipt system and electronic equipment
CN102595402B (en) Method, system and equipment for testing electronic data
Affia et al. Security risk management in shared mobility integration
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
CN110111105A (en) Contract based on block chain deposits card method, equipment and storage medium
Okubo et al. Web security patterns for analysis and design
CN109102575A (en) A kind of realization method and system of post-paid electronic ticket

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201127

CF01 Termination of patent right due to non-payment of annual fee