[go: up one dir, main page]

CN109146512A - Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket - Google Patents

Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket Download PDF

Info

Publication number
CN109146512A
CN109146512A CN201810823699.XA CN201810823699A CN109146512A CN 109146512 A CN109146512 A CN 109146512A CN 201810823699 A CN201810823699 A CN 201810823699A CN 109146512 A CN109146512 A CN 109146512A
Authority
CN
China
Prior art keywords
ticket
way ticket
electronics
terminal device
way
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.)
Pending
Application number
CN201810823699.XA
Other languages
Chinese (zh)
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.)
Xiamen Luqiao Information LLC
Original Assignee
Xiamen Luqiao Information LLC
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 Xiamen Luqiao Information LLC filed Critical Xiamen Luqiao Information LLC
Priority to CN201810823699.XA priority Critical patent/CN109146512A/en
Publication of CN109146512A publication Critical patent/CN109146512A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud

Landscapes

  • Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The present invention discloses a kind of anti-escape ticket method based on electronics one-way ticket, comprising: the activation instruction of electronics one-way ticket is received by terminal device;When activating according to the activation instruction to Current electronic one-way ticket, judge whether Current electronic one-way ticket is in state of activation, wherein the code by bus of the electronics one-way ticket in state of activation is stored together with the id information of activation equipment to local;If Current electronic one-way ticket is in, whether state of activation, the id information for judging the terminal device are consistent with the id information of the activation equipment of Current electronic one-way ticket;If it is inconsistent, forbidding the code by bus of the terminal device display Current electronic one-way ticket.Correspondingly, in order to realize the anti-escape ticket method based on electronics one-way ticket, the invention also discloses a kind of computer readable storage medium, terminal device and anti-devices of stealing a ride based on electronics one-way ticket.It prevents passenger's reduction of payment by way of exchanging electronic account from dealing with ticket fee as a result, avoids the property loss of operator.

Description

Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket
Technical field
It is the present invention relates to network technique field, in particular to a kind of based on the anti-escape ticket method of electronics one-way ticket, medium, end End equipment and device.
Background technique
With the development of network technology, ticketing system of the electronics one-way ticket in carriers such as subway, railway or highways It is widely used in system.Electronics one-way ticket is compared with entity ticket, money needed for there is ticket information to be easily managed, safeguard Golden cost and the cheap advantage of cost of labor.
However, when two passengers reduction of payment by way of intercoursing electronics one-way ticket and corresponding to electronic account deals with ticket fee When, existing electronics one way bill system does not have the corresponding precautionary measures.Specifically, when riding route is A-D, passenger 1 buys A-B Electronics one-way ticket, passenger 2 buy C-D electronics one-way ticket.Two passengers are entered the station respectively, and exchange logs in respectively before outbound From electronic account.Passenger 1 is outbound from D website using the electronics one-way ticket of passenger 2, then passenger 1 only needs to pay the ticket fee of C-D The stroke of A-D can be taken.
If method by large-scale cognition and utilizes in this way, this is stolen a ride, very big interference will be caused to market, given simultaneously The property of each carrier operator brings great loss.
Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, of the invention One purpose is to propose a kind of anti-escape ticket method based on electronics one-way ticket, to prevent passenger from passing through the side of exchange electronic account Formula reduction of payment deals with ticket fee, avoids the property loss of operator.
Second object of the present invention is to propose a kind of computer readable storage medium.
Third object of the present invention is to propose a kind of terminal device.
Fourth object of the present invention is to propose a kind of anti-device of stealing a ride based on electronics one-way ticket.
In order to achieve the above objectives, a kind of anti-side of stealing a ride based on electronics one-way ticket that first aspect present invention embodiment proposes Method, comprising the following steps: the activation instruction of electronics one-way ticket is received by terminal device;According to the activation instruction to current electricity When sub- one-way ticket is activated, judge whether Current electronic one-way ticket is in state of activation, wherein in state of activation The code by bus of electronics one-way ticket is stored together with the id information of activation equipment to local;Swash if Current electronic one-way ticket is in Whether state living, the then id information for judging the terminal device are consistent with the id information of the activation equipment of Current electronic one-way ticket; If it is inconsistent, forbidding the code by bus of the terminal device display Current electronic one-way ticket.
Anti-escape ticket method according to an embodiment of the present invention based on electronics one-way ticket, receives electronics by terminal device first The activation instruction of one-way ticket judges Current electronic when then activating according to the activation instruction to Current electronic one-way ticket Whether one-way ticket is in state of activation, wherein code and the activation equipment by bus of the electronics one-way ticket in state of activation Id information is stored to local together, if Current electronic one-way ticket is in state of activation, judges the ID of the terminal device Whether information is consistent with the id information of the activation equipment of Current electronic one-way ticket, and if it is inconsistent, forbidding terminal device aobvious The code by bus for showing Current electronic one-way ticket, to realize that electronics one-way ticket can only be in the terminal for activating the electronics one-way ticket accordingly It is shown in equipment, prevents passenger's reduction of payment by way of exchanging electronic account from dealing with ticket fee, avoid the property loss of operator.
In addition, the anti-escape ticket method based on electronics one-way ticket proposed according to that above embodiment of the present invention can also have as Under additional technical characteristic:
Optionally, when Current electronic one-way ticket is in unactivated state, judge whether the terminal device currently has electronics list Journey ticket is in the process during being used, wherein if the terminal device, which currently has electronics one-way ticket to be in, to be made With process in the process, then further judge the currently used electronics one-way ticket of the terminal device stroke whether with current electricity The stroke of sub- one-way ticket is consistent;If the stroke of the currently used electronics one-way ticket of the terminal device and Current electronic one-way ticket Stroke it is consistent, then activate Current electronic one-way ticket to generate the code by bus of Current electronic one-way ticket, and obtain the terminal and set Standby id information, and the id information of code and the terminal device by bus of Current electronic one-way ticket is stored together to local, And synchronized upload is to server.
This prevents passengers by carrying out out of the station subtract using the electronics one-way ticket of the different trips of oneself purchase respectively It pays and deals with ticket fee.
Optionally, when the terminal device currently has electronics one-way ticket to be in the process during being used, if The stroke of the stroke and Current electronic one-way ticket of electronics one-way ticket during the terminal device is currently used is inconsistent, then controls institute It states terminal device and issues the prompt information that Current electronic one-way ticket is not available.
Optionally, when Current electronic one-way ticket is in unactivated state, if the terminal device is currently without electronics One-way ticket is in the process during being used, then activates Current electronic one-way ticket to generate riding for Current electronic one-way ticket Code, and obtains the id information of the terminal device, and by the ID of the code and the terminal device by bus of Current electronic one-way ticket Information is stored together to local, and synchronized upload is to server.
Optionally, this method further includes obtaining the id information of the code and the terminal device by bus of Current electronic one-way ticket Synchronized upload and obtains the current time of the terminal device to the time of server;Obtain the terminal device it is current when Between with the sum of the system time difference of the server using as at the first time, and obtain the first time with by Current electronic list The id information synchronized upload of code and the terminal device by bus of journey ticket to server time difference using as Current electronic list The offline time of journey ticket;Judge whether the offline time reaches preset time threshold;If the offline time reaches default Time threshold, then automatic remove saves to local electronics one-way ticket information, to forbid user to check offline.
Optionally, when the id information of the terminal device is consistent with the id information of the activation equipment of Current electronic one-way ticket When, allow the terminal device to show the code by bus of Current electronic one-way ticket.
Optionally, when the terminal device shows the code by bus of Current electronic one-way ticket, forbid to current display interface Carry out screenshotss, record screen or with screen transmission operation.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon It is stored with the anti-program of stealing a ride based on electronics one-way ticket, is somebody's turn to do real when the anti-program of stealing a ride based on electronics one-way ticket is executed by processor The existing above-mentioned anti-escape ticket method based on electronics one-way ticket.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of terminal device comprising memory, place Reason device and the anti-program of stealing a ride based on electronics one-way ticket that is stored on the memory and can run on the processor, institute State processor execute anti-based on electronics one-way ticket steal a ride program when realize and above-mentioned stolen a ride based on the anti-of electronics one-way ticket Method.
In order to achieve the above objectives, a kind of anti-dress of stealing a ride based on electronics one-way ticket that fourth aspect present invention embodiment proposes It sets, comprising: receiving module, for receiving the activation instruction of electronics one-way ticket by terminal device;Active module, for according to institute It states activation instruction to activate Current electronic one-way ticket to generate the code by bus of Current electronic one-way ticket, and obtains Current electronic The id information of the activation equipment of one-way ticket;First judgment module, for being carried out in the active module to Current electronic one-way ticket When activation, judge whether Current electronic one-way ticket is in state of activation, wherein the electronics one-way ticket in state of activation Code is stored together with the id information of activation equipment to local by bus;Second judgment module, for being in Current electronic one-way ticket Judge when state of activation the id information of the terminal device and the activation equipment of Current electronic one-way ticket id information whether one It causes, and forbids when the id information of the id information of the terminal device and the activation equipment of Current electronic one-way ticket is inconsistent described Terminal device shows the code by bus of Current electronic one-way ticket.
Anti- device of stealing a ride according to an embodiment of the present invention based on electronics one-way ticket, firstly, being received eventually by receiving module The activation instruction of the received electronics one-way ticket of end equipment, and then active module carries out Current electronic one-way ticket according to activation instruction Activation obtains the id information of the activation equipment of Current electronic one-way ticket to generate the code by bus of Current electronic one-way ticket;Then, First judgment module judges whether Current electronic one-way ticket is in when active module activates Current electronic one-way ticket State of activation, wherein the electronics one-way ticket in state of activation by bus code stored together with the id information of activation equipment to It is local;Finally, the second judgment module judge when Current electronic one-way ticket is in state of activation the id information of terminal device with Whether the id information of the activation equipment of Current electronic one-way ticket is consistent, and in the id information and Current electronic one way of terminal device The id information of the activation equipment of ticket forbids the code by bus of terminal device display Current electronic one-way ticket when inconsistent, to realize electricity Sub- one-way ticket can only be shown on the terminal device for activating the electronics one-way ticket accordingly, prevent passenger from passing through exchange electronic account Mode reduction of payment deal with ticket fee, avoid the property loss of operator.
Detailed description of the invention
Fig. 1 is the flow diagram according to the anti-escape ticket method based on electronics one-way ticket of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the anti-escape ticket method based on electronics one-way ticket of another embodiment of the present invention;
Fig. 3 is the flow diagram according to the anti-escape ticket method based on electronics one-way ticket of another embodiment of the invention;
Fig. 4 is the block diagram according to the anti-device of stealing a ride based on electronics one-way ticket of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In existing electronics one way bill system, passenger is in the shape for corresponding to electronic account by intercoursing electronics one-way ticket Formula can reach the purpose that its reduction of payment deals with ticket fee.Anti-escape ticket method provided in an embodiment of the present invention based on electronics one-way ticket leads to It crosses after receiving activation instruction, judges whether electronics one-way ticket has been activated, and after determining that electronics one-way ticket has activated, Further judge whether the id information of the activation equipment of current request activation is consistent with the id information of stored terminal device, with And in the code by bus for when judging result is inconsistent, forbidding terminal device to show electronics one-way ticket, to effectively prevent passenger Ticket fee is dealt with by intercoursing the corresponding electronic account reduction of payment of electronics one-way ticket, ensures that the property of operator is not suffered a loss.
In order to better understand the above technical scheme, the exemplary reality that the present invention will be described in more detail below with reference to accompanying drawings Apply example.Although showing exemplary embodiment of the present invention in attached drawing, it being understood, however, that may be realized in various forms this hair It is bright and should not be limited by the embodiments set forth herein.It is to be able to thoroughly understand this on the contrary, providing these embodiments Invention, and the scope of the present invention can be fully disclosed to those skilled in the art.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Fig. 1 is a kind of flow diagram of the anti-escape ticket method based on electronics one-way ticket provided by the embodiment of the present invention, As shown in Figure 1, should anti-escape ticket method based on electronics one-way ticket the following steps are included:
Step S101 receives the activation instruction of electronics one-way ticket by terminal device.
Wherein, activation instruction refers to that passenger after completing purchase electronics one-way ticket by its terminal device, needs to show Show the instruction that code is issued by bus to carry out verifying out of the station, for example, by clicking the ticket checking in the APP installed on terminal device Button.
Step S102 when activating according to activation instruction to Current electronic one-way ticket, judges that Current electronic one-way ticket is It is no to be in state of activation.
It should be noted that wherein, the code by bus and the ID of activation equipment of the electronics one-way ticket in state of activation are believed Breath needs to be stored together to local.
As an example, passenger's initial activation electronics one-way ticket with generate electronics one-way ticket by bus code when, obtain swash It serves somebody right electronics one-way ticket terminal device id information, then by the electronics one-way ticket by bus code and activate the electronics one-way ticket The id information of terminal device be recorded in local data together, while by these data synchronized uploads to server.
Step S103 judges the id information of terminal device and works as if Current electronic one-way ticket is in state of activation Whether the id information of the activation equipment of preceding electronics one-way ticket is consistent.
That is, calling directly when Current electronic one-way ticket is in state of activation and activating the electronics one-way ticket The id information of activation equipment, and judge to activate the id information and currently used terminal device of the activation equipment of the electronics one-way ticket Id information it is whether consistent.
Step S104, if it is inconsistent, forbidding the code by bus of terminal device display Current electronic one-way ticket.
In other words, if after the identical account of passenger's replacement terminal equipment login, the APP on terminal device is synchronous under server The data (id information including ride code and activation equipment) of activated electronics one-way ticket are carried, are then opening electronics one-way ticket Code by bus when, if judgement activates the id information of the activation equipment of the electronics one-way ticket and the ID of currently used terminal device to believe Cease inconsistent, then controlling terminal equipment does not show code by bus.
Anti-escape ticket method according to an embodiment of the present invention based on electronics one-way ticket, receives electronics by terminal device first The activation instruction of one-way ticket judges Current electronic when then activating according to the activation instruction to Current electronic one-way ticket Whether one-way ticket is in state of activation, wherein code and the activation equipment by bus of the electronics one-way ticket in state of activation Id information is stored to local together, if Current electronic one-way ticket is in state of activation, judges the ID of the terminal device Whether information is consistent with the id information of the activation equipment of Current electronic one-way ticket, and if it is inconsistent, forbidding terminal device aobvious The code by bus for showing Current electronic one-way ticket, to realize that electronics one-way ticket can only be in the terminal for activating the electronics one-way ticket accordingly It is shown in equipment, prevents passenger's reduction of payment by way of exchanging electronic account from dealing with ticket fee, avoid the property loss of operator.
Wherein, by bus the set-up mode of code can there are many.For example, it may be two dimensional code (including static two dimensional code and dynamic State two dimensional code), bar code or three-dimension code.Therefore, the set-up mode of code by bus is not defined herein.
As an example, the setting of code by bus is carried out in a manner of dynamic two-dimension code.Wherein, which stores The corresponding draft bank information of electronics one-way ticket for thering is passenger to buy by terminal device.In this way when server is received by terminal device To electronics one-way ticket activation instruction when, if it is determined that the electronics one-way ticket meet activation require, then what can be will acquire is current The id information of activation equipment is stored into dynamic two-dimension code.In this way, by dynamic two-dimension code by the id information of the currently active equipment with Draft bank information is associated, terminal device or server after being stored to dynamic two-dimension code, it is subsequent can be rapidly to having swashed The legitimacy of the corresponding the currently active device id of electronics one-way ticket of state living is judged.
According to another embodiment of the invention, as shown in Fig. 2, being somebody's turn to do the anti-escape ticket method based on electronics one-way ticket, including Following steps:
Step S201 starts.
Step S202 clicks button to generate code such as two dimensional code by bus.Specifically, electronics list is received by terminal device The activation instruction of journey ticket, for example, issuing activation instruction by clicking the ticket checking button in the APP installed on terminal device.
Whether step S203, corresponding electronics one-way ticket have activated generation two dimensional code.That is, to Current electronic one way When ticket is activated, judge whether Current electronic one-way ticket is in state of activation.If so, executing step S204;If not, Execute step S207.
Step S204, activates whether the ID of the terminal device of the electronics one-way ticket is equal to the ID of present terminal equipment, that is, When Current electronic one-way ticket is in state of activation, the id information for activating the activation equipment of the electronics one-way ticket is called directly, and Judge to activate the id information of the activation equipment of the electronics one-way ticket whether consistent with the id information of currently used terminal device.Such as Fruit is to execute step S205;If not, executing step S206.
Step S205 shows the two dimensional code of corresponding electronics one-way ticket.That is, as an example, when the terminal When the id information of equipment is consistent with the id information of the activation equipment of Current electronic one-way ticket, the terminal device is allowed to show currently The code such as two dimensional code by bus of electronics one-way ticket.
Step S206, two-dimensional code display, prompt present terminal equipment are not deactivated device.
Whether step S207, judging terminal device currently has electronics one-way ticket to be in the process during being used.Such as Fruit is to execute step S208;If not, executing step S209.
In other words, as an example, when Current electronic one-way ticket is in unactivated state, if the terminal device is worked as The preceding process being in during being used without electronics one-way ticket, then activate Current electronic one-way ticket to generate Current electronic list The code by bus of journey ticket, and the id information of the terminal device is obtained, and Current electronic one-way ticket is ridden code and the end The id information of end equipment is stored together to local, and synchronized upload is to server.And multiplying in storage Current electronic one-way ticket After the id information of vehicle code and terminal device, code by bus is shown by terminal device.
Step S208, judge the currently used electronics one-way ticket of terminal device stroke whether with Current electronic one-way ticket Stroke is consistent.If so, executing step S209;If not, executing step S210.
That is, as an example, when judging that Current electronic one-way ticket is in unactivated state, further sentencing Disconnected terminal device currently whether there is electronics one-way ticket to be used during process.If terminal device currently has electronics one way Ticket is in the process during being used, then whether the further stroke for judging the currently used electronics one-way ticket of terminal device It is consistent with the stroke of Current electronic one-way ticket.
Step S209 activates Current electronic one-way ticket to generate the code by bus of Current electronic one-way ticket, and records current electricity The id information of the activation equipment of sub- ticket, and state of activation is set by Current electronic one-way ticket, then by Current electronic one way The id information of code and terminal device by bus of ticket is stored together to local, and synchronized upload, to server, go to step S205.
That is, as an example, if the stroke of the currently used electronics one-way ticket of the terminal device with work as The stroke of preceding electronics one-way ticket is consistent, then activates Current electronic one-way ticket to generate the code by bus of Current electronic one-way ticket, and obtain The id information of the terminal device is taken, and together by the id information of code and the terminal device by bus of Current electronic one-way ticket It stores to local, and synchronized upload is to server.And the ID of the code and terminal device by bus in storage Current electronic one-way ticket After information, code by bus is shown by terminal device.
Step S210 prompts the electronics one-way ticket for not being available the trip.
As an example, when the terminal device currently has electronics one-way ticket to be in the process during being used When, if the stroke of the stroke and Current electronic one-way ticket of the electronics one-way ticket during the terminal device is currently used is inconsistent, It then controls the terminal device and issues the prompt information that Current electronic one-way ticket is not available.
Specifically, being illustrated with actual scene.When riding route is A-D, passenger is purchased by its terminal device The electronics one-way ticket of A-B and C-D is bought.Then, when entering the station, passenger activates the corresponding code by bus of the electronics one-way ticket of A-B to carry out It enters the station verifying.When outbound, the corresponding code by bus of the electronics one-way ticket of passenger C-D to be activated carries out outbound verifying, because the terminal is set The electronics one-way ticket of standby existing A-B is in the process during being used, and the stroke for the electronics one-way ticket to be activated with The stroke of the electronics one-way ticket of process during being used is inconsistent.Then judging result is electronics one-way ticket control Terminal device issues the prompt information that Current electronic one-way ticket is not available.Thus, passenger can not only pay A-B by the means And the ticket fee of the electronics one-way ticket of C-D takes whole strokes of A-D.Thus reaching prevents passenger from stealing a ride behavior, saves fortune from damage Seek the purpose of quotient's property safety.
In the present embodiment, by clicking the ticket checking button of APP on terminal device such as mobile phone, to generate, code is for example by bus When two dimensional code, judge whether Current electronic one-way ticket is in state of activation, and when being judged as NO, activates the electronics one way Ticket, generate ride code, obtain activate the electronics one-way ticket terminal device id information, and by the id information of the terminal device with Code is stored together to local by bus.
As another example, it will be understood that if electronics one-way ticket is in state of activation, that is, indicate the electronics one-way ticket Corresponding code by bus was shown in terminal device.Also, based on multiplying in the electronics one-way ticket of state of activation above-mentioned Vehicle code is stored together with the id information of activation equipment to local.By the id information and current electricity that judge stored terminal device Whether the id information of the activation equipment of sub- one-way ticket is consistent.And when judging result is inconsistent, forbids terminal device to show and multiply Vehicle code, then passenger can not carry out verifying out of the station by the corresponding code by bus of the electronics one-way ticket.In this way, can effectively prevent multiplying Visitor carries out behavior of stealing a ride by way of exchanging electronic account.
As an example, when terminal device shows the code by bus of Current electronic one-way ticket, forbid to current display circle Face carries out screenshotss, record screen or with screen transmission operation.Specifically, when terminal device shows the code by bus of Current electronic one-way ticket, By using the included api interface of terminal device system (such as IOS system or Android system of mobile phone), forbid terminal device Screenshotss, record screen are carried out to current page or with the operation of screen transmission.This prevents passengers to pass by screenshotss, record screen or with screen Defeated operation is to achieve the purpose that steal a ride.
In conclusion the anti-escape ticket method based on electronics one-way ticket of the embodiment of the present invention, is connect by terminal device first Receive the activation instruction of electronics one-way ticket;When then activating according to activation instruction to Current electronic one-way ticket, current electricity is judged Whether sub- one-way ticket is in state of activation, wherein code and the activation equipment by bus of the electronics one-way ticket in state of activation Id information store together to local, if Current electronic one-way ticket is in state of activation, judge the terminal device Whether id information is consistent with the id information of the activation equipment of Current electronic one-way ticket;And if it is inconsistent, forbidding terminal device Show the code by bus of Current electronic one-way ticket.To realize that electronics one-way ticket can only be at the end for activating the electronics one-way ticket accordingly It is shown in end equipment, prevents passenger's reduction of payment by way of exchanging electronic account from dealing with ticket fee, avoid the property loss of operator.
Fig. 3 is the process signal of another anti-escape ticket method based on electronics one-way ticket provided by the embodiment of the present invention Figure, as shown in figure 3, being somebody's turn to do the anti-escape ticket method based on electronics one-way ticket includes: after step S210
Step S301 is obtained the id information synchronized upload of code and terminal device by bus of Current electronic one-way ticket to server Time, and obtain the current time of terminal device.
Step S302, when obtaining the sum of the current time of terminal device and the system time difference of server using as first Between, and obtain at the first time and by the id information synchronized upload of code and the terminal device by bus of Current electronic one-way ticket to server Time difference using the offline time as Current electronic one-way ticket.
Wherein, the current time of terminal device and the system time difference of server refer to terminal device current time and clothes The difference of business device system time.It is appreciated that the current time of terminal device is possible to and takes because of manual calibration or other reasons There are certain difference for the system time of business device.Calculate the difference and current time and value as at the first time, i.e., by terminal The current time of equipment and the system time of server synchronize.In this way, being conducive to subsequent to terminal device offline time It calculates.Further, calculate at the first time with by the id information of code and terminal device by bus of Current electronic one-way ticket it is synchronous on The difference of the time of server is reached, and using the difference as offline time.As a result, by calculating at the first time, and according to the The offline time for the time computing terminal equipment that one time and terminal device last are interacted with server, can be for subsequent judgement eventually End equipment offline time reasonability provides foundation.
Step S303, judges whether offline time reaches preset time threshold.If so, thening follow the steps 304.
Step S304, automatic remove save to local electronics one-way ticket information, to forbid user to check offline.
Wherein, by preset time threshold, and judge whether offline time reaches preset time threshold.It can determine whether that terminal is set Whether the behavior that whether standby offline time reasonable or passenger is checked offline by terminal device is abnormal.Further, exist When judging that offline time reaches preset time threshold, removes and save to local electronics one-way ticket information, to forbid user offline Ticket checking.I.e. by the way that the unreasonable corresponding electronics one-way ticket information of offline ticket checking behavior to be purged, to prevent passenger from utilizing Offline ticket checking rule is stolen a ride.
In conclusion the anti-escape ticket method based on electronics one-way ticket of the embodiment of the present invention, is set by computing terminal first Then the difference of the system time of standby current time and server generates the according to the difference and the current time of terminal device It is one time, further same by first time and by the id information of code and the terminal device by bus of Current electronic one-way ticket Step is uploaded to the offline time of the time computing terminal equipment of server.Finally judge whether offline time reaches preset time threshold Value;And when the judgment result is yes, automatic remove saves to local electronics one-way ticket information, to forbid user to examine offline Ticket.This prevents passengers to be stolen a ride using offline ticket checking rule, ensures the fund property safety of operator.
In order to realize above-described embodiment, the embodiment of the invention provides a kind of computer readable storage mediums, store thereon There is the anti-program of stealing a ride based on electronics one-way ticket, is somebody's turn to do when the anti-program of stealing a ride based on electronics one-way ticket is executed by processor and realizes The anti-escape ticket method based on electronics one-way ticket stated.
In order to realize above-described embodiment, the embodiment of the invention provides a kind of terminal device, which includes: storage Device, processor and storage on a memory and the anti-program of stealing a ride based on electronics one-way ticket that can run on a processor, are handled Device execute anti-based on electronics one-way ticket steal a ride program when realize the above-mentioned anti-escape ticket method based on electronics one-way ticket.
Fig. 4 is a kind of block diagram of the anti-device of stealing a ride based on electronics one-way ticket provided by the invention, should be based on electricity The anti-device of stealing a ride of sub- one-way ticket includes: receiving module 10, active module 20, first judgment module 30, the second judgment module 40.
Wherein, receiving module 10, for receiving the activation instruction of electronics one-way ticket by terminal device.
Active module 20, for being activated Current electronic one-way ticket to generate Current electronic according to the activation instruction The code by bus of one-way ticket, and obtain the id information of the activation equipment of Current electronic one-way ticket.
First judgment module 30, for when the active module activates Current electronic one-way ticket, judgement to be current Whether electronics one-way ticket is in state of activation, wherein the code by bus of the electronics one-way ticket in state of activation is set with activation Standby id information is stored together to local.
Second judgment module 40, for judging the terminal device when Current electronic one-way ticket is in state of activation Whether id information consistent with the id information of the activation equipment of Current electronic one-way ticket, and the id information of the terminal device with work as The id information of the activation equipment of preceding electronics one-way ticket forbids the terminal device to show multiplying for Current electronic one-way ticket when inconsistent Vehicle code.
It should be noted that previously for the explanation of the anti-escape ticket method described in Fig. 1 embodiment based on electronics one-way ticket Illustrate the anti-device of stealing a ride based on electronics one-way ticket for being equally applicable to the embodiment, details are not described herein again.
In conclusion the anti-device of stealing a ride based on electronics one-way ticket of the embodiment of the present invention, is connect by receiving module first Receive the received electronics one-way ticket of terminal device activation instruction, and then active module according to activation instruction to Current electronic one-way ticket It is activated to generate the code by bus of Current electronic one-way ticket, and obtains the id information of the activation equipment of Current electronic one-way ticket; Then first judgment module judges whether Current electronic one-way ticket is located when active module activates Current electronic one-way ticket In state of activation, wherein the code by bus of the electronics one-way ticket in state of activation is deposited together with the id information of activation equipment It stores up to local;The second last judgment module judges the ID of the terminal device when Current electronic one-way ticket is in state of activation Whether information is consistent with the id information of the activation equipment of Current electronic one-way ticket, and in the id information and current electricity of terminal device The id information of the activation equipment of sub- one-way ticket forbids the code by bus of the terminal device display Current electronic one-way ticket when inconsistent, To realize that electronics one-way ticket can only be shown in the terminal for activating the electronics one-way ticket accordingly, prevent passenger from passing through exchange electricity The mode reduction of payment of sub- account deals with ticket fee, avoids the property loss of operator.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more of the features.In the description of the present invention, The meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc. Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below " One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It is interpreted as that identical embodiment or example must be directed to.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of anti-escape ticket method based on electronics one-way ticket, which comprises the following steps:
The activation instruction of electronics one-way ticket is received by terminal device;
When activating according to the activation instruction to Current electronic one-way ticket, judge whether Current electronic one-way ticket is in sharp State living, wherein the code by bus of the electronics one-way ticket in state of activation is stored together with the id information of activation equipment to this Ground;
If Current electronic one-way ticket is in state of activation, the id information and Current electronic one way of the terminal device are judged Whether the id information of the activation equipment of ticket is consistent;
If it is inconsistent, forbidding the code by bus of the terminal device display Current electronic one-way ticket.
2. as described in claim 1 based on the anti-escape ticket method of electronics one-way ticket, which is characterized in that when Current electronic one-way ticket When in unactivated state, judge the terminal device currently and whether have electronics one-way ticket be in during being used into Journey, wherein
If the terminal device currently has electronics one-way ticket to be in the process during being used, further described in judgement Whether the stroke of the currently used electronics one-way ticket of terminal device is consistent with the stroke of Current electronic one-way ticket;
If the stroke of the currently used electronics one-way ticket of the terminal device is consistent with the stroke of Current electronic one-way ticket, swash Current electronic one-way ticket living obtains the id information of the terminal device to generate the code by bus of Current electronic one-way ticket, and The id information of code and the terminal device by bus of Current electronic one-way ticket is stored together to local, and synchronized upload extremely services Device.
3. as claimed in claim 2 based on the anti-escape ticket method of electronics one-way ticket, which is characterized in that when the terminal device is worked as Before have electronics one-way ticket be in be used during process when, if the electronics one way during the terminal device is currently used The stroke of ticket and the stroke of Current electronic one-way ticket are inconsistent, then controlling the terminal device sending Current electronic one-way ticket can not The prompt information used.
4. the anti-escape ticket method as claimed in any one of claims 1-3 based on electronics one-way ticket, which is characterized in that when current When electronics one-way ticket is in unactivated state, if the terminal device is in currently without electronics one-way ticket is used process In process, then activate Current electronic one-way ticket to generate the code by bus of Current electronic one-way ticket, and obtain the terminal device Id information, and the id information of code and the terminal device by bus of Current electronic one-way ticket is stored to local together, and Synchronized upload is to server.
5. as claimed in claim 4 based on the anti-escape ticket method of electronics one-way ticket, which is characterized in that further include:
It obtains the time of the id information synchronized upload of code and the terminal device by bus of Current electronic one-way ticket to server, And obtain the current time of the terminal device;
The sum of the current time of the terminal device and the system time difference of the server are obtained and to obtain as at the first time The first time is taken extremely to service with by the id information synchronized upload of code and the terminal device by bus of Current electronic one-way ticket The difference of the time of device is using the offline time as Current electronic one-way ticket;
Judge whether the offline time reaches preset time threshold;
If the offline time reaches preset time threshold, automatic remove is saved to local electronics one-way ticket information, with User is forbidden to check offline.
6. as described in claim 1 based on the anti-escape ticket method of electronics one-way ticket, which is characterized in that when the terminal device When id information is consistent with the id information of the activation equipment of Current electronic one-way ticket, the terminal device is allowed to show Current electronic list The code by bus of journey ticket.
7. as claimed in claim 6 based on the anti-escape ticket method of electronics one-way ticket, which is characterized in that when the terminal device is aobvious When showing the code by bus of Current electronic one-way ticket, forbid carrying out current display interface screenshotss, record screen or with screen transmission operation.
8. a kind of computer readable storage medium, which is characterized in that it is stored thereon with the anti-program of stealing a ride based on electronics one-way ticket, It realizes when the anti-program of stealing a ride based on electronics one-way ticket is executed by processor and is based on as of any of claims 1-7 The anti-escape ticket method of electronics one-way ticket.
9. a kind of terminal device, which is characterized in that including memory, processor and be stored on the memory and can be described The anti-program of stealing a ride based on electronics one-way ticket run on processor, the processor execute described anti-based on electronics one-way ticket Such as the anti-escape ticket method of any of claims 1-7 based on electronics one-way ticket is realized when program of stealing a ride.
10. a kind of anti-device of stealing a ride based on electronics one-way ticket characterized by comprising
Receiving module, for receiving the activation instruction of electronics one-way ticket by terminal device;
Active module, for being activated to Current electronic one-way ticket according to the activation instruction to generate Current electronic one-way ticket Code by bus, and obtain the id information of the activation equipment of Current electronic one-way ticket;
First judgment module, for judging Current electronic list when the active module activates Current electronic one-way ticket Whether journey ticket is in state of activation, wherein the ID of the code and activation equipment by bus of the electronics one-way ticket in state of activation Information is stored together to local;
Second judgment module, for judging the id information of the terminal device when Current electronic one-way ticket is in state of activation It is whether consistent with the id information of the activation equipment of Current electronic one-way ticket, and in the id information and Current electronic of the terminal device The id information of the activation equipment of one-way ticket forbids the code by bus of the terminal device display Current electronic one-way ticket when inconsistent.
CN201810823699.XA 2018-07-25 2018-07-25 Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket Pending CN109146512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810823699.XA CN109146512A (en) 2018-07-25 2018-07-25 Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810823699.XA CN109146512A (en) 2018-07-25 2018-07-25 Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket

Publications (1)

Publication Number Publication Date
CN109146512A true CN109146512A (en) 2019-01-04

Family

ID=64797752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810823699.XA Pending CN109146512A (en) 2018-07-25 2018-07-25 Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket

Country Status (1)

Country Link
CN (1) CN109146512A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903521A (en) * 2019-03-29 2019-06-18 广东小天才科技有限公司 Station entering and exiting monitoring method based on electronic riding information and intelligent wearable equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020066043A (en) * 2001-02-08 2002-08-14 소프트포럼 주식회사 method for raffling digital cyber-lottery, and system for the same
CN202976172U (en) * 2012-03-28 2013-06-05 边高伟 Electronic ticketing system applying portable terminal based on Internet application
US20140358793A1 (en) * 2011-12-23 2014-12-04 President And Fellows Of Harvard College Unforgeable Noise-Tolerant Quantum Tokens
CN105574629A (en) * 2014-10-13 2016-05-11 航天信息股份有限公司 Image code-based electronic ticket checking method and system
CN106056717A (en) * 2016-06-16 2016-10-26 广州地理研究所 System and method for scanning and verifying codes in offline manner
CN106127904A (en) * 2016-07-01 2016-11-16 武汉斑马快跑科技有限公司 A kind of monitoring system and method preventing from stealing a ride
CN106504346A (en) * 2016-11-14 2017-03-15 厦门路桥信息股份有限公司 Sell ticket checking method and system
CN106504171A (en) * 2016-09-28 2017-03-15 深圳大学 A method and system for public transport ticket checking
CN108234517A (en) * 2018-01-29 2018-06-29 成都智元汇信息技术股份有限公司 A kind of subway based on offline Quick Response Code ticket card is ridden off-line processing system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020066043A (en) * 2001-02-08 2002-08-14 소프트포럼 주식회사 method for raffling digital cyber-lottery, and system for the same
US20140358793A1 (en) * 2011-12-23 2014-12-04 President And Fellows Of Harvard College Unforgeable Noise-Tolerant Quantum Tokens
CN202976172U (en) * 2012-03-28 2013-06-05 边高伟 Electronic ticketing system applying portable terminal based on Internet application
CN105574629A (en) * 2014-10-13 2016-05-11 航天信息股份有限公司 Image code-based electronic ticket checking method and system
CN106056717A (en) * 2016-06-16 2016-10-26 广州地理研究所 System and method for scanning and verifying codes in offline manner
CN106127904A (en) * 2016-07-01 2016-11-16 武汉斑马快跑科技有限公司 A kind of monitoring system and method preventing from stealing a ride
CN106504171A (en) * 2016-09-28 2017-03-15 深圳大学 A method and system for public transport ticket checking
CN106504346A (en) * 2016-11-14 2017-03-15 厦门路桥信息股份有限公司 Sell ticket checking method and system
CN108234517A (en) * 2018-01-29 2018-06-29 成都智元汇信息技术股份有限公司 A kind of subway based on offline Quick Response Code ticket card is ridden off-line processing system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘浩等: "基于移动设备的地铁二维码票务系统设计", 《中国科技信息》 *
王彬: "基于二维码识别的地铁售检票系统研究", 《企业技术开发》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903521A (en) * 2019-03-29 2019-06-18 广东小天才科技有限公司 Station entering and exiting monitoring method based on electronic riding information and intelligent wearable equipment

Similar Documents

Publication Publication Date Title
TWI640937B (en) Online payment method and equipment
CN105678546B (en) Digital asset processing method based on distributed shared general ledger
CN108520605A (en) A kind of self-help shopping air control method and system
WO2014152419A1 (en) Transaction-history driven counterfeit fraud risk management solution
CN104966199B (en) Data processing method, client and payment platform
CN109670968A (en) Processing method, device, equipment and the computer storage medium of insurance data
CN105654293A (en) Payment method and device
KR101316686B1 (en) Card terminal, method for offline payment used card terminal
CN108422882A (en) charging method and device
CN108665562A (en) Stop field control method, system and computer readable storage medium in hotel
CN107704932A (en) A kind of article reclaimer, device and electronic equipment
CN109389383A (en) Payment processing method, device, server and the storage medium of service request
CN110163586A (en) The method, device and equipment of transaction payment and reimbursement processing
CN110135922A (en) A kind of method and apparatus of business processing
CN106504346A (en) Sell ticket checking method and system
CN106570706A (en) Business dispute processing method and device
CN110348832A (en) B2C online payment gateway adapter, system, adaptation and method of payment
CN106096925A (en) A kind of smart card, the recharge method of a kind of smart card and system
CN106127467A (en) The method of mobile payment integrating financial card paying and settle accounts
CN106056433A (en) Method and device for adding service information
CN106503990A (en) Transaction processing method and mobile device
CN109002958A (en) A kind of method of risk identification, system, device and equipment
CN109146512A (en) Anti-escape ticket method, medium, terminal device and device based on electronics one-way ticket
CN111353781B (en) Transaction data processing method and system
CN116934317A (en) Enterprise charging service system, and processing method and device of charging request

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190104

RJ01 Rejection of invention patent application after publication