Bill data processing method, device, computer equipment and storage medium
By scanning the information identification code to analyze the business information switching code and update the bill data processing, it solves the problem of untimely information update of public transportation card machine equipment and improves the efficiency of bill data processing and bus operation efficiency.
Patent Information
- Application Number
- CN201910104360.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-02-01
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-08-17
AI Technical Summary
The passenger business information on the card machine equipment of public transportation cannot be updated in time, resulting in low efficiency in bill data processing.
By scanning the information identification code, parsing the business information switching code to obtain the target business information, and updating the bill data processing based on the information, realizing dynamic switching and processing of business information.
It improves the efficiency of bill data processing, ensures that the passenger business information of public transportation is updated at any time, avoids overloading or repeated deductions due to inconsistent information, and improves bus operation efficiency.
Smart Images

Figure CN111523873B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a bill data processing method, device, computer equipment and storage medium. Background Art
[0002] With the development of public transportation, public transportation such as subways and buses have become an indispensable part of users' lives, and people often travel by public transportation.
[0003] When taking public transportation, the card machine corresponding to the public transportation can process the ticket data, such as verifying the data of the user's bus card or boarding code. When the verification is passed, the passenger is allowed to take public transportation. However, the passenger service information on the card machine equipment is pre-set and cannot be updated in time according to actual conditions, and the efficiency of ticket data processing is low. Summary of the invention
[0004] Based on this, it is necessary to provide a bill data processing method, apparatus, computer equipment and storage medium to address the problem of low bill data processing efficiency.
[0005] A ticket data processing method, the method comprising: scanning an information identification code displayed on a first terminal; when the information identification code is confirmed to be a business information switching code, parsing the information identification code to obtain target business information; switching the current business information to the target business information; when ticket data is identified, processing the ticket data according to the target business information.
[0006] A ticket data processing method, the method comprising: receiving a business information switching code acquisition instruction; acquiring a corresponding business information switching code according to the business information switching code acquisition instruction, the business information switching code carrying target business information; displaying the business information switching code, the business information switching code being used to instruct a ticket data processing device to switch current business information to the target business information, and when ticket data is identified, processing the ticket data according to the target business information.
[0007] A ticket data processing method, the method comprising: receiving a business information acquisition request sent by a first terminal; acquiring target business information corresponding to the first terminal, the target business information being used to generate a business information switching code; returning the target business information to the first terminal so that the first terminal displays the business information switching code, the business information switching code being used to instruct a ticket data processing device to switch current business information to the target business information, and when ticket data is identified, processing the ticket data according to the target business information.
[0008] A ticket data processing device, the device comprising: an information identification code scanning module, used to scan the information identification code displayed on a first terminal; a target business information parsing module, used to parse the information identification code to obtain target business information when the information identification code is confirmed to be a business information switching code; a switching module, used to switch the current business information to the target business information; and a processing module, used to process the ticket data according to the target business information when the ticket data is identified.
[0009] In some embodiments, the target business information includes target passenger itinerary information, and the target business information parsing module is used to: when it is confirmed that the information identification code is a passenger business information switching code, parse the target passenger itinerary information from the information identification code; the processing module is used to: perform itinerary verification on the ticket data according to the target passenger itinerary information.
[0010] In some embodiments, the target passenger itinerary information includes a target passenger itinerary identifier, and the processing module is used to: obtain the corresponding target passenger itinerary customized data based on the target passenger itinerary identifier, and the target passenger itinerary customized data includes a customized ticket identifier set; obtain the ticket identifier to be verified corresponding to the ticket data; match the ticket identifier to be verified with the customized ticket identifier set, and when the match is successful, confirm that the itinerary verification of the ticket data has passed.
[0011] In some embodiments, the target business information includes target passenger fare data, the ticket data includes a ticket identification, and the target business information parsing module is used to: when it is confirmed that the information identification code is a passenger business information switching code, obtain the target passenger fare data according to the target business information parsing; the processing module is used to: deduct fees from the user account corresponding to the ticket identification according to the target passenger fare data.
[0012] In some embodiments, the step of generating a service information switching code includes: receiving a passenger service information switching code acquisition instruction; acquiring a corresponding passenger service information switching code according to the passenger service information switching code acquisition instruction, wherein the passenger service information switching code carries the target passenger service information corresponding to the vehicle control user identifier.
[0013] In some embodiments, the device also includes: a signature data extraction module, used to extract validity verification signature data from the information identification code, the validity verification signature data is encrypted by the passenger service adjustment server using a first key; a signature authentication module, used to perform signature authentication on the signature data according to a pre-stored first key to obtain an authentication result; a stop module, used to stop switching of the target business information when the authentication result is failed.
[0014] A ticket data processing device, the device comprising: a switching code acquisition instruction receiving module, used to receive a business information switching code acquisition instruction; a switching code acquisition module, used to acquire a corresponding business information switching code according to the business information switching code acquisition instruction, the business information switching code carries target business information; a display module, used to display the business information switching code, the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information, and when the ticket data is identified, the ticket data is processed according to the target business information.
[0015] In some embodiments, the target business information includes target passenger itinerary information, and the target passenger itinerary information is used to instruct the ticket data processing device to perform itinerary verification on the ride ticket data according to the target passenger itinerary information.
[0016] In some embodiments, the step of acquiring the target business information includes: acquiring a vehicle control user identifier; sending a passenger business information acquisition request to the passenger business adjustment server, wherein the passenger business information acquisition request carries the vehicle control user identifier, so that the passenger business adjustment server acquires the corresponding target business information according to the vehicle control user identifier; and receiving the target business information returned by the passenger business adjustment server.
[0017] A ticket data processing device, the device comprising: an information acquisition request receiving module, used to receive a business information acquisition request sent by a first terminal; a business information acquisition module, used to obtain target business information corresponding to the first terminal, the target business information is used to generate a business information switching code; a return module, used to return the target business information to the first terminal, so that the first terminal displays the business information switching code, the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information, and when the ticket data is identified, the ticket data is processed according to the target business information.
[0018] A computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned bill data processing method.
[0019] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned bill data processing method.
[0020] In the above-mentioned ticket data processing method, device, computer equipment and storage medium, the business information switching code includes target business information, and the ticket data processing device can scan the business information switching code and process the ticket data according to the acquired target business information. Therefore, when the passenger business information of the public transportation vehicle changes, the passenger business information can be switched in time by scanning the passenger business information switching code carrying the target passenger business information, and the ticket data processing efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A diagram of an application environment of a bill data processing method provided in some embodiments;
[0022] Figure 2A is a flow chart of a bill data processing method in some embodiments;
[0023] Figure 2B A schematic diagram of the composition of a service information switching code in some embodiments;
[0024] Figure 3A is a flow chart of a bill data processing method in some embodiments;
[0025] Figure 3B A timing diagram of verifying a QR code for boarding a vehicle according to a ticket verification system in some embodiments;
[0026] Figure 4 A flowchart of performing itinerary verification on the ticket data according to the target passenger itinerary information in some embodiments;
[0027] Figure 5 is a flow chart of a bill data processing method in some embodiments;
[0028] Figure 6 is a flow chart of a bill data processing method in some embodiments;
[0029] Figure 7 A timing diagram of a bill data processing system executing a bill data processing method in some embodiments;
[0030] Figure 8 is a structural block diagram of a bill data processing device in some embodiments;
[0031] Fig. 9 is a structural block diagram of a bill data processing device in some embodiments;
[0032] Fig.10 is a structural block diagram of a bill data processing device in some embodiments;
[0033] Fig.11 It is a block diagram of the internal structure of a computer device in some embodiments;
[0034] Fig.12 A block diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0036] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first terminal may be referred to as a second terminal, and similarly, a second terminal may be referred to as a first terminal without departing from the scope of this application.
[0037] Figure 1 FIG. 1 is an application environment diagram of the bill data processing method provided in some embodiments, such as Figure 1 As shown, in this application environment, a first terminal 110 corresponding to a vehicle control user, a passenger service adjustment server 120, and a ticket data processing device 130 are included. A vehicle control user refers to a user who controls the operation of a vehicle, such as a driver or a crew member. The passenger service adjustment server 120 stores a vehicle control user identifier and corresponding target passenger service information. The ticket data processing device 130 may be a device set in a preset area of a public transportation vehicle, such as a ticket card machine on a bus. When obtaining a passenger service information switching code, the first terminal 110 receives a passenger service information switching code acquisition instruction, obtains the target passenger service information corresponding to the vehicle control user identifier sent by the passenger service adjustment server 120, and generates a passenger service information switching code according to the target passenger service information, and displays the passenger service information switching code. The ticket data processing device 130 scans the information identification code displayed by the first terminal 110. When confirming that the information identification code is a passenger service information switching code, the target passenger service information is obtained from the information identification code, the current passenger service information is switched to the target passenger service information, and the ticket data is processed according to the target passenger service information. For example, if the target passenger transport service information includes target passenger transport itinerary data, when the passenger wants to verify the boarding identification code to take the bus, the passenger swipes the boarding identification code on the ticket data processing device 130. If the ticket data processing device 130 verifies that the boarding identification code is the boarding identification code corresponding to the target passenger transport itinerary, the verification is successful. If the ticket data processing device verifies that the boarding identification code is not the boarding identification code corresponding to the target passenger transport itinerary, the verification fails.
[0038] It can be understood that the above application scenario is only one implementation method, and there may be multiple implementation methods in actual applications. For example, the passenger service information switching code may be generated by the passenger service adjustment server 120 according to the target passenger service information. After generating the passenger service information switching code, the passenger service adjustment server 120 sends the passenger service information switching code to the first terminal 110.
[0039] The passenger service adjustment server 120 may be an independent physical server, or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage, and CDN. The first terminal 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, etc., but is not limited thereto. The first terminal 110 and the passenger service adjustment server 120 may be connected via a communication connection such as a network, and the present invention does not limit this.
[0040] like Figure 2A As shown, in some embodiments, a bill data processing method is proposed. This embodiment mainly applies this method to the above Figure 1 The first terminal 110 in FIG. 1 is used as an example to illustrate. Specifically, the following steps may be included:
[0041] Step S202: receiving a service information switching code acquisition instruction.
[0042] Specifically, the business information switching code is used to switch the business information, and the business information switching code may be a passenger business information switching code or a freight business information switching code. Passenger transport refers to a transport activity that carries a transport object through a transport vehicle and performs spatial displacement. For example, a bus transports passengers. Business information may include passenger business information or freight business information. Passenger business information is information related to passenger business, and may include one or more of business information related to transport vehicles, business information related to transport objects, and business information related to itineraries. Business information related to transport vehicles may include one or more of vehicle type and vehicle configuration information. For example, the type of vehicle may be used to identify whether the vehicle belongs to a bus or a car. The configuration information of the vehicle may be information that identifies whether the vehicle is an air-conditioned vehicle or a non-air-conditioned vehicle. Information related to the transport object may include one or more of user information of the transport object for which a ticket has been booked and location arrangement information for the transport object. Information related to itineraries is used to describe the characteristics of the target passenger itinerary to distinguish it from other passenger itineraries. For example, information related to itineraries may include one or more of itinerary type, itinerary identifier, itinerary site, itinerary time, and itinerary cost. Among them, the candidate types of the trip may include customized trip types and ordinary trip types. Among them, the ordinary type can also be called a non-customized trip type. Customized trip types refer to trip types that require users to customize trips and make reservations in advance, and users need to take transportation according to the customized trip. For example, users can purchase tickets for specific routes in advance through the Internet. The ordinary type is a non-customized trip type. Users do not need to customize tickets for specific trips in advance. They can take transportation through ticket vouchers such as bus cards or ride codes on the ticket data processing device corresponding to the vehicle. To give a practical example, at present, commuting tickets can be customized through the Internet platform. For example, you can enter the commuting address on the ticket customization platform corresponding to the customized bus, and then select the appropriate route and filter the appropriate date to purchase tickets. This customized bus trip is called a customized trip. When taking a customized bus, the customized bus verifies whether the ticket presented by the user is the ticket corresponding to the customized route. If so, the verification is passed, otherwise, the customized bus is not allowed to be taken. For ordinary buses, passengers wait at the bus stop. When the bus arrives, they can take the bus after swiping the bus card or the ride identification code on the ticket verification machine to deduct the fee. This ordinary bus trip is called a non-customized trip.
[0043] The business information switching code acquisition instruction may be triggered according to the operation of the vehicle control user, such as the driver, or may be automatically triggered by the first terminal. For example, the first terminal may display an application icon corresponding to the passenger business information switching code, such as the passenger business information switching code applet icon. When the user clicks the passenger business information switching code application icon, the passenger business information switching code acquisition instruction is triggered. For another example, the passenger business information switching code acquisition instruction may be automatically triggered when it is determined that the driver's trip is about to begin. For example, assuming that the driver's working time is 8 o'clock in the morning, the passenger business information switching code acquisition instruction may be triggered at 8 o'clock in the morning. Among them, the mini program refers to a cloud application developed based on a specific programming language that can be used without downloading and installing. One of the characteristics of the mini program is that it is easy to use and does not need to be manually installed in the terminal's operating system.
[0044] Step S204: acquiring the corresponding service information switching code according to the service information switching code acquisition instruction, where the service information switching code carries target service information.
[0045] Specifically, the business information switching code is used to switch business information. The business information switching code is a type of information identification code. The information identification code is a carrier that encodes information into a certain form for the device to scan and obtain the corresponding information. For example, the information identification code can be a barcode, a QR code or other graphic code. The business information switching code can carry a business information switching code type identifier to identify that the information identification code is a business information switching code.
[0046] In some embodiments, the target service information may be sent by the passenger service adjustment server to the first terminal, and the first terminal may send a service information acquisition request to the passenger service adjustment server in response to the service information switching code acquisition instruction to acquire the target service information. It is also possible to send a service information acquisition request to the passenger service adjustment server before acquiring the service information switching code acquisition instruction, and when the target service information returned by the passenger service adjustment server is obtained, the target service information is stored.
[0047] In some embodiments, the target service information may also be input by a vehicle control user, such as a driver.
[0048] In some embodiments, the service information switching code may be generated by the first terminal, or may be generated by the passenger service adjustment server and then sent to the first terminal. For example, the first terminal may send a service information acquisition request carrying a vehicle control user identifier to the passenger service adjustment server, and after the passenger service adjustment server obtains the target service information according to the vehicle control user identifier, it may return the target service information to the first terminal. Among them, the vehicle control user identifier is used to identify the user who controls the vehicle, and may be represented by one or more of numbers, letters, and symbols. The user corresponding to the vehicle control user identifier may be a person with vehicle control authority, such as a driver or a crew member. The vehicle control user identifier may correspond to the vehicle control user, or may correspond to the vehicle, for example, one user may correspond to one vehicle control user identifier, or one vehicle may correspond to one vehicle control user identifier. For example, when a vehicle control person, such as a driver, uses the passenger service information switching code application for the first time, he may register in the application to obtain the vehicle control user identifier. For another example, the vehicle control user identifier corresponding to the vehicle may be pre-set, and different drivers may use the vehicle control user identifier corresponding to the vehicle when driving the vehicle.
[0049] In some embodiments, the vehicle control user can log in to the passenger service adjustment server through the vehicle control user identification and send a target passenger service information acquisition request to the passenger service adjustment server. Of course, the target passenger service information can also be actively pushed to the first terminal by the passenger service adjustment server according to the vehicle control user identification. For example, it can be actively pushed to the first terminal before receiving the passenger service information switching code acquisition instruction.
[0050] In some embodiments, the target service information may include one or more of the route identifier corresponding to the target passenger trip, the type of ticket for the target passenger trip, the fare corresponding to the target passenger trip, the vehicle control user identifier, the trip start time, and the trip end time. The type of ticket for the target passenger trip is used to identify the type of ticket that the ticket data processing device supports verification, such as a QR code for the trip, a bus card, etc. The ticket data processing device may also display one or more of the fare, trip start time, and trip end time corresponding to the target passenger trip on the screen.
[0051] In some embodiments, the target business information is determined according to the type of itinerary. For example, for the target passenger business information corresponding to the customized itinerary type, the target passenger itinerary information may be included. For the target passenger business information corresponding to the non-customized itinerary type, the target passenger itinerary information may not be included. Because, for the customized itinerary type, it is necessary to determine whether the itinerary corresponding to the ticket corresponds to the target passenger itinerary information based on the target passenger itinerary information. For example, the reservation data of the corresponding target passenger itinerary can be obtained to confirm that the ticket for the ride is reserved in advance. For the itinerary data of the non-customized itinerary type, such as the fare corresponding to the itinerary and the type of ticket supported for verification can be pre-set in the ticket data processing device.
[0052] In some embodiments, the business information switching code may include header information and data information. The header information is used to indicate the type of the business information switching code, and is used to distinguish the business information switching code from other information identification codes, so that the bill data processing device can identify the scanned information identification code as the business information switching code based on the header information, and parse the data of the business information switching code. The data information is used to store the target business information, and in some embodiments, may also include signature data, which is used to perform signature authentication on the business information switching code.
[0053] In some embodiments, the business information switching code may also include validity data related to the validity of the business information switching code, such as the generation time of the business information switching code and the corresponding validity period, the expiration time of the business information switching code, and the generation location of the business information switching code, such as one or more of the longitude and latitude coordinates, so as to avoid the business information switching code from being copied and used for a long time and increase the security of the business information switching code. For example, when verifying the business information switching code, the distance between the generation location of the business information switching code and the location of the bill data processing device can be calculated. When the distance exceeds the preset value, the business information switching code is confirmed to be invalid. It is also possible to calculate whether the current time exceeds the expiration time. When the current time exceeds the expiration time, the business information switching code is confirmed to be invalid.
[0054] In some embodiments, the signature data may include one or more of business information signature data and validity verification signature data, where the business information signature data is the signature data obtained by digitally signing the target business information. The validity verification signature data is the signature data obtained by digitally signing the validity data in the business information switching code. Of course, the target business information and one or more of the header information may also be signed together with the validity data. The signature data can improve the security of the data. The digital signature technology encrypts the summary information with a key and transmits it to the recipient together with the original text. The recipient can only decrypt the encrypted summary information with the corresponding key, and then use the hash function to generate a summary information for the received original text, which is compared with the decrypted summary information. If they are the same, it means that the received information is complete and has not been modified during the transmission process, otherwise it means that the information has been modified, so the integrity of the information can be verified using a digital signature.
[0055] In some embodiments, the business information signature data is sent to the first terminal after being signed by the passenger business adjustment server using a private key. The ticket data processing device can perform signature authentication on the signature data according to the pre-stored public key of the passenger business adjustment server, so that other devices can be prevented from tampering with the target passenger business information.
[0056] In some embodiments, the validity verification signature data is obtained by the first terminal digitally signing according to the second key. The second key can be calculated according to a key dispersion algorithm. For example, the passenger service adjustment server can generate a second key according to a preset first key, such as a root key and target service information, and send the second key to the first terminal, and the first terminal signs the validity data according to the second key. The ticket data processing device can pre-store the first key. When the ticket data processing device parses the service information switching code to obtain the validity verification signature data, it generates a second key according to the target service information and the first key obtained by parsing, and performs signature authentication on the validity verification signature data according to the second key to verify the validity of the service information switching code, so as to prevent the service information switching code from being copied or used for a long time. The first key can be randomly generated by the passenger service adjustment server and sent to the ticket data processing device. The ticket data processing device can update the first key sent by the passenger service adjustment server regularly, for example, every day.
[0057] In some embodiments, the header information may also include a key algorithm and key index information. The key index information is used to determine the identifier corresponding to the key for signature authentication. For example, the header information may include the business information signature data algorithm and the corresponding key index, as well as the validity verification signature data algorithm and the corresponding key index. This allows the bill data processing device to obtain the corresponding key index according to the type of signature data, and perform signature authentication according to the key corresponding to the key index.
[0058] In some embodiments, the schematic diagram of the passenger service information switching code is as follows Figure 2B As shown, it may include a protocol header, target passenger service information, passenger service information signature data, dynamic data, and overall data signature. The protocol header is the header information of the passenger service information switching code protocol, and the dynamic data may be at least one of the generation time and generation location of the passenger service information switching code, that is, the validity data mentioned above. The overall data signature refers to the data signature obtained by signing the protocol header, target passenger service information, passenger service information signature data, and dynamic data, and the key for signing the overall data may be the second key generated using the first key and the target passenger service information.
[0059] Step S206, displaying the business information switching code, the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information, and when the ticket data is identified, the ticket data is processed according to the target business information.
[0060] Specifically, the ticket is used by passengers when riding, and can be an electronic ticket or a physical ticket. An electronic ticket can be, for example, a QR code for riding. A physical ticket can be a bus card or a paper ticket. Processing the ticket data may include one or more of verifying the authenticity and validity of the ticket data and deducting fees based on the ticket data. For example, the information in the ticket can be matched with the target passenger service information, and when the information matches, it is confirmed that the ticket is authentic and valid. It is also possible to deduct fees based on the itinerary-related information of the target passenger service information and the ticket data. When the first terminal displays the business information switching code, it can be to display the business information switching code on the screen, or to set the business information switching code to a state that can be read by a scanning device of the ticket data processing device, so that the scanning device can scan the corresponding business information switching code and switch the current business information to the target business information.
[0061] In some embodiments, the ticket data includes one or more of the information related to the vehicle, the information related to the user, and the information related to the trip. When verifying the authenticity and validity of the ticket data, the ticket data can be compared with the information of the corresponding type in the target passenger service information to confirm the validity of the data in the ticket data. If the comparison is consistent, it can be confirmed that the ticket data is authentic and valid. For example, the ticket data can include the configuration information of the vehicle as an air-conditioned vehicle. If the transport vehicle in the target passenger service data is an air-conditioned vehicle, the vehicle configuration information is consistent. For another example, the ticket data can include the user's personal information, such as an ID number. If the user information of the transport object of the reserved ticket in the target passenger service data includes the user's personal information in the ticket data, the transport object information is consistent. For another example, the ticket data can include the identification of the trip, such as the train number information. If the trip identification in the target passenger service data is consistent with the ticket data, the trip information is consistent.
[0062] In some embodiments, when deductions are made, deductions can be made based on the trip cost data in the target passenger service information, and the ticket data processing device can also calculate the trip cost based on the target passenger service information and the cost calculation rules pre-stored in the ticket data processing device to make deductions. For example, the cost calculation rules include that if it is an air-conditioned car, the cost is 3 yuan, and if it is a non-air-conditioned car, the cost is 2 yuan. Therefore, assuming that the configuration information of the ticket is an air-conditioned car, the ticket cost is 3 yuan when the fee is deducted. For another example, assuming that the cost calculation rules include that the cost of boarding at the 1st to 8th stations is 5 yuan, and the cost of boarding after the 8th station is 3 yuan, the fare can be determined based on the target passenger service data, the order of the stations passed by the target trip and the current station.
[0063] In the embodiment of the present invention, the service information switching code includes the target passenger service information, and the ticket data processing device can process the ticket data according to the target passenger service information. Therefore, when the passenger service information of the public transportation vehicle changes, the terminal can obtain the service information switching code carrying the target passenger service information, so that the ticket data processing device can timely process the ticket data by scanning the service information switching code carrying the target service information, and the ticket data processing efficiency is high. Moreover, by displaying the service information switching code and scanning the service information switching code by the ticket data processing device, when the ticket data processing device is not connected to the network and cannot connect to the passenger service adjustment server to obtain the target service information, the trip data can also be switched in time through the first terminal.
[0064] For example, for customized buses, advance reservations are required when taking customized buses, and it is necessary to verify whether the user has made a reservation for the customized bus when taking the bus. However, ordinary buses do not require reservations. When taking the bus, you can swipe the bus card or the graphic code used for taking the bus, such as the QR code for taking the bus. In order to dispatch buses to different routes according to actual conditions and meet people's travel needs, the passenger service data corresponding to a bus at different time points can be different. For example, the bus takes the ordinary bus route from 3 to 5 pm, and passengers can take the bus without reservation. Therefore, the ticket data processing method is to only deduct the bus card or the user account corresponding to the boarding code. From 5 to 8 pm, it takes the customized route, and no deduction is required, but it is necessary to verify whether the reservation is made based on the ticket. If the working mode of the bus ticket verification machine is single, when verifying the bus card, it can only do the deduction function, and when the ticket verification machine that supports the boarding code verifies the QR code, it can only verify the security information such as the ticket signature and deduct the fee. Then if the bus is currently running a customized bus route and cannot switch the target passenger service information in time, then the current ticket verification method is a non-customized ticket verification method. If a user who has not booked a ticket swipes the boarding code of an ordinary bus route, and the ticket data processing device verifies the boarding code successfully, then the passenger boarding the bus will cause the vehicle to be overloaded. Or for a user who has booked a ticket, if the boarding code of an ordinary bus route is swiped, the ticket data processing device verifies the boarding code successfully and deducts the fee, but since the fee has been deducted when the ticket is booked, it will result in repeated deductions, causing user financial losses. However, when the ticket data processing method provided by the embodiment of the present invention is adopted, when the type of the driver's itinerary to be traveled changes, the corresponding business information switching code can be obtained through the application on the driver's mobile phone, and the business information of the ticket verification card machine can be switched in time, thereby solving the ticket data processing problem encountered when the same bus carries multiple types of routes, and can effectively improve the operating efficiency of the bus.
[0065] In some embodiments, the step of acquiring the target business information includes: acquiring a vehicle control user identifier; sending a business information acquisition request to a passenger business adjustment server, the business information acquisition request carrying the vehicle control user identifier, so that the passenger business adjustment server acquires the corresponding target business information according to the vehicle control user identifier; and receiving the target business information returned by the passenger business adjustment server.
[0066] Specifically, the target service information returned by the passenger service adjustment server is the target passenger service information, which may be carried in the service information switching code, and the service information switching code is the passenger service information switching code. The passenger service server may generate the passenger service information switching code according to the target passenger service information, and send the passenger service information switching code to the first terminal. Alternatively, the first terminal may generate the passenger service information switching code according to the target passenger service information. The vehicle control user identifier may be carried in the passenger service information switching code acquisition instruction. For example, when obtaining the passenger service information switching code, the user controlling the vehicle, such as the driver, may enter the vehicle control user identifier and login password on the interface of the first terminal, and click the button on the first terminal that triggers the passenger service information switching code acquisition instruction. The vehicle control user identifier may also be pre-stored in the first terminal, for example, the vehicle control personnel may log in to the passenger service adjustment server in advance with the vehicle control user identifier and login password, and the first terminal may pre-send a passenger service information acquisition request to the passenger service adjustment server, and store the target passenger service information after obtaining it. The first terminal can send a passenger service information acquisition request carrying the vehicle control user identifier to the passenger service adjustment server. The passenger service adjustment server obtains the corresponding target passenger service information based on the vehicle control user identifier, and returns the target passenger service information to the first terminal. The first terminal generates a passenger service information switching code carrying the target passenger service information.
[0067] In some embodiments, the business information switching code is a business information switching code corresponding to a customized itinerary, and the target business information includes itinerary information corresponding to the customized itinerary, which may include a target passenger itinerary type and a target passenger itinerary identifier. Therefore, the step of generating the business information switching code includes: using the identifier corresponding to the customized itinerary type as the identification code type identifier corresponding to the business information switching code, and generating a passenger business information switching code carrying the identification code type identifier and the target passenger itinerary identifier.
[0068] Specifically, for the passenger service information switching code corresponding to the customized itinerary, the identifier corresponding to the customized itinerary type can be used as the identification code type identifier corresponding to the passenger service information switching code, thereby reducing the data volume of the passenger service information switching code, and allowing the ticket data processing device to quickly identify the type of the passenger service information switching code. For example, the identifier corresponding to the customized itinerary type is stored in the header information of the passenger service information switching code. Therefore, the ticket data processing device can determine that the ticket verification method is the customized ticket verification method, that is, the ticket verification method corresponding to the customized itinerary type, according to the identification code type identifier in the passenger service information switching code. The target passenger itinerary identifier is the identifier of the target passenger itinerary. For example, it can be a line identifier. The lines corresponding to the customized itinerary can be diverse. For example, the line 1 corresponding to the customized itinerary is the line from the c1 station to the c2 station, and the line 2 is the line from the c3 station to the c4 station. It can be understood that for the same route, but with different driving times, the corresponding line identifiers can also be different. By carrying the passenger service information switching code of the target passenger itinerary identifier, the ticket data processing device obtains the target passenger itinerary customization data corresponding to the target passenger itinerary identifier, namely the ticket reservation data, to confirm whether the user has reserved the ticket corresponding to the itinerary.
[0069] like Figure 3A As shown, in some embodiments, a bill data processing method is proposed. This embodiment mainly applies this method to the above Figure 1 The bill data processing device 130 in FIG. 1 is used as an example to illustrate. Specifically, the following steps may be included:
[0070] Step S302: Scan the information identification code displayed by the first terminal.
[0071] Specifically, a scanning device for scanning information identification codes, such as a QR code scanner, a near field communication (NFC) card reader, etc., may be installed on the ticket data processing device. There may be multiple types of information identification codes that can be scanned by the scanning device, such as a boarding identification code and a passenger service information switching code. The boarding identification code is an information identification code that passengers need to present when boarding, such as a boarding QR code. When the first terminal displays the information identification code, it may be to display the information identification code on the screen, or to set the information identification code to a state that can be read by the scanning device of the ticket data processing device. When the distance between the first terminal and the scanning device of the ticket data processing device is less than the distance of the near field communication, the scanning device reads the information identification code.
[0072] Step S304: when it is confirmed that the information identification code is a service information switching code, the target service information is obtained by parsing the information identification code.
[0073] Specifically, the ticket data processing device can determine the type of the information identification code. If the information identification code is a business information switching code, the target business information is parsed according to the data format of the business information switching code. If the information identification code is a boarding code, the ticket verification is performed. The type of the information identification code can be determined according to the identification code type identifier on the information identification code.
[0074] In some embodiments, when the information identification code is confirmed to be a passenger service information switching code, obtaining the target passenger service information from the information identification code includes: obtaining the identification code type identifier from the information identification code, when the identification code type identifier is a customized trip type identifier, confirming that the information identification code is a passenger service information switching code, and obtaining the target passenger service information from the information identification code.
[0075] Specifically, for the passenger service information switching code corresponding to the customized itinerary, the identifier corresponding to the customized itinerary type can be used as the identification code type identifier corresponding to the passenger service information switching code. Therefore, the identification code type identifier can be parsed from the information identification code. When the identification code type identifier is the customized itinerary type identifier, it can be confirmed that the information identification code is the passenger service information switching code, and the target passenger service information can be parsed from the information identification code.
[0076] Step S306: switch the current business information to the target business information.
[0077] Specifically, after obtaining the target passenger service information, the target passenger service information is used as the current passenger service information.
[0078] In some embodiments, the ticket verification method can be determined according to the target passenger service information. For example, if the target passenger service information is the passenger service information corresponding to a customized itinerary, the current ticket verification method is set to the customized ticket verification method, and the ticket data is processed according to the customized ticket verification method. If the target passenger service information is the passenger service information corresponding to a non-customized itinerary, the current ticket verification method is set to the non-customized ticket verification method, and the ticket data is processed according to the non-customized ticket verification method.
[0079] In some embodiments, before step S306, the signature data of the passenger service information switching code may also be verified to prevent the passenger service information switching code from being illegally copied or modified, resulting in ticket data processing errors.
[0080] In some embodiments, the ticket data processing device may store the public key corresponding to the passenger service adjustment server. When the passenger service information switching code includes the passenger service information signature data, the public key may be used to perform signature verification on the passenger service information signature data to determine whether the target passenger service information has been tampered with. If the signature verification fails, the switching of the target passenger service information is stopped, that is, the switching of the target passenger service information is not switched.
[0081] In some embodiments, the ticket data processing device may store a first key such as a root key. When the passenger service information switching code includes validity verification signature data, the validity verification signature data is extracted from the passenger service information switching code. The validity verification signature data may be encrypted by the passenger service adjustment server using the first key. The ticket data processing device may use the pre-stored first key and the target passenger service information to perform signature verification on the validity verification signature data to determine whether the validity data has been tampered with. If the signature verification fails, the switching of the target passenger service information is stopped, that is, the target passenger service information is not switched. The root key may be sent to the ticket data processing device by the passenger service adjustment server. The passenger service adjustment server may generate the root key according to a preset rule, such as randomly, and send the root key to the ticket data processing device at preset intervals, such as every day.
[0082] Step S308: When the ticket data is identified, the ticket data is processed according to the target business information.
[0083] Specifically, after the current passenger transport service information is switched to the target passenger transport service information, when the passenger takes a vehicle and presents a ticket, the ticket data is identified, and one or more processing methods of verifying the legality and validity of the ticket and deducting the fee are executed according to the ticket data. If the ticket verification and / or fee deduction is successful, a reminder message of successful ticket verification and / or fee deduction may be issued, and if the ticket verification and / or fee deduction is unsuccessful, a reminder message of unsuccessful ticket verification and / or fee deduction is issued.
[0084] In some embodiments, the target business information includes target passenger fare data, and the ticket data includes a ticket identification. When the confirmation information identification code is a business information switching code, obtaining the target business information from the information identification code includes: when the confirmation information identification code is a passenger business information switching code, obtaining the target passenger fare data based on the target business information; processing the ticket data based on the target business information includes: deducting fees from the user account corresponding to the ticket identification based on the target passenger fare data.
[0085] Specifically, the ticket identifier is used to identify the ticket, for example, it can be a bus card identifier, a passenger user identifier, or a ticket identifier generated by a ticket booking server. Fees can be deducted based on the travel cost data in the target passenger service information, and the ticket data processing device can also calculate the travel cost based on the target passenger service information and the cost calculation rules pre-stored in the ticket data processing device. Deductions are made from the user account corresponding to the ticket identifier based on the travel cost data. For example, when the ticket is a bus card, the balance information in the bus card is read, and the travel cost is subtracted to obtain the new balance information. When the ticket is a QR code for the ride, the fee is deducted from the user account corresponding to the QR code for the ride.
[0086] In some embodiments, when the target passenger service information is the passenger service information corresponding to a customized itinerary, the ticket data processing device may send a ticket reservation data acquisition request to the ticket booking server to acquire the ticket reservation data corresponding to the target passenger service information.
[0087] In some embodiments, the ticket verification method can be determined according to the target passenger service information. For example, when it is determined that the target passenger service information is the passenger service information corresponding to a customized itinerary, the current ticket verification method is determined to be the customized ticket verification method. When it is determined that the target passenger service information is the passenger service information corresponding to a non-customized itinerary, the current ticket verification method is determined to be the non-customized ticket verification method. When the ride ticket is a ride graphic code, such as a ride QR code, it can be obtained whether the type of the ride graphic code matches the type of the ride graphic code corresponding to the current ticket verification method. When it does not match, the ticket verification fails. For example, in the customized ticket verification method, verify whether the identification code type in the ride graphic terminal information is a customized ride graphic code type. If not, the ticket verification fails. In the non-customized ticket verification method, verify whether the identification code type in the ride graphic terminal information is a non-customized ride graphic code type. If not, the ticket verification fails. The customized ride graphic code refers to the ride graphic code corresponding to the customized itinerary.
[0088] The boarding graphic code is a certificate for boarding, and may include validity period data and signature data of the boarding graphic code. For example, the data may be obtained by the ticket verification server using a private key to sign the ticket identification. The ticket data processing device may pre-store the public key of the ticket verification server and use the public key to perform signature verification. The boarding graphic code may also include data obtained by signing the validity period data. The terminal corresponding to the passenger may use the decentralized key generated by the key dispersion algorithm to sign the validity period data. The ticket data processing device may use the same decentralized key to perform signature verification on the validity period data.
[0089] In some embodiments, when the ticket is a boarding graphic code, the boarding graphic code carries a trip identifier. Under the customized ticket verification mode, the ticket data processing device can verify whether the trip identifier carried by the boarding graphic code matches the target passenger trip identifier in the target passenger service information. If they do not match, it means that the ticket is not the ticket for the current customized route, and the ticket verification fails.
[0090] In some embodiments, when the ticket is a physical ticket such as a bus card, in the customized ticket verification mode, the card ID of the bus card can be read, and the read card ID is confirmed to be in the reservation data according to the ticket reservation data. If not, it is confirmed that the ticket verification failed. If it is, it is confirmed that the ticket verification is successful.
[0091] In some embodiments, when the ticket is a physical ticket such as a bus card, the balance of the bus card can be read in the non-customized ticket verification mode, and when the balance of the bus card is sufficient, the fee is deducted, and the fee deduction record can be uploaded to the ticket verification server.
[0092] In some embodiments, after the ticket verification card machine verifies the ticket, it can send a ticket verification record to the ticket verification server, wherein the deduction record and the ticket verification record can be sent asynchronously, for example, once every preset time period.
[0093] In some embodiments, the ticket data processing device can provide a ticket verification result prompt message, indicating whether the ticket verification is successful or failed. For example, the prompt message can be provided through sound or by displaying information on the screen. For example, a prompt message of "scan code successfully" can be issued to indicate that the ticket verification is successful.
[0094] For example, Figure 3BAs shown, in some embodiments, when the current ticket verification mode is a customized ticket verification mode, the ticket verification system verifies the QR code for boarding. The ticket verification system includes a passenger terminal, a ticket data processing device, and a ticket booking server. The ticket booking server stores the ticket reservation data corresponding to the customized itinerary. When the target ticket verification mode is the customized ticket verification mode, the ticket data processing device can obtain and store the ticket reservation data corresponding to the target passenger itinerary from the ticket booking server according to the target passenger itinerary identifier, wherein the reservation data can be obtained once every preset time. When the passenger presents the QR code for boarding, the ticket data processing device scans the QR code for boarding, and first verifies the type of the QR code for boarding. If it is not a customized graphic code for boarding, i.e., a graphic code for boarding a customized route, the verification fails. Otherwise, proceed to the next step: the ticket data processing device verifies the signature and validity period information of the QR code for boarding. If the signature verification fails or is not within the validity period, the verification fails. If the signature and validity period of the boarding QR code are successfully verified, the next step can be entered: confirm whether the itinerary identifier in the boarding QR code matches the itinerary identifier of the target passenger service information according to the ticket reservation data. If they match, the ticket verification is successful. Otherwise, the verification fails. When the verification is completed, the ticket verification result can be sent to the ticket booking server, and the ticket verification result can include the verified ticket identifier.
[0095] In some embodiments, the target business information includes target passenger itinerary information. When the confirmation information identification code is a business information switching code, obtaining the target passenger business information from the information identification code includes: when the confirmation information identification code is a passenger business information switching code, obtaining the target passenger itinerary information from the information identification code; processing the ticket data according to the target business information includes: performing itinerary verification on the ticket data according to the target passenger itinerary information.
[0096] Specifically, the passenger trip information is the business information related to the trip. The information related to the trip is used to describe the characteristics of the target passenger trip to distinguish it from other passenger trips. For example, the information related to the trip may include one or more of the type of trip, the identification of the trip, the stations passed by the trip, the time of the trip, and the cost of the trip. The trip verification is used to determine whether the trip in the ticket matches the target passenger trip information. For example, it can be verified whether the station information in the ticket is in the station passed by the target passenger trip, whether the travel date on the ticket is consistent with the travel time of the target passenger trip, whether the travel fee on the ticket is consistent with the travel fee of the target passenger trip, the type of trip, and whether the identification of the trip matches. If it matches, it means that the trip on the ticket matches the target passenger trip information, and the trip verification is passed.
[0097] In some embodiments, the target passenger trip information includes a target passenger trip identifier, such as Figure 4As shown, the itinerary verification of the ticket data according to the target passenger itinerary information includes:
[0098] Step S402: acquiring corresponding target passenger travel itinerary customization data according to the target passenger travel itinerary identifier, wherein the target passenger travel itinerary customization data includes a customized ticket identifier set.
[0099] Specifically, the customized ticket verification method needs to verify whether the ticket is a ticket corresponding to the customized itinerary. The non-customized ticket verification method does not need to confirm whether the ticket is a ticket corresponding to the customized itinerary. The target passenger itinerary customized data is the customized data corresponding to the customized itinerary, that is, the ticket reservation data. The customized ticket identification set includes one or more customized ticket identifications, and the customized ticket identification refers to the identification of the ticket corresponding to the customized itinerary. The reservation data may also include one or more of the starting station and the ending station corresponding to the ticket.
[0100] In some embodiments, the target passenger trip customized data is obtained from a ticket booking server, which can receive a user's ticket reservation request and generate a corresponding itinerary customized ticket according to the ticket reservation request. For example, the ticket booking server can be a backend server of a bus company. The user can send a ticket reservation request through a passenger terminal installed with a ticket reservation application, and the reservation request carries a passenger user identifier, a trip start station and an end station, and a ride date. The ticket booking server receives the reservation request, generates the target passenger trip customized data, and stores the target passenger trip customized data in correspondence with the target passenger trip identifier. The passenger user identifier can be an identifier of a bus card or a user identifier assigned by the ticket booking server to the passenger. The customized ticket identifier can also be an identifier of a bus card or a ticket identifier generated by the ticket booking server. The ticket data processing device establishes a connection with the ticket booking server through a network, and the ticket data processing device can send a request to obtain itinerary customized data to the ticket booking server, and the request to obtain itinerary customized data includes the target passenger trip identifier. The ticket booking server obtains the corresponding target passenger trip customized ticket according to the target passenger trip identifier and returns it to the ticket data processing device.
[0101] In some embodiments, after obtaining the target passenger trip customized data, the ticket data processing device may send a customized data update request to the ticket booking server when a preset condition is met to update the target passenger trip customized data. Since new users may make reservations for tickets while the vehicle is traveling, a customized data update request may be sent to the ticket booking server under preset conditions, such as every preset time, every preset distance, or every preset number of stops.
[0102] Step S404, obtaining the ticket identification to be verified corresponding to the ticket data.
[0103] Specifically, the ticket identifier to be verified is the identifier of the ticket to be verified. The ticket to be verified can be a physical ticket or an electronic ticket. For a physical ticket such as a bus card, the ticket identifier to be verified can be the identifier of the bus card. The ticket identifier corresponding to the electronic ticket can be the identifier of the ticket generated by the ticket verification server, or it can be the user identifier corresponding to the ticket purchasing user.
[0104] Step S406, matching the ticket identifier to be verified with the customized ticket identifier set, and when the match succeeds, confirming that the itinerary verification of the ticket data has passed.
[0105] Specifically, after obtaining the ticket identifier to be verified, the ticket identifier to be verified is matched with the ticket identifier in the customized ticket identifier set. If there is a matching ticket identifier, it means that the ticket to be verified is the ticket corresponding to the target passenger itinerary, and the ticket data itinerary verification is passed.
[0106] In some embodiments, the validity of the ticket to be verified can also be determined in combination with other methods. In some embodiments, when the ticket identifier to be verified successfully matches the customized ticket identifier set, it can be further verified whether the ticket identifier to be verified has been reused and whether it is an invalid ticket identifier. For example, if the ticket identifier to be verified exists in the customized ticket identifier set and has not been used, then the ticket is valid, and the ticket data processing device records that the ticket identifier to be verified is used. When the ticket identifier to be verified exists in the customized ticket identifier set but has been used, the verification of the ticket identifier to be verified fails, and the ticket data processing device can issue a prompt message indicating that the ticket to be verified is reused. When the ticket identifier to be verified exists in the customized ticket identifier set but is marked as invalid, for example, the ticket to be verified is a ticket that has been refunded after the reservation, then the verification of the ticket identifier to be verified fails, and a prompt message indicating that the ticket to be verified is invalid can be issued.
[0107] In some embodiments, an electronic ticket, such as a QR code corresponding to a customized itinerary, may carry an itinerary identifier corresponding to the customized itinerary. The ticket data processing device may match the itinerary identifier carried by the electronic ticket with the target passenger itinerary identifier in the target passenger service information. If the match is successful, the electronic ticket is confirmed to be the ticket corresponding to the corresponding target passenger itinerary.
[0108] In some embodiments, when the itinerary identifier carried by the electronic ticket successfully matches the target passenger itinerary identifier in the target passenger service information, and the ticket identifier to be verified does not exist in the customized ticket identifier set, the verification result of the ticket to be verified can be passed, and the ticket data processing device can store the ticket identifier to be verified as a verified ticket identifier. In this way, in the case where the ticket data processing device fails to obtain the customized data of the target passenger itinerary in a timely manner, for example, when the ticket data processing device fails to connect to the ticket verification server to obtain the customized data of the target passenger itinerary due to a network anomaly or the customized data of the target passenger itinerary is not updated in a timely manner, the ticket to be verified can also be verified, and storing the ticket identifier to be verified as a verified ticket identifier can also prevent the ticket to be verified from being reused thereafter.
[0109] In some embodiments, Figure 5 As shown, the bill data processing method may further include the following steps:
[0110] Step S502: When the current ticket verification mode is the customized ticket verification mode, a ticket verification mode switching operation is received through a preset button on the ticket data processing device.
[0111] Step S504, according to the ticket checking mode switching operation, the current ticket checking mode is changed to the preset non-customized ticket checking mode.
[0112] Specifically, a preset button is provided on the ticket data processing device, which may be a physical button such as a push button, or a touch button displayed on the screen of the ticket verification card machine. The preset button is used to switch the ticket verification mode to the non-customized ticket verification mode. The non-customized ticket verification mode is preset. When the current ticket verification mode is the customized ticket verification mode, if a touch operation on the preset button is received, the touch operation is used as a ticket verification mode switching operation, and the current ticket verification mode is switched to the preset non-customized ticket verification mode. In the embodiment of the present invention, when a bus takes a non-customized route, it generally has a fixed fare and verification process. Therefore, the specific verification process of the non-customized ticket verification mode and the data to be verified can be preset on the ticket data processing device, that is, the non-customized ticket verification mode is preset, and the passenger service information switching code is used to switch the ticket verification mode to the customized ticket verification mode. In this way, when processing the customized ticket data to the non-customized ticket verification mode, the user can operate the ticket verification mode switching button on the ticket data processing device, such as pressing the operation, so that the ticket data processing device switches the customized ticket verification mode to the non-customized ticket verification mode. In this way, when switching the customized ticket verification method to the non-customized ticket verification method, the operation is convenient. When switching the non-customized ticket verification method to the customized ticket verification method, since there are more non-customized routes, the target passenger itinerary customization data corresponding to different routes are different. Therefore, the passenger service information switching code can be used to obtain the corresponding target passenger service information in time according to the changes in the itinerary.
[0113] like Figure 6 As shown, in some embodiments, a bill data processing method is proposed. This embodiment mainly applies this method to the above Figure 1 The passenger service adjustment server 110 is used as an example to illustrate. Specifically, the following steps may be included:
[0114] Step S602: receiving a service information acquisition request sent by the first terminal.
[0115] Specifically, when it is necessary to obtain passenger service information, for example, when a driver goes to work and needs to obtain his driving itinerary for the day, a passenger service information acquisition request can be sent to the passenger service adjustment server through the first terminal. The passenger service information acquisition request can carry the vehicle control user identifier, and the first terminal is the terminal corresponding to the vehicle control user.
[0116] Step S604: acquiring target service information corresponding to the first terminal, where the target service information is used to generate a service information switching code.
[0117] Specifically, the passenger service adjustment server obtains the target passenger service information corresponding to the first terminal. For example, the passenger service adjustment server stores the correspondence between the vehicle control user identifier and the passenger service information, and the passenger service adjustment server uses the passenger service information corresponding to the vehicle control user identifier as the target passenger service information corresponding to the first terminal. The trip data corresponding to the vehicle control user identifier in the passenger service adjustment server can be input by the user through the dispatch terminal. For example, the staff of the bus dispatch center can input the vehicle control user identifier and the corresponding target passenger service information through the corresponding dispatch terminal and send them to the passenger service adjustment server.
[0118] Step S606, returns the target business information to the first terminal so that the first terminal displays the business information switching code. The business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information. When the ticket data is identified, the ticket data is processed according to the target business information.
[0119] Specifically, the passenger service information switching code may be generated by the passenger service adjustment server, and the target passenger service information is carried in the passenger service information switching code and sent to the first terminal. Alternatively, the passenger service information switching code may be generated by the first terminal according to the target passenger service information. The composition and generation process of the passenger service information switching code may refer to the description in other embodiments of the present invention, and the embodiments of the present invention will not be repeated here.
[0120] In some embodiments, the passenger service adjustment server may also use a private key to sign the target passenger service information to obtain passenger service information signature data, and return the passenger service information signature data and the target passenger service information to the first terminal.
[0121] like Figure 7 As shown, it is a timing diagram of the ticket data processing system in some embodiments executing the ticket data processing method, and the ticket data processing system includes a ticket data processing device, a first terminal, and a passenger service adjustment server. The passenger service adjustment server can push the target passenger service information corresponding to the vehicle control user corresponding to the first terminal to the first terminal, and the first terminal saves the target passenger service information. When receiving the passenger service information switching code opening instruction from the vehicle control personnel, the first terminal generates and displays the passenger service information switching code according to the target passenger service information, and the ticket data processing device scans the passenger service information switching code. And verify whether the passenger service information switching code is a legal QR code, and the verification process is as follows: the ticket data processing device can read the protocol header of the passenger service information switching code, and identify whether it is a passenger service information switching code according to the type identifier of the protocol header. If so, the passenger service information signature data is extracted from the passenger service information switching code, and the signature is verified with the pre-stored public key. When the passenger service information signature data is verified, the validity period of the passenger service information switching code can be verified. If the passenger service information switching code is within the validity period, the validity data signature is continued to be verified. If the verification is successful, the target passenger service information can be extracted from the passenger service information switching code and saved, and the trip data switching success can be prompted by sound or light.
[0122] like Figure 8 As shown, in some embodiments, a bill data processing device is provided, which can be integrated into the above-mentioned bill data processing equipment 130, and specifically can include an information identification code scanning module 802, a target business information parsing module 804, a switching module 806 and a processing module 808.
[0123] The information identification code scanning module 802 is used to scan the information identification code displayed by the first terminal.
[0124] The target service information parsing module 804 is used to parse the information identification code to obtain the target service information when the information identification code is confirmed to be a service information switching code.
[0125] The switching module 806 is used to switch the current service information to the target service information.
[0126] The processing module 808 is used to process the ticket data according to the target business information when the ticket data is identified.
[0127] In some embodiments, the target business information includes target passenger itinerary information, and the target business information parsing module 804 is used to: when the confirmation information identification code is a passenger business information switching code, parse the target passenger itinerary information from the information identification code; the processing module is used to: perform itinerary verification on the ticket data according to the target passenger itinerary information.
[0128] In some embodiments, the target passenger itinerary information includes a target passenger itinerary identifier, and the processing module 808 is used to: obtain the corresponding target passenger itinerary customized data according to the target passenger itinerary identifier, the target passenger itinerary customized data includes a customized ticket identifier set; obtain the ticket identifier to be verified corresponding to the ticket data; match the ticket identifier to be verified with the customized ticket identifier set, and when the match is successful, confirm that the itinerary verification of the ticket data has passed.
[0129] In some embodiments, the target business information includes target passenger fare data, the ticket data includes a ticket identification, and the target business information parsing module 804 is used to: when the confirmation information identification code is a passenger business information switching code, obtain the target passenger fare data according to the target business information parsing; the processing module 808 is used to: deduct fees from the user account corresponding to the ticket identification according to the target passenger fare data.
[0130] In some embodiments, the step of generating the service information switching code includes: receiving a passenger service information switching code acquisition instruction; acquiring the corresponding passenger service information switching code according to the passenger service information switching code acquisition instruction, and the passenger service information switching code carries the target passenger service information corresponding to the vehicle control user identifier.
[0131] In some embodiments, the device also includes: a signature data extraction module, used to extract validity verification signature data from the information identification code, the validity verification signature data is encrypted by the passenger service adjustment server using the first key; a signature authentication module, used to perform signature authentication on the signature data according to the pre-stored first key to obtain an authentication result; a stop module, used to stop switching of the target passenger service information when the authentication result is failed.
[0132] like Fig. 9 As shown, in some embodiments, a bill data processing device is provided, which can be integrated into the above-mentioned first terminal 110, and can specifically include a switching code acquisition instruction receiving module 902, a switching code acquisition module 904 and a display module 906.
[0133] The switching code acquisition instruction receiving module 902 is used to receive a service information switching code acquisition instruction.
[0134] The switching code acquisition module 904 is used to acquire the corresponding business information switching code according to the business information switching code acquisition instruction, and the business information switching code carries the target business information.
[0135] Display module 906 is used to display the business information switching code. The business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information. When the ticket data is identified, the ticket data is processed according to the target business information.
[0136] In some embodiments, the target business information includes target passenger itinerary information, and the target passenger itinerary information is used to instruct the ticket data processing device to perform itinerary verification on the ride ticket data according to the target passenger itinerary information.
[0137] In some embodiments, the step of acquiring the target business information includes: acquiring a vehicle control user identifier; sending a passenger business information acquisition request to a passenger business adjustment server, the passenger business information acquisition request carrying the vehicle control user identifier, so that the passenger business adjustment server acquires the corresponding target business information according to the vehicle control user identifier; and receiving the target business information returned by the passenger business adjustment server.
[0138] like Fig.10 As shown, in some embodiments, a ticket data processing device is provided, which can be integrated into the above-mentioned passenger service adjustment server 120, and specifically can include an information acquisition request receiving module 1002, a service information acquisition module 1004 and a return module 1006.
[0139] The information acquisition request receiving module 1002 is used to receive a service information acquisition request sent by the first terminal.
[0140] The business information acquisition module 1004 is used to obtain the target business information corresponding to the first terminal, and the target business information is used to generate a business information switching code.
[0141] Return module 1006 is used to return the target business information to the first terminal so that the first terminal displays the business information switching code. The business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information. When the ticket data is identified, the ticket data is processed according to the target business information.
[0142] Fig.11 The internal structure diagram of the computer device in some embodiments is shown. The computer device can be specifically Figure 1 The first terminal 110 or the ticket data processing device 130 in FIG. Fig.11As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the bill data processing method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the bill data processing method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0143] Fig.12 The internal structure diagram of the computer device in some embodiments is shown. The computer device can be specifically Figure 1 The passenger service adjustment server 120. Fig.12 As shown, the computer device includes a processor, a memory, and a network interface connected through a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the bill data processing method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may execute the bill data processing method.
[0144] Those skilled in the art will understand that Fig.11 The structure shown in 12 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0145] In some embodiments, the bill data processing device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.11 The computer device shown in the figure is run on the computer device. The memory of the computer device can store various program modules constituting the bill data processing device, such as: Figure 8 The information identification code scanning module 802, the target business information parsing module 804, the switching module 806 and the processing module 808 are shown. Fig. 9The switching code acquisition instruction receiving module 902, the switching code acquisition module 904 and the display module 906 are shown. The computer program composed of various program modules enables the processor to execute the steps of the bill data processing method of each embodiment of the present application described in this specification.
[0146] For example, Fig.11 The computer device shown can be Figure 8 The information identification code scanning module 802 in the ticket data processing device shown scans the information identification code displayed on the first terminal. When the information identification code is confirmed to be a business information switching code by the target business information parsing module 804, the target business information is obtained by parsing the information identification code. The current business information is switched to the target business information by the switching module 806. When the ticket data is identified and obtained by the processing module 808, the ticket data is processed according to the target passenger business information.
[0147] In some embodiments, the bill data processing device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.12 The computer device shown in the figure is run on the computer device. The memory of the computer device can store various program modules constituting the bill data processing device, such as: Fig.10 The information acquisition request receiving module 1002, the business information acquisition module 1004 and the return module 1006 are shown. The computer program composed of various program modules enables the processor to execute the steps of the bill data processing method of each embodiment of the present application described in this specification.
[0148] In some embodiments, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned bill data processing method. The steps of the bill data processing method here may be the steps of the bill data processing method in the above-mentioned various embodiments.
[0149] In some embodiments, a computer readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned bill data processing method. The steps of the bill data processing method here can be the steps of the bill data processing method in the above-mentioned various embodiments.
[0150] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0152] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A bill data processing method, applied to a bill data processing device, the method include: Scan the information identification code displayed on the first terminal; When it is confirmed that the information identification code is a service information switching code, the target service information is obtained by parsing the information identification code, wherein the service information switching code is used to switch the service information, and the service information switching code is one of the information identification codes; Switching the current service information to the target service information, where the target service information includes target passenger service information corresponding to the customized itinerary type and target passenger service information corresponding to the non-customized itinerary type; When the ticket data is identified, the ticket data is processed according to the target business information, including: if the target passenger business information is the passenger business information corresponding to a customized itinerary, the current ticket verification method is set to the customized ticket verification method, and the ticket data is processed according to the customized ticket verification method; if the target passenger business information is the passenger business information corresponding to a non-customized itinerary, the current ticket verification method is set to the non-customized ticket verification method, and the ticket data is processed according to the non-customized ticket verification method.
2. The method according to claim 1, It is characterized in that The target service information includes target passenger travel itinerary information, and when it is confirmed that the information identification code is a service information switching code, the target service information obtained by parsing the information identification code includes: When it is confirmed that the information identification code is a passenger service information switching code, the target passenger itinerary information is obtained by parsing the information identification code; The processing of the ticket data according to the target business information includes: The travel ticket data is verified according to the target passenger travel itinerary information.
3. The method according to claim 2, It is characterized in that The target passenger travel itinerary information includes a target passenger travel itinerary identifier, and performing itinerary verification on the ticket data according to the target passenger travel itinerary information includes: Acquire corresponding target passenger travel itinerary customization data according to the target passenger travel itinerary identifier, wherein the target passenger travel itinerary customization data includes a customized ticket identifier set; Get the ticket ID to be verified corresponding to the ticket data; The to-be-verified ticket identifier is matched with the customized ticket identifier set, and when the match is successful, it is confirmed that the itinerary verification of the ride ticket data has been passed.
4. The method according to claim 1, It is characterized in that The target business information includes target passenger fare data, the ticket data includes a ticket identifier, and when the information identification code is confirmed to be a business information switching code, the target business information obtained by parsing the information identification code includes: When it is confirmed that the information identification code is a passenger service information switching code, the target passenger fare data is obtained according to the target service information parsing; The processing of the ticket data according to the target business information includes: The user account corresponding to the ticket identifier is deducted according to the target passenger fare data.
5. The method according to claim 1, It is characterized in that The step of generating the service information switching code includes: The first terminal receives a passenger service information switching code acquisition instruction; The first terminal obtains the corresponding passenger service information switching code according to the passenger service information switching code obtaining instruction, and the passenger service information switching code carries the target passenger service information corresponding to the vehicle control user identifier.
6. The method according to claim 1, It is characterized in that The method further comprises: Extracting validity verification signature data from the information identification code, wherein the validity verification signature data is encrypted by the passenger service adjustment server using the first key; Performing signature authentication on the signature data according to a pre-stored first key to obtain an authentication result; When the authentication result is failure, the switching of the target service information is stopped.
7. A bill data processing method, applied to a terminal, the method include: Receive a business information switching code acquisition instruction; Acquire a corresponding business information switching code according to the business information switching code acquisition instruction, wherein the business information switching code carries target business information, is used to switch business information, and is a type of information identification code; The business information switching code is displayed, and the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information, the target business information includes the target passenger business information corresponding to the customized itinerary type and the target passenger business information corresponding to the non-customized itinerary type. When the ticket data is identified, the ticket data is processed according to the target business information, including: if the target passenger business information is the passenger business information corresponding to the customized itinerary, the current ticket verification mode is set to the customized ticket verification mode, and the ticket data is processed according to the customized ticket verification mode; if the target passenger business information is the passenger business information corresponding to the non-customized itinerary, the current ticket verification mode is set to the non-customized ticket verification mode, and the ticket data is processed according to the non-customized ticket verification mode.
8. The method according to claim 7, It is characterized in that The target business information includes target passenger travel itinerary information, and the target passenger travel itinerary information is used to instruct the ticket data processing device to perform itinerary verification on the ticket data according to the target passenger travel itinerary information.
9. The method according to claim 7, It is characterized in that The step of acquiring the target business information includes: Get the vehicle control user ID; Sending a service information acquisition request to a passenger transport service adjustment server, wherein the service information acquisition request carries the vehicle control user identifier, so that the passenger transport service adjustment server acquires corresponding target service information according to the vehicle control user identifier; Receive the target service information returned by the passenger service adjustment server.
10. A ticket data processing method, applied to a passenger transport business adjustment server, the method include: Receiving a service information acquisition request sent by the first terminal; Acquire target service information corresponding to the first terminal, where the target service information is used to generate a service information switching code, where the service information switching code is used to switch service information, and the service information switching code is a type of information identification code; The target business information is returned to the first terminal so that the first terminal displays the business information switching code, wherein the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information, wherein the target business information includes target passenger business information corresponding to the customized itinerary type and target passenger business information corresponding to the non-customized itinerary type. When the ticket data is identified, the ticket data is processed according to the target business information, including: if the target passenger business information is the passenger business information corresponding to the customized itinerary, the current ticket verification mode is set to the customized ticket verification mode, and the ticket data is processed according to the customized ticket verification mode; if the target passenger business information is the passenger business information corresponding to the non-customized itinerary, the current ticket verification mode is set to the non-customized ticket verification mode, and the ticket data is processed according to the non-customized ticket verification mode.
11. A bill data processing device, applied to a bill data processing device, the device include: An information identification code scanning module, used to scan the information identification code displayed by the first terminal; a target business information parsing module, for parsing the information identification code to obtain target business information when it is confirmed that the information identification code is a business information switching code, wherein the business information switching code is used to switch the business information, and the business information switching code is one of the information identification codes; A switching module, used to switch the current service information to the target service information, where the target service information includes the target passenger service information corresponding to the customized itinerary type and the target passenger service information corresponding to the non-customized itinerary type; A processing module is used to process the ticket data according to the target business information when the ticket data is identified, including: if the target passenger business information is the passenger business information corresponding to a customized itinerary, the current ticket verification method is set to the customized ticket verification method, and the ticket data is processed according to the customized ticket verification method; if the target passenger business information is the passenger business information corresponding to a non-customized itinerary, the current ticket verification method is set to the non-customized ticket verification method, and the ticket data is processed according to the non-customized ticket verification method.
12. A bill data processing device, applied to a terminal, the device include: A switching code acquisition instruction receiving module is used to receive a business information switching code acquisition instruction; A switching code acquisition module, used to acquire a corresponding business information switching code according to the business information switching code acquisition instruction, wherein the business information switching code carries target business information, is used to switch business information, and is a type of information identification code; A display module is used to display the business information switching code, wherein the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information, wherein the target business information includes target passenger business information corresponding to the customized itinerary type and target passenger business information corresponding to the non-customized itinerary type. When the ticket data is identified, the ticket data is processed according to the target business information, including: if the target passenger business information is the passenger business information corresponding to the customized itinerary, the current ticket verification mode is set to the customized ticket verification mode, and the ticket data is processed according to the customized ticket verification mode; if the target passenger business information is the passenger business information corresponding to the non-customized itinerary, the current ticket verification mode is set to the non-customized ticket verification mode, and the ticket data is processed according to the non-customized ticket verification mode.
13. A ticket data processing device, applied to a passenger transport business adjustment server, the device include: An information acquisition request receiving module, used to receive a service information acquisition request sent by a first terminal; A service information acquisition module, used to acquire target service information corresponding to the first terminal, the target service information is used to generate a service information switching code, the service information switching code is used to switch the service information, and the service information switching code is a type of information identification code; A return module is used to return the target business information to the first terminal so that the first terminal displays the business information switching code, and the business information switching code is used to instruct the ticket data processing device to switch the current business information to the target business information. The target business information includes target passenger business information corresponding to the customized itinerary type and target passenger business information corresponding to the non-customized itinerary type. When the ticket data is identified, the ticket data is processed according to the target business information, including: if the target passenger business information is the passenger business information corresponding to the customized itinerary, the current ticket verification mode is set to the customized ticket verification mode, and the ticket data is processed according to the customized ticket verification mode; if the target passenger business information is the passenger business information corresponding to the non-customized itinerary, the current ticket verification mode is set to the non-customized ticket verification mode, and the ticket data is processed according to the non-customized ticket verification mode.
14. A computer device, It is characterized in that The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the bill data processing method according to any one of claims 1 to 10.
15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the bill data processing method according to any one of claims 1 to 10.
