CN111417240A - Method, system and device for processing outgoing and incoming records and computer equipment - Google Patents

Method, system and device for processing outgoing and incoming records and computer equipment Download PDF

Info

Publication number
CN111417240A
CN111417240A CN201910012446.9A CN201910012446A CN111417240A CN 111417240 A CN111417240 A CN 111417240A CN 201910012446 A CN201910012446 A CN 201910012446A CN 111417240 A CN111417240 A CN 111417240A
Authority
CN
China
Prior art keywords
outbound
inbound
record
identifier
site information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910012446.9A
Other languages
Chinese (zh)
Other versions
CN111417240B (en
Inventor
王小龙
于航
郭懿心
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910012446.9A priority Critical patent/CN111417240B/en
Publication of CN111417240A publication Critical patent/CN111417240A/en
Application granted granted Critical
Publication of CN111417240B publication Critical patent/CN111417240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application relates to an access station record processing method, a system, a device and computer equipment, wherein the method comprises the following steps: receiving an outbound record reported by outbound equipment after acquiring and analyzing an outbound graphic code; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identifier is updated the last time an outbound record including the user identifier is received; when the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time is inquired, the current journey is determined according to the outbound site information and the inbound site information contained in the inbound record. The scheme provided by the application can improve the accuracy of travel determination.

Description

Method, system and device for processing outgoing and incoming records and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, a computer-readable storage medium, and a computer device for processing an entry/exit station record.
Background
With the rapid development of the internet technology, the code scanning payment mode brings great convenience to the life of people. Recently, more and more cities support users to pay for travel by scanning codes. For example, a public transport vehicle can be ridden by using the riding code, and a user can pass by only opening the terminal when entering and leaving and displaying the riding code generated by the terminal. Also for example, the user may pay parking fees, highway tolls, etc. by scanning the code.
At present, when a server determines a journey of a user according to an access record of the user, the journey is determined according to a user identifier in the access record, but when a network is poor or the traffic of people in a peak trip period is too large, the problem that the access record of the user is delayed to be uploaded to the server or even lost may exist, and then the server determines the journey according to the user identifier, the condition that the inbound record is matched and disordered can be presented, so that the accuracy of the determined journey is influenced.
Disclosure of Invention
Based on this, it is necessary to provide an access station record processing method, system, apparatus, computer-readable storage medium and computer device for solving the technical problem that the existing manner of determining a trip according to a user identifier is low in accuracy in the case that an access station record is uploaded or lost in a delayed manner.
An entry and exit station record processing method, comprising:
receiving an outbound record reported by outbound equipment after acquiring and analyzing an outbound graphic code; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identification is updated the last time an outbound record including the user identification is received;
and when the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time is inquired, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record.
An entry and exit station record processing method, comprising:
acquiring a travel identifier corresponding to a local user identifier from a server; the travel identification is updated by the server when an outbound record including the user identification is received last time;
acquiring an outbound request;
responding to the outbound request, and generating an outbound graphic code according to the travel identifier and the user identifier; the outbound graphic code is used for indicating an outbound device to acquire and analyze the outbound graphic code, generating an outbound record comprising the trip identifier, the user identifier and outbound site information, and reporting the outbound record to the server; and the outbound record reported to the server is used for indicating that when the inbound record which corresponds to the user identifier and is adjacent to the outbound record time comprises the journey identifier, the current journey is determined according to the outbound site information and the inbound site information contained in the inbound record.
An incoming and outgoing station record processing system comprises a terminal, an outgoing device and a server, wherein:
the server is used for updating the travel identifier after receiving the outbound record including the user identifier reported by the outbound device in the previous time;
the terminal is used for acquiring the updated travel identifier from the server; generating an outbound graphic code according to the user identifier and the updated travel identifier;
the outbound equipment is used for acquiring and analyzing the outbound graphic code to obtain the user identifier and the travel identifier; generating an outbound record according to the outbound site information, the user identification and the travel identification; reporting the outbound record to the server;
the server is used for receiving the outbound record reported by the outbound device; and when the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time is inquired, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record.
An access station record processing apparatus, said apparatus comprising:
the outbound record receiving module is used for receiving the outbound record reported by the outbound equipment after the outbound graphic code is collected and analyzed; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identification is updated the last time an outbound record including the user identification is received;
and the journey determining module is used for determining the current journey according to the outbound site information and the inbound site information included by the inbound record when querying the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time.
An access station record processing apparatus, said apparatus comprising:
the system comprises a journey identifier acquisition module, a journey identifier acquisition module and a journey identifier acquisition module, wherein the journey identifier acquisition module is used for acquiring a journey identifier corresponding to a local user identifier from a server; the travel identification is updated by the server when an outbound record including the user identification is received last time;
the outbound request acquisition module is used for acquiring an outbound request;
the outbound graphic code generating module is used for responding to the outbound request and generating an outbound graphic code according to the journey identifier and the user identifier; the outbound graphic code is used for indicating an outbound device to acquire and analyze the outbound graphic code, generating an outbound record comprising the trip identifier, the user identifier and outbound site information, and reporting the outbound record to the server; and the outbound record reported to the server is used for indicating that when the inbound record which corresponds to the user identifier and is adjacent to the outbound record time comprises the journey identifier, the current journey is determined according to the outbound site information and the inbound site information contained in the inbound record.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described access point record processing method.
A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the above-described access station record processing method.
The outbound record processing method, the system, the device, the computer readable storage medium and the computer device add the journey identifier in the inbound record, wherein the journey identifier is updated by the server after the outbound record including the user identifier is received last time, namely the journey identifier can be used for uniquely identifying a journey of the user, so that the server can determine each journey according to the journey identifiers included in the inbound record and the outbound record. The terminal obtains the updated travel mark from the server, generates an outbound graphic code according to the local user mark and the travel mark, generates an outbound record according to the user mark, the travel mark and the outbound site information after the outbound graphic code is acquired and analyzed by the outbound device to obtain the user mark and the travel mark, and reports the outbound record to the server. The travel identifiers are consistent and the travel identifiers are latest, so that the outbound record and the inquired inbound record can be ensured to correspond to a certain travel, and the accuracy of travel determination is improved.
Drawings
FIG. 1 is a diagram of an application environment for a method for inbound record processing according to one embodiment;
FIG. 2 is a flow diagram illustrating a method for outbound record processing in one embodiment;
FIG. 3 is a diagram of a tour corresponding to a user identification in one embodiment;
FIG. 4 is a schematic diagram of a trip corresponding to a user identification in another embodiment;
FIG. 5 is a flow chart illustrating a process for a server to process outbound records in a particular application scenario;
FIG. 6 is a flowchart illustrating a method for processing outbound records according to another embodiment;
FIG. 7 is a flow diagram illustrating a method for outbound record processing in one embodiment;
fig. 8 is a block diagram of the configuration of an entrance and exit station record processing system in one embodiment;
FIG. 9 is a block diagram of an outbound record processing apparatus in one embodiment;
FIG. 10 is a block diagram showing the construction of an outbound record processing apparatus according to another embodiment;
FIG. 11 is a block diagram showing the structure of a computer device in one embodiment;
fig. 12 is a block diagram showing a configuration of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram illustrating an exemplary application environment for a method for processing inbound records. Referring to fig. 1, the entry and exit log processing method is applied to an entry and exit log processing system. The inbound and outbound record processing system includes a terminal 110, an outbound device 120, and a server 130. The terminal 110 and the server 130 are connected through a network. The outbound device 120 and the server 130 are connected by a network. The outbound device 120 may collect and parse the outbound graphic code generated by the terminal 110. The server 130 receives an outbound record reported by the outbound device 120 after acquiring and analyzing the outbound graphic code generated by the terminal 110; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identification is updated by the server 130 the previous time an outbound record including the user identification was received; the server 130 queries the inbound record corresponding to the user identification and adjacent to the outbound record time; when the inbound record queried by the server 130 includes the itinerary identifier, the current itinerary is determined based on the outbound site information and the inbound site information included in the inbound record. The terminal 110 may specifically be a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, or an intelligent wearable device. The server 130 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. The outbound device 120 may be specifically a gate or gate for automatic ticket checking, or the like.
In one embodiment, as shown in fig. 2, an ingress and egress station record processing method is provided. The embodiment mainly illustrates that the method is applied to the server 130 in fig. 1. Referring to fig. 2, the method for processing an entry/exit station record specifically includes the following steps:
s202, receiving an outbound record reported by the outbound equipment after acquiring and analyzing an outbound graphic code; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the trip identity is updated the previous time an outbound record including the user identity is received.
The outbound graphic code is a graphic code generated by the terminal and used for outbound, the graphic code can be a two-dimensional code or a bar code, and the outbound graphic code can be a two-dimensional code used for checking tickets when a subway is taken for outbound, for example. Accordingly, the inbound graphic code referred to hereinafter is a graphic code generated by the terminal for inbound. The outbound record is data in which outbound information of the current trip of the user is recorded. The outbound record includes at least outbound site information, trip identification, and user identification.
The outbound site information indicates a currently outbound site, and may specifically be an outbound site name or an outbound site identifier, where the outbound site information is stored locally in the outbound device. Accordingly, the inbound site information referred to below represents a currently inbound site, which may be specifically an inbound site name or an inbound site identification, and is stored locally on the inbound device. It should be noted that each site is configured with corresponding outbound devices and inbound devices, and the outbound devices and inbound devices of different sites have different corresponding site information.
The journey identification is a character string used for uniquely identifying a journey, the journey identification of the current time is updated by the server after receiving the outbound record comprising the user identification at the previous time, and the journey identification of the current time is used for generating the inbound graphic code and the outbound graphic code of the current journey.
The user identifier is used for uniquely identifying the current user identity, specifically may be a user account logged in an application program for generating an outbound graphic code or an inbound graphic code, and may also be a mailbox account, a mobile phone number or an identity card number bound to the user account, or may also be a credential card number purchased by the user for the outbound.
Specifically, a terminal acquires the latest travel identifier pulled from a server through a network, when a user is out of the station, the terminal acquires an out-of-station request triggered by the user, responds to the out-of-station request, generates an out-of-station graphic code according to the travel identifier and a local user identifier, and displays the out-of-station graphic code; the outbound device collects the outbound graphic code displayed by the terminal, analyzes the outbound graphic code to obtain the travel identifier and the user identifier, generates an outbound record according to the travel identifier, the user identifier and locally stored outbound site information, reports the current outbound record to the server through the network, and the server can receive the outbound record reported by the outbound device through the network.
It should be noted that the server may also push the latest route identifier to the terminal in real time, and if the push fails due to a problem such as a network, the server may continue to push the generated latest route identifier to the terminal until the push is successful.
In one embodiment, the server may send the outbound site information in the outbound record to the terminal in time after receiving the outbound record reported by the outbound device, and the terminal may display the name of the outbound site according to the received outbound site information and prompt the user that the outbound site has been successfully outbound from the terminal.
S204, when the server inquires the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record. .
In one embodiment, prior to step S204, the server may query the inbound record corresponding to the user identification and proximate to the outbound record time.
The inbound record is data in which inbound information of the current trip of the user is recorded. The inbound record includes at least inbound site information, trip identification, and user identification. The inbound record is reported to the server by the inbound device, specifically, the terminal obtains the latest journey identifier pulled from the server through the network, when the user is inbound, the terminal obtains the inbound request triggered by the user, responds to the inbound request, generates the inbound graphic code according to the journey identifier and the local user identifier, and displays the inbound graphic code; the inbound equipment acquires the inbound graphic code displayed by the terminal, analyzes the inbound graphic code to obtain the travel identifier and the user identifier, generates inbound records according to the travel identifier, the user identifier and locally stored inbound site information, reports the inbound records of the current travel to the server through the network, and the server can receive the inbound records reported by the inbound equipment through the network.
In one embodiment, the server may send the inbound site information in the inbound record to the terminal in time after receiving the inbound record reported by the inbound device, and the terminal may generate an inbound prompt according to the received inbound site information, for example, may display an inbound site name and the like, and prompt the user that the user has successfully entered from the site.
Specifically, after receiving the outbound record reported by the outbound device, the server may query the locally stored inbound record corresponding to the user identifier and neighboring to the time of the reported outbound record according to the user identifier in the outbound record. The time proximity can be the time proximity of acquisition of a graphic code or the time proximity of reporting of the inbound record to the server, and the inbound record in the time proximity of the outbound record can be one or more.
It should be noted that, when the inbound record corresponding to the next trip is reported to the server in a delayed manner due to poor network conditions or a failure of the inbound device, the inbound record does not exist locally at the server, and the queried inbound record that is time-adjacent to the outbound record may be the inbound record corresponding to the previous trip.
In step S204, the server may extract the itinerary identifier in the queried inbound record, and when the itinerary identifier in the inbound record is the same as the itinerary identifier in the outbound record reported by the outbound device, it indicates that the inbound record is matched with the outbound record, and indicates that the queried inbound record and the reported outbound record correspond to the current itinerary, and the server may determine the current itinerary according to the outbound site information in the outbound record and the queried inbound site information in the inbound record.
Further, when the travel identifier in the inbound record is different from the travel identifier in the outbound record reported by the outbound device, it indicates that the inbound record does not match the outbound record, and the inbound record, although being time-adjacent to the outbound record, may be the inbound record corresponding to the previous travel because the inbound record of the current travel has not been reported to the server in time yet, so that the queried inbound record is the inbound record corresponding to the previous travel.
As shown in fig. 3, which is a schematic diagram of a trip corresponding to a user identifier in one embodiment, trip 1 is a previous trip, and corresponds to trip identifier 0001; the stroke 2 is the current stroke, and corresponds to the stroke identifier 0002. The inbound record 1A and the outbound record 1B of the trip 1 are reported to the server successfully, but the inbound record 2A of the trip 2 is not uploaded to the server in time, and only the outbound record 2B is uploaded to the server, that is, the inbound record 2A of the trip 2 is missing. At this time, the server will find the inbound record 1A that is time-adjacent to the current outbound record 2B, but because the travel identifiers are different, the server will not match the inbound record 1A with the outbound record 2B, and obviously, there will be no case where the inbound record matches incorrectly.
In one embodiment, the server may mark the outbound record as unmatched since the outbound record does not match the corresponding inbound record for subsequent processing of the unmatched outbound record.
In the outbound and inbound record processing method, the journey identifier is added in the inbound and outbound record, and is updated by the server after the outbound record including the user identifier is received last time, namely the journey identifier can be used for uniquely identifying a journey of the user, so that the server can determine each journey according to the journey identifiers included in the inbound record and the outbound record. The terminal obtains the updated travel mark from the server, generates an outbound graphic code according to the local user mark and the travel mark, generates an outbound record according to the user mark, the travel mark and the outbound site information after the outbound graphic code is acquired and analyzed by the outbound device to obtain the user mark and the travel mark, and reports the outbound record to the server. The travel identifiers are consistent and the travel identifiers are latest, so that the outbound record and the inquired inbound record can be ensured to correspond to a certain travel, and the accuracy of travel determination is improved.
In one embodiment, the entry and exit station record processing method further comprises: after receiving the outbound record, generating a new travel identifier corresponding to the user identifier; sending the new travel identifier to a terminal corresponding to the user identifier; and the new journey identification is used for indicating the terminal to generate an inbound graphic code and an outbound graphic code of the next journey according to the new journey identification and the user identification.
Specifically, after the server receives the outbound record reported by the outbound device, it indicates that the user identified by the user identifier in the outbound record has finished the previous trip, and may generate a new trip identifier corresponding to the user identifier, and send the new trip identifier to the terminal corresponding to the user identifier. For example, after the user logs in the application program for generating the inbound graphic code or the outbound graphic code through the user identifier, the terminal running the application program will receive the latest travel identifier issued by the server. And in the next journey, the terminal responds to the inbound request and the outbound request triggered by the user and respectively generates an inbound graphic code and an outbound graphic code according to the latest journey identification. In this way, the travel identification may be used to uniquely represent a travel segment for the user, such that the server may determine each travel segment based on the travel identifications included in the inbound and outbound records.
In one embodiment, in step S202, before receiving an outbound record reported by the outbound device after acquiring and parsing the outbound graphic code, the method further includes: receiving an inbound record reported by inbound equipment after acquiring and analyzing an inbound graphic code; the inbound record comprises inbound site information, a travel identifier and a user identifier which are obtained by analyzing the inbound graphic code; sending the inbound site information to a terminal corresponding to the user identifier; and the inbound site information is used for indicating the terminal to generate an outbound graphic code of the current journey according to the journey identifier, the user identifier and the inbound site information.
Specifically, when a secondary journey starts and a user enters, the terminal acquires an inbound request triggered by the user, responds to the inbound request, generates an inbound graphic code according to the latest journey identification acquired from the server and the local user identification, and displays the inbound graphic code; the inbound equipment acquires and analyzes the inbound graphic code displayed by the terminal to obtain a travel identifier and a user identifier, and can generate an inbound record according to the travel identifier, the user identifier and locally stored inbound site information and report the inbound record to the server through the network; after receiving the inbound record, the server may send the inbound site information in the inbound record to the terminal, and the terminal may generate an outbound graphic code of a current trip according to the trip identifier, the user identifier, and the inbound site information when acquiring the outbound request.
In one embodiment, the receiving the outbound record reported by the outbound device after acquiring and analyzing the outbound graphic code includes: receiving an outbound record including inbound site information reported by outbound equipment after acquiring and analyzing an outbound graphic code; when inquiring the inbound record which comprises the journey identifier and the user identifier and is adjacent to the outbound record time, determining the current journey according to the outbound site information and the inbound site information included in the inbound record comprises: when the inquired inbound record comprises the journey identification and the included inbound site information is consistent with the inbound site information included in the outbound record, determining the current journey according to the outbound site information and the inbound site information included in the inbound record; the station access processing method further comprises the following steps: when the inquired inbound record does not comprise the journey identification; alternatively, when the inbound site information included in the inbound record does not match the inbound site information included in the outbound record, the queried inbound record and outbound record are marked as not matching.
Specifically, when a user goes out of a station, the terminal can generate an outbound graphic code of a current trip according to a trip identifier, a user identifier and inbound site information issued by the server, and display the outbound graphic code to outbound equipment, the outbound equipment acquires and analyzes the outbound graphic code to obtain the trip identifier, the user identifier and the inbound site information, and the outbound equipment can generate an outbound record according to the trip identifier, the user identifier, the inbound site information and locally stored outbound site information, and report the outbound record including the inbound site information to the server through a network. After receiving the outbound record including the inbound site information, the server locally queries an inbound record corresponding to the user identifier and adjacent to the outbound record time, and when the travel identifier in the queried inbound record is consistent with the travel identifier in the outbound record reported by the outbound device and the inbound site information included in the inbound record is consistent with the inbound site information included in the outbound record, the server may determine the current travel according to the outbound site information in the outbound record and the inbound site information included in the queried inbound record. And when the journey identifier in the inquired inbound record is inconsistent with the journey identifier in the outbound record reported by the outbound device, or when the inbound site information included in the inbound record is inconsistent with the inbound site information included in the outbound record, marking the inquired inbound record and the outbound record of the current journey in an unmatched state.
In this embodiment, by further comparing the inbound site information in the outbound record with the inbound site information included in the queried inbound record, when the server does not receive the outbound record of the previous trip and does not update the trip identifier corresponding to the user identifier, the inbound record matching the outbound record of the current trip can be accurately found. The following examples illustrate:
FIG. 4 is a diagram illustrating a trip corresponding to a user identifier in one embodiment. The stroke 1 is the previous stroke, and the stroke 2 is the current stroke. The inbound record 1A of the journey 1 is reported to the server successfully, but the outbound record 1B of the journey 1 is not reported to the server in time because of the network condition or the failure of the outbound device; the inbound record 2A and the outbound record 2B of the journey 2 are reported to the server successfully. Because the server does not receive the outbound record 1B of the previous trip 1 reported by the outbound device, the server cannot update the trip identifier corresponding to the user identifier, and when the terminal generates the inbound graphic code and the outbound graphic code corresponding to the trip 2, the latest trip identifier obtained from the server is the same as the trip identifier used by the trip 1, that is, the trip 2 continues to use the trip identifier of the trip 1. After the server receives the outbound record 2B reported by the outbound device, if the inbound record 1A of trip 1 and the inbound record 2A of trip 2 both conform to the requirement of time proximity with the outbound record 2B after being locally queried, even if the trip identifications of the inbound record 1A, the inbound record 2A and the outbound record 2B are the same, but only the inbound site information included in the inbound record 2A is consistent with the inbound site information in the outbound record 2B, the server matches the inbound record 2A with the outbound record 2B of the current trip, so that the current trip can be accurately determined.
In one embodiment, the inbound record further includes an inbound time, and the outbound record further includes an outbound time; the above outbound and inbound record processing method further includes: determining the current travel time length according to the outbound time and the inbound time; when the journey time length is less than or equal to the journey time length upper limit value, when inquiring the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record; the method further comprises the following steps: and when the travel time length is greater than the travel time length upper limit value, marking the inquired inbound record and the inquired outbound record as an unmatched state.
The inbound time is the time for the inbound device to acquire the inbound graphic code, the outbound time is the time for the outbound device to acquire the outbound graphic code, and the upper limit value of the travel time duration is the maximum value of the preset travel time duration, for example, 3 hours, and may be used to check the overtime travel.
Specifically, before executing step S204, the server may determine the travel time length according to the outbound time in the received outbound record and the inbound time in the queried inbound record, and if the travel time length of the secondary travel is less than or equal to the upper limit of the travel time length, the server continues to execute step S204, that is, when the travel identifier included in the queried inbound record is consistent with the travel identifier in the received outbound record, the inbound station and the outbound station of the current travel may be determined. If it is determined that the travel duration of the current travel is greater than the set upper limit of the travel duration according to the queried inbound record, that is, the current travel is an overtime travel, even if the travel identifier included in the inbound record is consistent with the travel identifier in the received outbound record, manual confirmation is still required, so that the server does not need to execute step S204, but directly marks the queried inbound record and the received outbound record in an unmatched state, so that the unmatched inbound and outbound records are processed in a subsequent system.
In one embodiment, the method for processing an access point further includes: determining differences between the reporting time corresponding to the inquired inbound record and the included inbound time and between the reporting time corresponding to the outbound record and the included outbound time; then, when querying the inbound record that includes the travel identifier and the user identifier and is adjacent to the outbound record time, determining the current travel according to the outbound site information and the inbound site information included in the inbound record may further include: when the inquired inbound record comprises the journey identifier and the reporting delay is determined to be absent according to the difference, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record; the method further comprises the following steps: and when the reporting delay is determined to exist according to the difference, the inquired inbound record and the inquired outbound record are marked to be in an unmatched state.
The reporting time of the inbound record is the time when the server successfully receives the inbound record sent by the inbound device, and the inbound time is the time when the inbound device acquires the inbound graphic code; the reporting time of the outbound record is the time when the server successfully receives the outbound record sent by the outbound device, and the outbound time is the time when the outbound device acquires the outbound graphic code. The reporting delay refers to that at least one of a difference between the inbound time and the reporting time corresponding to the inbound record and a difference between the outbound time and the reporting time corresponding to the outbound record is greater than a preset value, for example, if the difference between the reporting time corresponding to the inbound record and the inbound time exceeds 20 minutes, it is determined that the reporting delay exists.
Specifically, when the server determines that there is a reporting delay according to at least one of a difference between a reporting time corresponding to the queried inbound record and an inbound time, and a difference between a reporting time corresponding to the outbound record and an outbound time, even if a trip identifier included in the inbound record is the same as a trip identifier in the outbound record, the server needs to mark the queried inbound record and the received outbound record as an unmatched state, so that the unmatched inbound and outbound records are processed by the subsequent system.
In one embodiment, the method for processing an access point further includes: obtaining unmatched outbound records and unmatched inbound records; matching according to the sequence of the inbound time included by the unmatched inbound record and the outbound time included by the unmatched outbound record; and determining corresponding trips according to the inbound records and the outbound records which are successfully matched.
Specifically, although there may be a case where the inbound record and the outbound record are reported to the server with a delay, the inbound time and the outbound time are determined by the inbound device and the outbound device respectively and are sent to the server as the inbound record and the outbound record, and the inbound time and the outbound time are not changed, so that for the inbound record and the outbound record which cannot be matched immediately after the outbound record is received, the server can perform matching according to the sequence of the inbound time and the outbound time when the terminal of the day is cleared, and determine the corresponding journey according to the successfully matched inbound record and the successfully matched outbound record.
In one embodiment, after determining the current trip according to the outbound site information and the inbound site information included in the inbound record, the inbound and outbound processing method further includes: calculating a trip fee according to the outbound site information and the inbound site information; and generating a fund transfer request corresponding to the current trip according to the trip fee.
Specifically, the server may calculate the trip fee of the trip immediately based on the outbound site information and the inbound site information after determining the current trip according to the above processing steps, and the server may generate the fund transfer request based on the trip fee, and may deduct the trip fee immediately.
For example, in a scenario where the outbound and inbound record processing method is applied to subway ride charging, the server may calculate a subway ride cost according to outbound site information and inbound site information corresponding to a current trip after determining the current trip according to the outbound and inbound record processing method, and generate a ride cost deduction request corresponding to the current trip of the user according to the subway ride cost, where the ride cost deduction request is used to deduct subway ride cost from an account of the user.
FIG. 5 is a flow diagram illustrating processing of outbound records by a server in one embodiment. Referring to fig. 5, the server receives an outbound record; if the server finds an unmatched inbound record which corresponds to the user identifier in the outbound record and is adjacent to the time from the local, the server continues to determine the travel time length according to the outbound time in the outbound record and the searched inbound time in the inbound record; if the corresponding inbound record cannot be found, the server marks the outbound record as an unmatched state; when the determined journey duration is smaller than a preset upper limit value, the server continuously checks whether journey identification and inbound site information in the outbound record are consistent with journey identification and inbound site information in the inquired inbound record; if the time difference is consistent with the reporting time of the outbound record, the server continuously checks the difference between the outbound site time and the reporting time of the outbound record in the outbound record and the difference between the queried inbound site time and the reporting time of the inbound record in the inbound record; if not, the server marks the outbound record as an unmatched state; if the server determines that the reporting delay does not exist according to the difference, the server marks the outbound record into a matching state, calculates the riding cost according to the outbound site information in the outbound record and the queried inbound site information in the inbound record, and generates a corresponding riding cost deduction request; if the server determines that the reporting delay exists according to the difference, the server marks the outbound record as an unmatched state, and the outbound record marked as the unmatched state is convenient for subsequent unified processing.
As shown in fig. 6, in one embodiment, an ingress and egress station record processing method is provided. The embodiment is mainly illustrated by applying the method to the terminal 110 in fig. 1. Referring to fig. 2, the method for processing an entry/exit station record specifically includes the following steps:
s602, acquiring a travel identifier corresponding to a local user identifier from a server; the travel identification is updated by the server the previous time an outbound record including the user identification was received.
The outbound record is data in which outbound information of the current trip of the user is recorded. The outbound record includes at least outbound site information, trip identification, and user identification.
The outbound site information indicates a currently outbound site, and may specifically be an outbound site name or an outbound site identifier, where the outbound site information is stored locally in the outbound device. Accordingly, the inbound site information referred to below represents a currently inbound site, which may be specifically an inbound site name or an inbound site identification, and is stored locally on the inbound device. It should be noted that each site is configured with corresponding outbound devices and inbound devices, and the outbound devices and inbound devices of different sites have different corresponding site information.
The journey identification is a character string used for uniquely identifying a journey, the journey identification of the current time is updated by the server after receiving the outbound record comprising the user identification at the previous time, and the journey identification of the current time is used for generating the inbound graphic code and the outbound graphic code of the current journey.
The user identifier is used for uniquely identifying the current user identity, specifically may be a user account logged in an application program for generating an outbound graphic code or an inbound graphic code, and may also be a mailbox account, a mobile phone number or an identity card number bound to the user account, or may also be a credential card number purchased by the user for the outbound.
S604, obtaining the outbound request.
S606, responding to the outbound request, and generating an outbound graphic code according to the travel identifier and the user identifier; the outbound graphic code is used for indicating the outbound equipment to acquire and analyze the outbound graphic code, generating an outbound record comprising a travel identifier, a user identifier and outbound site information, and reporting the outbound record to the server; and the reported outbound record is used for indicating the server to determine the current trip according to the outbound site information and the inbound site information included in the inbound record when the inbound record corresponding to the user identifier and adjacent to the outbound record time comprises the trip identifier.
Specifically, the terminal acquires the latest travel identifier pulled from the server through the network, and when the user is out of the station, the terminal acquires an out-of-station request triggered by the user, and generates an out-of-station graphic code according to the travel identifier and the local user identifier in response to the out-of-station request. The outbound device collects the outbound graphic code displayed by the terminal, analyzes the outbound graphic code to obtain the travel identifier and the user identifier, generates an outbound record according to the travel identifier, the user identifier and locally stored outbound site information, reports the current outbound record to the server through the network, and the server can receive the outbound record reported by the outbound device through the network.
In this way, the outbound record generated by the outbound device includes the travel identifier updated by the server, from which the server can match the current travel.
In one embodiment, the server may send the outbound site information in the outbound record to the terminal in time after receiving the outbound record reported by the outbound device, and the terminal may display the name of the outbound site according to the received outbound site information and prompt the user that the outbound site has been successfully outbound from the terminal.
In one embodiment, the outbound and inbound record processing method further includes: obtaining an inbound request; responding to the inbound request, and generating an inbound graphic code according to the travel identifier and the user identifier; the inbound graphic code is used for indicating the inbound equipment to acquire and analyze the inbound graphic code, then generating inbound records comprising the travel identifier, the user identifier and the inbound site information, and reporting the inbound records to the server.
The inbound record is data in which inbound information of the current trip of the user is recorded. The inbound record includes at least inbound site information, trip identification, and user identification. The inbound record is reported to the server by the inbound device, specifically, the terminal obtains the latest journey identifier pulled from the server through the network, when the user is inbound, the terminal obtains the inbound request triggered by the user, responds to the inbound request, generates the inbound graphic code according to the journey identifier and the local user identifier, and displays the inbound graphic code; the inbound equipment acquires the inbound graphic code displayed by the terminal, analyzes the inbound graphic code to obtain the travel identifier and the user identifier, generates inbound records according to the travel identifier, the user identifier and locally stored inbound site information, reports the inbound records of the current travel to the server through the network, and the server can receive the inbound records reported by the inbound equipment through the network.
In one embodiment, the server may send the inbound site information in the inbound record to the terminal in time after receiving the inbound record reported by the inbound device, and the terminal may generate an inbound prompt according to the received inbound site information, for example, may display an inbound site name and the like, and prompt the user that the user has successfully entered from the site.
In one embodiment, the outbound and inbound record processing method further includes: receiving inbound site information fed back by a server; the step S606 of generating the outbound graphic code according to the travel identifier and the user identifier in response to the outbound request includes: responding to the outbound request, and generating an outbound graphic code according to the journey identifier, the user identifier and the inbound site information; the outbound graphic code is used for indicating the outbound equipment to acquire and analyze the outbound graphic code, generating an outbound record comprising a travel identifier, a user identifier, inbound site information and outbound site information, and reporting the outbound record to the server; and when the reported outbound record is used for indicating the server that the inbound record corresponding to the user identifier and adjacent to the outbound record time comprises the journey identifier and the included inbound site information is consistent with the inbound site information included in the outbound record, determining the current journey according to the outbound site information and the inbound site information included in the inbound record.
Specifically, when a user enters the station, the terminal acquires an inbound request triggered by the user, responds to the inbound request, generates an inbound graphic code according to the latest travel identifier acquired from the server and the local user identifier, and displays the inbound graphic code; the inbound equipment acquires and analyzes the inbound graphic code displayed by the terminal to obtain a travel identifier and a user identifier, and can generate an inbound record according to the travel identifier, the user identifier and locally stored inbound site information and report the inbound record to the server through the network; after receiving the inbound record, the server may send the inbound site information in the inbound record to the terminal, and the terminal may generate an outbound graphic code of a current trip according to the trip identifier, the user identifier, and the inbound site information when acquiring the outbound request.
The outbound device acquires and analyzes the outbound graphic code to obtain a journey identifier, a user identifier and the inbound site information, and the outbound device can generate an outbound record according to the journey identifier, the user identifier, the inbound site information and locally stored outbound site information and report the outbound record including the inbound site information to a server through a network.
After receiving the outbound record including the inbound site information, the server locally queries an inbound record corresponding to the user identifier and adjacent to the outbound record time, and when the travel identifier in the queried inbound record is consistent with the travel identifier in the outbound record reported by the outbound device and the inbound site information included in the inbound record is consistent with the inbound site information included in the outbound record, the server may determine the current travel according to the outbound site information in the outbound record and the inbound site information included in the queried inbound record.
In this embodiment, by further comparing the inbound site information in the outbound record with the inbound site information included in the queried inbound record, when the server does not receive the outbound record of the previous trip and does not update the trip identifier corresponding to the user identifier, the inbound record matching the outbound record of the current trip can be accurately found.
Fig. 7 is a flowchart illustrating an outbound record processing method according to an exemplary embodiment. Referring to fig. 7, the entry and exit station record processing method specifically includes the steps of:
s702, when the user enters, the terminal acquires an entering request.
S704, the terminal responds to the inbound request, and generates an inbound graphic code according to the latest travel identifier and the local user identifier acquired from the server.
And S706, acquiring and analyzing the inbound graphic code by the inbound equipment to obtain a travel identifier and a user identifier.
And S708, the inbound device generates an inbound record comprising the journey identifier, the user identifier and the inbound site information according to the local inbound site information, and reports the inbound record to the server.
And S710, after receiving the inbound record, the server sends the inbound site information included in the inbound record to the terminal.
S712, the terminal generates a prompt that the station has been successfully inbound according to the inbound site information.
S714, when the user goes out of the station, the terminal acquires the outbound request.
S716, the terminal responds to the outbound request, and generates an outbound graphic code according to the latest travel identifier, the local user identifier and the inbound site information acquired from the server.
And S718, acquiring and analyzing the outbound graphic code by the outbound equipment to obtain the journey identifier, the local user identifier and the inbound site information.
S720, the outbound device generates an outbound record comprising the journey identifier, the user identifier, the inbound site information and the outbound site information according to the local outbound site information, and reports the outbound record to the server.
S722, after receiving the outbound record, the server transmits the outbound site information included in the outbound record to the terminal.
S724, the terminal generates a prompt that the station is successfully outbound according to the outbound station information.
S726, after receiving the outbound record, the server queries the inbound record corresponding to the user identifier and neighboring to the outbound record time.
S728, when the travel identifier included in the queried inbound record is consistent with the travel identifier in the outbound record, and the inbound site information included in the inbound record is consistent with the inbound site information in the outbound record, the server determines the current travel according to the outbound site information and the inbound site information included in the inbound record.
S730, the server calculates the travel fee according to the outbound site information and the inbound site information; and generating a fund transfer request corresponding to the current trip according to the trip fee.
In the outbound and inbound record processing method, the journey identifier is added in the inbound and outbound record, and is updated by the server after the outbound record including the user identifier is received last time, namely the journey identifier can be used for uniquely representing a journey of the user, so that the server can determine each journey according to the journey identifiers included in the inbound record and the outbound record. The terminal obtains the updated travel mark from the server, generates an outbound graphic code according to the local user mark and the travel mark, generates an outbound record according to the user mark, the travel mark and the outbound site information after the outbound graphic code is acquired and analyzed by the outbound device to obtain the user mark and the travel mark, and reports the outbound record to the server. The travel identifiers are consistent and the travel identifiers are latest, so that the outbound record and the inquired inbound record can be ensured to correspond to a certain travel, and the accuracy of travel determination is improved.
FIG. 7 is a flowchart illustrating a method for inbound record processing according to one embodiment. It should be understood that, although the steps in the flowchart of fig. 7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in fig. 8, in one embodiment, an inbound stop record processing system 800 is provided, the system comprising a terminal 802, an outbound device 804, and a server 806, wherein:
the server 806 is configured to update the travel identifier after receiving the outbound record including the user identifier reported by the outbound device 804 in the previous time;
the terminal 802 is configured to obtain an updated travel identifier from the server; generating an outbound graphic code according to the user identification and the updated travel identification;
the outbound device 804 is used for acquiring and analyzing the outbound graphic code to obtain a user identifier and a travel identifier; generating an outbound record according to the outbound site information, the user identification and the journey identification; reporting the outbound record to a server;
the server 806 is further configured to receive an outbound record reported by the outbound device 804; when the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time is inquired, the current journey is determined according to the outbound site information and the inbound site information contained in the inbound record.
In one embodiment, the server 806 is configured to generate a new travel identifier corresponding to the user identifier after receiving the outbound record; sending the new travel identifier to the terminal 802 corresponding to the user identifier; the new travel identifier is used to instruct the terminal 802 to generate the inbound graphic code and the outbound graphic code for the next travel according to the new travel identifier and the user identifier.
In one embodiment, the inbound record processing system 800 further comprises an inbound device, the terminal 802 further configured to obtain an inbound request; responding to the inbound request, and generating an inbound graphic code according to the travel identifier and the user identifier; the inbound device is configured to generate an inbound record including the travel identifier, the user identifier, and the inbound site information after collecting and parsing the inbound graphic code, and report the inbound record to the server 806.
In one embodiment, the server 806 is configured to receive inbound records reported by the inbound device after acquiring and analyzing the inbound graphic code; the inbound site information is sent to the terminal 802 corresponding to the subscriber identity.
In one embodiment, the terminal 802 is further configured to receive inbound site information fed back by the server 806; the terminal 802 is further configured to generate an outbound graphic code according to the travel identifier, the user identifier, and the inbound site information in response to the outbound request; the outbound device 804 is further configured to acquire and analyze the outbound graphic code, generate an outbound record including the trip identifier, the user identifier, the inbound site information, and the outbound site information, and report the outbound record to the server 806; the server 806 is further configured to determine a current trip based on the outbound site information and the inbound site information included in the inbound record when the inbound record corresponding to the user identification and proximate in time to the outbound record includes the trip identification and the included inbound site information is consistent with the inbound site information included in the outbound record.
In one embodiment, the server 806 is further configured to determine a length of travel for the current time based on the outbound time and the inbound time; and when the journey duration is less than or equal to the journey duration upper limit value, determining the current journey according to the outbound site information and the inbound site information included by the inbound record when the inquired inbound record includes the journey identification.
In one embodiment, the server 806 is further configured to determine a difference between a reporting time corresponding to the queried inbound record and the included inbound time, and a reporting time corresponding to the outbound record and the included outbound time; when the inquired inbound record comprises the journey identifier and the reporting delay is determined to be absent according to the difference, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record; and when the reporting delay is determined to exist according to the difference, the inquired inbound record and the inquired outbound record are marked to be in an unmatched state.
In one embodiment, the server 806 is also used to obtain unmatched outbound records and unmatched inbound records; matching according to the sequence of the inbound time included by the unmatched inbound record and the outbound time included by the unmatched outbound record; and determining corresponding trips according to the inbound records and the outbound records which are successfully matched.
In one embodiment, the server 806 is further configured to calculate a trip fee based on the outbound site information and the inbound site information after determining the current trip based on the outbound site information and the inbound site information included in the inbound record, and generate a funds transfer request corresponding to the current trip based on the trip fee.
The system for processing the access record adds the journey identifier in the access record, wherein the journey identifier is updated by the server after the outbound record including the user identifier is received last time, namely the journey identifier can be used for representing a journey of the user, so that the server can determine each journey according to the journey identifiers included in the inbound record and the outbound record. The terminal obtains the updated travel mark from the server, generates an outbound graphic code according to the local user mark and the travel mark, generates an outbound record according to the user mark, the travel mark and the outbound site information after the outbound graphic code is acquired and analyzed by the outbound device to obtain the user mark and the travel mark, and reports the outbound record to the server. The travel identifiers are consistent and the travel identifiers are latest, so that the outbound record and the inquired inbound record can be ensured to correspond to a certain travel, and the accuracy of travel determination is improved.
In one embodiment, as shown in fig. 9, an access station record processing apparatus 900 is provided, the access station record processing apparatus 900 including an access station record receiving module 902 and a trip determining module 904, wherein:
an outbound record receiving module 902, configured to receive an outbound record reported by the outbound device after acquiring and analyzing the outbound graphic code; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identifier is updated the last time an outbound record including the user identifier is received;
and an itinerary determination module 904, configured to determine a current itinerary according to the outbound site information and the inbound site information included in the inbound record when querying the inbound record that includes the itinerary identifier and the user identifier and is adjacent to the outbound record time.
In one embodiment, the inbound and outbound record processing device 900 further includes a travel identifier updating module, configured to generate a new travel identifier corresponding to the user identifier after receiving the outbound record; sending the new travel identifier to a terminal corresponding to the user identifier; and the new journey identification is used for indicating the terminal to generate an inbound graphic code and an outbound graphic code of the next journey according to the new journey identification and the user identification.
In an embodiment, the inbound record processing apparatus 900 further includes an inbound record receiving module and a feedback module, where the inbound record receiving module is further configured to receive an inbound record reported by the inbound device after acquiring and analyzing the inbound graphic code; the inbound record comprises inbound site information, a travel identifier and a user identifier which are obtained by analyzing the inbound graphic code; the feedback module is used for sending the inbound site information to a terminal corresponding to the user identifier; and the inbound site information is used for indicating the terminal to generate an outbound graphic code of the current journey according to the journey identifier, the user identifier and the inbound site information.
In one embodiment, the outbound record receiving module 902 is further configured to receive an outbound record including inbound site information reported by the outbound device after acquiring and analyzing the outbound graphic code; the itinerary determination module 904 is further configured to determine a current itinerary according to the outbound site information and the inbound site information included in the inbound record when the queried inbound record includes an itinerary identifier and the included inbound site information is consistent with the inbound site information included in the outbound record; the itinerary determination module 904 is further configured to determine if the queried inbound record does not include an itinerary identifier; alternatively, when the inbound site information included in the inbound record does not match the inbound site information included in the outbound record, the queried inbound record and outbound record are marked as not matching.
In one embodiment, the inbound record further includes an inbound time, and the outbound record further includes an outbound time; the access record processing device 900 further includes a travel time length determining module, which is configured to determine a current travel time length according to the outbound time and the inbound time; when the travel time length is less than or equal to the travel time length upper limit value, the travel determination module 904 performs a step of determining the current travel according to the outbound site information and the inbound site information included in the inbound record when the queried inbound record includes the travel identifier; the trip determination module 904 is further configured to mark the queried inbound and outbound records as not matching when the trip length is greater than the upper trip length limit.
In one embodiment, the inbound record processing apparatus 900 further includes a reporting delay determining module, configured to determine a difference between a reporting time corresponding to the queried inbound record and an included inbound time, and a reporting time corresponding to the outbound record and an included outbound time; the itinerary determination module 904 is further configured to determine a current itinerary according to the outbound site information and the inbound site information included in the inbound record when the queried inbound record includes an itinerary identifier and it is determined according to the difference that there is no reporting delay; the trip determination module 904 is further configured to mark the queried inbound record and outbound record as an unmatched status when it is determined from the difference that there is a reporting delay.
In one embodiment, the inbound and outbound records processing device 900 further comprises a matching module for obtaining unmatched outbound records and unmatched inbound records; matching according to the sequence of the inbound time included by the unmatched inbound record and the outbound time included by the unmatched outbound record; and determining corresponding trips according to the inbound records and the outbound records which are successfully matched.
In one embodiment, the inbound and outbound records processing device 900 further comprises a fund transfer request generation module, configured to calculate a trip fee according to the outbound site information and the inbound site information; and generating a fund transfer request corresponding to the current trip according to the trip fee.
In one embodiment, as shown in fig. 10, there is provided an inbound and outbound record processing apparatus 1000, which includes a journey identity acquisition module 1002, an outbound request acquisition module 1004, and an outbound graphic code generation module 1006, wherein:
a trip identifier obtaining module 1002, configured to obtain a trip identifier corresponding to a local user identifier from a server; the travel identifier is updated by the server when the outbound record including the user identifier is received last time;
an outbound request obtaining module 1004 for obtaining an outbound request;
an outbound graphic code generation module 1006, configured to generate an outbound graphic code according to the travel identifier and the user identifier in response to the outbound request; the outbound graphic code is used for indicating the outbound equipment to acquire and analyze the outbound graphic code, generating an outbound record comprising a travel identifier, a user identifier and outbound site information, and reporting the outbound record to the server; and the outbound record reported to the server is used for indicating the server to inquire the inbound record which corresponds to the user identifier and is adjacent to the outbound record time comprises the journey identifier, and determining the current journey according to the outbound site information and the inbound site information contained in the inbound record.
In one embodiment, the inbound graphic code generation module is configured to obtain the inbound request from the inbound record processing device 1000; responding to the inbound request, and generating an inbound graphic code according to the travel identifier and the user identifier; the inbound graphic code is used for indicating the inbound equipment to acquire and analyze the inbound graphic code, then generating inbound records comprising the travel identifier, the user identifier and the inbound site information, and reporting the inbound records to the server.
In one embodiment, the inbound record processing device 1000 further includes an inbound site information receiving module for receiving inbound site information fed back by the server; the outbound graphic code generation module 1006 is further configured to generate an outbound graphic code according to the travel identifier, the user identifier, and the inbound site information in response to the outbound request; the outbound graphic code is used for indicating the outbound equipment to acquire and analyze the outbound graphic code, generating an outbound record comprising a travel identifier, a user identifier, inbound site information and outbound site information, and reporting the outbound record to the server; and when the reported outbound record is used for indicating the server that the inbound record corresponding to the user identifier and adjacent to the outbound record time comprises the journey identifier and the included inbound site information is consistent with the inbound site information included in the outbound record, determining the current journey according to the outbound site information and the inbound site information included in the inbound record.
The above-mentioned device for processing the log-in and log-out record adds the trip identifier in the log-in and log-out record, and the trip identifier is updated by the server after the outbound record including the user identifier is received last time, that is, the trip identifier can be used for uniquely identifying a section of the trip of the user, so that the server can determine each section of the trip according to the trip identifiers included in the inbound record and the outbound record. The terminal obtains the updated travel mark from the server, generates an outbound graphic code according to the local user mark and the travel mark, generates an outbound record according to the user mark, the travel mark and the outbound site information after the outbound graphic code is acquired and analyzed by the outbound device to obtain the user mark and the travel mark, and reports the outbound record to the server. The travel identifiers are consistent and the travel identifiers are latest, so that the outbound record and the inquired inbound record can be ensured to correspond to a certain travel, and the accuracy of travel determination is improved.
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the server 130 in fig. 1. As shown in fig. 11, the computer apparatus includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement an entry and exit record processing method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the inbound and outbound record processing method.
FIG. 12 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the terminal 110 in fig. 1. As shown in fig. 12, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement an entry and exit record processing method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the inbound and outbound record processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 11 and 12 are block diagrams of only some of the configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the access station record processing apparatus 900 provided herein may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 11. The memory of the computer device may store various program modules constituting the inbound and outbound record processing means 900, such as the outbound record receiving module 902 and the trip determining module 906 shown in fig. 9. The computer program constituted by the respective program modules causes the processor to execute the steps in the access station record processing method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 11 may execute step S202 by the outbound record receiving module 902 in the inbound and outbound record processing apparatus 900 shown in fig. 9. The computer device may perform step S204 through the inbound record query module 904.
In one embodiment, the access station record processing apparatus 1000 provided in the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 12. The memory of the computer device may store various program modules constituting the inbound and outbound record processing apparatus 1000, such as a journey identifier acquisition module 1002, an outbound request acquisition module 1004, and an outbound graphic code generation module 1006 shown in fig. 10. The computer program constituted by the respective program modules causes the processor to execute the steps in the access station record processing method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 12 may execute step S202 by the trip identification acquisition module 1002 in the entry and exit station record processing apparatus 1000 shown in fig. 10. The computer device may perform step S204 through the outbound request acquiring module 1004. The computer apparatus may perform step S206 through the outbound graphic code generation module 1006.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the above-described access station record processing method. Here, the steps of the outbound record processing method may be the steps of the inbound record processing method of the above-described embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the above-described access station record processing method. Here, the steps of the outbound record processing method may be the steps of the inbound record processing method of the above-described embodiments.
Those skilled in the art will appreciate that all or a portion of the processes in the methods of the embodiments described above may be implemented by computer programs that may be stored in a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, non-volatile memory may include read-only memory (ROM), programmable ROM (prom), electrically programmable ROM (eprom), electrically erasable programmable ROM (eeprom), or flash memory, volatile memory may include Random Access Memory (RAM) or external cache memory, RAM is available in a variety of forms, such as static RAM (sram), Dynamic RAM (DRAM), synchronous sdram (sdram), double data rate sdram (ddr sdram), enhanced sdram (sdram), synchronous link (sdram), dynamic RAM (rdram) (rdram L), direct dynamic RAM (rdram), and the like, and/or external cache memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. An entry and exit station record processing method, comprising:
receiving an outbound record reported by outbound equipment after acquiring and analyzing an outbound graphic code; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identification is updated the last time an outbound record including the user identification is received;
and when the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time is inquired, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record.
2. The method of claim 1, further comprising:
after the outbound record is received, generating a new travel identifier corresponding to the user identifier;
sending the new travel identifier to a terminal corresponding to the user identifier; and the new journey identification is used for indicating the terminal to generate an inbound graphic code and an outbound graphic code of the next journey according to the new journey identification and the user identification.
3. The method of claim 1, wherein before the receiving outbound device reports the outbound record after acquiring and parsing the outbound graphic code, the method further comprises:
receiving an inbound record reported by inbound equipment after acquiring and analyzing an inbound graphic code; the inbound record comprises inbound site information, the travel identifier and the user identifier which are obtained by analyzing the inbound graphic code;
sending the inbound site information to a terminal corresponding to the user identifier; and the inbound site information is used for indicating the terminal to generate an outbound graphic code of the current journey according to the journey identifier, the user identifier and the inbound site information.
4. The method of claim 1, wherein receiving outbound records reported by the outbound device after acquiring and parsing the outbound graphic code comprises:
receiving an outbound record including inbound site information reported by outbound equipment after acquiring and analyzing an outbound graphic code;
when inquiring the inbound record which comprises the journey identifier and the user identifier and is adjacent to the outbound record time, determining the current journey according to the outbound site information and the inbound site information included in the inbound record comprises:
when the inquired inbound record comprises the journey identification and the included inbound site information is consistent with the inbound site information included in the outbound record, determining the current journey according to the outbound site information and the inbound site information included in the inbound record;
the method further comprises the following steps:
when the inquired inbound record does not comprise the journey identification; or when the inbound site information included in the inbound record is inconsistent with the inbound site information included in the outbound record, marking the queried inbound record and outbound record in a non-matching state.
5. The method of claim 1, wherein the inbound record further comprises an inbound time, and the outbound record further comprises an outbound time; the method further comprises the following steps:
determining the current journey time length according to the outbound time and the inbound time;
when the travel time is less than or equal to the travel time upper limit value, executing the step of determining the current travel according to the outbound site information and the inbound site information included in the inbound record when the inbound record which includes the travel identifier and the user identifier and is adjacent to the outbound record time is inquired;
and when the travel time length is greater than the upper limit value of the travel time length, marking the inquired inbound record and the inquired outbound record in an unmatched state.
6. The method of claim 1, further comprising:
determining differences between the reported time corresponding to the inquired inbound record and the included inbound time and between the reported time corresponding to the outbound record and the included outbound time;
when inquiring the inbound record which comprises the journey identifier and the user identifier and is adjacent to the outbound record time, determining the current journey according to the outbound site information and the inbound site information included in the inbound record comprises:
when the inquired inbound record comprises the journey identifier and the reporting delay is determined to be absent according to the difference, determining the current journey according to the outbound site information and the inbound site information included in the inbound record;
the method further comprises the following steps:
and when the reporting delay is determined to exist according to the difference, marking the inquired inbound record and the inquired outbound record as an unmatched state.
7. The method according to any one of claims 4 to 6, further comprising:
obtaining unmatched outbound records and unmatched inbound records;
matching according to the sequence of the inbound time included by the unmatched inbound record and the outbound time included by the unmatched outbound record;
and determining corresponding trips according to the inbound records and the outbound records which are successfully matched.
8. The method of any of claims 1 to 6, wherein after said determining a current trip based on said outbound site information and inbound site information included in said inbound record, said method further comprises:
calculating a trip fee according to the outbound site information and the inbound site information;
and generating a fund transfer request corresponding to the current journey according to the journey fee.
9. An entry and exit station record processing method, comprising:
acquiring a travel identifier corresponding to a local user identifier from a server; the travel identification is updated by the server when an outbound record including the user identification is received last time;
acquiring an outbound request;
responding to the outbound request, and generating an outbound graphic code according to the travel identifier and the user identifier; the outbound graphic code is used for indicating an outbound device to acquire and analyze the outbound graphic code, generating an outbound record comprising the trip identifier, the user identifier and outbound site information, and reporting the outbound record to the server; and the reported outbound record is used for indicating that when the inbound record which corresponds to the user identifier and is adjacent to the outbound record time comprises the journey identifier, the current journey is determined according to the outbound site information and the inbound site information included in the inbound record.
10. The method of claim 9, further comprising:
obtaining an inbound request;
responding to the inbound request, and generating an inbound graphic code according to the journey identifier and the user identifier; the inbound graphic code is used for indicating inbound equipment to acquire and analyze the inbound graphic code, generating inbound records comprising the travel identifier, the user identifier and inbound site information, and reporting the inbound records to the server.
11. The method of claim 9, further comprising:
receiving inbound site information fed back by the server;
the step of generating an outbound graphic code according to the travel identifier and the user identifier in response to the outbound request comprises:
responding to the outbound request, and generating an outbound graphic code according to the journey identifier, the user identifier and the inbound site information; the outbound graphic code is used for indicating an outbound device to acquire and analyze the outbound graphic code, generating an outbound record comprising the trip identifier, the user identifier, the inbound site information and the outbound site information, and reporting the outbound record to the server;
and when the reported outbound record is used for indicating that the server includes the journey identifier in the inbound record corresponding to the user identifier and adjacent to the outbound record time, and the included inbound site information is consistent with the inbound site information included in the outbound record, determining the current journey according to the outbound site information and the inbound site information included in the inbound record.
12. An incoming and outgoing station record processing system comprises a terminal, an outgoing device and a server, wherein:
the server is used for updating the travel identifier after receiving the outbound record including the user identifier reported by the outbound device in the previous time;
the terminal is used for acquiring the updated travel identifier from the server; generating an outbound graphic code according to the user identifier and the updated travel identifier;
the outbound equipment is used for acquiring and analyzing the outbound graphic code to obtain the user identifier and the travel identifier; generating an outbound record according to the outbound site information, the user identification and the travel identification; reporting the outbound record to the server;
the server is used for receiving the outbound record reported by the outbound device; and when the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time is inquired, determining the current journey according to the outbound site information and the inbound site information contained in the inbound record.
13. An access station record processing apparatus, comprising:
the outbound record receiving module is used for receiving the outbound record reported by the outbound equipment after the outbound graphic code is collected and analyzed; the outbound record comprises outbound site information, a travel identifier and a user identifier which are obtained by analyzing the outbound graphic code; the travel identification is updated the last time an outbound record including the user identification is received;
and the journey determining module is used for determining the current journey according to the outbound site information and the inbound site information included by the inbound record when querying the inbound record which comprises the journey identification and the user identification and is adjacent to the outbound record time.
14. An access station record processing apparatus, comprising:
the system comprises a journey identifier acquisition module, a journey identifier acquisition module and a journey identifier acquisition module, wherein the journey identifier acquisition module is used for acquiring a journey identifier corresponding to a local user identifier from a server; the travel identification is updated by the server when an outbound record including the user identification is received last time;
the outbound request acquisition module is used for acquiring an outbound request;
the outbound graphic code generating module is used for responding to the outbound request and generating an outbound graphic code according to the journey identifier and the user identifier; the outbound graphic code is used for indicating an outbound device to acquire and analyze the outbound graphic code, generating an outbound record comprising the trip identifier, the user identifier and outbound site information, and reporting the outbound record to the server; and the outbound record reported to the server is used for indicating that when the inbound record which corresponds to the user identifier and is adjacent to the outbound record time comprises the journey identifier, the current journey is determined according to the outbound site information and the inbound site information contained in the inbound record.
15. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 11.
CN201910012446.9A 2019-01-07 2019-01-07 Method, system and device for processing outgoing and incoming records and computer equipment Active CN111417240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910012446.9A CN111417240B (en) 2019-01-07 2019-01-07 Method, system and device for processing outgoing and incoming records and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910012446.9A CN111417240B (en) 2019-01-07 2019-01-07 Method, system and device for processing outgoing and incoming records and computer equipment

Publications (2)

Publication Number Publication Date
CN111417240A true CN111417240A (en) 2020-07-14
CN111417240B CN111417240B (en) 2022-09-16

Family

ID=71494001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910012446.9A Active CN111417240B (en) 2019-01-07 2019-01-07 Method, system and device for processing outgoing and incoming records and computer equipment

Country Status (1)

Country Link
CN (1) CN111417240B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105261071A (en) * 2015-11-13 2016-01-20 广西米付网络技术有限公司 Bluetooth and two-dimensional code-based ticket checking system and method
CN205959246U (en) * 2016-08-17 2017-02-15 成都仁通融合信息技术有限公司 Be used for subway station to exempt from booking automatic charging system
CN107609859A (en) * 2017-08-31 2018-01-19 八维通科技有限公司 A kind of method of mobile payment based on Quick Response Code and bluetooth for track traffic
CN207337475U (en) * 2016-08-17 2018-05-08 成都仁通融合信息技术有限公司 A kind of subway station based on Quick Response Code exempts from booking passing control system
CN108257226A (en) * 2018-01-12 2018-07-06 深圳市海东青软件科技股份有限公司 Barcode scanning ticket checking method, system, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105261071A (en) * 2015-11-13 2016-01-20 广西米付网络技术有限公司 Bluetooth and two-dimensional code-based ticket checking system and method
CN205959246U (en) * 2016-08-17 2017-02-15 成都仁通融合信息技术有限公司 Be used for subway station to exempt from booking automatic charging system
CN207337475U (en) * 2016-08-17 2018-05-08 成都仁通融合信息技术有限公司 A kind of subway station based on Quick Response Code exempts from booking passing control system
CN107609859A (en) * 2017-08-31 2018-01-19 八维通科技有限公司 A kind of method of mobile payment based on Quick Response Code and bluetooth for track traffic
CN108257226A (en) * 2018-01-12 2018-07-06 深圳市海东青软件科技股份有限公司 Barcode scanning ticket checking method, system, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111417240B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN110533912B (en) Driving behavior detection method and device based on block chain
CN110135852B (en) Riding payment method, riding payment system, payment acceptance equipment and server
Ma et al. Transit smart card data mining for passenger origin information extraction
WO2019237522A1 (en) Vehicle leasing method and apparatus, and computer device and storage medium
CN111104990B (en) Method, device, server and storage medium for determining traffic route
CN105677793A (en) Site database establishing method and device, and candidate riding site recommending method and device
CN108629053B (en) Data updating method, device and system
CN109606165B (en) Charging method and device of electric vehicle and charging server
CN104700654A (en) Parking space reserving method and system
CN109191197A (en) Video passenger flow statistical analysis based on block chain technology
CN105509758A (en) Route planning method and system based on mobile terminal and mobile terminal
CN109741482A (en) A kind of information sharing method and device
CN110597883A (en) Vehicle rental data processing method and device based on block chain and storage medium
CN110443738A (en) Floating population's register method and system and relevant device
CN112671834A (en) Parking data processing system
KR20190110324A (en) System for collecting and providing the information of parking area
CN110533906B (en) Method for acquiring road condition information and related device
CN113705893B (en) Charging schedule management method, device, computer equipment and readable storage medium
CN112530028A (en) Ticket selling and checking processing method, system server and storage medium
CN110599301A (en) Vehicle management method, device, computer equipment and storage medium
US10354457B2 (en) Method for camera-based tolling
CN104299445B (en) A kind of parking gap real-time information collection, process, delivery system and method
CN111417240B (en) Method, system and device for processing outgoing and incoming records and computer equipment
CN110766101A (en) Method and device for determining movement track
CN113112626B (en) Highway toll information acquisition system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40025805

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant