CN111652990A - Public transport riding code generation method and device and electronic equipment - Google Patents

Public transport riding code generation method and device and electronic equipment Download PDF

Info

Publication number
CN111652990A
CN111652990A CN202010633144.6A CN202010633144A CN111652990A CN 111652990 A CN111652990 A CN 111652990A CN 202010633144 A CN202010633144 A CN 202010633144A CN 111652990 A CN111652990 A CN 111652990A
Authority
CN
China
Prior art keywords
code
riding
certificate
riding code
issuing server
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
CN202010633144.6A
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010633144.6A priority Critical patent/CN111652990A/en
Publication of CN111652990A publication Critical patent/CN111652990A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/02Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the specification provides a method, a device and an electronic device for generating a public transport riding code, wherein in the method for generating the public transport riding code, after detecting operation information of a user for generating the public transport riding code, the electronic device detects whether a locally stored riding code certificate is expired or not in response to the operation information, if the locally stored riding code certificate is expired, the electronic device firstly requests the issuing server for the riding code certificate, after determining that the obtaining of the riding code certificate from the issuing server is failed, the electronic device requests the emergency issuing server for the riding code certificate, because the emergency issuing server and the issuing server are not the same issuing main body and have different business logics, when the issuing server has system abnormity such as business logics, the emergency issuing server has no system abnormity such as business logics, the riding code certificate can be normally generated.

Description

Public transport riding code generation method and device and electronic equipment
[ technical field ] A method for producing a semiconductor device
The embodiment of the specification relates to the technical field of internet, in particular to a method and a device for generating a public transport riding code and electronic equipment.
[ background of the invention ]
In the related art, when a user goes out in a bus or a subway, an Integrated Circuit (IC) card is generally used, and at the moment when the user swipes the card, the IC card identification device completes charging according to a fare table, and writes back a deduction result to an IC card chip through a Near Field Communication (NFC) technology. If the bus is a subway or bus scene with sectional charging, the station-entering information is written back to the IC card when the user gets on or enters the gate, and the fee deduction result is also written back to the IC card chip after fee deduction according to the sectional fare when the user gets off or leaves the gate.
[ summary of the invention ]
The embodiment of the specification provides a method and a device for generating a public transport riding code and electronic equipment, so that when a public transport riding code issuing server fails and cannot generate a riding code certificate, the riding code certificate is automatically requested to an emergency issuing server, and therefore normal generation of the riding code can be ensured, and riding experience of a user is not affected.
In a first aspect, an embodiment of the present specification provides a method for generating a public transportation riding code, including: the electronic equipment detects that a user generates operation information of a public transport riding code; responding to the operation information, and detecting whether a locally stored riding code certificate is expired; if the locally stored riding code certificate is expired, requesting the riding code certificate from the issuing server; after determining that the obtaining of the riding code certificate from the issuing server fails, requesting the riding code certificate from an emergency issuing server; receiving a riding code certificate sent by the emergency issuing server, wherein the riding code certificate is generated after the emergency issuing server receives a request of the electronic equipment; and generating the riding code according to the received riding code certificate.
In the method for generating the public transport riding code, after detecting the operation information of the public transport riding code generated by the user, the electronic equipment responds to the operation information to detect whether the locally stored riding code certificate is expired, if the locally stored riding code certificate is expired, the electronic equipment firstly requests the issuing server for the riding code certificate, and after determining that the obtaining of the riding code certificate from the issuing server fails, the electronic equipment then requests the emergency issuing server for the riding code certificate, because the emergency issuing server and the issuing server are not the same issuing main body and have different business logics, when the issuing server has system abnormalities such as business logics, the emergency issuing server does not have system abnormalities such as business logics, and can normally generate the riding code certificate, and at the moment, the electronic equipment can generate the riding code certificate according to the riding code certificate obtained from the emergency issuing server, the riding code is generated, so that normal generation of the riding code can be ensured, and riding experience of a user is not influenced.
In one possible implementation manner, after requesting the riding code certificate from the issuing server, the method further includes: receiving an error code sent by the issuing server; the determining that the obtaining of the riding code certificate from the issuing server fails comprises: and determining that the bus code certificate is failed to be acquired from the issuing server according to the error code.
In one possible implementation manner, the determining that obtaining the riding code certificate from the issuing server fails according to the error code includes: the electronic device determines that obtaining the ride code certificate from the issuing server fails if the error code belongs to a predetermined set of error codes.
In one possible implementation manner, the requesting a riding code certificate from an emergency issue server includes: and requesting a riding code certificate from the emergency issuing server according to the error code.
In one possible implementation manner, the requesting, according to the error code, a riding code certificate from an emergency issue server includes: the electronic device requests the ride code certificate from the emergency issuance server if the error code belongs to a predetermined set of error codes and the error code belongs to a predetermined set of error codes for which the ride code certificate was generated by the emergency issuance server.
In one possible implementation manner, after the generating the riding code, the method further includes: and displaying the riding code so that the riding code identification equipment can identify and verify the riding code.
In a second aspect, an embodiment of the present specification provides an apparatus for generating a public transportation riding code, including: the detection module is used for detecting the operation information of the public transport riding code generated by the user; after the operation information is detected, responding to the operation information, and detecting whether a locally stored riding code certificate is expired; the request module is used for requesting the riding code certificate to the issuing server when the locally stored riding code certificate is expired; the determining module is used for determining that the bus code certificate is failed to be acquired from the issuing server; the request module is further used for requesting the riding code certificate from the emergency issuing server after the determining module determines that the riding code certificate is failed to be acquired from the issuing server; the emergency issuing server is used for receiving a request of the electronic equipment, and sending a request to the electronic equipment; and the generating module is used for generating the riding code according to the riding code certificate received by the receiving module.
In one possible implementation manner, the receiving module is further configured to receive an error code sent by the issuing server after the requesting module requests the riding code certificate from the issuing server; the determining module is specifically configured to determine that obtaining the riding code certificate from the issuing server fails according to the error code received by the receiving module.
In one possible implementation manner, the determining module is specifically configured to determine that obtaining the riding code certificate from the issuing server fails when the error code belongs to a predetermined error code set.
In one possible implementation manner, the request module is specifically configured to request the riding code certificate from the emergency issue server according to the error code.
In one possible implementation manner, the requesting module is specifically configured to request the emergency issuing server for the ride code certificate when the error code belongs to a predetermined error code set and the error code belongs to a predetermined error code set of the ride code certificate generated by the emergency issuing server.
In one possible implementation manner, the apparatus further includes: and the display module is used for displaying the riding code after the riding code is generated by the generation module so that the riding code identification equipment can identify and verify the riding code.
In a third aspect, an embodiment of the present specification provides an electronic device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to be able to perform the method provided by the first aspect.
In a fourth aspect, embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect.
It should be understood that the second to fourth aspects of the embodiments of the present description are consistent with the technical solution of the first aspect of the embodiments of the present description, and similar beneficial effects are obtained in all aspects and corresponding possible implementation manners, and are not described again.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow diagram of one embodiment of a method for generating a mass transit ride code according to the present description;
FIG. 2 is a flow chart of another embodiment of a method for generating a mass transit ride code according to the present description;
FIG. 3 is a flow chart of yet another embodiment of a method for generating a mass transit ride code according to the present description;
FIG. 4 is a flow chart of yet another embodiment of a method for generating a mass transit ride code herein;
FIG. 5 is a schematic structural diagram of an embodiment of a device for generating a public transportation riding code according to the present disclosure;
FIG. 6 is a schematic structural diagram of another embodiment of a public transportation riding code generation device according to the present disclosure;
fig. 7 is a schematic structural diagram of an embodiment of an electronic device in the present specification.
[ detailed description ] embodiments
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present specification is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the specification examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the prior art, when a user takes a bus or a subway for going out, the user can use the IC card to swipe the card and also can use the bus code to swipe the code to take the bus. When a user uses the riding code to carry out riding, the riding code certificate is acquired from the issuing server, and the riding code is generated according to a specific format. In most scenes, a riding code certificate can be cached by a riding code application (App), a riding code can be generated offline in the valid period of the riding code certificate, and after the riding code certificate expires, the riding code App continuously acquires a new riding code certificate from an issuing server. When the issuing server is abnormal, the riding code App cannot acquire a riding code certificate from the issuing server, so that a two-dimensional code cannot be generated, and riding of a user is influenced.
Wherein the issuing server is a server of a public transportation riding code issuing subject, and the public transportation riding code issuing subject may include: the issuer of the ride code and/or the service provider, for example: a card company, a public transportation company, and/or a subway company, etc., and in the following description, a public transportation code issuing subject is simply referred to as an issuing subject.
In order to solve the problem that the riding code App cannot obtain a riding code certificate from the issuing server when the issuing server is abnormal, the issuing main body builds a disaster recovery system, and switches to a disaster recovery server when the current main server is abnormal.
However, the investment of hardware resources and/or operation and maintenance resources of the scheme is large, and the cost is high; in addition, this solution cannot solve the problem of stability because the disaster recovery server is a clone version of the main server and is limited by the technical capability of the issuing agent and/or the experience of system construction, and when the main server has a system abnormality such as a business logic, the disaster recovery server also has the same problem and cannot provide a service even if the main server is switched to the disaster recovery server.
In view of the above problems, embodiments of the present disclosure provide a method for generating a public transportation riding code, which can automatically request a riding code certificate from an emergency issuing server when a failure occurs in the issuing server of the public transportation riding code and the riding code certificate cannot be generated. The emergency issuing server is a server of the public transport riding code emergency issuing subject, the emergency issuing subject and the issuing subject are not the same issuing subject, and the adopted service logics are different, so when the issuing server has system abnormity such as service logics, the emergency issuing server does not have system abnormity such as service logics, and can normally generate a riding code certificate, thereby ensuring that a riding code App normally generates a riding code, and not influencing riding experience of a user.
Fig. 1 is a flowchart of an embodiment of a method for generating a public transportation riding code according to the present disclosure, and as shown in fig. 1, the method for generating a public transportation riding code may include:
step 102, the electronic device detects operation information of generating a public transportation riding code by a user.
Specifically, the operation information may include: the method comprises the following steps that a user opens a riding code App installed on the electronic equipment, namely, the user opens the riding code App, namely, generation of the riding code is triggered; alternatively, the operation information may include: the user opens the riding code App installed on the electronic device, and enters the operation of the riding code, for example: the user opens the riding code App, clicks an icon for generating the riding code in a display interface of the riding code App, and accordingly generation of the riding code is triggered; alternatively, the operation information may include: and the voice command for generating the riding code is input by the user, so that the generation of the riding code is triggered.
Of course, the operation information may also include other forms of operation information, and the embodiment does not limit the specific form of the operation information as long as the generation of the riding code can be triggered.
In this embodiment, the riding code may be a two-dimensional code, a barcode, or the like, and the type of the riding code is not limited in this embodiment.
And 104, responding to the operation information, and detecting whether the locally stored riding code certificate is expired.
Specifically, after the riding code App is installed on the electronic device, the electronic device stores application data of the riding code App, where the application data may include the riding code certificate.
After detecting that the user generates the operation information of the public transportation riding code, the electronic device can detect whether a locally stored riding code certificate is expired or not in response to the operation information.
And 106, if the locally stored riding code certificate is expired, requesting the riding code certificate from the issuing server.
Wherein the issuing server is a server of a public transportation riding code issuing subject, and the public transportation riding code issuing subject may include: the issuer of the ride code and/or the service provider, for example: a card company, a public transportation company, and/or a subway company, etc., and in the following description, a public transportation code issuing subject is simply referred to as an issuing subject.
In this embodiment, if the bus code certificate locally stored by the electronic device is not expired, the electronic device generates the bus code by using the bus code certificate locally stored.
Further, after requesting the bus code certificate from the issuing server, if the electronic device receives the bus code certificate transmitted from the issuing server, the electronic device may determine that the bus code certificate is successfully acquired from the issuing server, and may generate the bus code using the bus code certificate acquired from the issuing server.
And step 108, after determining that the bus code certificate is failed to be acquired from the issuing server, requesting the emergency issuing server for the bus code certificate.
The emergency issuing server is a server of a public transport riding code emergency issuing main body, the emergency issuing main body and the issuing main body are not the same issuing main body, the adopted business logics are different, and the emergency issuing main body is generally a main body with rich system construction experience, sufficient personnel and equipment resources and strong guarantee capability.
And step 110, receiving the riding code certificate sent by the emergency issuing server, wherein the riding code certificate is generated after the emergency issuing server receives the request of the electronic equipment.
And step 112, generating the riding code according to the received riding code certificate.
In the method for generating the public transport riding code, after detecting the operation information of the public transport riding code generated by the user, the electronic equipment responds to the operation information to detect whether the locally stored riding code certificate is expired, if the locally stored riding code certificate is expired, the electronic equipment firstly requests the issuing server for the riding code certificate, and after determining that the obtaining of the riding code certificate from the issuing server fails, the electronic equipment then requests the emergency issuing server for the riding code certificate, because the emergency issuing server and the issuing server are not the same issuing main body and have different business logics, when the issuing server has system abnormalities such as business logics, the emergency issuing server does not have system abnormalities such as business logics, and can normally generate the riding code certificate, and at the moment, the electronic equipment can generate the riding code certificate according to the riding code certificate obtained from the emergency issuing server, the riding code is generated, so that normal generation of the riding code can be ensured, and riding experience of a user is not influenced.
Fig. 2 is a flowchart of another embodiment of a method for generating a public transportation riding code in the present description, and as shown in fig. 2, in the embodiment shown in fig. 1 in the present description, after step 106, the method may further include:
step 202, receiving the error code sent by the issuing server.
Thus, in step 108, the step of determining that the vehicle code certificate is not obtained from the issuing server may be: and determining that the bus code certificate is failed to be acquired from the issuing server according to the error code.
Specifically, an error (error) refers to a phenomenon in which software and/or hardware does not work properly during the operation of the software and/or hardware. Because the types of errors are many, in order to distinguish the errors, an error code (error code) is set by a system, if the errors occur in the running process of software and/or hardware, the errors are judged and identified through the original system setting in the software and/or hardware, and then the errors are indicated through the error code, so that the electronic equipment can quickly acquire the specific reasons that the software and/or hardware cannot normally operate according to the error code. In this embodiment, the electronic device may determine that the obtaining of the ride code certificate from the issuing server has failed based on the error code.
In a specific implementation, determining that the obtaining of the riding code certificate from the issuing server fails according to the error code may be: and if the error code belongs to a preset error code set, the electronic equipment determines that the bus code certificate is failed to be acquired from the issuing server. The predetermined error code set may be an error code set agreed between the riding code App and the issuing subject.
In this embodiment, in step 108, the step of requesting the emergency issue server for the riding code certificate may be: and requesting a riding code certificate from the emergency issuing server according to the error code.
That is, in this embodiment, step 108 may be:
and step 204, after determining that the obtaining of the riding code certificate from the issuing server fails according to the error code, requesting the riding code certificate from the emergency issuing server according to the error code.
Specifically, according to the error code, the request of the riding code certificate from the emergency issue server may be: and if the error code belongs to a preset error code set and the error code belongs to a preset error code set of the riding code certificate generated by the emergency issuing server, the electronic equipment requests the riding code certificate from the emergency issuing server.
If the error code belongs to a predetermined error code set but does not belong to a predetermined error code set for generating the riding code certificate by the emergency issuing server, the electronic device gives an error prompt to prompt the user that the riding code cannot be generated currently.
Fig. 3 is a flowchart of a method for generating a public transportation riding code according to the present description, and as shown in fig. 3, in the embodiment shown in fig. 1 according to the present description, after step 112, the method may further include:
and 302, displaying the riding code so that the riding code identification equipment can identify and verify the riding code.
That is, after the electronic device generates the riding code, the riding code is displayed, and at this time, the user can use the riding code to carry out code-swiping riding on the riding code identification device, after the riding code identification device acquires the riding code, the riding code can be identified and verified, and after the riding code is determined to be legal, the riding code identification device can prompt the user that the code-swiping is successful. Next, the riding code recognition device may send the current brushing code data of the user to the issuing server, and after the issuing server receives the current brushing code data of the user, the riding code recognition device may complete services such as charging and/or fee deduction according to the current brushing code data of the user.
Fig. 4 is a flowchart of a method for generating a public transportation riding code according to still another embodiment of the present disclosure, and as shown in fig. 4, the method for generating a public transportation riding code may include:
step 402, the electronic device detects operation information of a public transportation riding code generated by a user, responds to the operation information, detects whether a locally stored riding code certificate is expired, and requests the issuing server for the riding code certificate if the locally stored riding code certificate is expired.
In step 404, the electronic device receives the error code sent by the issuing server, and determines that the obtaining of the riding code certificate from the issuing server fails according to the error code.
And step 406, the electronic equipment requests the riding code certificate from the emergency issuing server according to the error code.
And step 408, the electronic equipment receives the riding code certificate sent by the emergency issuing server.
And step 410, generating the riding code according to the received riding code certificate, and displaying the riding code.
And step 412, the riding code identification device identifies and verifies the riding code.
In step 414, the riding code recognition device sends the current brushing code data of the user to the issuing server.
And step 416, after the issuing server receives the current brushing code data of the user, the service such as charging and/or fee deduction is completed according to the current brushing code data of the user.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 5 is a schematic structural diagram of an embodiment of a device for generating a public transportation riding code in the present specification, and as shown in fig. 5, the device for generating a public transportation riding code may include: a detection module 51, a request module 52, a determination module 53, a reception module 54 and a generation module 55;
the detection module 51 is used for detecting the operation information of the public transport riding code generated by the user; after the operation information is detected, responding to the operation information, and detecting whether a locally stored riding code certificate is expired;
the request module 52 is configured to request the issuing server for the vehicle code certificate when the vehicle code certificate stored locally expires;
a determining module 53, configured to determine that obtaining the riding code certificate from the issuing server fails;
the request module 52 is further configured to request the emergency issuing server for the riding code certificate after the determining module 53 determines that the obtaining of the riding code certificate from the issuing server fails;
a receiving module 54, configured to receive a riding code certificate sent by the emergency issue server, where the riding code certificate is generated after the emergency issue server receives a request of the electronic device;
and a generating module 55, configured to generate the riding code according to the riding code certificate received by the receiving module 54.
The device for generating a public transportation riding code provided by the embodiment shown in fig. 5 can be used for executing the technical solution of the method embodiment shown in fig. 1 in this specification, and the implementation principle and technical effect thereof can be further described with reference to the related description in the method embodiment.
Fig. 6 is a schematic configuration diagram of another embodiment of a public transportation riding code generation device according to the present description, in comparison with the public transportation riding code generation device shown in fig. 5, the public transportation riding code generation device shown in fig. 6 further includes a receiving module 54 for receiving an error code sent by an issuing server after a request module 52 requests a riding code certificate from the issuing server;
in this case, the determining module 53 is specifically configured to determine that the obtaining of the riding code certificate from the issuing server fails according to the error code received by the receiving module 54.
In this embodiment, the determining module 53 is specifically configured to determine that the obtaining of the riding code certificate from the issuing server fails when the error code belongs to a predetermined error code set; in this case, the request module 52 is specifically configured to request the emergency issue server for the ride code certificate according to the error code.
In a specific implementation, the requesting module 52 is specifically configured to request the emergency issuing server for the ride code certificate when the error code belongs to a predetermined error code set and the error code belongs to a predetermined error code set of the ride code certificate generated by the emergency issuing server.
Further, the device for generating the public transportation riding code may further include: a display module 56;
and the display module 56 is configured to display the riding code after the generation module 55 generates the riding code, so that the riding code identification device identifies and verifies the riding code.
The device for generating a public transportation riding code provided by the embodiment shown in fig. 6 can be used for executing the technical solutions of the method embodiments shown in fig. 1 to fig. 4 of the present application, and the implementation principle and technical effects thereof can be further described with reference to the related descriptions in the method embodiments.
FIG. 7 is a block diagram of an embodiment of an electronic device according to the present disclosure, which may include at least one processor, as shown in FIG. 7; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method for generating the public transportation riding codes provided by the embodiments shown in fig. 1 to 4 in the specification.
The electronic device may be an intelligent electronic device such as a smart phone, a smart watch, a tablet computer, a wearable device, or a vehicle-mounted device, and the form of the electronic device is not limited in this embodiment.
FIG. 7 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present specification. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present specification.
As shown in fig. 7, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 410, a communication interface 420, a memory 430, and a communication bus 440 that connects the various components (including the memory 430, the communication interface 420, and the processing unit 410).
Communication bus 440 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, or a local bus using any of a variety of bus architectures. For example, communication bus 440 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a micro channel architecture (MAC) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 430 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) and/or cache memory. Memory 430 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of the embodiments described herein with respect to fig. 1-4.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 430, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methods of the embodiments described in fig. 1-4 herein.
The processor 410 executes various functional applications and data processing by executing programs stored in the memory 430, for example, implementing the method for generating public transportation vehicle codes according to the embodiments shown in fig. 1 to 4 in this specification.
The embodiments of the present description provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to execute the method for generating a public transportation riding code provided by the embodiments shown in fig. 1 to 4 of the present description.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash memory, an optical fiber, a portable compact disc read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present description may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the terminal referred to in the embodiments of the present specification may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a tablet computer (tablet computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. A method for generating public transport riding codes comprises the following steps:
the electronic equipment detects that a user generates operation information of a public transport riding code;
responding to the operation information, and detecting whether a locally stored riding code certificate is expired;
if the locally stored riding code certificate is expired, requesting the riding code certificate from the issuing server;
after determining that the obtaining of the riding code certificate from the issuing server fails, requesting the riding code certificate from an emergency issuing server;
receiving a riding code certificate sent by the emergency issuing server, wherein the riding code certificate is generated after the emergency issuing server receives a request of the electronic equipment;
and generating the riding code according to the received riding code certificate.
2. The method of claim 1, wherein after requesting the riding code certificate from the issuing server, further comprising:
receiving an error code sent by the issuing server;
the determining that the obtaining of the riding code certificate from the issuing server fails comprises:
and determining that the bus code certificate is failed to be acquired from the issuing server according to the error code.
3. The method of claim 2, wherein the determining, based on the error code, that obtaining a ride code certificate from the issuance server failed comprises:
the electronic device determines that obtaining the ride code certificate from the issuing server fails if the error code belongs to a predetermined set of error codes.
4. The method of claim 2, wherein the requesting a ride code certificate from an emergency issuance server comprises:
and requesting a riding code certificate from the emergency issuing server according to the error code.
5. The method of claim 4, wherein the requesting a ride code certificate from an emergency issuance server according to the error code comprises:
the electronic device requests the ride code certificate from the emergency issuance server if the error code belongs to a predetermined set of error codes and the error code belongs to a predetermined set of error codes for which the ride code certificate was generated by the emergency issuance server.
6. The method of any of claims 1-5, wherein after generating the ride code, further comprising:
and displaying the riding code so that the riding code identification equipment can identify and verify the riding code.
7. A device for generating a public transportation riding code, comprising:
the detection module is used for detecting the operation information of the public transport riding code generated by the user; after the operation information is detected, responding to the operation information, and detecting whether a locally stored riding code certificate is expired;
the request module is used for requesting the riding code certificate to the issuing server when the locally stored riding code certificate is expired;
the determining module is used for determining that the bus code certificate is failed to be acquired from the issuing server;
the request module is further used for requesting the riding code certificate from the emergency issuing server after the determining module determines that the riding code certificate is failed to be acquired from the issuing server;
the emergency issuing server is used for receiving a request of the electronic equipment, and sending a request to the electronic equipment;
and the generating module is used for generating the riding code according to the riding code certificate received by the receiving module.
8. The apparatus of claim 7, wherein,
the receiving module is further used for receiving the error code sent by the issuing server after the requesting module requests the riding code certificate from the issuing server;
the determining module is specifically configured to determine that obtaining the riding code certificate from the issuing server fails according to the error code received by the receiving module.
9. The apparatus of claim 8, wherein,
the determining module is specifically configured to determine that obtaining the riding code certificate from the issuing server fails when the error code belongs to a predetermined error code set.
10. The apparatus of claim 8, wherein,
the request module is specifically used for requesting a riding code certificate from the emergency issuing server according to the error code.
11. The apparatus of claim 10, wherein,
the request module is specifically configured to request the ride code certificate from the emergency issue server when the error code belongs to a predetermined error code set and the error code belongs to a predetermined error code set of which the ride code certificate is generated by the emergency issue server.
12. The apparatus of any of claims 7-11, further comprising:
and the display module is used for displaying the riding code after the riding code is generated by the generation module so that the riding code identification equipment can identify and verify the riding code.
13. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 1-6.
CN202010633144.6A 2020-07-02 2020-07-02 Public transport riding code generation method and device and electronic equipment Pending CN111652990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010633144.6A CN111652990A (en) 2020-07-02 2020-07-02 Public transport riding code generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010633144.6A CN111652990A (en) 2020-07-02 2020-07-02 Public transport riding code generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111652990A true CN111652990A (en) 2020-09-11

Family

ID=72342800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010633144.6A Pending CN111652990A (en) 2020-07-02 2020-07-02 Public transport riding code generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111652990A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283264A (en) * 2021-04-16 2021-08-20 维沃移动通信有限公司 Identification code sharing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106529631A (en) * 2016-11-29 2017-03-22 王艺茗 O2O public transit payment system and operation process thereof
CN108665304A (en) * 2018-05-02 2018-10-16 安徽奎特伊科技有限公司 A kind of method of mobile payment and system applied in public transport
CN109560900A (en) * 2017-09-27 2019-04-02 阿里巴巴集团控股有限公司 Data transmission method for uplink and device
CN110634191A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Authentication method, apparatus, medium, and device
CN110796220A (en) * 2019-10-11 2020-02-14 北京如易行科技有限公司 Identification code sending system based on public transport

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106529631A (en) * 2016-11-29 2017-03-22 王艺茗 O2O public transit payment system and operation process thereof
CN109560900A (en) * 2017-09-27 2019-04-02 阿里巴巴集团控股有限公司 Data transmission method for uplink and device
CN108665304A (en) * 2018-05-02 2018-10-16 安徽奎特伊科技有限公司 A kind of method of mobile payment and system applied in public transport
CN110634191A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Authentication method, apparatus, medium, and device
CN110796220A (en) * 2019-10-11 2020-02-14 北京如易行科技有限公司 Identification code sending system based on public transport

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283264A (en) * 2021-04-16 2021-08-20 维沃移动通信有限公司 Identification code sharing method and device

Similar Documents

Publication Publication Date Title
US11232339B2 (en) Handheld electronic device capable of magnetic field communication and payment method using the same
KR102147088B1 (en) Method and apparatus for offering received information to user in a electronic device
EP3160150A1 (en) Electronic device and method for executing function using speech recognition thereof
CN107925749B (en) Method and apparatus for adjusting resolution of electronic device
CN109214632B (en) Risk control method and equipment
CN110515678B (en) Information processing method, equipment and computer storage medium
CN111343635A (en) Payment assistance method, device and equipment
CN108305065B (en) Data processing method, terminal equipment and data processing system
EP3220339A1 (en) Payment transaction method and electronic device therefor
CN110287146B (en) Method, device and computer storage medium for downloading application
CN110377341B (en) Method, device, medium and electronic equipment for monitoring no-response exception
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
CN110826036A (en) User operation behavior safety identification method and device and electronic equipment
US20150161592A1 (en) Method for payment using membership card and electronic device thereof
KR20150019813A (en) Method for controlling an content integrity and an electronic device
CN111652990A (en) Public transport riding code generation method and device and electronic equipment
CN111461726B (en) Secret payment-free signing method and device and electronic equipment
CN113780163A (en) Page loading time detection method and device, electronic equipment and medium
CN111681357B (en) User queuing method and device, face brushing equipment and service server
CN111125656B (en) Service processing method and device and electronic equipment
CN112711955A (en) NFC information transmission method, NFC information transmission device and NFC terminal
CN112541767A (en) Face brushing payment method and device, face brushing equipment and server
CN109741069B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN109685508B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40036846

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200911