WO2023142421A1 - Transaction processing methods and apparatuses, device, and storage medium - Google Patents

Transaction processing methods and apparatuses, device, and storage medium Download PDF

Info

Publication number
WO2023142421A1
WO2023142421A1 PCT/CN2022/110339 CN2022110339W WO2023142421A1 WO 2023142421 A1 WO2023142421 A1 WO 2023142421A1 CN 2022110339 W CN2022110339 W CN 2022110339W WO 2023142421 A1 WO2023142421 A1 WO 2023142421A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
ride
boarding
information
feature information
Prior art date
Application number
PCT/CN2022/110339
Other languages
French (fr)
Chinese (zh)
Inventor
刘刚
才华
Original Assignee
中国银联股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2023142421A1 publication Critical patent/WO2023142421A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the embodiments of the present invention relate to the field of computer technology, and in particular, to a transaction processing method, device, equipment, and storage medium.
  • the code scanning device only processes the ride code and obtains account information, which prevents the background system from obtaining other key transaction elements (channel identification, terminal model, etc.), thereby affecting the integrity of transaction information in the background system.
  • the embodiment of the present application provides a transaction processing method, device, device and storage medium, which are used to improve the integrity of transaction information in the background system.
  • the embodiment of the present application provides a transaction processing method applied to an intermediate server, including:
  • the ride feature information is determined by the acquirer server based on the code scanning feature information sent by at least one code scanning device, and each code scanning feature information It is obtained after the corresponding code scanning device scans the ride code displayed by the terminal device, and the target transaction content is determined by the acquiring server based on the ride feature information and the at least one ride code;
  • the target transaction record is obtained based on the terminal attribute information and the target transaction content, wherein the ride code display information and the terminal attribute information are the After the terminal device generates the at least one ride code, it is obtained and sent to the transaction server.
  • the target transaction content includes transaction account and transaction amount
  • the target transaction record After obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
  • the at least one ride code includes a target ride code
  • the ride feature information includes a target ride time
  • the ride code display information includes a display time interval of the target ride code
  • the ride code display information matches the ride feature information, before obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
  • the target boarding time is located in the display time interval of the target boarding code, it is determined that the boarding code display information matches the boarding feature information.
  • the at least one boarding code includes an incoming boarding code and an outgoing boarding code
  • the boarding feature information includes the time of entering the station and the time of exiting the boarding station
  • the display information of the boarding code includes the boarding code for entering the station The display time interval of the station boarding code and the display time interval of the outbound boarding code
  • the ride code display information matches the ride feature information, before obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
  • the entry time is within the display time interval of the entry boarding code, and the exit time is within the displaying time interval of the exiting boarding code, it is determined that the boarding code display information and The ride characteristic information matches.
  • the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
  • the ride characteristic information is determined by the acquiring server based on the code scanning characteristic information sent by at least one code scanning device, including:
  • the ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
  • the terminal attribute information includes a transaction channel identifier, a terminal model, a system version, and a ride-hailing application version.
  • an embodiment of the present application provides a transaction processing method applied to a terminal device, including:
  • Showing the at least one ride code so that at least one code scanning device scans the corresponding ride code, obtains the corresponding scan code feature information, and sends the obtained scan code feature information to the acquiring server to indicate the
  • the acquiring server determines the ride feature information based on the scan code feature information sent by the at least one scan code device, and determines the target transaction content based on the ride feature information and the at least one ride code, and sends the
  • the target transaction content and the ride characteristic information are sent to the intermediate server to instruct the intermediate server to, when determining that the ride code display information matches the ride characteristic information, based on the terminal attribute information and the ride characteristic information, Describe the target transaction content and obtain the target transaction record.
  • the at least one ride code includes a target ride code
  • the user operation includes a ride operation
  • the ride code display information includes a display time interval of the target ride code
  • the generating at least one ride code in response to at least one user operation, and obtaining the ride code display information corresponding to the at least one ride code includes:
  • a target ride code is generated, and a display time interval of the target ride code is obtained.
  • the at least one boarding code includes an inbound boarding code and an outbound boarding code
  • the user operation includes an entering operation and an outbound operation
  • the boarding code display information includes the incoming boarding code The display time interval of the bus code and the display time interval of the outbound boarding code
  • the generating at least one ride code in response to at least one user operation, and obtaining the ride code display information corresponding to the at least one ride code includes:
  • an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
  • the obtaining the display time interval of the boarding code for entering the station includes:
  • the display time interval for obtaining the outbound boarding code includes:
  • the display time interval of the exiting boarding code is determined.
  • the embodiment of the present application provides a transaction processing device applied to an intermediate server, including:
  • the first receiving module is configured to receive the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the scan code feature information sent by at least one code scanning device , each code scanning feature information is obtained after the corresponding code scanning device scans the ride code displayed by the terminal device, and the target transaction content is that the acquiring server based on the ride feature information and the at least one ride code code determined;
  • a processing module configured to obtain a target transaction record based on the terminal attribute information and the target transaction content when it is determined that the ride code display information matches the ride feature information, wherein the ride code display information and the The terminal attribute information is obtained and sent to the transaction server after the terminal device generates the at least one ride code.
  • the target transaction content includes transaction account and transaction amount
  • the first sending module is specifically used for:
  • the at least one ride code includes a target ride code
  • the ride feature information includes a target ride time
  • the ride code display information includes a display time interval of the target ride code
  • the processing module is also used to:
  • the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the target ride time is within the display of the target ride code time interval, it is determined that the ride code display information matches the ride feature information.
  • the at least one boarding code includes an incoming boarding code and an outgoing boarding code
  • the boarding feature information includes the time of entering the station and the time of exiting the boarding station
  • the display information of the boarding code includes the boarding code for entering the station The display time interval of the station boarding code and the display time interval of the outbound boarding code
  • the processing module is also used to:
  • the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the entry time is within the and the exit time is within the display time interval of the exit boarding code, then it is determined that the boarding code display information matches the boarding feature information.
  • the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
  • the ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
  • the terminal attribute information includes a transaction channel identifier, a terminal model, a system version, and a ride-hailing application version.
  • the embodiment of the present application provides a transaction processing device, which is applied to a terminal device, including:
  • An acquisition module configured to generate at least one ride code in response to at least one user operation, and obtain the ride code display information corresponding to the at least one ride code
  • the second sending module is used to send the display information of the ride code and the terminal attribute information to the intermediate server;
  • the display module is used to display the at least one boarding code, so that at least one code scanning device scans the corresponding boarding code, obtains the respective corresponding scanning code feature information, and sends the obtained scanning code feature information to the receipt
  • the server is configured to instruct the acquiring server to determine ride feature information based on the scan code feature information sent by the at least one scan code device, and to determine target transaction content based on the ride feature information and the at least one ride code , and send the target transaction content and the ride characteristic information to the intermediate server, to instruct the intermediate server to determine that the ride code display information matches the ride characteristic information, based on the
  • the terminal attribute information and the target transaction content are used to obtain the target transaction record.
  • the at least one ride code includes a target ride code
  • the user operation includes a ride operation
  • the ride code display information includes a display time interval of the target ride code
  • the acquisition module is specifically used for:
  • a target ride code is generated, and a display time interval of the target ride code is obtained.
  • the at least one boarding code includes an inbound boarding code and an outbound boarding code
  • the user operation includes an entering operation and an outbound operation
  • the boarding code display information includes the incoming boarding code The display time interval of the bus code and the display time interval of the outbound boarding code
  • the acquisition module is specifically used for:
  • an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
  • the acquisition module is specifically used for:
  • the acquisition module is specifically used for:
  • the display time interval of the exiting boarding code is determined.
  • an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above-mentioned transaction processing method when executing the program step.
  • an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the above-mentioned transaction processing method. step.
  • an embodiment of the present application provides a computer program product
  • the computer program product includes a computer program stored on a computer-readable storage medium
  • the computer program includes program instructions, and when the program instructions are executed by a computer device When, the computer device is made to execute the steps of the above transaction processing method.
  • the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server.
  • the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc.
  • FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIG. 2 is a first schematic flow diagram of a transaction processing method provided by an embodiment of the present application
  • Fig. 3a is the second schematic flow diagram of a transaction processing method provided by the embodiment of the present application.
  • Fig. 3b is a schematic flow diagram three of a transaction processing method provided by the embodiment of the present application.
  • FIG. 4 is a first structural schematic diagram of a transaction processing device provided by an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram II of a transaction processing device provided in the embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the system architecture includes at least a terminal device 101, a code scanning device 102, an acquiring server 103, an intermediate server 104, and a transaction server 105.
  • the application for terminal devices The number of 101, code scanning device 102, acquiring server 103, intermediate server 104, and transaction server 105 is not specifically limited.
  • the ride-hailing application is pre-installed in the terminal device 101, wherein the ride-hailing application is a client application, a web page application, a small program application, and the like.
  • the terminal device 101 may be a smart phone, a wearable electronic device, a smart home appliance, a smart voice interaction device, a smart vehicle-mounted device, etc., but is not limited thereto.
  • the terminal device 101 generates and displays at least one ride code in response to at least one user operation triggered in the ride application, and records the ride code display information corresponding to the at least one ride code. At the same time, the terminal device 101 can also obtain its own terminal attribute information.
  • the terminal device 101 and the intermediate server 104 may be connected directly or indirectly through wired or wireless communication.
  • the terminal device 101 sends the bus code display information and terminal attribute information to the intermediate server 104 .
  • the code scanning device 102 is an electronic device with the function of scanning the boarding code.
  • the code scanning device 102 can be installed on the vehicle as a vehicle-mounted device, for example, a boarding code scanning machine installed on a bus.
  • the code scanning device 102 can also be embedded in gates entering and exiting stations, applicable scenarios include but are not limited to subways, long-distance buses, high-speed rail, etc.
  • the number of code scanning devices 102 may be one or more.
  • At least one code-scanning device 102 generates code-scanning feature information after scanning at least one boarding code, and sends the code-scanning feature information to the acquiring server 103 .
  • the acquiring server 103 is a background server corresponding to the code scanning device 102 .
  • the code scanning device 102 and the acquiring server 103 may be connected directly or indirectly through wired or wireless communication, which is not limited in this application.
  • the acquiring server 103 determines the ride feature information based on the scan code feature information sent by at least one code scanning device, and determines the target transaction content based on the ride feature information and at least one ride code, and sends the target transaction content and ride feature information to the intermediate server 104.
  • the acquiring server 103 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud Cloud servers for basic cloud computing services such as communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
  • the intermediate server 104 determines that the received ride code display information matches the ride feature information, it obtains the target transaction record based on the terminal attribute information and the target transaction content. At the same time, the target transaction content is sent to the transaction server 105 . Based on the target transaction content, the transaction server 105 deducts the transaction amount in the corresponding transaction account, obtains the transaction result, and sends the transaction result to the terminal device 101 .
  • the intermediary server 104 and the acquiring server 103 can be directly or indirectly connected through wired or wireless communication, and the intermediary server 104 and the transaction server 105 can be directly or indirectly connected through wired or wireless communication, which is not limited in this application .
  • the intermediate server 104 and the transaction server 105 can be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network Cloud servers for basic cloud computing services such as services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
  • cloud services such as services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
  • the embodiment of the present application provides a flow of a transaction processing method, as shown in Figure 2, the flow of the method is interactively executed by a terminal device, a code scanning device, an acquiring server, and an intermediate server , including the following steps:
  • step S201 the terminal device generates at least one boarding code in response to at least one user operation, and obtains boarding code display information corresponding to the at least one boarding code.
  • the terminal device generates and displays a ride code in response to a user operation triggered in the ride application.
  • the display information of the ride code includes the display time information of the ride code.
  • the display time information can be the start display time and stop display time of the ride code, or it can be based on the start display time of the ride code and the stop of the ride code. Display moment, the determined display time interval.
  • the user operation includes the ride operation
  • the ride code display information includes the display of the target ride code time interval.
  • the terminal device generates a target ride code in response to the ride operation, and obtains a display time interval of the target ride code.
  • the display time interval of the target ride code is determined.
  • the terminal device when the user takes a bus, the terminal device generates and displays the ride code A in response to the ride operation, and records the start display time (10:00) of the ride code A and the stop display of the ride code A Time (10:02), based on the start display time of bus code A and the stop display time of bus code A, the display time interval of bus code A is determined to be (10:00-10:02).
  • At least one boarding code includes an inbound boarding code and an outbound boarding code
  • the incoming boarding code and the outbound boarding code can be It may be the same boarding code or different boarding codes.
  • User operations include inbound operations and outbound operations
  • the bus code display information includes the display time interval of the inbound bus code and the display time interval of the outbound bus code.
  • an entry boarding code is generated, and a display time interval of the incoming boarding code is obtained.
  • the initial display time of the incoming boarding code and the stop displaying time of the incoming boarding code are acquired, and then based on the initial displaying time of the incoming boarding code and the stop displaying time of the incoming boarding code, determine the The display time interval of the bus code at the station.
  • an outbound boarding code is generated, and a display time interval of the outbound boarding code is obtained.
  • the initial display time of the exit boarding code and the stop display time of the exiting boarding code are obtained, and then based on the initial display time of the exiting boarding code and the stop displaying time of the exiting boarding code, determine the The display time interval of the bus code at the station.
  • the terminal device When the user enters the station, the terminal device generates the entry code X in response to the entry operation, and records the initial display time (10:00) and the entry time of the entry code X. Stop display time of station boarding code X (10:05). Based on the start display time of the inbound bus code X and the stop display time of the inbound bus code X, the display time interval of the inbound bus code X is determined to be (10:00-10:05).
  • the terminal device When the user leaves the station, the terminal device generates the exit ride code Y in response to the exit operation, and records the start display time (10:30) of the exit ride code Y and the stop display time of the exit ride code Y (10:35). Based on the start display time of the exit boarding code Y and the stop display time of the exiting boarding code Y, the display time interval of the exiting boarding code Y is determined to be (10:30-10:35).
  • Step S202 the terminal device sends the bus code display information and terminal attribute information to the intermediate server.
  • the terminal attribute information includes the transaction channel identifier, terminal model, system version, and ride-hailing application version.
  • Step S203 the terminal device displays at least one boarding code.
  • Step S204 at least one code-scanning device scans the corresponding boarding code displayed by the terminal device to obtain the respective corresponding code-scanning feature information.
  • At least one ride code includes the target ride code
  • a code scanning device scans the target ride code displayed by the terminal device to obtain the scan code feature information, and scan the code Feature information includes information such as the target boarding time, code scanning device identification, etc.
  • At least one boarding code includes an inbound boarding code and an outbound boarding code
  • at least one code scanning device includes an incoming code scanning device and an outbound scanning code.
  • the code scanning device, the inbound code scanning device and the outbound code scanning device can be the same code scanning device or different code scanning devices.
  • the inbound code scanning device scans the inbound boarding code displayed on the terminal device to obtain the inbound code scanning feature information, wherein the inbound code scanning feature information includes the inbound time, the inbound code scanning device identification and other information.
  • the outbound code scanning device scans the outbound boarding code displayed on the terminal device to obtain outbound code scanning characteristic information, wherein the outbound code scanning characteristic information includes information such as the time of departure and the identification of the outbound code scanning device.
  • step S205 at least one code scanning device sends the acquired code scanning feature information to the acquiring server.
  • a code scanning device scans the target ride code displayed by the terminal device, obtains the code scanning characteristic information, and sends the code scanning characteristic information to the acquiring server.
  • the inbound code scanning device scans the inbound boarding code displayed on the terminal device to obtain the inbound code scanning feature information, and The information is sent to the acquiring server.
  • the outbound code scanning device scans the outbound boarding code displayed on the terminal device to obtain the outbound code scanning characteristic information, and sends the outbound scanning code characteristic information to the acquiring server.
  • step S206 the acquiring server determines ride characteristic information based on the code scanning characteristic information sent by at least one code scanning device.
  • the acquiring server receives the code scanning feature information sent by a code scanning device, and uses the scan code feature information as the ride feature information.
  • the ride feature information Including information such as target boarding time, code scanning device identification, etc.
  • the acquiring server receives the inbound code scanning feature information sent by the inbound code scanning device, and the outbound code scanning feature information sent by the outbound code scanning device, and then based on the inbound The code scanning feature information and the outbound scanning code feature information determine the ride feature information.
  • the ride feature information includes information such as inbound time, outbound time, inbound code scanning equipment identification, and outbound code scanning equipment identification.
  • step S207 the acquiring server determines the target transaction content based on the ride characteristic information and at least one ride code.
  • the target transaction content includes information such as transaction account and transaction amount, wherein the acquiring server obtains the transaction account by analyzing at least one ride code.
  • the transaction amount is a preset fixed value.
  • the riding distance is determined based on the identification of the incoming code scanning device and the outgoing code scanning device, and then the transaction amount is determined based on the riding distance.
  • step S208 the acquiring server sends the target transaction content and ride feature information to the intermediate server.
  • step S209 the intermediate server obtains the target transaction record based on the terminal attribute information and the target transaction content when determining that the ride code display information matches the ride feature information.
  • the terminal attribute information is combined with the target transaction content to obtain the target transaction record.
  • the target transaction records include information such as transaction channel identification, terminal model, system version, ride-hailing application version, transaction account, and transaction amount.
  • ride code display information does not match the ride feature information, it means that the current transaction may be abnormal, and the processing ends.
  • the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server.
  • the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc.
  • the intermediate server sends the target transaction content to the transaction server, and the transaction server deducts the transaction amount from the transaction account, obtains the transaction result, and sends the transaction result to the terminal equipment.
  • the transaction server sends the transaction result to the terminal device step by step through the intermediate server, the acquiring server, and the code scanning device.
  • the terminal device can display transaction results on the display interface.
  • the embodiment of the present application provides at least the following two implementations to determine whether the ride code display information matches the ride feature information:
  • the ride feature information includes the target ride time
  • the ride code display information includes the display time interval of the target ride code. If the target boarding time is within the display time interval of the target boarding code, it is determined that the boarding code display information matches the boarding feature information.
  • the display time interval of the bus code A received by the intermediate server is (10:00-10:02).
  • the target boarding time received by the intermediate server is (10:01). Since the target boarding time is within the display time interval of the boarding code A, it is determined that the boarding code display information matches the boarding feature information.
  • the ride feature information includes the time of entry and exit
  • the display information of the boarding code includes the display time interval of the incoming boarding code and the displaying time interval of the exiting boarding code. If the inbound time is within the display time interval of the inbound boarding code, and the outbound time is within the displaying time interval of the outbound boarding code, it is determined that the boarding code display information matches the boarding feature information.
  • the display time interval of the incoming boarding code X received by the intermediate server is (10:00-10:05), and the displaying time interval of the outgoing boarding code Y is (10:30-10:05). 10:35).
  • the arrival time is 10:02, and the departure time is 10:32. Since the inbound time is within the display time interval of the inbound boarding code X, and the outbound time is within the displaying time interval of the outbound boarding code Y, it is determined that the boarding code display information matches the boarding feature information.
  • the intermediate server simultaneously obtains the ride code display information sent by the terminal device and the ride feature information sent by the acquiring server, and then determines whether the verification transaction is normal based on the ride code display information and ride feature information.
  • the target transaction record is obtained based on the terminal attribute information and the target transaction content, thereby improving the accuracy and completeness of the target transaction record.
  • a transaction processing method provided by the embodiment of the present application is introduced below in conjunction with the subway ride scene, as shown in Figure 3a and Figure 3b, the process of the method consists of terminal equipment, code scanning equipment, receiving
  • the interactive execution of single server, intermediate server and transaction server includes the following steps:
  • step S301 the terminal device generates a boarding code for entering a station in response to an entering operation triggered in a ride-hailing application.
  • step S302 the terminal device records the display information of the boarding code corresponding to the boarding code for entering the station.
  • the boarding code display information corresponding to the boarding code at the station includes the display time interval of the boarding code at the station, the operation time of the boarding code at the station, and the like.
  • Step S303 the terminal device sends the bus code display information and terminal attribute information to the intermediate server.
  • the terminal attribute information includes transaction channel identification, terminal model, system version, and ride-hailing application version.
  • Step S304 the terminal device displays the boarding code for entering the station.
  • step S305 the inbound code scanning device scans the inbound boarding code to obtain the code scanning feature information corresponding to the incoming boarding code.
  • the code-scanning device for entering the station is embedded in the subway gate, and the code-scanning feature information corresponding to the boarding code for entering the station includes information such as the time of entering the station and the identification of the code-scanning device for entering the station.
  • Step S306 the inbound code scanning device sends the code scanning feature information corresponding to the inbound boarding code to the acquiring server.
  • the inbound code scanning device destroys the inbound boarding code obtained by scanning.
  • Step S307 the terminal device generates an outbound boarding code in response to the outbound operation triggered in the boarding application.
  • step S308 the terminal device records the boarding code display information corresponding to the outbound boarding code.
  • the boarding code display information corresponding to the boarding code at the station includes the display time interval of the boarding code at the station, the operation time of the boarding code at the station, and the like.
  • Step S309 the terminal device sends the bus code display information and terminal attribute information to the intermediate server.
  • Step S310 the terminal device displays the exit boarding code.
  • Step S311 the outbound code scanning device scans the outbound boarding code to obtain the code scanning feature information corresponding to the outbound boarding code.
  • the outbound code-scanning device is embedded in the subway gate, and the code-scanning feature information corresponding to the outbound boarding code includes information such as the time of departure, the identification of the outbound code-scanning device, etc.
  • Step S312 the outbound code scanning device sends the code scanning feature information corresponding to the outbound boarding code to the acquiring server.
  • the outbound code scanning device destroys the outbound boarding code obtained by scanning.
  • step S313 the acquiring server determines ride characteristic information based on the code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning device.
  • the ride characteristic information includes information such as the time of entering the station, the time of exiting the station, the identification of the scanning code device for entering the station, and the identification of the scanning device for exiting the station.
  • step S314 the acquiring server determines the target transaction content based on the ride characteristic information, the inbound and outbound ride codes.
  • the target transaction content includes transaction account, transaction amount, transaction time and other information
  • the acquiring server obtains the transaction account and transaction time by analyzing the inbound and outbound boarding codes. Based on the ID of the inbound code scanning device and the ID of the outbound code scanning device, the travel distance is determined, and then the transaction amount is determined based on the travel distance.
  • step S315 the acquiring server sends the target transaction content and ride characteristic information to the intermediate server.
  • step S316 the intermediate server obtains the target transaction record based on the terminal attribute information and the target transaction content when determining that the ride code display information matches the ride feature information.
  • the target transaction records include information such as transaction channel identification, terminal model, system version, ride-hailing application version, transaction account, and transaction amount.
  • Step S317 the intermediate server sends the target transaction content to the transaction server.
  • step S318 the transaction server deducts the transaction amount from the transaction account to obtain the transaction result.
  • Step S319 the transaction server sends the transaction result to the terminal device.
  • the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server.
  • the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, the key transaction elements in the target transaction records are more complete, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc., and also conducive to subsequent refined operation and maintenance.
  • the embodiment of this application provides a schematic structural diagram of a transaction processing device, which is applied to an intermediate server.
  • the transaction processing device 400 includes:
  • the first receiving module 401 is configured to receive the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the scan code feature information sent by at least one code scanning device Each code-scanning feature information is obtained after the corresponding code-scanning device scans the ride code displayed by the terminal device.
  • the car code is determined;
  • the processing module 402 is configured to obtain a target transaction record based on the terminal attribute information and the target transaction content when it is determined that the ride code display information matches the ride feature information, wherein the ride code display information and the The terminal attribute information is obtained and sent to the transaction server after the terminal device generates the at least one ride code.
  • a first sending module 403 is also included; the target transaction content includes transaction account and transaction amount;
  • the first sending module 403 is specifically used for:
  • the at least one ride code includes a target ride code
  • the ride feature information includes a target ride time
  • the ride code display information includes a display time interval of the target ride code
  • the processing module 402 is also used for:
  • the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the target ride time is within the display of the target ride code time interval, it is determined that the ride code display information matches the ride feature information.
  • the at least one boarding code includes an incoming boarding code and an outgoing boarding code
  • the boarding feature information includes the time of entering the station and the time of exiting the boarding station
  • the display information of the boarding code includes the boarding code for entering the station The display time interval of the station boarding code and the display time interval of the outbound boarding code
  • the processing module 402 is also used for:
  • the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the entry time is within the and the exit time is within the display time interval of the exit boarding code, then it is determined that the boarding code display information matches the boarding feature information.
  • the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
  • the ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
  • the terminal attribute information includes a transaction channel identifier, a terminal model, a system version, and a ride-hailing application version.
  • the embodiment of the present application provides a schematic structural diagram of a transaction processing device, which is applied to a terminal device.
  • the transaction processing device 500 includes:
  • An acquisition module 501 configured to generate at least one boarding code in response to at least one user operation, and obtain boarding code display information corresponding to the at least one boarding code;
  • the second sending module 502 is configured to send the ride code display information and terminal attribute information to an intermediate server;
  • the display module 503 is used to display the at least one boarding code, so that at least one code scanning device scans the corresponding boarding code, obtains the corresponding scanning code feature information, and sends the obtained scanning code feature information to the receiver respectively.
  • a single server to instruct the acquiring server to determine ride feature information based on the scan code feature information sent by the at least one scan code device, and to determine the target transaction based on the ride feature information and the at least one ride code content, and send the target transaction content and the ride characteristic information to the intermediate server to instruct the intermediate server to
  • the terminal attribute information and the target transaction content are used to obtain the target transaction record.
  • the at least one ride code includes a target ride code
  • the user operation includes a ride operation
  • the ride code display information includes a display time interval of the target ride code
  • the acquiring module 501 is specifically used for:
  • a target ride code is generated, and a display time interval of the target ride code is obtained.
  • the at least one boarding code includes an inbound boarding code and an outbound boarding code
  • the user operation includes an entering operation and an outbound operation
  • the boarding code display information includes the incoming boarding code The display time interval of the bus code and the display time interval of the outbound boarding code
  • the acquiring module 501 is specifically used for:
  • an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
  • the acquiring module 501 is specifically configured to:
  • the acquiring module 501 is specifically used for:
  • the display time interval of the exiting boarding code is determined.
  • the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server.
  • the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc.
  • the embodiment of the present application provides a computer device, which can be any one or more of the terminal device, code scanning device, receipt server, and intermediate server shown in Figure 1, such as As shown in FIG. 6, it includes at least one processor 601 and a memory 602 connected to at least one processor.
  • the embodiment of the present application does not limit the specific connection medium between the processor 601 and the memory 602.
  • the processor 601 and The memory 602 is connected through a bus as an example.
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the memory 602 stores instructions executable by at least one processor 601, and at least one processor 601 can execute the steps of the above alarm event classification method by executing the instructions stored in the memory 602.
  • the processor 601 is the control center of the computer equipment, which can use various interfaces and lines to connect various parts of the computer equipment, and realize the alarm by running or executing the instructions stored in the memory 602 and calling the data stored in the memory 602. Event classification.
  • the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor.
  • the tuner processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 601 .
  • the processor 601 and the memory 602 can be implemented on the same chip, and in some embodiments, they can also be implemented on independent chips.
  • the processor 601 can be a general processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the memory 602 can be used to store non-volatile software programs, non-volatile computer-executable programs and modules.
  • Memory 602 may include at least one type of storage medium, for example, may include flash memory, hard disk, multimedia card, card memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk , CD, etc.
  • Memory 602 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer device.
  • the memory 602 in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, and is used for storing program instructions and/or data.
  • an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program runs on the computer device, the computer device executes the steps of the above-mentioned transaction processing method.
  • an embodiment of the present application provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by the computer When the device is executed, the computer device is made to execute the steps of the above-mentioned transaction processing method.
  • the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Train Traffic Observation, Control, And Security (AREA)
  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Traffic Control Systems (AREA)

Abstract

Provided in the embodiments of the present application are transaction processing methods and apparatuses, a device, and a storage medium, relating to the technical field of computers. A method comprises: a terminal device generates a ride QR code and acquires ride QR code display information and terminal attribute information, and sends to an intermediate server the ride QR code display information and the terminal attribute information; a code scanning device scans the ride QR code to acquire code scanning feature information, and sends to an acquiring server the code scanning feature information; the acquiring server determines ride feature information on the basis of the acquired code scanning feature information, determines target transaction content on the basis of the ride feature information and the ride QR code, and then sends to the intermediate server the target transaction content and the ride feature information; and when determining that the ride QR code display information is matched with the ride feature information, the intermediate server acquires a target transaction record on the basis of the terminal attribute information and the target transaction content. Therefore, the data granularity of an acquired target transaction record is finer and more specific, and information coverage is more complete and more accurate.

Description

一种交易处理方法、装置、设备及存储介质A transaction processing method, device, equipment and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求在2022年01月29日提交中国专利局、申请号为202210110507.7、申请名称为“一种交易处理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202210110507.7 and the title of "a transaction processing method, device, equipment and storage medium" submitted to the China Patent Office on January 29, 2022, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本发明实施例涉及计算机技术领域,尤其涉及一种交易处理方法、装置、设备及存储介质。The embodiments of the present invention relate to the field of computer technology, and in particular, to a transaction processing method, device, equipment, and storage medium.
背景技术Background technique
随着互联网移动支付的快速发展,越来越多的城市公共交通行业支持用户使用乘车码的方式进行乘车。比如,通过终端设备(手机、智能手表、手环、儿童电话手表等)生成的乘车码,通过地铁闸机上的扫码设备扫描乘车码后,用户可乘坐地铁。With the rapid development of Internet mobile payment, more and more urban public transport industries support users to use the way of ride codes to ride. For example, users can take the subway after scanning the ride code generated by terminal devices (mobile phones, smart watches, bracelets, children's phone watches, etc.) through the code scanning device on the subway gate.
移动支付和智能交通的融合,使人们的出行消费服务紧密的集合在一起,也给用户出行带来便利。然而,扫码设备作为受理终端只处理乘车码,获取账户信息,导致后台系统无法获得其他关键交易要素(渠道标识、终端型号等),进而影响后台系统中的交易信息的完整性。The integration of mobile payment and intelligent transportation makes people's travel consumption services closely integrated, and also brings convenience to users' travel. However, as an acceptance terminal, the code scanning device only processes the ride code and obtains account information, which prevents the background system from obtaining other key transaction elements (channel identification, terminal model, etc.), thereby affecting the integrity of transaction information in the background system.
发明内容Contents of the invention
本申请实施例提供了一种交易处理方法、装置、设备及存储介质,用于提高后台系统中的交易信息的完整性。The embodiment of the present application provides a transaction processing method, device, device and storage medium, which are used to improve the integrity of transaction information in the background system.
一方面,本申请实施例提供了一种交易处理方法,应用于中间服务器,包括:On the one hand, the embodiment of the present application provides a transaction processing method applied to an intermediate server, including:
接收收单服务器发送的目标交易内容和乘车特征信息,其中,所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,每个扫码特征信息是相应的扫码设备扫描终端设备展示的乘车码后获得的,所述目标交易内容是所述收单服务器基于所述乘车特征信息和所述至少一个乘车码确定的;receiving the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the code scanning feature information sent by at least one code scanning device, and each code scanning feature information It is obtained after the corresponding code scanning device scans the ride code displayed by the terminal device, and the target transaction content is determined by the acquiring server based on the ride feature information and the at least one ride code;
在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录,其中,所述乘车码展示信息和所述终端属性信息是所述终端设备生成所述至少一个乘车码后获得并发送至所述交易服务器的。When it is determined that the ride code display information matches the ride feature information, the target transaction record is obtained based on the terminal attribute information and the target transaction content, wherein the ride code display information and the terminal attribute information are the After the terminal device generates the at least one ride code, it is obtained and sent to the transaction server.
所述目标交易内容包括交易账户和交易金额;The target transaction content includes transaction account and transaction amount;
所述基于终端属性信息和所述目标交易内容,获得目标交易记录之后,还包括:After obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
将所述目标交易内容发送至交易服务器,以使所述交易服务器针对所述交易账户扣除所述交易金额,获得交易结果,并将所述交易结果发送至所述终端设备。Sending the target transaction content to a transaction server, so that the transaction server deducts the transaction amount from the transaction account, obtains a transaction result, and sends the transaction result to the terminal device.
可选地,所述至少一个乘车码包括目标乘车码,所述乘车特征信息包括目标乘车时刻,所述乘车码展示信息包括所述目标乘车码的展示时间区间;Optionally, the at least one ride code includes a target ride code, the ride feature information includes a target ride time, and the ride code display information includes a display time interval of the target ride code;
所述在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,还包括:When determining that the ride code display information matches the ride feature information, before obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
若所述目标乘车时刻位于所述目标乘车码的展示时间区间,则确定所述乘车码展示信 息与所述乘车特征信息匹配。If the target boarding time is located in the display time interval of the target boarding code, it is determined that the boarding code display information matches the boarding feature information.
可选地,所述至少一个乘车码包括进站乘车码和出站乘车码,所述乘车特征信息包括进站时刻和出站时刻,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;Optionally, the at least one boarding code includes an incoming boarding code and an outgoing boarding code, the boarding feature information includes the time of entering the station and the time of exiting the boarding station, and the display information of the boarding code includes the boarding code for entering the station The display time interval of the station boarding code and the display time interval of the outbound boarding code;
所述在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,还包括:When determining that the ride code display information matches the ride feature information, before obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
若所述进站时间位于所述进站乘车码的展示时间区间内,且所述出站时间位于所述出站乘车码的展示时间区间内,则确定所述乘车码展示信息与所述乘车特征信息匹配。If the entry time is within the display time interval of the entry boarding code, and the exit time is within the displaying time interval of the exiting boarding code, it is determined that the boarding code display information and The ride characteristic information matches.
可选地,所述至少一个扫码设备包括进站扫码设备和出站扫码设备;Optionally, the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,包括:The ride characteristic information is determined by the acquiring server based on the code scanning characteristic information sent by at least one code scanning device, including:
所述乘车特征信息是所述收单服务器基于所述进站扫码设备发送的进站扫码特征信息和所述出站扫码设备发送的出站扫码特征信息确定的。The ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
可选地,所述终端属性信息包括交易渠道标识、终端型号、系统版本以及乘车应用版本。Optionally, the terminal attribute information includes a transaction channel identifier, a terminal model, a system version, and a ride-hailing application version.
一方面,本申请实施例提供了一种交易处理方法,应用于终端设备,包括:On the one hand, an embodiment of the present application provides a transaction processing method applied to a terminal device, including:
响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息;In response to at least one user operation, generate at least one ride code, and obtain the ride code display information corresponding to the at least one ride code;
将所述乘车码展示信息和终端属性信息发送至中间服务器;Send the ride code display information and terminal attribute information to an intermediate server;
展示所述至少一个乘车码,以使至少一个扫码设备扫描相应的乘车码,获得各自对应的扫码特征信息,并分别将获得的扫码特征信息发送至收单服务器,以指示所述收单服务器基于所述至少一个扫码设备发送的扫码特征信息,确定乘车特征信息,并基于所述乘车特征信息和所述至少一个乘车码确定目标交易内容,并将所述目标交易内容和所述乘车特征信息发送至所述中间服务器,以指示所述中间服务器在确定所述乘车码展示信息与所述乘车特征信息匹配时,基于所述终端属性信息和所述目标交易内容,获得目标交易记录。Showing the at least one ride code, so that at least one code scanning device scans the corresponding ride code, obtains the corresponding scan code feature information, and sends the obtained scan code feature information to the acquiring server to indicate the The acquiring server determines the ride feature information based on the scan code feature information sent by the at least one scan code device, and determines the target transaction content based on the ride feature information and the at least one ride code, and sends the The target transaction content and the ride characteristic information are sent to the intermediate server to instruct the intermediate server to, when determining that the ride code display information matches the ride characteristic information, based on the terminal attribute information and the ride characteristic information, Describe the target transaction content and obtain the target transaction record.
可选地,所述至少一个乘车码包括目标乘车码,所述用户操作包括乘车操作,所述乘车码展示信息包括所述目标乘车码的展示时间区间;Optionally, the at least one ride code includes a target ride code, the user operation includes a ride operation, and the ride code display information includes a display time interval of the target ride code;
所述响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息,包括:The generating at least one ride code in response to at least one user operation, and obtaining the ride code display information corresponding to the at least one ride code includes:
响应于乘车操作,生成目标乘车码,并获得所述目标乘车码的展示时间区间。In response to the ride operation, a target ride code is generated, and a display time interval of the target ride code is obtained.
可选地,所述至少一个乘车码包括进站乘车码和出站乘车码,所述用户操作包括进站操作和出站操作,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;Optionally, the at least one boarding code includes an inbound boarding code and an outbound boarding code, the user operation includes an entering operation and an outbound operation, and the boarding code display information includes the incoming boarding code The display time interval of the bus code and the display time interval of the outbound boarding code;
所述响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息,包括:The generating at least one ride code in response to at least one user operation, and obtaining the ride code display information corresponding to the at least one ride code includes:
响应于进站操作,生成进站乘车码,并获得所述进站乘车码的展示时间区间;In response to the entry operation, generate an entry boarding code, and obtain the display time interval of the incoming boarding code;
响应于出站操作,生成出站乘车码,并获得所述出站乘车码的展示时间区间。In response to the exit operation, an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
可选地,所述获得所述进站乘车码的展示时间区间,包括:Optionally, the obtaining the display time interval of the boarding code for entering the station includes:
获取所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻;Obtain the start display time of the inbound bus code and the stop display time of the inbound bus code;
基于所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻,确定所述 进站乘车码的展示时间区间;Based on the initial display time of the incoming boarding code and the stop displaying moment of the incoming boarding code, determine the display time interval of the incoming boarding code;
所述获得所述出站乘车码的展示时间区间,包括:The display time interval for obtaining the outbound boarding code includes:
获取所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻;Obtain the start display time of the exit boarding code and the stop displaying time of the exiting boarding code;
基于所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻,确定所述出站乘车码的展示时间区间。Based on the start display time of the exit boarding code and the stop displaying time of the exiting boarding code, the display time interval of the exiting boarding code is determined.
一方面,本申请实施例提供了一种交易处理装置,应用于中间服务器,包括:On the one hand, the embodiment of the present application provides a transaction processing device applied to an intermediate server, including:
第一接收模块,用于接收收单服务器发送的目标交易内容和乘车特征信息,其中,所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,每个扫码特征信息是相应的扫码设备扫描终端设备展示的乘车码后获得的,所述目标交易内容是所述收单服务器基于所述乘车特征信息和所述至少一个乘车码确定的;The first receiving module is configured to receive the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the scan code feature information sent by at least one code scanning device , each code scanning feature information is obtained after the corresponding code scanning device scans the ride code displayed by the terminal device, and the target transaction content is that the acquiring server based on the ride feature information and the at least one ride code code determined;
处理模块,用于在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录,其中,所述乘车码展示信息和所述终端属性信息是所述终端设备生成所述至少一个乘车码后获得并发送至所述交易服务器的。A processing module, configured to obtain a target transaction record based on the terminal attribute information and the target transaction content when it is determined that the ride code display information matches the ride feature information, wherein the ride code display information and the The terminal attribute information is obtained and sent to the transaction server after the terminal device generates the at least one ride code.
可选地,还包括第一发送模块;所述目标交易内容包括交易账户和交易金额;Optionally, it also includes a first sending module; the target transaction content includes transaction account and transaction amount;
所述第一发送模块具体用于:The first sending module is specifically used for:
基于终端属性信息和所述目标交易内容,获得目标交易记录之后,将所述目标交易内容发送至交易服务器,以使所述交易服务器针对所述交易账户扣除所述交易金额,获得交易结果,并将所述交易结果发送至所述终端设备。Based on the terminal attribute information and the target transaction content, after obtaining the target transaction record, sending the target transaction content to the transaction server, so that the transaction server deducts the transaction amount from the transaction account to obtain a transaction result, and Send the transaction result to the terminal device.
可选地,所述至少一个乘车码包括目标乘车码,所述乘车特征信息包括目标乘车时刻,所述乘车码展示信息包括所述目标乘车码的展示时间区间;Optionally, the at least one ride code includes a target ride code, the ride feature information includes a target ride time, and the ride code display information includes a display time interval of the target ride code;
所述处理模块还用于:The processing module is also used to:
在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,若所述目标乘车时刻位于所述目标乘车码的展示时间区间,则确定所述乘车码展示信息与所述乘车特征信息匹配。When it is determined that the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the target ride time is within the display of the target ride code time interval, it is determined that the ride code display information matches the ride feature information.
可选地,所述至少一个乘车码包括进站乘车码和出站乘车码,所述乘车特征信息包括进站时刻和出站时刻,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;Optionally, the at least one boarding code includes an incoming boarding code and an outgoing boarding code, the boarding feature information includes the time of entering the station and the time of exiting the boarding station, and the display information of the boarding code includes the boarding code for entering the station The display time interval of the station boarding code and the display time interval of the outbound boarding code;
所述处理模块还用于:The processing module is also used to:
所述在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,若所述进站时间位于所述进站乘车码的展示时间区间内,且所述出站时间位于所述出站乘车码的展示时间区间内,则确定所述乘车码展示信息与所述乘车特征信息匹配。When it is determined that the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the entry time is within the and the exit time is within the display time interval of the exit boarding code, then it is determined that the boarding code display information matches the boarding feature information.
可选地,所述至少一个扫码设备包括进站扫码设备和出站扫码设备;Optionally, the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
所述乘车特征信息是所述收单服务器基于所述进站扫码设备发送的进站扫码特征信息和所述出站扫码设备发送的出站扫码特征信息确定的。The ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
可选地,所述终端属性信息包括交易渠道标识、终端型号、系统版本以及乘车应用版本。Optionally, the terminal attribute information includes a transaction channel identifier, a terminal model, a system version, and a ride-hailing application version.
一方面,本申请实施例提供了一种交易处理装置,应用于终端设备,包括:On the one hand, the embodiment of the present application provides a transaction processing device, which is applied to a terminal device, including:
获取模块,用于响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息;An acquisition module, configured to generate at least one ride code in response to at least one user operation, and obtain the ride code display information corresponding to the at least one ride code;
第二发送模块,用于将所述乘车码展示信息和终端属性信息发送至中间服务器;The second sending module is used to send the display information of the ride code and the terminal attribute information to the intermediate server;
展示模块,用于展示所述至少一个乘车码,以使至少一个扫码设备扫描相应的乘车码,获得各自对应的扫码特征信息,并分别将获得的扫码特征信息发送至收单服务器,以指示所述收单服务器基于所述至少一个扫码设备发送的扫码特征信息,确定乘车特征信息,并基于所述乘车特征信息和所述至少一个乘车码确定目标交易内容,并将所述目标交易内容和所述乘车特征信息发送至所述中间服务器,以指示所述中间服务器在确定所述乘车码展示信息与所述乘车特征信息匹配时,基于所述终端属性信息和所述目标交易内容,获得目标交易记录。The display module is used to display the at least one boarding code, so that at least one code scanning device scans the corresponding boarding code, obtains the respective corresponding scanning code feature information, and sends the obtained scanning code feature information to the receipt The server is configured to instruct the acquiring server to determine ride feature information based on the scan code feature information sent by the at least one scan code device, and to determine target transaction content based on the ride feature information and the at least one ride code , and send the target transaction content and the ride characteristic information to the intermediate server, to instruct the intermediate server to determine that the ride code display information matches the ride characteristic information, based on the The terminal attribute information and the target transaction content are used to obtain the target transaction record.
可选地,所述至少一个乘车码包括目标乘车码,所述用户操作包括乘车操作,所述乘车码展示信息包括所述目标乘车码的展示时间区间;Optionally, the at least one ride code includes a target ride code, the user operation includes a ride operation, and the ride code display information includes a display time interval of the target ride code;
所述获取模块具体用于:The acquisition module is specifically used for:
响应于乘车操作,生成目标乘车码,并获得所述目标乘车码的展示时间区间。In response to the ride operation, a target ride code is generated, and a display time interval of the target ride code is obtained.
可选地,所述至少一个乘车码包括进站乘车码和出站乘车码,所述用户操作包括进站操作和出站操作,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;Optionally, the at least one boarding code includes an inbound boarding code and an outbound boarding code, the user operation includes an entering operation and an outbound operation, and the boarding code display information includes the incoming boarding code The display time interval of the bus code and the display time interval of the outbound boarding code;
所述获取模块具体用于:The acquisition module is specifically used for:
响应于进站操作,生成进站乘车码,并获得所述进站乘车码的展示时间区间;In response to the entry operation, generate an entry boarding code, and obtain the display time interval of the incoming boarding code;
响应于出站操作,生成出站乘车码,并获得所述出站乘车码的展示时间区间。In response to the exit operation, an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
可选地,所述获取模块具体用于:Optionally, the acquisition module is specifically used for:
获取所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻;Obtain the start display time of the inbound bus code and the stop display time of the inbound bus code;
基于所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻,确定所述进站乘车码的展示时间区间;Based on the initial display time of the incoming boarding code and the stop displaying time of the incoming boarding code, determine the display time interval of the incoming boarding code;
所述获取模块具体用于:The acquisition module is specifically used for:
获取所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻;Obtain the start display time of the exit boarding code and the stop displaying time of the exiting boarding code;
基于所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻,确定所述出站乘车码的展示时间区间。Based on the start display time of the exit boarding code and the stop displaying time of the exiting boarding code, the display time interval of the exiting boarding code is determined.
一方面,本申请实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述交易处理方法的步骤。On the one hand, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above-mentioned transaction processing method when executing the program step.
一方面,本申请实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行上述交易处理方法的步骤。On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the above-mentioned transaction processing method. step.
一方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机设备执行时,使所述计算机设备执行上述交易处理方法的步骤。On the one hand, an embodiment of the present application provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer device When, the computer device is made to execute the steps of the above transaction processing method.
本申请实施例中,终端设备在生成乘车码并展示的过程中,同时获取乘车码展示信息和终端属性信息,并发送至中间服务器。中间服务器基于乘车码展示信息和乘车特征信息进行校验后,将终端属性信息补充至交易记录中,获得目标交易记录,从而使获得的目标交易记录的数据粒度更细致和具体,信息覆盖更完整准确,对于更多维度的技术分析、技术统计、技术解决方案设计等创造出可行性。In the embodiment of the present application, during the process of generating and displaying the boarding code, the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server. After the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本申请实施例提供的一种系统架构示意图;FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图2为本申请实施例提供的一种交易处理方法的流程示意图一;FIG. 2 is a first schematic flow diagram of a transaction processing method provided by an embodiment of the present application;
图3a为本申请实施例提供的一种交易处理方法的流程示意图二;Fig. 3a is the second schematic flow diagram of a transaction processing method provided by the embodiment of the present application;
图3b为本申请实施例提供的一种交易处理方法的流程示意图三;Fig. 3b is a schematic flow diagram three of a transaction processing method provided by the embodiment of the present application;
图4为本申请实施例提供的一种交易处理装置的结构示意图一;FIG. 4 is a first structural schematic diagram of a transaction processing device provided by an embodiment of the present application;
图5为本申请实施例提供的一种交易处理装置的结构示意图二;Fig. 5 is a schematic structural diagram II of a transaction processing device provided in the embodiment of the present application;
图6为本申请实施例提供的一种计算机设备的结构示意图。FIG. 6 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and beneficial effects of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
参考图1,其为本申请实施例适用的一种系统架构图,该系统架构至少包括终端设备101、扫码设备102、收单服务器103、中间服务器104、交易服务器105,本申请对终端设备101、扫码设备102、收单服务器103、中间服务器104、交易服务器105的数量不做具体限定。Referring to FIG. 1 , it is a system architecture diagram applicable to the embodiment of the present application. The system architecture includes at least a terminal device 101, a code scanning device 102, an acquiring server 103, an intermediate server 104, and a transaction server 105. The application for terminal devices The number of 101, code scanning device 102, acquiring server 103, intermediate server 104, and transaction server 105 is not specifically limited.
终端设备101中预先安装乘车应用,其中,乘车应用是客户端应用、网页版应用、小程序应用等。终端设备101可以是智能手机、可穿戴电子设备、智能家电、智能语音交互设备、智能车载设备等,但并不局限于此。终端设备101响应于在乘车应用中触发的至少一次用户操作,生成至少一个乘车码并展示,并记录至少一个乘车码对应的乘车码展示信息。同时,终端设备101还可以获得自身的终端属性信息。终端设备101与中间服务器104可以通过有线或无线通信方式进行直接或间接地连接。终端设备101将乘车码展示信息和终端属性信息发送至中间服务器104。The ride-hailing application is pre-installed in the terminal device 101, wherein the ride-hailing application is a client application, a web page application, a small program application, and the like. The terminal device 101 may be a smart phone, a wearable electronic device, a smart home appliance, a smart voice interaction device, a smart vehicle-mounted device, etc., but is not limited thereto. The terminal device 101 generates and displays at least one ride code in response to at least one user operation triggered in the ride application, and records the ride code display information corresponding to the at least one ride code. At the same time, the terminal device 101 can also obtain its own terminal attribute information. The terminal device 101 and the intermediate server 104 may be connected directly or indirectly through wired or wireless communication. The terminal device 101 sends the bus code display information and terminal attribute information to the intermediate server 104 .
扫码设备102是具备扫描乘车码功能的电子设备,扫码设备102可作为车载设备安装于车辆上,比如,公交车上安装的乘车扫码机。扫码设备102也可以嵌入在进出站的闸机中,适用的场景包括但不限于地铁、长途汽车、高铁等。扫码设备102的数量可以是一个或多个。至少一个扫码设备102分别扫描至少一个乘车码后生成扫码特征信息,并将扫码特征信息发送至收单服务器103。The code scanning device 102 is an electronic device with the function of scanning the boarding code. The code scanning device 102 can be installed on the vehicle as a vehicle-mounted device, for example, a boarding code scanning machine installed on a bus. The code scanning device 102 can also be embedded in gates entering and exiting stations, applicable scenarios include but are not limited to subways, long-distance buses, high-speed rail, etc. The number of code scanning devices 102 may be one or more. At least one code-scanning device 102 generates code-scanning feature information after scanning at least one boarding code, and sends the code-scanning feature information to the acquiring server 103 .
收单服务器103为扫码设备102对应的后台服务器。扫码设备102与收单服务器103可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。The acquiring server 103 is a background server corresponding to the code scanning device 102 . The code scanning device 102 and the acquiring server 103 may be connected directly or indirectly through wired or wireless communication, which is not limited in this application.
收单服务器103基于至少一个扫码设备发送的扫码特征信息确定乘车特征信息,并基于乘车特征信息和至少一个乘车码确定目标交易内容,并将目标交易内容和乘车特征信息发送至所述中间服务器104。收单服务器103可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络 (Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。The acquiring server 103 determines the ride feature information based on the scan code feature information sent by at least one code scanning device, and determines the target transaction content based on the ride feature information and at least one ride code, and sends the target transaction content and ride feature information to the intermediate server 104. The acquiring server 103 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud Cloud servers for basic cloud computing services such as communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
中间服务器104在确定接收的乘车码展示信息与乘车特征信息匹配时,基于终端属性信息和目标交易内容,获得目标交易记录。同时将目标交易内容发送至交易服务器105。交易服务器105基于目标交易内容,扣除相应交易账户中的交易金额,获得交易结果,并将交易结果发送至终端设备101。When the intermediate server 104 determines that the received ride code display information matches the ride feature information, it obtains the target transaction record based on the terminal attribute information and the target transaction content. At the same time, the target transaction content is sent to the transaction server 105 . Based on the target transaction content, the transaction server 105 deducts the transaction amount in the corresponding transaction account, obtains the transaction result, and sends the transaction result to the terminal device 101 .
中间服务器104与收单服务器103可以通过有线或无线通信方式进行直接或间接地连接,中间服务器104与交易服务器105可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。The intermediary server 104 and the acquiring server 103 can be directly or indirectly connected through wired or wireless communication, and the intermediary server 104 and the transaction server 105 can be directly or indirectly connected through wired or wireless communication, which is not limited in this application .
中间服务器104和交易服务器105可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。The intermediate server 104 and the transaction server 105 can be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network Cloud servers for basic cloud computing services such as services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
基于图1所示的系统架构图,本申请实施例提供了一种交易处理方法的流程,如图2所示,该方法的流程由终端设备、扫码设备、收单服务器、中间服务器交互执行,包括以下步骤:Based on the system architecture diagram shown in Figure 1, the embodiment of the present application provides a flow of a transaction processing method, as shown in Figure 2, the flow of the method is interactively executed by a terminal device, a code scanning device, an acquiring server, and an intermediate server , including the following steps:
步骤S201,终端设备响应于至少一次用户操作,生成至少一个乘车码,并获得至少一个乘车码对应的乘车码展示信息。In step S201, the terminal device generates at least one boarding code in response to at least one user operation, and obtains boarding code display information corresponding to the at least one boarding code.
具体地,终端设备响应于在乘车应用中触发的用户操作,生成乘车码并展示。乘车码展示信息包括乘车码的展示时间信息,展示时间信息可以是乘车码的起始展示时刻和停止展示时刻,也可以是基于乘车码的起始展示时刻以及乘车码的停止展示时刻,确定的展示时间区间。Specifically, the terminal device generates and displays a ride code in response to a user operation triggered in the ride application. The display information of the ride code includes the display time information of the ride code. The display time information can be the start display time and stop display time of the ride code, or it can be based on the start display time of the ride code and the stop of the ride code. Display moment, the determined display time interval.
一种可能的实施方式,当用户乘车只需要展示一次乘车码时,至少一个乘车码包括目标乘车码,用户操作包括乘车操作,乘车码展示信息包括目标乘车码的展示时间区间。终端设备响应于乘车操作,生成目标乘车码,并获得目标乘车码的展示时间区间。In a possible implementation, when the user only needs to show the ride code once, at least one ride code includes the target ride code, the user operation includes the ride operation, and the ride code display information includes the display of the target ride code time interval. The terminal device generates a target ride code in response to the ride operation, and obtains a display time interval of the target ride code.
具体地,记录目标乘车码的起始展示时刻以及目标乘车码的停止展示时刻。然后基于目标乘车码的起始展示时刻以及目标乘车码的停止展示时刻,确定目标乘车码的展示时间区间。Specifically, record the start display time of the target boarding code and the stop displaying time of the target boarding code. Then, based on the start display time of the target ride code and the stop display time of the target ride code, the display time interval of the target ride code is determined.
举例来说,用户乘坐公交车时,终端设备响应于乘车操作,生成乘车码A并展示,并记录乘车码A的起始展示时刻(10:00)以及乘车码A的停止展示时刻(10:02),基于乘车码A的起始展示时刻以及乘车码A的停止展示时刻,确定乘车码A的展示时间区间为(10:00-10:02)。For example, when the user takes a bus, the terminal device generates and displays the ride code A in response to the ride operation, and records the start display time (10:00) of the ride code A and the stop display of the ride code A Time (10:02), based on the start display time of bus code A and the stop display time of bus code A, the display time interval of bus code A is determined to be (10:00-10:02).
一种可能的实施方式,当用户乘车需要展示多次乘车码时,至少一个乘车码包括进站乘车码和出站乘车码,进站乘车码和出站乘车码可以是相同的乘车码,也可以是不同的乘车码。用户操作包括进站操作和出站操作,乘车码展示信息包括进站乘车码的展示时间区间和出站乘车码的展示时间区间。In a possible implementation, when the user needs to show multiple boarding codes when boarding a car, at least one boarding code includes an inbound boarding code and an outbound boarding code, and the incoming boarding code and the outbound boarding code can be It may be the same boarding code or different boarding codes. User operations include inbound operations and outbound operations, and the bus code display information includes the display time interval of the inbound bus code and the display time interval of the outbound bus code.
响应于进站操作,生成进站乘车码,并获得进站乘车码的展示时间区间。In response to the entry operation, an entry boarding code is generated, and a display time interval of the incoming boarding code is obtained.
具体地,获取进站乘车码的起始展示时刻以及进站乘车码的停止展示时刻,然后基于进站乘车码的起始展示时刻以及进站乘车码的停止展示时刻,确定进站乘车码的展示时间区间。Specifically, the initial display time of the incoming boarding code and the stop displaying time of the incoming boarding code are acquired, and then based on the initial displaying time of the incoming boarding code and the stop displaying time of the incoming boarding code, determine the The display time interval of the bus code at the station.
响应于出站操作,生成出站乘车码,并获得出站乘车码的展示时间区间。In response to the outbound operation, an outbound boarding code is generated, and a display time interval of the outbound boarding code is obtained.
具体地,获取出站乘车码的起始展示时刻以及出站乘车码的停止展示时刻,然后基于出站乘车码的起始展示时刻以及出站乘车码的停止展示时刻,确定出站乘车码的展示时间区间。Specifically, the initial display time of the exit boarding code and the stop display time of the exiting boarding code are obtained, and then based on the initial display time of the exiting boarding code and the stop displaying time of the exiting boarding code, determine the The display time interval of the bus code at the station.
以用户乘坐地铁场景举例来说,用户进站时,终端设备响应于进站操作,生成进站乘车码X,并记录进站乘车码X的起始展示时刻(10:00)以及进站乘车码X的停止展示时刻(10:05)。基于进站乘车码X的起始展示时刻以及进站乘车码X的停止展示时刻,确定进站乘车码X的展示时间区间为(10:00-10:05)。Take the scene where the user takes the subway as an example. When the user enters the station, the terminal device generates the entry code X in response to the entry operation, and records the initial display time (10:00) and the entry time of the entry code X. Stop display time of station boarding code X (10:05). Based on the start display time of the inbound bus code X and the stop display time of the inbound bus code X, the display time interval of the inbound bus code X is determined to be (10:00-10:05).
用户出站时,终端设备响应于出站操作,生成出站乘车码Y,并记录出站乘车码Y的起始展示时刻(10:30)以及出站乘车码Y的停止展示时刻(10:35)。基于出站乘车码Y的起始展示时刻以及出站乘车码Y的停止展示时刻,确定出站乘车码Y的展示时间区间为(10:30-10:35)。When the user leaves the station, the terminal device generates the exit ride code Y in response to the exit operation, and records the start display time (10:30) of the exit ride code Y and the stop display time of the exit ride code Y (10:35). Based on the start display time of the exit boarding code Y and the stop display time of the exiting boarding code Y, the display time interval of the exiting boarding code Y is determined to be (10:30-10:35).
步骤S202,终端设备将乘车码展示信息和终端属性信息发送至中间服务器。Step S202, the terminal device sends the bus code display information and terminal attribute information to the intermediate server.
具体地,终端属性信息包括交易渠道标识、终端型号、系统版本以及乘车应用版本等。Specifically, the terminal attribute information includes the transaction channel identifier, terminal model, system version, and ride-hailing application version.
步骤S203,终端设备展示至少一个乘车码。Step S203, the terminal device displays at least one boarding code.
步骤S204,至少一个扫码设备扫描终端设备展示的相应的乘车码,获得各自对应的扫码特征信息。Step S204, at least one code-scanning device scans the corresponding boarding code displayed by the terminal device to obtain the respective corresponding code-scanning feature information.
具体地,当用户乘车只需要展示一次乘车码时,至少一个乘车码包括目标乘车码,由一个扫码设备扫描终端设备展示的目标乘车码,获得扫码特征信息,扫码特征信息包括目标乘车时刻、扫码设备标识等信息。Specifically, when the user only needs to show the ride code once to ride a car, at least one ride code includes the target ride code, and a code scanning device scans the target ride code displayed by the terminal device to obtain the scan code feature information, and scan the code Feature information includes information such as the target boarding time, code scanning device identification, etc.
当用户乘车需要展示多次乘车码时,即至少一个乘车码包括进站乘车码和出站乘车码,相应地,至少一个扫码设备包括进站扫码设备和出站扫码设备,进站扫码设备和出站扫码设备可以是同一个扫码设备,也可以是不同的扫码设备。When the user needs to display multiple boarding codes when riding a car, that is, at least one boarding code includes an inbound boarding code and an outbound boarding code, and correspondingly, at least one code scanning device includes an incoming code scanning device and an outbound scanning code. The code scanning device, the inbound code scanning device and the outbound code scanning device can be the same code scanning device or different code scanning devices.
进站扫码设备扫描终端设备展示的进站乘车码,获得进站扫码特征信息,其中,进站扫码特征信息包括进站时刻、进站扫码设备标识等信息。The inbound code scanning device scans the inbound boarding code displayed on the terminal device to obtain the inbound code scanning feature information, wherein the inbound code scanning feature information includes the inbound time, the inbound code scanning device identification and other information.
出站扫码设备扫描终端设备展示的出站乘车码,获得出站扫码特征信息,其中,出站扫码特征信息包括出站时刻、出站扫码设备标识等信息。The outbound code scanning device scans the outbound boarding code displayed on the terminal device to obtain outbound code scanning characteristic information, wherein the outbound code scanning characteristic information includes information such as the time of departure and the identification of the outbound code scanning device.
步骤S205,至少一个扫码设备分别将获得的扫码特征信息,发送至收单服务器。In step S205, at least one code scanning device sends the acquired code scanning feature information to the acquiring server.
具体地,当用户乘车只需要展示一次乘车码时,一个扫码设备扫描终端设备展示的目标乘车码,获得扫码特征信息后,将扫码特征信息发送至收单服务器。Specifically, when the user only needs to show the ride code once to ride a car, a code scanning device scans the target ride code displayed by the terminal device, obtains the code scanning characteristic information, and sends the code scanning characteristic information to the acquiring server.
当用户乘车需要展示进站乘车码和出站乘车码时,进站扫码设备扫描终端设备展示的进站乘车码,获得进站扫码特征信息,并将进站扫码特征信息发送至收单服务器。出站扫码设备扫描终端设备展示的出站乘车码,获得出站扫码特征信息,并将出站扫码特征信息发送至收单服务器。When the user needs to display the inbound boarding code and outbound boarding code when taking a bus, the inbound code scanning device scans the inbound boarding code displayed on the terminal device to obtain the inbound code scanning feature information, and The information is sent to the acquiring server. The outbound code scanning device scans the outbound boarding code displayed on the terminal device to obtain the outbound code scanning characteristic information, and sends the outbound scanning code characteristic information to the acquiring server.
步骤S206,收单服务器基于至少一个扫码设备发送的扫码特征信息,确定乘车特征信息。In step S206, the acquiring server determines ride characteristic information based on the code scanning characteristic information sent by at least one code scanning device.
具体地,当用户乘车只需要展示一次乘车码时,收单服务器接收一个扫码设备发送的扫码特征信息,并将扫码特征信息作为乘车特征信息,此时,乘车特征信息包括目标乘车时刻、扫码设备标识等信息。Specifically, when the user only needs to show the ride code once, the acquiring server receives the code scanning feature information sent by a code scanning device, and uses the scan code feature information as the ride feature information. At this time, the ride feature information Including information such as target boarding time, code scanning device identification, etc.
当用户乘车需要展示多次乘车码时,收单服务器接收进站扫码设备发送的进站扫码特 征信息,以及出站扫码设备发送的出站扫码特征信息,然后基于进站扫码特征信息和出站扫码特征信息,确定乘车特征信息,此时,乘车特征信息包括进站时刻、出站时刻、进站扫码设备标识、出站扫码设备标识等信息。When the user needs to display multiple ride codes when riding a car, the acquiring server receives the inbound code scanning feature information sent by the inbound code scanning device, and the outbound code scanning feature information sent by the outbound code scanning device, and then based on the inbound The code scanning feature information and the outbound scanning code feature information determine the ride feature information. At this time, the ride feature information includes information such as inbound time, outbound time, inbound code scanning equipment identification, and outbound code scanning equipment identification.
步骤S207,收单服务器基于乘车特征信息和至少一个乘车码确定目标交易内容。In step S207, the acquiring server determines the target transaction content based on the ride characteristic information and at least one ride code.
具体地,目标交易内容包括交易账户和交易金额等信息,其中,收单服务器通过对至少一个乘车码进行解析,获得交易账户。当用户乘车只需要展示一次乘车码时,交易金额为预设的固定值。当用户乘车需要展示多次乘车码时,则基于进站扫码设备标识和出站扫码设备标识,确定乘车距离,进而基于乘车距离确定交易金额。Specifically, the target transaction content includes information such as transaction account and transaction amount, wherein the acquiring server obtains the transaction account by analyzing at least one ride code. When the user only needs to show the ride code once, the transaction amount is a preset fixed value. When the user needs to show the boarding code multiple times when riding a car, the riding distance is determined based on the identification of the incoming code scanning device and the outgoing code scanning device, and then the transaction amount is determined based on the riding distance.
步骤S208,收单服务器将目标交易内容和乘车特征信息发送至中间服务器。In step S208, the acquiring server sends the target transaction content and ride feature information to the intermediate server.
步骤S209,中间服务器在确定乘车码展示信息与乘车特征信息匹配时,基于终端属性信息和目标交易内容,获得目标交易记录。In step S209, the intermediate server obtains the target transaction record based on the terminal attribute information and the target transaction content when determining that the ride code display information matches the ride feature information.
具体地,将终端属性信息与目标交易内容合并,获得目标交易记录。目标交易记录包括交易渠道标识、终端型号、系统版本、乘车应用版本、交易账户以及交易金额等信息。当乘车码展示信息与乘车特征信息不匹配时,说明当前交易可能出现异常,则结束处理。Specifically, the terminal attribute information is combined with the target transaction content to obtain the target transaction record. The target transaction records include information such as transaction channel identification, terminal model, system version, ride-hailing application version, transaction account, and transaction amount. When the ride code display information does not match the ride feature information, it means that the current transaction may be abnormal, and the processing ends.
本申请实施例中,终端设备在生成乘车码并展示的过程中,同时获取乘车码展示信息和终端属性信息,并发送至中间服务器。中间服务器基于乘车码展示信息和乘车特征信息进行校验后,将终端属性信息补充至交易记录中,获得目标交易记录,从而使获得的目标交易记录的数据粒度更细致和具体,信息覆盖更完整准确,对于更多维度的技术分析、技术统计、技术解决方案设计等创造出可行性。In the embodiment of the present application, during the process of generating and displaying the boarding code, the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server. After the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc.
可选地,中间服务器基于终端属性信息和目标交易内容,获得目标交易记录之后,将目标交易内容发送至交易服务器,交易服务器针对交易账户扣除交易金额,获得交易结果,并将交易结果发送至终端设备。Optionally, after obtaining the target transaction record based on the terminal attribute information and the target transaction content, the intermediate server sends the target transaction content to the transaction server, and the transaction server deducts the transaction amount from the transaction account, obtains the transaction result, and sends the transaction result to the terminal equipment.
具体地,交易服务器通过中间服务器、收单服务器、扫码设备逐级将交易结果发送至终端设备。终端设备可以在显示界面中展示交易结果。Specifically, the transaction server sends the transaction result to the terminal device step by step through the intermediate server, the acquiring server, and the code scanning device. The terminal device can display transaction results on the display interface.
可选地,在上述步骤S208中,本申请实施例至少提供以下两种实施方式确定乘车码展示信息与乘车特征信息是否匹配:Optionally, in the above step S208, the embodiment of the present application provides at least the following two implementations to determine whether the ride code display information matches the ride feature information:
一种可能的实施方式,当用户乘车只需要展示一次乘车码时,乘车特征信息包括目标乘车时刻,乘车码展示信息包括目标乘车码的展示时间区间。若目标乘车时刻位于目标乘车码的展示时间区间内,则确定乘车码展示信息与乘车特征信息匹配。In a possible implementation manner, when the user only needs to show the ride code once to ride a car, the ride feature information includes the target ride time, and the ride code display information includes the display time interval of the target ride code. If the target boarding time is within the display time interval of the target boarding code, it is determined that the boarding code display information matches the boarding feature information.
举例来说,用户乘坐公交车时,中间服务器接收的乘车码A的展示时间区间为(10:00-10:02)。中间服务器接收的目标乘车时刻为(10:01),由于目标乘车时刻位于乘车码A的展示时间区间内,则确定乘车码展示信息与乘车特征信息匹配。For example, when the user takes a bus, the display time interval of the bus code A received by the intermediate server is (10:00-10:02). The target boarding time received by the intermediate server is (10:01). Since the target boarding time is within the display time interval of the boarding code A, it is determined that the boarding code display information matches the boarding feature information.
一种可能的实施方式,乘车特征信息包括进站时刻和出站时刻,乘车码展示信息包括进站乘车码的展示时间区间和出站乘车码的展示时间区间。若进站时刻位于进站乘车码的展示时间区间内,且出站时刻位于出站乘车码的展示时间区间内,则确定乘车码展示信息与乘车特征信息匹配。In a possible implementation, the ride feature information includes the time of entry and exit, and the display information of the boarding code includes the display time interval of the incoming boarding code and the displaying time interval of the exiting boarding code. If the inbound time is within the display time interval of the inbound boarding code, and the outbound time is within the displaying time interval of the outbound boarding code, it is determined that the boarding code display information matches the boarding feature information.
举例来说,用户乘坐地铁时,中间服务器接收的进站乘车码X的展示时间区间为(10:00-10:05),出站乘车码Y的展示时间区间为(10:30-10:35)。进站时刻为10:02,出站时刻为10:32。由于进站时刻位于进站乘车码X的展示时间区间内,且出站时刻位于出站乘车码Y的展示时间区间内,则确定乘车码展示信息与乘车特征信息匹配。For example, when a user takes the subway, the display time interval of the incoming boarding code X received by the intermediate server is (10:00-10:05), and the displaying time interval of the outgoing boarding code Y is (10:30-10:05). 10:35). The arrival time is 10:02, and the departure time is 10:32. Since the inbound time is within the display time interval of the inbound boarding code X, and the outbound time is within the displaying time interval of the outbound boarding code Y, it is determined that the boarding code display information matches the boarding feature information.
本申请实施例中,中间服务器同时获得终端设备发送的乘车码展示信息以及收单服务器发送的乘车特征信息,然后基于乘车码展示信息和乘车特征信息,确定校验交易是否正常,在正常时,基于终端属性信息和目标交易内容,获得目标交易记录,从而提高目标交易记录的准确性和完整性。In the embodiment of the present application, the intermediate server simultaneously obtains the ride code display information sent by the terminal device and the ride feature information sent by the acquiring server, and then determines whether the verification transaction is normal based on the ride code display information and ride feature information. In a normal state, the target transaction record is obtained based on the terminal attribute information and the target transaction content, thereby improving the accuracy and completeness of the target transaction record.
为了更好地解释本申请实施例,下面结合乘坐地铁场景介绍本申请实施例提供的一种交易处理方法,如图3a和图3b所示,该方法的流程由终端设备、扫码设备、收单服务器、中间服务器、交易服务器交互执行,包括以下步骤:In order to better explain the embodiment of the present application, a transaction processing method provided by the embodiment of the present application is introduced below in conjunction with the subway ride scene, as shown in Figure 3a and Figure 3b, the process of the method consists of terminal equipment, code scanning equipment, receiving The interactive execution of single server, intermediate server and transaction server includes the following steps:
步骤S301,终端设备响应于在乘车应用中触发的进站操作,生成进站乘车码。In step S301, the terminal device generates a boarding code for entering a station in response to an entering operation triggered in a ride-hailing application.
步骤S302,终端设备记录进站乘车码对应的乘车码展示信息。In step S302, the terminal device records the display information of the boarding code corresponding to the boarding code for entering the station.
其中,进站乘车码对应的乘车码展示信息包括进站乘车码的展示时间区间、进站乘车码操作时间等。Among them, the boarding code display information corresponding to the boarding code at the station includes the display time interval of the boarding code at the station, the operation time of the boarding code at the station, and the like.
步骤S303,终端设备将乘车码展示信息和终端属性信息发送至中间服务器。Step S303, the terminal device sends the bus code display information and terminal attribute information to the intermediate server.
其中,终端属性信息包括交易渠道标识、终端型号、系统版本以及乘车应用版本等。Among them, the terminal attribute information includes transaction channel identification, terminal model, system version, and ride-hailing application version.
步骤S304,终端设备展示进站乘车码。Step S304, the terminal device displays the boarding code for entering the station.
步骤S305,进站扫码设备扫描进站乘车码,获得进站乘车码对应的扫码特征信息。In step S305, the inbound code scanning device scans the inbound boarding code to obtain the code scanning feature information corresponding to the incoming boarding code.
其中,进站扫码设备嵌入在地铁闸机中,进站乘车码对应的扫码特征信息包括进站时刻、进站扫码设备标识等信息。Among them, the code-scanning device for entering the station is embedded in the subway gate, and the code-scanning feature information corresponding to the boarding code for entering the station includes information such as the time of entering the station and the identification of the code-scanning device for entering the station.
步骤S306,进站扫码设备将进站乘车码对应的扫码特征信息发送至收单服务器。Step S306, the inbound code scanning device sends the code scanning feature information corresponding to the inbound boarding code to the acquiring server.
同时,进站扫码设备销毁扫描获得的进站乘车码。At the same time, the inbound code scanning device destroys the inbound boarding code obtained by scanning.
步骤S307,终端设备响应于在乘车应用中触发的出站操作,生成出站乘车码。Step S307, the terminal device generates an outbound boarding code in response to the outbound operation triggered in the boarding application.
步骤S308,终端设备记录出站乘车码对应的乘车码展示信息。In step S308, the terminal device records the boarding code display information corresponding to the outbound boarding code.
其中,出站乘车码对应的乘车码展示信息包括出站乘车码的展示时间区间、出站乘车码操作时间等。Wherein, the boarding code display information corresponding to the boarding code at the station includes the display time interval of the boarding code at the station, the operation time of the boarding code at the station, and the like.
步骤S309,终端设备将乘车码展示信息和终端属性信息发送至中间服务器。Step S309, the terminal device sends the bus code display information and terminal attribute information to the intermediate server.
步骤S310,终端设备展示出站乘车码。Step S310, the terminal device displays the exit boarding code.
步骤S311,出站扫码设备扫描出站乘车码,获得出站乘车码对应的扫码特征信息。Step S311, the outbound code scanning device scans the outbound boarding code to obtain the code scanning feature information corresponding to the outbound boarding code.
其中,出站扫码设备嵌入在地铁闸机中,出站乘车码对应的扫码特征信息包括出站时刻、出站扫码设备标识等信息。Among them, the outbound code-scanning device is embedded in the subway gate, and the code-scanning feature information corresponding to the outbound boarding code includes information such as the time of departure, the identification of the outbound code-scanning device, etc.
步骤S312,出站扫码设备将出站乘车码对应的扫码特征信息发送至收单服务器。Step S312, the outbound code scanning device sends the code scanning feature information corresponding to the outbound boarding code to the acquiring server.
同时,出站扫码设备销毁扫描获得的出站乘车码。At the same time, the outbound code scanning device destroys the outbound boarding code obtained by scanning.
步骤S313,收单服务器基于进站扫码设备和出站扫码设备发送的扫码特征信息,确定乘车特征信息。In step S313, the acquiring server determines ride characteristic information based on the code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning device.
乘车特征信息包括进站时刻、出站时刻、进站扫码设备标识、出站扫码设备标识等信息。The ride characteristic information includes information such as the time of entering the station, the time of exiting the station, the identification of the scanning code device for entering the station, and the identification of the scanning device for exiting the station.
步骤S314,收单服务器基于乘车特征信息、进站乘车码和出站乘车码确定目标交易内容。In step S314, the acquiring server determines the target transaction content based on the ride characteristic information, the inbound and outbound ride codes.
具体地,目标交易内容包括交易账户、交易金额、交易时间等信息,其中,收单服务器通过对进站乘车码和出站乘车码进行解析,获得交易账户和交易时间。基于进站扫码设备标识和出站扫码设备标识,确定乘车距离,进而基于乘车距离确定交易金额。Specifically, the target transaction content includes transaction account, transaction amount, transaction time and other information, wherein the acquiring server obtains the transaction account and transaction time by analyzing the inbound and outbound boarding codes. Based on the ID of the inbound code scanning device and the ID of the outbound code scanning device, the travel distance is determined, and then the transaction amount is determined based on the travel distance.
步骤S315,收单服务器将目标交易内容和乘车特征信息发送至中间服务器。In step S315, the acquiring server sends the target transaction content and ride characteristic information to the intermediate server.
步骤S316,中间服务器在确定乘车码展示信息与乘车特征信息匹配时,基于终端属性信息和目标交易内容,获得目标交易记录。In step S316, the intermediate server obtains the target transaction record based on the terminal attribute information and the target transaction content when determining that the ride code display information matches the ride feature information.
具体地,若进站时刻位于进站乘车码的展示时间区间内,且出站时刻位于出站乘车码的展示时间区间内,则确定乘车码展示信息与乘车特征信息匹配。目标交易记录包括交易渠道标识、终端型号、系统版本、乘车应用版本、交易账户以及交易金额等信息。Specifically, if the entry time is within the display time interval of the entry boarding code, and the exit time is within the displaying time interval of the exiting boarding code, it is determined that the boarding code display information matches the boarding feature information. The target transaction records include information such as transaction channel identification, terminal model, system version, ride-hailing application version, transaction account, and transaction amount.
步骤S317,中间服务器将目标交易内容发送至交易服务器。Step S317, the intermediate server sends the target transaction content to the transaction server.
步骤S318,交易服务器针对交易账户扣除交易金额,获得交易结果。In step S318, the transaction server deducts the transaction amount from the transaction account to obtain the transaction result.
步骤S319,交易服务器将交易结果发送至终端设备。Step S319, the transaction server sends the transaction result to the terminal device.
本申请实施例中,终端设备在生成乘车码并展示的过程中,同时获取乘车码展示信息和终端属性信息,并发送至中间服务器。中间服务器基于乘车码展示信息和乘车特征信息进行校验后,将终端属性信息补充至交易记录中,获得目标交易记录,从而使获得的目标交易记录的数据粒度更细致和具体,信息覆盖更完整准确,目标交易记录中的关键交易要素更加完整,对于更多维度的技术分析、技术统计、技术解决方案设计等创造出可行性,也有助于后续精细化运维。In the embodiment of the present application, during the process of generating and displaying the boarding code, the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server. After the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, the key transaction elements in the target transaction records are more complete, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc., and also conducive to subsequent refined operation and maintenance.
基于相同的技术构思,本申请实施例提供了一种交易处理装置的结构示意图,应用于中间服务器,如图4所示,该交易处理装置400包括:Based on the same technical concept, the embodiment of this application provides a schematic structural diagram of a transaction processing device, which is applied to an intermediate server. As shown in Figure 4, the transaction processing device 400 includes:
第一接收模块401,用于接收收单服务器发送的目标交易内容和乘车特征信息,其中,所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,每个扫码特征信息是相应的扫码设备扫描终端设备展示的乘车码后获得的,所述目标交易内容是所述收单服务器基于所述乘车特征信息和所述至少一个乘车码确定的;The first receiving module 401 is configured to receive the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the scan code feature information sent by at least one code scanning device Each code-scanning feature information is obtained after the corresponding code-scanning device scans the ride code displayed by the terminal device. The car code is determined;
处理模块402,用于在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录,其中,所述乘车码展示信息和所述终端属性信息是所述终端设备生成所述至少一个乘车码后获得并发送至所述交易服务器的。The processing module 402 is configured to obtain a target transaction record based on the terminal attribute information and the target transaction content when it is determined that the ride code display information matches the ride feature information, wherein the ride code display information and the The terminal attribute information is obtained and sent to the transaction server after the terminal device generates the at least one ride code.
可选地,还包括第一发送模块403;所述目标交易内容包括交易账户和交易金额;Optionally, a first sending module 403 is also included; the target transaction content includes transaction account and transaction amount;
所述第一发送模块403具体用于:The first sending module 403 is specifically used for:
基于终端属性信息和所述目标交易内容,获得目标交易记录之后,将所述目标交易内容发送至交易服务器,以使所述交易服务器针对所述交易账户扣除所述交易金额,获得交易结果,并将所述交易结果发送至所述终端设备。Based on the terminal attribute information and the target transaction content, after obtaining the target transaction record, sending the target transaction content to the transaction server, so that the transaction server deducts the transaction amount from the transaction account to obtain a transaction result, and Send the transaction result to the terminal device.
可选地,所述至少一个乘车码包括目标乘车码,所述乘车特征信息包括目标乘车时刻,所述乘车码展示信息包括所述目标乘车码的展示时间区间;Optionally, the at least one ride code includes a target ride code, the ride feature information includes a target ride time, and the ride code display information includes a display time interval of the target ride code;
所述处理模块402还用于:The processing module 402 is also used for:
在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,若所述目标乘车时刻位于所述目标乘车码的展示时间区间,则确定所述乘车码展示信息与所述乘车特征信息匹配。When it is determined that the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the target ride time is within the display of the target ride code time interval, it is determined that the ride code display information matches the ride feature information.
可选地,所述至少一个乘车码包括进站乘车码和出站乘车码,所述乘车特征信息包括进站时刻和出站时刻,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;Optionally, the at least one boarding code includes an incoming boarding code and an outgoing boarding code, the boarding feature information includes the time of entering the station and the time of exiting the boarding station, and the display information of the boarding code includes the boarding code for entering the station The display time interval of the station boarding code and the display time interval of the outbound boarding code;
所述处理模块402还用于:The processing module 402 is also used for:
所述在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,若所述进站时间位于所述进站乘车码的展示时间区 间内,且所述出站时间位于所述出站乘车码的展示时间区间内,则确定所述乘车码展示信息与所述乘车特征信息匹配。When it is determined that the ride code display information matches the ride feature information, based on the terminal attribute information and the target transaction content, before obtaining the target transaction record, if the entry time is within the and the exit time is within the display time interval of the exit boarding code, then it is determined that the boarding code display information matches the boarding feature information.
可选地,所述至少一个扫码设备包括进站扫码设备和出站扫码设备;Optionally, the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
所述乘车特征信息是所述收单服务器基于所述进站扫码设备发送的进站扫码特征信息和所述出站扫码设备发送的出站扫码特征信息确定的。The ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
可选地,所述终端属性信息包括交易渠道标识、终端型号、系统版本以及乘车应用版本。Optionally, the terminal attribute information includes a transaction channel identifier, a terminal model, a system version, and a ride-hailing application version.
基于相同的技术构思,本申请实施例提供了一种交易处理装置的结构示意图,应用于终端设备,如图5所示,该交易处理装置500包括:Based on the same technical concept, the embodiment of the present application provides a schematic structural diagram of a transaction processing device, which is applied to a terminal device. As shown in Figure 5, the transaction processing device 500 includes:
获取模块501,用于响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息;An acquisition module 501, configured to generate at least one boarding code in response to at least one user operation, and obtain boarding code display information corresponding to the at least one boarding code;
第二发送模块502,用于将所述乘车码展示信息和终端属性信息发送至中间服务器;The second sending module 502 is configured to send the ride code display information and terminal attribute information to an intermediate server;
展示模块503,用于展示所述至少一个乘车码,以使至少一个扫码设备扫描相应的乘车码,获得各自对应的扫码特征信息,并分别将获得的扫码特征信息发送至收单服务器,以指示所述收单服务器基于所述至少一个扫码设备发送的扫码特征信息,确定乘车特征信息,并基于所述乘车特征信息和所述至少一个乘车码确定目标交易内容,并将所述目标交易内容和所述乘车特征信息发送至所述中间服务器,以指示所述中间服务器在确定所述乘车码展示信息与所述乘车特征信息匹配时,基于所述终端属性信息和所述目标交易内容,获得目标交易记录。The display module 503 is used to display the at least one boarding code, so that at least one code scanning device scans the corresponding boarding code, obtains the corresponding scanning code feature information, and sends the obtained scanning code feature information to the receiver respectively. a single server, to instruct the acquiring server to determine ride feature information based on the scan code feature information sent by the at least one scan code device, and to determine the target transaction based on the ride feature information and the at least one ride code content, and send the target transaction content and the ride characteristic information to the intermediate server to instruct the intermediate server to The terminal attribute information and the target transaction content are used to obtain the target transaction record.
可选地,所述至少一个乘车码包括目标乘车码,所述用户操作包括乘车操作,所述乘车码展示信息包括所述目标乘车码的展示时间区间;Optionally, the at least one ride code includes a target ride code, the user operation includes a ride operation, and the ride code display information includes a display time interval of the target ride code;
所述获取模块501具体用于:The acquiring module 501 is specifically used for:
响应于乘车操作,生成目标乘车码,并获得所述目标乘车码的展示时间区间。In response to the ride operation, a target ride code is generated, and a display time interval of the target ride code is obtained.
可选地,所述至少一个乘车码包括进站乘车码和出站乘车码,所述用户操作包括进站操作和出站操作,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;Optionally, the at least one boarding code includes an inbound boarding code and an outbound boarding code, the user operation includes an entering operation and an outbound operation, and the boarding code display information includes the incoming boarding code The display time interval of the bus code and the display time interval of the outbound boarding code;
所述获取模块501具体用于:The acquiring module 501 is specifically used for:
响应于进站操作,生成进站乘车码,并获得所述进站乘车码的展示时间区间;In response to the entry operation, generate an entry boarding code, and obtain the display time interval of the incoming boarding code;
响应于出站操作,生成出站乘车码,并获得所述出站乘车码的展示时间区间。In response to the exit operation, an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
可选地,所述获取模块501具体用于:Optionally, the acquiring module 501 is specifically configured to:
获取所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻;Obtain the start display time of the inbound bus code and the stop display time of the inbound bus code;
基于所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻,确定所述进站乘车码的展示时间区间;Based on the initial display time of the incoming boarding code and the stop displaying time of the incoming boarding code, determine the display time interval of the incoming boarding code;
所述获取模块501具体用于:The acquiring module 501 is specifically used for:
获取所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻;Obtain the start display time of the exit boarding code and the stop displaying time of the exiting boarding code;
基于所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻,确定所述出站乘车码的展示时间区间。Based on the start display time of the exit boarding code and the stop displaying time of the exiting boarding code, the display time interval of the exiting boarding code is determined.
本申请实施例中,终端设备在生成乘车码并展示的过程中,同时获取乘车码展示信息和终端属性信息,并发送至中间服务器。中间服务器基于乘车码展示信息和乘车特征信息进行校验后,将终端属性信息补充至交易记录中,获得目标交易记录,从而使获得的目标 交易记录的数据粒度更细致和具体,信息覆盖更完整准确,对于更多维度的技术分析、技术统计、技术解决方案设计等创造出可行性。In the embodiment of the present application, during the process of generating and displaying the boarding code, the terminal device obtains the boarding code display information and the terminal attribute information at the same time, and sends them to the intermediate server. After the intermediate server verifies the ride code display information and ride feature information, it supplements the terminal attribute information into the transaction record and obtains the target transaction record, so that the data granularity of the target transaction record obtained is more detailed and specific, and the information coverage More complete and accurate, creating feasibility for more dimensional technical analysis, technical statistics, technical solution design, etc.
基于相同的技术构思,本申请实施例提供了一种计算机设备,该计算机设备可以是图1所示的终端设备、扫码设备、收单服务器、中间服务器中的任意一个或多个设备,如图6所示,包括至少一个处理器601,以及与至少一个处理器连接的存储器602,本申请实施例中不限定处理器601与存储器602之间的具体连接介质,图6中处理器601和存储器602之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical concept, the embodiment of the present application provides a computer device, which can be any one or more of the terminal device, code scanning device, receipt server, and intermediate server shown in Figure 1, such as As shown in FIG. 6, it includes at least one processor 601 and a memory 602 connected to at least one processor. The embodiment of the present application does not limit the specific connection medium between the processor 601 and the memory 602. In FIG. 6, the processor 601 and The memory 602 is connected through a bus as an example. The bus can be divided into address bus, data bus, control bus and so on.
在本申请实施例中,存储器602存储有可被至少一个处理器601执行的指令,至少一个处理器601通过执行存储器602存储的指令,可以执行上述告警事件分类方法的步骤。In this embodiment of the present application, the memory 602 stores instructions executable by at least one processor 601, and at least one processor 601 can execute the steps of the above alarm event classification method by executing the instructions stored in the memory 602.
其中,处理器601是计算机设备的控制中心,可以利用各种接口和线路连接计算机设备的各个部分,通过运行或执行存储在存储器602内的指令以及调用存储在存储器602内的数据,从而实现告警事件分类。可选的,处理器601可包括一个或多个处理单元,处理器601可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器601中。在一些实施例中,处理器601和存储器602可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 601 is the control center of the computer equipment, which can use various interfaces and lines to connect various parts of the computer equipment, and realize the alarm by running or executing the instructions stored in the memory 602 and calling the data stored in the memory 602. Event classification. Optionally, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor. The tuner processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 601 . In some embodiments, the processor 601 and the memory 602 can be implemented on the same chip, and in some embodiments, they can also be implemented on independent chips.
处理器601可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 601 can be a general processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
存储器602作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器602可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器602是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机设备存取的任何其他介质,但不限于此。本申请实施例中的存储器602还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory 602, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. Memory 602 may include at least one type of storage medium, for example, may include flash memory, hard disk, multimedia card, card memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk , CD, etc. Memory 602 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer device. The memory 602 in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, and is used for storing program instructions and/or data.
基于同一发明构思,本申请实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当程序在计算机设备上运行时,使得计算机设备执行上述交易处理方法的步骤。Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program runs on the computer device, the computer device executes the steps of the above-mentioned transaction processing method.
基于同一发明构思,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机设备执行时,使所述计算机设备执行上述交易处理方法的步骤。Based on the same inventive concept, an embodiment of the present application provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by the computer When the device is executed, the computer device is made to execute the steps of the above-mentioned transaction processing method.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的 形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (15)

  1. 一种交易处理方法,其特征在于,应用于中间服务器,包括:A transaction processing method, characterized in that it is applied to an intermediate server, comprising:
    接收收单服务器发送的目标交易内容和乘车特征信息,其中,所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,每个扫码特征信息是相应的扫码设备扫描终端设备展示的乘车码后获得的,所述目标交易内容是所述收单服务器基于所述乘车特征信息和所述至少一个乘车码确定的;receiving the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the code scanning feature information sent by at least one code scanning device, and each code scanning feature information It is obtained after the corresponding code scanning device scans the ride code displayed by the terminal device, and the target transaction content is determined by the acquiring server based on the ride feature information and the at least one ride code;
    在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录,其中,所述乘车码展示信息和所述终端属性信息是所述终端设备生成所述至少一个乘车码后获得并发送至所述交易服务器的。When it is determined that the ride code display information matches the ride feature information, the target transaction record is obtained based on the terminal attribute information and the target transaction content, wherein the ride code display information and the terminal attribute information are the After the terminal device generates the at least one ride code, it is obtained and sent to the transaction server.
  2. 如权利要求1所述的方法,其特征在于,所述目标交易内容包括交易账户和交易金额;The method according to claim 1, wherein the target transaction content includes transaction account and transaction amount;
    所述基于终端属性信息和所述目标交易内容,获得目标交易记录之后,还包括:After obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
    将所述目标交易内容发送至交易服务器,以使所述交易服务器针对所述交易账户扣除所述交易金额,获得交易结果,并将所述交易结果发送至所述终端设备。Sending the target transaction content to a transaction server, so that the transaction server deducts the transaction amount from the transaction account, obtains a transaction result, and sends the transaction result to the terminal device.
  3. 如权利要求1所述的方法,其特征在于,所述至少一个乘车码包括目标乘车码,所述乘车特征信息包括目标乘车时刻,所述乘车码展示信息包括所述目标乘车码的展示时间区间;The method according to claim 1, wherein the at least one ride code includes a target ride code, the ride feature information includes a target ride time, and the ride code display information includes the target ride code. The display time interval of the vehicle code;
    所述在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,还包括:When determining that the ride code display information matches the ride feature information, before obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
    若所述目标乘车时刻位于所述目标乘车码的展示时间区间,则确定所述乘车码展示信息与所述乘车特征信息匹配。If the target boarding time is within the display time interval of the target boarding code, it is determined that the boarding code display information matches the boarding feature information.
  4. 如权利要求1所述的方法,其特征在于,所述至少一个乘车码包括进站乘车码和出站乘车码,所述乘车特征信息包括进站时刻和出站时刻,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;The method according to claim 1, wherein said at least one boarding code comprises an incoming boarding code and an outgoing boarding code, said boarding characteristic information includes an incoming time and an outgoing time, said The boarding code display information includes the display time interval of the incoming boarding code and the displaying time interval of the outbound boarding code;
    所述在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录之前,还包括:When determining that the ride code display information matches the ride feature information, before obtaining the target transaction record based on the terminal attribute information and the target transaction content, it also includes:
    若所述进站时间位于所述进站乘车码的展示时间区间内,且所述出站时间位于所述出站乘车码的展示时间区间内,则确定所述乘车码展示信息与所述乘车特征信息匹配。If the entry time is within the display time interval of the entry boarding code, and the exit time is within the displaying time interval of the exiting boarding code, it is determined that the boarding code display information and The ride characteristic information matches.
  5. 如权利要求4所述的方法,其特征在于,所述至少一个扫码设备包括进站扫码设备和出站扫码设备;The method according to claim 4, wherein the at least one code scanning device includes an inbound code scanning device and an outbound code scanning device;
    所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,包括:The ride characteristic information is determined by the acquiring server based on the code scanning characteristic information sent by at least one code scanning device, including:
    所述乘车特征信息是所述收单服务器基于所述进站扫码设备发送的进站扫码特征信息和所述出站扫码设备发送的出站扫码特征信息确定的。The ride characteristic information is determined by the acquiring server based on the inbound code scanning characteristic information sent by the inbound code scanning device and the outbound code scanning characteristic information sent by the outbound code scanning device.
  6. 如权利要求1至5任一所述的方法,其特征在于,所述终端属性信息包括交易渠道标识、终端型号、系统版本以及乘车应用版本。The method according to any one of claims 1 to 5, wherein the terminal attribute information includes transaction channel identification, terminal model, system version and ride-hailing application version.
  7. 一种交易处理方法,其特征在于,应用于终端设备,包括:A transaction processing method, characterized in that it is applied to a terminal device, comprising:
    响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息;In response to at least one user operation, generate at least one ride code, and obtain the ride code display information corresponding to the at least one ride code;
    将所述乘车码展示信息和终端属性信息发送至中间服务器;Send the ride code display information and terminal attribute information to an intermediate server;
    展示所述至少一个乘车码,以使至少一个扫码设备扫描相应的乘车码,获得各自对应的扫码特征信息,并分别将获得的扫码特征信息发送至收单服务器,以指示所述收单服务器基于所述至少一个扫码设备发送的扫码特征信息,确定乘车特征信息,并基于所述乘车特征信息和所述至少一个乘车码确定目标交易内容,并将所述目标交易内容和所述乘车特征信息发送至所述中间服务器,以指示所述中间服务器在确定所述乘车码展示信息与所述乘车特征信息匹配时,基于所述终端属性信息和所述目标交易内容,获得目标交易记录。Showing the at least one ride code, so that at least one code scanning device scans the corresponding ride code, obtains the corresponding scan code feature information, and sends the obtained scan code feature information to the acquiring server to indicate the The acquiring server determines the ride feature information based on the scan code feature information sent by the at least one scan code device, and determines the target transaction content based on the ride feature information and the at least one ride code, and sends the The target transaction content and the ride characteristic information are sent to the intermediate server to instruct the intermediate server to, when determining that the ride code display information matches the ride characteristic information, based on the terminal attribute information and the ride characteristic information, Describe the target transaction content and obtain the target transaction record.
  8. 如权利要求7所述的方法,其特征在于,所述至少一个乘车码包括目标乘车码,所述用户操作包括乘车操作,所述乘车码展示信息包括所述目标乘车码的展示时间区间;The method according to claim 7, wherein the at least one ride code includes a target ride code, the user operation includes a ride operation, and the ride code display information includes the target ride code Display time interval;
    所述响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息,包括:The generating at least one ride code in response to at least one user operation, and obtaining the ride code display information corresponding to the at least one ride code includes:
    响应于乘车操作,生成目标乘车码,并获得所述目标乘车码的展示时间区间。In response to the ride operation, a target ride code is generated, and a display time interval of the target ride code is obtained.
  9. 如权利要求7所述的方法,其特征在于,所述至少一个乘车码包括进站乘车码和出站乘车码,所述用户操作包括进站操作和出站操作,所述乘车码展示信息包括所述进站乘车码的展示时间区间和所述出站乘车码的展示时间区间;The method according to claim 7, wherein said at least one boarding code includes an incoming boarding code and an outgoing boarding code, said user operation includes an incoming operation and an outgoing operation, and said boarding The code display information includes the display time interval of the inbound boarding code and the displaying time interval of the outbound boarding code;
    所述响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息,包括:The generating at least one ride code in response to at least one user operation, and obtaining the ride code display information corresponding to the at least one ride code includes:
    响应于进站操作,生成进站乘车码,并获得所述进站乘车码的展示时间区间;In response to the entry operation, generate an entry boarding code, and obtain the display time interval of the incoming boarding code;
    响应于出站操作,生成出站乘车码,并获得所述出站乘车码的展示时间区间。In response to the exit operation, an exit boarding code is generated, and a display time interval of the exiting boarding code is obtained.
  10. 如权利要求9所述的方法,其特征在于,所述获得所述进站乘车码的展示时间区间,包括:The method according to claim 9, characterized in that said obtaining the display time interval of the boarding code for entering the station comprises:
    获取所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻;Obtain the start display time of the inbound bus code and the stop display time of the inbound bus code;
    基于所述进站乘车码的起始展示时刻以及所述进站乘车码的停止展示时刻,确定所述进站乘车码的展示时间区间;Based on the initial display time of the incoming boarding code and the stop displaying time of the incoming boarding code, determine the display time interval of the incoming boarding code;
    所述获得所述出站乘车码的展示时间区间,包括:The display time interval for obtaining the outbound boarding code includes:
    获取所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻;Obtain the start display time of the exit boarding code and the stop displaying time of the exiting boarding code;
    基于所述出站乘车码的起始展示时刻以及所述出站乘车码的停止展示时刻,确定所述出站乘车码的展示时间区间。Based on the start display time of the exit boarding code and the stop displaying time of the exiting boarding code, the display time interval of the exiting boarding code is determined.
  11. 一种交易处理装置,其特征在于,应用于中间服务器,包括:A transaction processing device, characterized in that it is applied to an intermediate server, comprising:
    第一接收模块,用于接收收单服务器发送的目标交易内容和乘车特征信息,其中,所述乘车特征信息是所述收单服务器基于至少一个扫码设备发送的扫码特征信息确定的,每个扫码特征信息是相应的扫码设备扫描终端设备展示的乘车码后获得的,所述目标交易内容是所述收单服务器基于所述乘车特征信息和所述至少一个乘车码确定的;The first receiving module is configured to receive the target transaction content and ride feature information sent by the acquiring server, wherein the ride feature information is determined by the acquirer server based on the scan code feature information sent by at least one code scanning device , each code scanning feature information is obtained after the corresponding code scanning device scans the ride code displayed by the terminal device, and the target transaction content is that the acquiring server based on the ride feature information and the at least one ride code code determined;
    处理模块,用于在确定乘车码展示信息与所述乘车特征信息匹配时,基于终端属性信息和所述目标交易内容,获得目标交易记录,其中,所述乘车码展示信息和所述终端属性信息是所述终端设备生成所述至少一个乘车码后获得并发送至所述交易服务器的。A processing module, configured to obtain a target transaction record based on the terminal attribute information and the target transaction content when it is determined that the ride code display information matches the ride feature information, wherein the ride code display information and the The terminal attribute information is obtained and sent to the transaction server after the terminal device generates the at least one ride code.
  12. 一种交易处理装置,其特征在于,应用于终端设备,包括:A transaction processing device, characterized in that it is applied to terminal equipment, including:
    获取模块,用于响应于至少一次用户操作,生成至少一个乘车码,并获得所述至少一个乘车码对应的乘车码展示信息;An acquisition module, configured to generate at least one ride code in response to at least one user operation, and obtain the ride code display information corresponding to the at least one ride code;
    第二发送模块,用于将所述乘车码展示信息和终端属性信息发送至中间服务器;The second sending module is used to send the display information of the ride code and the terminal attribute information to the intermediate server;
    展示模块,用于展示所述至少一个乘车码,以使至少一个扫码设备扫描相应的乘车码,获得各自对应的扫码特征信息,并分别将获得的扫码特征信息发送至收单服务器,以指示所述收单服务器基于所述至少一个扫码设备发送的扫码特征信息,确定乘车特征信息,并基于所述乘车特征信息和所述至少一个乘车码确定目标交易内容,并将所述目标交易内容和所述乘车特征信息发送至所述中间服务器,以指示所述中间服务器在确定所述乘车码展示信息与所述乘车特征信息匹配时,基于所述终端属性信息和所述目标交易内容,获得目标交易记录。The display module is used to display the at least one boarding code, so that at least one code scanning device scans the corresponding boarding code, obtains the respective corresponding scanning code feature information, and sends the obtained scanning code feature information to the receipt The server is configured to instruct the acquiring server to determine ride feature information based on the scan code feature information sent by the at least one scan code device, and to determine target transaction content based on the ride feature information and the at least one ride code , and send the target transaction content and the ride characteristic information to the intermediate server, to instruct the intermediate server to determine that the ride code display information matches the ride characteristic information, based on the The terminal attribute information and the target transaction content are used to obtain the target transaction record.
  13. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1~10任一所述方法的步骤。A computer device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the program, the method of any one of claims 1 to 10 is implemented A step of.
  14. 一种计算机可读存储介质,其特征在于,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行权利要求1~10任一所述方法的步骤。A computer-readable storage medium, characterized in that it stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the method described in any one of claims 1-10 A step of.
  15. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机设备执行时,使所述计算机设备执行权利要求1-10任一项所述的方法的步骤。A computer program product, characterized in that the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer device, the A computer device performing the steps of the method according to any one of claims 1-10.
PCT/CN2022/110339 2022-01-29 2022-08-04 Transaction processing methods and apparatuses, device, and storage medium WO2023142421A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210110507.7A CN114462563B (en) 2022-01-29 2022-01-29 Transaction processing method, device, equipment and storage medium
CN202210110507.7 2022-01-29

Publications (1)

Publication Number Publication Date
WO2023142421A1 true WO2023142421A1 (en) 2023-08-03

Family

ID=81410597

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/110339 WO2023142421A1 (en) 2022-01-29 2022-08-04 Transaction processing methods and apparatuses, device, and storage medium

Country Status (3)

Country Link
CN (1) CN114462563B (en)
TW (1) TW202331614A (en)
WO (1) WO2023142421A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114462563B (en) * 2022-01-29 2023-07-07 中国银联股份有限公司 Transaction processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447609A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Method of payment, device, computer equipment and storage medium
CN110636174A (en) * 2019-10-09 2019-12-31 维沃移动通信有限公司 Bus code calling method and mobile terminal
CN110633975A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Travel control system, method and device in public transport and traffic payment method
CN111160915A (en) * 2018-11-08 2020-05-15 腾讯科技(深圳)有限公司 Bus code verification method and device, traffic code scanning equipment and terminal equipment
WO2021179748A1 (en) * 2020-03-12 2021-09-16 支付宝(杭州)信息技术有限公司 Methods, apparatuses and devices for barcode scanning payment, information transmission and collection code generation
CN114462563A (en) * 2022-01-29 2022-05-10 中国银联股份有限公司 Transaction processing method, device, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IN2014DE00666A (en) * 2014-03-10 2015-09-18 Diebold Self Service Sys
US20200074442A1 (en) * 2018-08-30 2020-03-05 Ca, Inc. Transaction authorization based on transaction, time, and geolocation dependent optical machine-readable codes
JP6784365B2 (en) * 2019-08-02 2020-11-11 株式会社 ヴァル研究所 Transportation route reproduction device, boarding management device and computer program
JP7457540B2 (en) * 2020-03-10 2024-03-28 レシップホールディングス株式会社 Fare collection system
CN112165514B (en) * 2020-09-16 2023-11-03 中电信用服务有限公司 System and method for determining display content
CN113034124B (en) * 2021-04-28 2023-02-03 广东岭南通股份有限公司 Traffic two-dimensional code cross-region transaction clearing and settlement method and system
CN113743924A (en) * 2021-09-14 2021-12-03 中国银行股份有限公司 Mobile phone two-dimensional code riding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633975A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Travel control system, method and device in public transport and traffic payment method
CN109447609A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Method of payment, device, computer equipment and storage medium
CN111160915A (en) * 2018-11-08 2020-05-15 腾讯科技(深圳)有限公司 Bus code verification method and device, traffic code scanning equipment and terminal equipment
CN110636174A (en) * 2019-10-09 2019-12-31 维沃移动通信有限公司 Bus code calling method and mobile terminal
WO2021179748A1 (en) * 2020-03-12 2021-09-16 支付宝(杭州)信息技术有限公司 Methods, apparatuses and devices for barcode scanning payment, information transmission and collection code generation
CN114462563A (en) * 2022-01-29 2022-05-10 中国银联股份有限公司 Transaction processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114462563B (en) 2023-07-07
TW202331614A (en) 2023-08-01
CN114462563A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US11861621B2 (en) Payment risk control method and system
CN107889070B (en) Picture processing method, device, terminal and computer readable storage medium
US10812460B2 (en) Validation system utilizing dynamic authentication
CN104572278B (en) The method, device and equipment of light application calling local side ability
CN111652096B (en) Face recognition method, device and system based on block chain
WO2023142421A1 (en) Transaction processing methods and apparatuses, device, and storage medium
CN111125729A (en) Block chain-based vehicle driving information processing method and device and storage medium
CN108600250A (en) Authentication method
CN110147991A (en) A kind of method, apparatus and system of the multi-platform payment of graphic code
CN114025188A (en) Live broadcast advertisement display method, system, device, terminal and readable storage medium
CN108111603A (en) Information recommendation method, device, terminal device and storage medium
CN107948312B (en) Information classification and release method and system with position points as information access ports
CN111651522A (en) Data synchronization method and device
CN109120509B (en) Information collection method and device
CN112100491A (en) Information recommendation method, device and equipment based on user data and storage medium
CN111311358A (en) Information processing method and device and electronic equipment
CN110489263A (en) The abnormality recognition method and device that process is called
CN113890948B (en) Resource allocation method based on voice outbound robot dialogue data and related equipment
CN114329093B (en) Data processing method, device and equipment
CN109302705A (en) WiFi sharing method, device and storage medium based on block chain
CN115379005A (en) Message processing method and device, storage medium and electronic equipment
CN110660139B (en) Detection system, method and device for copying and using riding code and terminal equipment
CN112560958A (en) Person reception method and device based on portrait recognition and electronic equipment
CN115209215A (en) Video processing method, device and equipment
CN112650763A (en) Configuration method of product quota, related equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22923225

Country of ref document: EP

Kind code of ref document: A1