Riding processing method and device
By detecting the historical outbound code in the cache and obtaining the ride code returned by the SIM card application, the problem that the ride application cannot be connected during peak network abnormalities is solved, the integrity of the ride process and data security are achieved, and the user experience and ride flexibility are improved.
Patent Information
- Application Number
- CN202411379441.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-02-28
AI Technical Summary
During peak hours such as major holidays, users in subway stations may be unable to draw codes online due to abnormal network connections or other problems, resulting in white screens, which will cause congestion and safety hazards.
By detecting whether the historical outbound code is stored in the cache, it is possible to distinguish whether the user currently needs to enter or exit. If the historical outbound code is not stored, the inbound code and outbound code returned by the SIM card application will be obtained, and the inbound code is displayed for entry verification, and the outbound code is stored in the cache for subsequent use.
Ensure the integrity of the ride process, avoid one-way rides, improve the flexibility and user experience of rides, and improve data security through the SIM card application to store ride codes and ensure user funds safety.
Smart Images

Figure CN119541064A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of data processing, and more particularly to a method and device for processing a ride. Background Art
[0002] With the rapid development of cities, more and more people use ride applications to scan codes to ride. However, if there is a peak flow of people in stations or subway stations during major holidays, the subway ticketing system may not be able to handle concurrent requests in a short period of time. Or other abnormal situations such as the dedicated optical cable in the computer room being dug up, the signal in the subway station being too weak, and the mobile phone being in arrears may cause the ride application used by users in the station or subway station to be unable to connect to the code and display a white screen, resulting in congestion and a high risk of safety accidents. A SIM card is an integrated circuit card that stores a user's personal information, encryption keys, phone book, and other important data. The super SIM card, which is an upgrade of the SIM card, is more secure, can dynamically download applications, and supports near-field communication. How to use the characteristics of the super SIM card to strengthen control over the above risks and improve the safety of users during the ride is a direction that ride service providers will consider in the future. Summary of the invention
[0003] The purpose of one embodiment of the present specification is to provide a ride processing method and device to solve the problem of low safety of offline rides.
[0004] To solve the above technical problems, an embodiment of this specification is implemented as follows: In a first aspect, an embodiment of the present specification provides a method for processing a ride, including: Get code access request; If it is detected that no historical outbound code is stored in the cache, obtain the inbound code and outbound code returned by the SIM card application; The station entry code is displayed, and the station exit code is sent to the cache; the station entry code is used for station entry and boarding verification.
[0005] In a second aspect, another embodiment of the present specification provides a vehicle-riding processing device, comprising: A request acquisition module configured to acquire a code access request; If it is detected that no historical outbound code is stored in the cache, a code acquisition module is run, wherein the code acquisition module is configured to acquire an inbound code and an outbound code returned by the SIM card application; The display module is configured to display the entry code and send the exit code to the cache; the entry code is used for entry and boarding verification.
[0006] In the third aspect, another embodiment of the present specification provides a ride processing device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the ride processing method as described in the first aspect above.
[0007] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the ride processing method as described in the first aspect above are implemented.
[0008] In a fifth aspect, another embodiment of the present specification provides a computer program product, wherein the computer program product includes a boarding processing program, and the boarding processing program is executed by a processor to implement the steps of the boarding processing method as described in the first aspect above.
[0009] The boarding processing method provided in this embodiment first obtains a code access request, and determines whether the user currently needs to enter the station or exit the station by detecting whether the historical exit code is stored in the cache. If it is detected that the historical exit code is not stored in the cache, it indicates that the user needs to enter the station this time, and at the same time obtains the entry code and exit code returned by the SIM card application from the SIM card application to avoid one-way riding when the user uses the ride service, thereby ensuring the integrity of the ride process. Finally, the entry boarding code corresponding to the entry code is displayed for this entry, and the exit code is sent to the cache for later exit, so that the user can take the ride when the online boarding code cannot be obtained, thereby improving the flexibility of riding and the user experience. In addition, using the SIM card application to store the boarding code can improve data security, thereby ensuring the user's financial security. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0011] Figure 1 A processing flow chart of a method for processing a ride provided in one embodiment of this specification; Figure 2 A schematic diagram of a status reminder page provided by an embodiment of this specification; Figure 3 A ride service page provided for one embodiment of this specification; Figure 4A flow chart of activating a ride service provided in one embodiment of this specification; Figure 5 A display page of a station entry code provided in one embodiment of this specification; Figure 6 A flowchart of the interaction between a ride application and a traffic device provided in one embodiment of this specification; Figure 7 A processing flow chart of a ride processing method applied to an offline ride scenario provided by one embodiment of this specification; Figure 8 A schematic diagram of a ride processing device provided for one embodiment of this specification; Fig. 9 A schematic diagram of the structure of a ride processing device provided for one embodiment of this specification. DETAILED DESCRIPTION
[0012] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0013] This specification provides an embodiment of a method for handling a ride: Reference Figure 1 , which shows a processing flow chart of a method for handling a ride provided by this embodiment, referring to Figure 7 , which shows a processing flow chart of a ride processing method applied to an offline ride scenario provided by this embodiment.
[0014] Reference Figure 1 The boarding processing method provided in this embodiment specifically includes the following steps S102 to S108.
[0015] Step S102: Obtain a code access request.
[0016] In this embodiment, the boarding application may be an application of the network operator installed in the user terminal. The network operator, as the ticketing agent partner of the rail transit party, may provide boarding services on the boarding application (i.e., the user may directly use the boarding application to board the train without downloading the application of the rail transit party). In addition, the boarding application may also be other applications installed in the user terminal that can provide boarding services, which is not limited in this embodiment. The entry code and / or exit code in this embodiment are used to display to the pass device or other code scanning device when the user enters or exits the station. The specific form of the entry code and / or exit code may be a QR code, a bar code, a color code or any other form. Optionally, the entry code and / or exit code may be an offline entry code and / or an offline exit code. The entry code data and / or exit code data corresponding to the entry code and / or exit code may include at least one of the following data: card number (cardNO), user number (UserID), user token (Token), merchant number (ServerID), public key (SM2, SM3, SM4, etc.); The user terminal where the ride-hailing application is located is configured with a SIM card, which may be a USIM (Universal Subscriber Identity Module) card or a super SIM card; the SIM card application is an application corresponding to the SIM card, which may be a USIM card application, a super SIM card application, or may also be called an offline card application. It should be noted that the SIM card application is integrated in the SIM card.
[0017] During the specific implementation process, the user can activate the ride service in the ride application. After the ride service is activated, the code access request submitted by the ride service can be obtained. In an optional implementation provided by this embodiment, the ride service is activated in the following manner: Generate a service activation request based on the access instruction submitted for the ride-hailing service and send it to the application server; Receive and display the activation success reminder returned by the application server.
[0018] Optionally, obtaining a code access request for taking a ride includes: obtaining the code access request submitted through the ride service.
[0019] Specifically, the ride-hailing application provides ride-hailing services. After the ride-hailing service is activated, the code access request submitted through the ride-hailing service can be obtained. In the process of activating the ride-hailing service, a service activation request is generated according to the access instruction for the ride-hailing service submitted by the user, and the service activation request is sent to the application server. Thereafter, the activation success reminder returned by the application server is received and displayed.
[0020] During the specific execution process, after obtaining the boarding code access request, it is also possible to detect whether the near field communication component of the user terminal is in an on state. If not, a status reminder page is displayed to remind the user to turn on the near field communication component. In an optional implementation manner provided in this embodiment, the near field communication component is turned on in the following manner: If it is detected that the near field communication component of the user terminal is not turned on, a status reminder page configured with a status update control is displayed; In response to a trigger operation on the status update control, the near field communication component is turned on.
[0021] Specifically, the status reminder page can be as follows Figure 2 As shown in , the status reminder page is configured with a status update control. The user can trigger the status update control to turn on the near field communication component. The near field communication component is turned on here so that after the code is displayed, a near field communication connection can be established with the pass device based on the near field communication component and the boarding verification can be performed. The near field communication component can be such as Bluetooth.
[0022] Step S104: if it is detected that no historical outbound code is stored in the cache, the inbound code and the outbound code returned by the SIM card application are obtained.
[0023] After the above-mentioned request to obtain the boarding code access, if it is detected that the historical exit code is not stored in the cache, the entry code and exit code returned by the SIM card application are obtained; if it is detected that the historical exit code is stored in the cache, the historical exit code is read and the historical exit code corresponding to the historical exit code is displayed, so as to exit based on the historical exit code. Among them, the cache can be the cache of the boarding application.
[0024] In actual applications, when a user takes a ride in a subway or other riding scene, he usually needs to display the boarding code twice, one is to display the boarding code when entering the station, and the other is to display the exit code when leaving the station. In order to ensure the integrity of the riding process and avoid one-way riding, this embodiment obtains the boarding code and exit code at the same time when the user enters the station, and stores the exit code in the cache. In this way, after the next boarding code access request is issued, it can be determined whether the user needs to enter the station or exit the station by detecting whether there is a historical exit code stored in the cache. If it is detected that there is a historical exit code stored in the cache, it means that the user has not completed the exit, and the historical exit code is read and the historical exit code corresponding to the historical exit code is displayed for exit; if the historical exit code is not stored in the cache, it means that the user has completed the exit and needs to enter the station now, and the boarding code and exit code returned by the SIM card application are obtained at one time. It should be noted that in order to improve data management efficiency and expand storage space, the exit code stored in the cache in this embodiment is automatically deleted after being used for exit verification.
[0025] The boarding processing method provided in this embodiment can be applied to offline boarding scenarios. Specifically, if it is detected that no historical exit code is stored in the cache, it indicates that the user needs to enter the station at this time, and the user can first try to obtain the online boarding code to enter the station, that is, perform an abnormal detection of the network connection status between the application server and the ticketing management platform. If the detection result is that the network connection status is abnormal, it indicates that the online boarding code cannot be obtained. At this time, the user is reminded to turn on the offline boarding service and obtain the offline code stored in the SIM card application. In an optional implementation manner provided in this embodiment, the following method is used for abnormal detection: Perform abnormal detection on the network connection status between the application server and the ticketing management platform; If it is detected that no historical outbound code is stored in the cache, an abnormality detection is performed on the network connection status between the application server and the ticketing management platform; If the detection result shows that the network connection status is abnormal, the ride service page configured with service controls is displayed; A trigger instruction submitted based on the service control is obtained, and the inbound code and the outbound code returned by the SIM card application are obtained based on the trigger instruction.
[0026] Specifically, if it is detected that the historical exit code is not stored in the cache, the network connection status between the application server and the ticketing management platform is detected for abnormalities. If the detection result is that the network connection status is abnormal, the boarding service page configured with the service control is displayed, and the trigger instruction submitted based on the service control is obtained, and the entry code and exit code returned by the SIM card application are obtained.
[0027] For example, a ride-hailing service page might look like Figure 3 As shown, it is used to remind the user to start the ride service. If the user triggers the first service control in the ride service page, the ride service is started and the entry code and exit code stored in the SIM card application are obtained; if the user triggers the second service control in the ride service page, no processing is required.
[0028] Optionally, the entry code and the exit code are acquired by the application server corresponding to the ride application from the ticketing management platform and stored in at least one storage file of the SIM card application.
[0029] Specifically, after receiving the service activation request for the ride service sent by the ride application, the application server obtains the entry code and exit code from the ticketing management platform in the following manner: forwarding the ride service activation request to the ticketing management platform; receiving the entry code and exit code returned by the ticketing management platform; installing the SIM card application in the SIM card configured in the user's user terminal, and sending the entry code and exit code to the SIM card application; and returning a successful activation reminder to the ride application.
[0030] Among them, the ticket management platform can be a platform used by the rail transit party to manage the boarding code, and the ticket management platform is responsible for generating the user's boarding code based on user information.
[0031] For example, a user clicks on the activation control of the offline ride service on the H5 page of the ride application to submit an access instruction for the ride service. In response to the user's access instruction, the H5 page generates a ride service activation request and sends it to the application server. The application server forwards the ride service activation request to the ticketing management platform. After the ticketing management platform returns the entry code and the exit code, the application server silently downloads the SIM card application to the USIM card through the BIP (Backgroud Interface Protocol) protocol, and sends the entry code and the exit code to the SIM card application for storage. After completion, the application server returns an activation success reminder to the H5 page of the ride application, and the H5 page of the ride application displays the activation success reminder to the user.
[0032] The following Figure 4 Taking the example of ride service as an example, the process of user activation of ride service is generally described. First, the user submits an access instruction for offline ride service in the ride application. The ride application generates an activation request for offline ride service according to the access instruction, and sends it to the application server corresponding to the ride application. After receiving the ride service activation request, the application server forwards the ride service activation request to the ticketing management platform. After receiving the ride service activation request, the ticketing management platform returns the offline ride code to the application server. The application server receives the offline ride code returned by the ticketing management platform, and installs the SIM card application in the SIM card of the user terminal, and sends the encrypted data obtained by encrypting the entry code and the exit code to the SIM card application. The SIM card application creates two files in the SIM card, and stores the code data and public key obtained after decrypting the encrypted data in the two files respectively.
[0033] In the specific implementation process, in order to enhance the security of code data transmission, the boarding code data is usually encrypted using a public key during the code data transmission process. Accordingly, the encrypted data needs to be decrypted to obtain the code data. In an optional implementation provided in this embodiment, the entry code and exit code returned by the SIM card application are obtained in the following manner: Acquire the encrypted data returned by the SIM card application; optionally, the encrypted data is stored in at least one storage file of the SIM card application; The encrypted data is decrypted based on a private key to obtain the inbound code and the outbound code.
[0034] Specifically, the encrypted data in the SIM card application is stored in at least one storage file. Optionally, the storage file may be in the form of a transparent file. Specifically, during the storage of the encrypted data, a new storage file may be created to store the code body data extracted from the entry code data and the exit code data. In addition, another new storage file may be created to store the public key extracted from the entry code and the exit code.
[0035] For example, one storage file can store the card number (cardNO), user number (UserID), user token (Token), merchant number (ServerID) in the code data of the entry code and the exit code, and another storage file can store the SM2 public key in the code data of the entry code and the exit code.
[0036] The following table 1 and table 2 illustrate the file format of the storage file: Table 1: Structure of the first storage file FEA1
[0037] Table 2: Structure of the second storage file FEA2
[0038] Further, after decrypting the encrypted data based on the private key to obtain the entry code and the exit code, the code data of the entry code and / or the exit code may be extracted to obtain code verification data and store the code verification data in a cache for subsequent boarding verification. In an optional implementation manner provided by this embodiment, after the step of decrypting the encrypted data based on the private key to obtain the entry code and the exit code is performed, the step further includes: Extracting the code data of the inbound code and / or the outbound code to obtain code verification data; The code verification data is stored in the buffer.
[0039] Specifically, in order to facilitate the subsequent boarding verification, after obtaining the entry code, the code data of the entry code is extracted to obtain the entry code verification data, and the code verification data is stored in the cache; in addition, the code data of the exit code can also be extracted to obtain the exit code verification data, and the code verification data is stored in the cache. For example, the entry code data is extracted to obtain the card-side random number, and the card-side random number is stored in the cache. For another example, the entry code data is extracted to obtain the card-side random number HASH, and the card-side random number HASH is stored in the cache.
[0040] In addition, in the process of obtaining the entry code and exit code returned by the SIM card application, the APDU (Application Protocol Data Unit) instruction can be customized to obtain the code data. Optionally, the APDU instruction includes a SELECT instruction and a GET OFFLINEDATA instruction; the SELECT instruction is used to select the SIM card application, and the GETOFFLINEDATA instruction is used to obtain the entry code and exit code returned by the SIM card application.
[0041] The following uses Tables 3 to 11 to illustrate the instruction formats of the SELECT instruction, GET OFFLINEDATA instruction and other APDU instructions: Table 3 SELECT instruction format
[0042] Table 4 SELECT command response status code
[0043] Table 5 GET OFFLINEDATA command format
[0044] Table 6 GET OFFLINEDATA command response format (P1=00)
[0045] Table 7 GET OFFLINEDATA command response format (P1=01)
[0046] Table 8 The format of the DATA field is shown in the following table (P1=00)
[0047] Table 9 The format of the DATA field is shown in the following table (P1=01)
[0048] Table 10 GET boarding offline code plain text data format (corresponding to Table 7)
[0049] Table 11 GET OFFLINEDATA command response status code
[0050] Specifically, in the process of obtaining the entry code and exit code returned by the SIM card application, the ride application can also send APDU instructions to the SIM card application by means of interface calls, where the called interfaces include OMA API (Open Mobile Alliance Application Programming Interface) and GOOGLE API (Google Application Programming Interface).
[0051] It should be noted that the above step S104 can also be replaced by: if it is detected that no historical exit code is stored in the cache, obtain the boarding code stored in the SIM card application, and optionally, the boarding code includes an entry code and an exit code.
[0052] For example, the code data obtained from the SIM card application may be as shown in Table 12: Table 12 Ride code data
[0053] Step S106, displaying the inbound code and sending the outbound code to the cache.
[0054] After obtaining the entry code and exit code returned by the SIM card application, in this step, the entry code is displayed for this entry, and the exit code is stored in the cache for subsequent exit. Figure 5 shown.
[0055] In the specific implementation process, after the station entry code is displayed, boarding verification can be performed based on the station entry code. Optionally, the station entry code is used for station entry verification. In an optional implementation provided in this embodiment, boarding verification is performed in the following manner: Obtaining a verification request for the station access code sent by a pass device; The code verification data stored in the cache is compared with the target verification data included in the verification request to obtain a comparison result, and the comparison result is returned to the pass device.
[0056] Furthermore, in an optional implementation manner provided by this embodiment, before the step of obtaining the verification request for the station entry code sent by the pass device is executed, the step further includes: Acquire a near field communication connection establishment request sent by the pass device based on the communication connection address included in the station entry code, and establish the near field communication connection with the pass device; Optionally, obtaining a verification request for the station entry code sent by a pass device includes: obtaining the verification request sent by the pass device based on the near field communication connection.
[0057] Specifically, after displaying the access code, the access device can identify the access code. If the boarding code type of the access code is identified as 09, i.e., the target type of boarding code, the access code is decrypted using the SM2 private key preset on the PSAM card in the access device to obtain the plain text data. After that, the access device performs a CRC check on the plain text data. After the check is correct, the access device parses the plain text data according to the preset data structure to obtain the Bluetooth address, cardNO card number, userID user number, Token, ServerID merchant number, and card-side random number. The access device searches for the boarding application through the Bluetooth address and establishes a Bluetooth connection with the boarding application. The access device transmits the card-side random number HASH to the boarding application through a customized Bluetooth protocol instruction. After the boarding application obtains the card-side random number HASH, it compares it with the cached card-side random number HASH and responds the comparison result to the access device. The access device opens the door after receiving the verification confirmation response from the boarding application. After the access device opens the door, it actively disconnects the Bluetooth connection with the boarding application. If the boarding application returns a verification failure response to the access device, the access device does not open the door, and the boarding application pops up a window to prompt the user that the "boarding code is invalid."
[0058] For example, the Bluetooth protocol instructions for access devices and ride applications are shown in the following table, where the Bluetooth protocol instructions are used to define the data interaction format between the gate and the mobile app, and are mainly used for two-way authentication.
[0059] Table 13 Gate → Mobile App
[0060] Table 14 Mobile app → Gate
[0061] The following Figure 6 Take the example to explain the interaction process between the ride application and the access device: The access code is displayed through the boarding application, the access device recognizes the access code, and determines that the boarding code type of the access code is 09, that is, the agent's boarding code, and uses the SM2 private key preset in the PSAM card in the access device to decrypt the access code and obtain the plaintext data. After that, the access device performs CRC verification on the plaintext data. After the verification passes, the access device parses the plaintext data according to the preset data structure to obtain the Bluetooth address, cardNO card number, userID user number, Token, ServerID merchant number, and card-side random number. The access device searches for the boarding application through the Bluetooth address and establishes a Bluetooth connection with the boarding application; if the verification fails, the access device will light up an alarm.
[0062] During the verification process of the pass device, the pass device transmits the card-side random number HASH to the ride application through a customized Bluetooth protocol instruction. After the ride application obtains the card-side random number HASH, it compares it with the cached card-side random number HASH and responds the verification result to the pass device. The pass device opens the door after receiving the verification confirmation response from the ride application. After the pass device opens the door, it actively disconnects the Bluetooth connection with the ride application. If the ride application returns a verification failure response to the pass device, the pass device does not open the door, and the ride application pops up a window to prompt the user that the "ride code is invalid."
[0063] In summary, the boarding processing method provided in this embodiment, after obtaining the boarding code access request, determines whether the user needs to enter the station or exit the station by detecting whether there is a historical exit code stored in the cache. If it is detected that there is no historical exit code stored in the cache, it indicates that the user needs to enter the station, and obtains the stored entry code and exit code from the SIM card application to avoid one-way boarding when the user uses the boarding service, thereby ensuring the integrity of the boarding process. After that, the entry code is displayed for boarding verification of this entry, thereby solving the problem of being unable to board the bus under abnormal circumstances, improving the flexibility of boarding, and improving the user experience. The exit code is stored in the cache, so that after the next boarding code access request is issued, it can be detected whether there is the exit code stored this time in the cache, thereby determining whether the user needs to enter the station or exit the station when the user takes the bus next time, thereby improving the boarding efficiency and saving the user's boarding time. Furthermore, in order to enhance the user's perception of the network connection status, when the result of the abnormal detection of the network connection status between the application server and the ticketing management platform is that the network connection status is abnormal, a ride service page configured with a service control is displayed to obtain a trigger instruction based on the service control, and code data is obtained according to the trigger instruction, thereby enhancing the user's perception.
[0064] The following combination Figure 7, taking the application of the ride processing method provided by this embodiment in an offline ride scenario as an example, the ride processing method provided by this embodiment is further described. Figure 7 The boarding processing method applied to the offline boarding scenario specifically includes steps S702 to S718.
[0065] Step S702: Obtain a code access request submitted by the ride service.
[0066] Prior to this, based on the access instruction for the ride service submitted by the user, a service activation request is generated and sent to the application server; the activation success reminder returned by the application server is received and displayed.
[0067] Step S704: If it is detected that the near field communication component of the user terminal is not turned on, a status reminder page configured with a status update control is displayed.
[0068] Step S706: In response to the triggering operation on the status update control, the near field communication component is turned on.
[0069] Step S708: If it is detected that no historical outbound code is stored in the cache, an abnormality detection is performed on the network connection status between the application server and the ticketing management platform.
[0070] Step S710: If the detection result is that the network connection status is abnormal, a ride service page configured with service controls is displayed.
[0071] Step S712: obtaining a trigger instruction based on the service control, and obtaining encrypted data stored in at least one storage file of the SIM card application.
[0072] Step S714, decrypt the encrypted data based on the private key to obtain the entry code and the exit code.
[0073] Step S716, display the inbound code and store the outbound code data in the cache.
[0074] Step S718, extracting the station entry code to obtain code verification data, and storing the code verification data in a cache.
[0075] After that, a request for establishing a near-field communication connection sent by the access device based on the communication connection address contained in the access code is obtained, a near-field communication connection is established with the access device, and a verification request for the access code sent by the access device is obtained based on the near-field communication connection; the code verification data stored in the cache is compared with the target verification data contained in the verification request to obtain a comparison result, and the comparison result is returned to the access device.
[0076] Figure 8 A schematic diagram of a ride processing device provided by an embodiment of the present invention is shown in FIG. Figure 6As shown, the device comprises: A request acquisition module 802 is configured to acquire a code access request; If it is detected that no historical outbound code is stored in the cache, the code acquisition module 804 is executed, and the code acquisition module 804 is configured to acquire the inbound code and the outbound code returned by the SIM card application; The display module 806 is configured to display the station entry code and send the station exit code to the cache; the station entry code is used for station entry and boarding verification.
[0077] The ride processing device provided in this embodiment first runs the request acquisition module 802 to obtain the code access request. If it is detected that the historical exit code is not stored in the cache, the code acquisition module 804 is run to obtain the entry code and exit code returned by the SIM card application, so as to distinguish whether the user currently needs to enter or exit the station. If it is detected that the historical exit code is not stored in the cache, it means that the user has not entered the station this time, and it is necessary to obtain the entry code and exit code returned by the SIM card application from the SIM card application at the same time to avoid one-way ride when the user uses the ride service, thereby ensuring the integrity of the ride process. Finally, the display module 806 is run to display the entry code and send the exit code to the cache; the entry code is used for entry and ride verification, so that the user can take the ride when the online ride code cannot be obtained, thereby improving the flexibility of ride and the user experience. In addition, using the SIM card application to store the ride code can improve data security, thereby ensuring the user's financial security; the entry code is used for entry and ride verification.
[0078] The passenger processing device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0079] Furthermore, an embodiment of the present specification also provides a ride processing device, Fig. 9 A schematic diagram of a vehicle processing device provided in an embodiment of this specification is shown in FIG. Fig. 9 As shown, the device includes: a memory 901, a processor 902, a bus 903 and a communication interface 904. The memory 901, the processor 902 and the communication interface 904 communicate through the bus 903, and the communication interface 904 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.
[0080] Fig. 9 In the embodiment, the memory 901 stores computer executable instructions that can be run on the processor 902. When the computer executable instructions are executed by the processor 902, the following process is implemented: Get code access request; If it is detected that no historical outbound code is stored in the cache, obtain the inbound code and outbound code returned by the SIM card application; The station entry code is displayed, and the station exit code is sent to the cache; the station entry code is used for station entry and boarding verification.
[0081] The ride processing device provided in this embodiment, through the cooperation of the memory 901, the processor 902, the bus 903 and the communication interface 904, first obtains the code access request. If it is detected that the historical exit code is not stored in the cache, the entry code and the exit code returned by the SIM card application are obtained, so as to distinguish whether the user currently needs to enter or exit the station. If it is detected that the historical exit code is not stored in the cache, it means that the user has not entered the station this time, and it is necessary to obtain the entry code and the exit code returned by the SIM card application from the SIM card application at the same time to avoid one-way ride when the user uses the ride service, thereby ensuring the integrity of the ride process. Finally, the entry code is displayed for this entry, and the exit code is stored in the cache for this exit, so that the user can take the ride when the online ride code cannot be obtained, thereby improving the flexibility of ride and the user experience. In addition, using the SIM card application to store the ride code can improve data security, thereby ensuring the user's financial security.
[0082] The ride processing device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0083] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented: Get code access request; If it is detected that no historical outbound code is stored in the cache, obtain the inbound code and outbound code returned by the SIM card application; The station entry code is displayed, and the station exit code is sent to the cache; the station entry code is used for station entry and boarding verification.
[0084] The computer-readable storage medium provided in this embodiment first obtains a code access request. If it is detected that no historical exit code is stored in the cache, the entry code and exit code returned by the SIM card application are obtained to identify whether the user currently needs to enter or exit the station. If it is detected that no historical exit code is stored in the cache, it indicates that the user has not entered the station this time, and it is necessary to obtain the entry code and exit code returned by the SIM card application from the SIM card application at the same time to avoid one-way riding when the user uses the ride service, thereby ensuring the integrity of the ride process. Finally, the entry code is displayed for this entry, and the exit code is stored in the cache for this exit, so that the user can take the ride when the online ride code cannot be obtained, thereby improving the flexibility of riding and the user experience. In addition, using the SIM card application to store the ride code can improve data security, thereby ensuring the user's financial security.
[0085] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0086] The computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0087] Furthermore, another embodiment of the present specification also provides a computer program product, which implements the following process when executed by a processor: Get code access request; If it is detected that no historical outbound code is stored in the cache, obtain the inbound code and outbound code returned by the SIM card application; The station entry code is displayed, and the station exit code is sent to the cache; the station entry code is used for station entry and boarding verification.
[0088] The computer program product provided in this embodiment first obtains a code access request. If it is detected that no historical exit code is stored in the cache, the entry code and exit code returned by the SIM card application are obtained to identify whether the user currently needs to enter or exit the station. If it is detected that no historical exit code is stored in the cache, it means that the user has not entered the station this time, and it is necessary to obtain the entry code and exit code returned by the SIM card application from the SIM card application at the same time to avoid one-way riding when the user uses the ride service, thereby ensuring the integrity of the ride process. Finally, the entry code is displayed for this entry, and the exit code is stored in the cache for this exit, so that the user can take the ride when the online ride code cannot be obtained, thereby improving the flexibility of riding and the user experience. In addition, using the SIM card application to store the ride code can improve data security, thereby ensuring the user's financial security.
[0089] The computer program product provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0090] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0091] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0092] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0094] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0095] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.
[0096] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0098] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0099] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for handling a ride, characterized in that: Applied to a ride-hailing application, the method includes: Get code access request; If it is detected that no historical outbound code is stored in the cache, obtain the inbound code and outbound code returned by the SIM card application; The station entry code is displayed, and the station exit code is sent to the cache; the station entry code is used for station entry and boarding verification.
2. The method for handling boarding according to claim 1, characterized in that: After the step of obtaining the code access request is executed, and before the step of obtaining the entry code and the exit code returned by the SIM card application if it is detected that no historical exit code is stored in the cache is executed, the method further includes: If it is detected that the near field communication component of the user terminal is not turned on, a status reminder page configured with a status update control is displayed; In response to a trigger operation on the status update control, the near field communication component is turned on.
3. The method for handling boarding according to claim 1, characterized in that: If it is detected that no historical outbound codes are stored in the cache, obtain the inbound and outbound codes returned by the SIM card application, including: If it is detected that no historical outbound code is stored in the cache, an abnormality detection is performed on the network connection status between the application server and the ticketing management platform; If the detection result shows that the network connection status is abnormal, the ride service page configured with service controls is displayed; A trigger instruction submitted based on the service control is obtained, and the inbound code and the outbound code returned by the SIM card application are obtained based on the trigger instruction.
4. The method for handling boarding according to claim 1, characterized in that: After the step of obtaining the code access request is executed, the method further includes: If it is detected that the historical outbound code is stored in the cache, the historical outbound code is read and displayed.
5. The method for handling boarding according to claim 1, characterized in that: The step of obtaining the inbound code and the outbound code returned by the SIM card application includes: Acquire the encrypted data returned by the SIM card application; the encrypted data is stored in at least one storage file of the SIM card application; The encrypted data is decrypted based on a private key to obtain the inbound code and the outbound code.
6. The method for handling boarding according to claim 5, characterized in that: After the step of decrypting the encrypted data based on the private key to obtain the inbound code and the outbound code is performed, the method further includes: Extracting the code data of the inbound code and / or the outbound code to obtain code verification data; The code verification data is stored in the buffer.
7. The method for handling boarding according to claim 6, characterized in that: The said boarding verification includes: Obtaining a verification request for the station access code sent by a pass device; The code verification data stored in the cache is compared with the target verification data included in the verification request to obtain a comparison result, and the comparison result is returned to the pass device.
8. The method for handling boarding according to claim 7, characterized in that: Before the step of obtaining the verification request for the station entry code sent by the pass device is executed, the method further includes: Acquire a request for establishing a near field communication connection sent by the pass device based on the communication connection address included in the station entry code, and establish the near field communication connection with the pass device; Correspondingly, the obtaining of the verification request for the station access code sent by the pass device includes: Based on the near field communication connection, the verification request sent by the pass device is obtained.
9. The method for handling boarding according to claim 1, characterized in that: Before the step of obtaining the code access request is executed, the method further includes: Generate a service activation request based on the access instruction submitted for the ride-hailing service and send it to the application server; Receive and display the activation success reminder returned by the application server; Accordingly, the acquisition code access request includes: The code access request submitted by the ride service is obtained.
10. The method for handling boarding according to claim 2, characterized in that: The entry code and the exit code are acquired from the ticketing management platform by the application server corresponding to the ride application and stored in at least one storage file of the SIM card application.
Citation Information
Patent Citations
Access control system
CN109243012A
Travel control system, method and device in public transportation and transportation payment method
CN110633975A
Unlocking method and system based on Bluetooth connection, computer equipment and storage medium
CN111540083A
Electronic doorplate and user terminal information interaction method and system
CN111787516A
Gate passing control method and system, computer equipment and storage medium
CN114495295A