CN111612115B - Counting method and device of traffic card, code scanning equipment and counting card server - Google Patents

Counting method and device of traffic card, code scanning equipment and counting card server Download PDF

Info

Publication number
CN111612115B
CN111612115B CN202010546372.XA CN202010546372A CN111612115B CN 111612115 B CN111612115 B CN 111612115B CN 202010546372 A CN202010546372 A CN 202010546372A CN 111612115 B CN111612115 B CN 111612115B
Authority
CN
China
Prior art keywords
traffic card
card
user
traffic
counting
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.)
Active
Application number
CN202010546372.XA
Other languages
Chinese (zh)
Other versions
CN111612115A (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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010546372.XA priority Critical patent/CN111612115B/en
Priority to CN202311266443.0A priority patent/CN117372011A/en
Publication of CN111612115A publication Critical patent/CN111612115A/en
Application granted granted Critical
Publication of CN111612115B publication Critical patent/CN111612115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/341Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device

Abstract

The embodiment of the specification provides a counting method, a device, code scanning equipment and a counting card server of a traffic card, wherein in the counting method of the traffic card, after receiving travel data of the traffic card sent by a public traffic server, the counting card server performs validity check on the traffic card, after the traffic card passes the validity check, a counting order of the current bus taking of a user is generated according to the travel data, then the number of times of the current bus taking of the user is deducted from the number of times of the bus taking corresponding to the traffic card, and if the number of times of the remaining bus taking of the traffic card is greater than a first preset threshold value, a counting deduction result of the traffic card is obtained according to the number of times of the remaining bus taking; pushing the counting deduction result of the traffic card to the electronic equipment used by the user, and displaying the counting deduction result of the traffic card by the electronic equipment.

Description

Counting method and device of traffic card, code scanning equipment and counting card server
[ field of technology ]
The embodiment of the specification relates to the technical field of Internet, in particular to a metering method and device of a traffic card, code scanning equipment and a metering card server.
[ background Art ]
At present, passengers take buses or subways for traveling, and the passengers need to purchase physical counting cards at off-line network points of a bus company, swipe the cards and take buses or subways for entering the bus, so as to enjoy the counting rights and interests of taking buses.
However, this way of using the physical time card for riding requires the passenger to go to off-line website for purchase, which is time consuming and laborious and easy to lose.
For a bus company, the bus company cannot check the user when a passenger uses the entity card to take a bus or swipe a subway, so that the risk of the entity card is present, and the fund loss of ticket service is caused; in addition, the off-line network of the public transport company needs to accept the application and the handling of the entity card, and meanwhile, the cost of the entity card manufacturing is high, and the comprehensive cost is high.
Therefore, it is necessary to provide a counting method of the traffic card, which reduces the cost of the bus company, improves the operation efficiency of the bus company and improves the use experience of passengers.
[ invention ]
The embodiment of the specification provides a counting method and device for a traffic card, code scanning equipment and a counting card server, so that the electronic operation of the bus card for public travel is realized, the cost of a bus company is reduced, the operation efficiency of the bus company is improved, and the use experience of a user is improved.
In a first aspect, an embodiment of the present disclosure provides a method for counting a traffic card, including:
the method comprises the steps that a counting card server receives travel data of a traffic card sent by a public transportation server, the travel data of the traffic card are sent after the public transportation server receives the travel data of the traffic card sent by a code scanning device, the travel data of the traffic card sent by the code scanning device are generated after the code scanning device scans a two-dimensional code displayed by electronic equipment used by a user, and the card type of the traffic card corresponding to the two-dimensional code is determined to be the counting card;
carrying out validity check on the traffic card;
after the traffic card passes the validity check, generating a metering order of the current bus taking of the user according to the journey data;
according to the order, deducting the times of taking the bus of the user from the times of taking the bus corresponding to the traffic card;
after deducting the number of times of taking the bus of the user, if the number of times of taking the bus of the user is larger than a first preset threshold value, obtaining a counting deduction result of the traffic card according to the number of times of taking the bus of the user;
pushing the counting deduction result of the traffic card to electronic equipment used by the user, so that the electronic equipment can display the counting deduction result of the traffic card.
In the method for counting the traffic cards, after receiving travel data of the traffic cards sent by a public traffic server, a counting card server performs validity check on the traffic cards, after the traffic cards pass the validity check, a counting order of the current bus taking of a user is generated according to the travel data, then the bus taking times of the current bus taking of the user are deducted from the bus taking times corresponding to the traffic cards, and if the remaining bus taking times of the traffic cards are larger than a first preset threshold value, a counting deduction result of the traffic cards is obtained according to the remaining bus taking times; pushing the counting deduction result of the traffic card to the electronic equipment used by the user, and displaying the counting deduction result of the traffic card by the electronic equipment. Therefore, the electronic card of the bus taking time of the public trip can be realized, the cost of a bus company is reduced, the operation efficiency of the bus company is improved, the cost of maintaining the entity card by a user is also reduced, and the use experience of the user is improved.
In one possible implementation manner, the verifying the validity of the traffic card includes:
and judging the traffic card by one or more of the following steps: judging whether the user is in a blacklist, whether the traffic card is legal, whether the traffic card is forbidden by the public transportation server, and whether the traffic card is in a card withdrawal process.
In one possible implementation manner, before the time counting card server receives the travel data of the traffic card sent by the public transportation server, the method further includes:
receiving a traffic card purchase request sent by electronic equipment used by a user, wherein the traffic card purchase request is used for requesting to purchase a traffic card with a card type of a counting card;
after determining that the user qualifies for purchasing the traffic card, processing the traffic card purchase request;
after the traffic card is purchased successfully, recording the times of bus taking purchased by the traffic card;
and sending the times of bus taking purchased by the traffic card to the public transportation server so as to enable the public transportation server to store the times of bus taking purchased by the traffic card.
In one possible implementation manner, after the validity check is performed on the traffic card, the method further includes:
if the traffic card fails the validity check, judging whether the remaining times of taking the traffic card are smaller than a second preset threshold value;
if the remaining number of times of taking the bus is smaller than a second preset threshold value, determining that the bus breaks down, sending an event that the bus breaks down to the public transportation server, enabling the public transportation server to record the event that the bus breaks down, adding a user using the bus into a blacklist, and sending the blacklist to the code scanning device.
In one possible implementation manner, after the determining whether the number of remaining rides of the traffic card is smaller than the second predetermined threshold, the method further includes:
and if the remaining times of riding the traffic card is greater than or equal to a second preset threshold value, sending an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
In one possible implementation manner, after deducting the number of times the user takes the bus from the number of times the user takes the bus corresponding to the traffic card according to the order, the method further includes:
after deducting the number of times of taking the bus of the user, if the remaining number of times of taking the bus of the traffic card is equal to a second preset threshold value, sending an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
In a second aspect, embodiments of the present disclosure provide a method for counting traffic cards, including:
the code scanning equipment scans the two-dimensional code displayed by the electronic equipment used by the user;
after determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card, generating travel data of the traffic card;
and sending the travel data of the traffic card to a public transportation server, so that the public transportation server sends the travel data of the traffic card to a counting card server, and the counting card server obtains a counting deduction result of the traffic card according to the travel data.
In one possible implementation manner, the determining that the card type of the traffic card corresponding to the two-dimensional code is a metering card includes:
and inquiring in a pre-stored card type white list corresponding to the two-dimensional code according to the two-dimensional code obtained by scanning, and determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card.
In one possible implementation manner, before determining that the card type of the traffic card corresponding to the two-dimensional code is the metering card, the method further includes:
judging whether the user is in the blacklist or not;
and if the user is not in the blacklist, executing the step of determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card.
In a third aspect, embodiments of the present disclosure provide a metering device for a traffic card, provided in a metering card server, the device including:
the receiving module is used for receiving the travel data of the traffic card sent by the public transportation server, wherein the travel data of the traffic card is sent after the public transportation server receives the travel data of the traffic card sent by the code scanning equipment, the travel data of the traffic card sent by the code scanning equipment is generated after the code scanning equipment scans the two-dimensional code displayed by the electronic equipment used by the user, and the card type of the traffic card corresponding to the two-dimensional code is determined to be the counting card;
The verification module is used for verifying the validity of the traffic card;
the generation module is used for generating a metering order of the current bus taking of the user according to the travel data after the traffic card passes the validity check;
the deduction module is used for deducting the times of taking the bus of the user from the times of taking the bus corresponding to the traffic card according to the order of counting;
the obtaining module is used for obtaining a counting deduction result of the traffic card according to the remaining times of taking the bus if the remaining times of taking the bus of the user are larger than a first preset threshold value after deducting the times of taking the bus of the user;
and the pushing module is used for pushing the counting deduction result of the traffic card to the electronic equipment used by the user so that the electronic equipment can display the counting deduction result of the traffic card.
In one possible implementation manner, the verification module is specifically configured to perform one or more of the following judgment on the traffic card: judging whether the user is in a blacklist, whether the traffic card is legal, whether the traffic card is forbidden by the public transportation server, and whether the traffic card is in a card withdrawal process.
In one possible implementation manner, the method further includes: the device comprises a processing module, a recording module and a storage module;
the receiving module is further used for receiving a traffic card purchase request sent by the electronic equipment used by the user before receiving the travel data of the traffic card sent by the public transportation server, wherein the traffic card purchase request is used for requesting to purchase a traffic card with the card type of a counting card;
the processing module is used for processing the traffic card purchase request after determining that the user qualifies for purchasing the traffic card;
the recording module is used for recording the times of bus taking purchased by the traffic card after the traffic card is successfully purchased;
and the storage module is used for sending the times of bus taking purchased by the traffic card to the public transportation server so as to enable the public transportation server to store the times of bus taking purchased by the traffic card.
In one possible implementation manner, the method further includes: the device comprises a judging module and a sending module;
the judging module is further configured to judge whether the number of remaining rides of the traffic card is smaller than a second predetermined threshold value if the traffic card fails the validity check after the validity check is performed on the traffic card by the checking module;
The sending module is used for determining that the traffic card breaks down when the remaining times of riding the traffic card are smaller than a second preset threshold value, sending the event that the traffic card breaks down to the public transportation server, enabling the public transportation server to record the event that the traffic card breaks down, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning device.
In one of the possible implementations of this method,
the sending module is further configured to send, after the judging module judges whether the remaining number of times of riding the traffic card is smaller than a second predetermined threshold, an instruction for prohibiting generation of a two-dimensional code corresponding to the traffic card to an electronic device used by the user if the remaining number of times of riding the traffic card is greater than or equal to the second predetermined threshold.
In one possible implementation manner, the method further includes:
and the sending module is used for sending an instruction for prohibiting generation of the two-dimension code corresponding to the traffic card to the electronic equipment used by the user if the residual number of times of taking the vehicle by the user is equal to a second preset threshold value after deducting the number of times of taking the vehicle by the user.
In a fourth aspect, an embodiment of the present disclosure provides a data labeling apparatus, provided in a code scanning device, the apparatus including:
the scanning module is used for scanning the two-dimensional code displayed by the electronic equipment used by the user;
the determining module is used for determining the card type of the traffic card corresponding to the two-dimensional code;
the generation module is used for generating travel data of the traffic card after the determination module determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card;
and the sending module is used for sending the travel data of the traffic card to a public transportation server so that the public transportation server can send the travel data of the traffic card to a counting card server, and the counting card server can obtain a counting deduction result of the traffic card according to the travel data.
In one possible implementation manner, the determining module is specifically configured to query, according to the two-dimensional code obtained by scanning, a card type white list corresponding to the two-dimensional code stored in advance, and determine that the card type of the traffic card corresponding to the two-dimensional code is a counting card.
In one possible implementation manner, the method further includes:
and the judging module is used for judging whether the user is in the blacklist or not before the determining module determines that the card type of the traffic card corresponding to the two-dimensional code is the counting card.
In a fifth aspect, embodiments of the present disclosure provide a time counting card server, including:
at least one processor; and at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing the method provided in the first aspect.
In a sixth aspect, embodiments of the present disclosure provide a code scanning apparatus, including:
at least one processor; and at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method provided in the second aspect.
In a seventh aspect, embodiments of the present disclosure provide a metering system for a traffic card, including: the metering card server, the code scanning device and the public transportation server.
In an eighth aspect, the present description embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method provided in the first aspect.
In a ninth aspect, the present description embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method provided in the second aspect.
It should be understood that, the third and fifth aspects of the embodiments of the present disclosure are consistent with the technical solutions of the first aspect of the embodiments of the present disclosure, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
It should be understood that, the fourth and sixth aspects of the embodiments of the present disclosure are consistent with the technical solutions of the second aspect of the embodiments of the present disclosure, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar and are not repeated.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present description, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of one embodiment of a method of counting traffic cards of the present specification;
FIG. 2 is a flow chart of another embodiment of a method of counting traffic cards of the present disclosure;
FIG. 3 is a flow chart of yet another embodiment of a method of counting traffic cards of the present disclosure;
FIG. 4 is a flow chart of yet another embodiment of a method of counting traffic cards of the present disclosure;
FIG. 5 is a flow chart of yet another embodiment of a method of counting traffic cards of the present disclosure;
FIG. 6 is a flow chart of yet another embodiment of a method of counting traffic cards of the present disclosure;
FIG. 7 is a flow chart of yet another embodiment of a method of counting traffic cards of the present disclosure;
FIG. 8 is a schematic diagram of one embodiment of a metering device for a traffic card of the present disclosure;
FIG. 9 is a schematic view of another embodiment of a metering device of the traffic card of the present disclosure;
FIG. 10 is a schematic view of a further embodiment of a metering device for a traffic card of the present disclosure;
FIG. 11 is a schematic view of a structure of a further embodiment of a metering device of the traffic card of the present specification;
FIG. 12 is a schematic diagram illustrating the construction of one embodiment of a card server according to the present disclosure;
fig. 13 is a schematic diagram of the system for counting traffic cards according to an embodiment of the present disclosure.
[ detailed description ] of the invention
For a better understanding of the technical solutions of the present specification, embodiments of the present specification are described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some, but not all, of the embodiments of the present description. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present disclosure.
The terminology used in the embodiments of the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description presented herein. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the prior art, passengers take buses or subways for traveling, the passengers need to purchase physical counting cards at off-line network points of buses, swipe cards and get into the buses or subways for taking buses, and enjoy counting rights and interests of taking buses.
However, this way of using the physical time card for riding requires the passenger to go to off-line website for purchase, which is time consuming and laborious and easy to lose.
For a bus company, the bus company cannot check the user when a passenger uses the entity card to take a bus or swipe a subway, so that the risk of the entity card is present, and the fund loss of ticket service is caused; in addition, the off-line network of the public transport company needs to accept the application and the handling of the entity card, and meanwhile, the cost of the entity card manufacturing is high, and the comprehensive cost is high.
Based on the above problems, the embodiment of the specification provides a counting method of a traffic card, which reduces the cost of a bus company, improves the operation efficiency of the bus company and improves the use experience of passengers.
FIG. 1 is a flowchart of one embodiment of a method for counting traffic cards in the present specification, as shown in FIG. 1, the method for counting traffic cards may include:
and 102, the metering card server receives the travel data of the traffic card sent by the public transportation server.
The travel data of the traffic card is sent after the public transportation server receives the travel data of the traffic card sent by the code scanning device, the travel data of the traffic card sent by the code scanning device is generated after the code scanning device scans a two-dimensional code displayed by electronic equipment used by a user, and the card type of the traffic card corresponding to the two-dimensional code is determined to be a counting card.
Specifically, the code scanning device can be a card swiping machine arranged on a public transport means (such as a bus) and has the functions of scanning the two-dimension code and decoding the two-dimension code.
The electronic device may be: the specific type of the electronic device is not limited in this embodiment, so long as the electronic device has a function of generating and displaying a two-dimensional code.
Specifically, the two-dimensional Code is also called a two-dimensional Bar Code, the common two-dimensional Code is QR Code, QR is called Quick Response, and the two-dimensional Code is a coding mode on mobile equipment, can store more information than the traditional Bar Code Bar Code, and can also represent more data types.
In this embodiment, when a passenger takes a public transport vehicle, the passenger takes the traffic card as an example to describe the traffic card, and compared with an entity card, the electronic card is more convenient and safer.
And 104, checking the validity of the traffic card.
Specifically, the metering card server may make one or more of the following determinations for the traffic card: judging whether the user is in a blacklist, whether the traffic card is legal, whether the traffic card is forbidden by the public transportation server, and whether the traffic card is in a card withdrawal process.
When the judging results of the one or more judging are all yes, determining that the traffic card passes the validity check; and when a judging item of which the judging result is NO exists in the one or more judging items, the traffic card can be determined to not pass the validity check.
And 106, after the traffic card passes the validity check, generating a metering order of the current bus taking of the user according to the journey data.
And step 108, deducting the riding times of the user riding the vehicle from the riding times corresponding to the traffic card according to the counting order.
Step 110, after deducting the number of times the user takes the bus this time, if the number of times the traffic card takes the bus is greater than a first predetermined threshold, obtaining a count deduction result of the traffic card according to the number of times the traffic card takes the bus.
Specifically, the size of the first predetermined threshold may be set by itself when it is specifically implemented, and the size of the first predetermined threshold is not limited in this embodiment, so long as the first predetermined threshold is a non-negative number, for example, the first predetermined threshold may be 0.
And 112, pushing the counting deduction result of the traffic card to the electronic equipment used by the user so that the electronic equipment displays the counting deduction result of the traffic card.
In the method for counting the traffic cards, after receiving travel data of the traffic cards sent by a public traffic server, a counting card server performs validity check on the traffic cards, after the traffic cards pass the validity check, a counting order of the current bus taking of a user is generated according to the travel data, then the bus taking times of the current bus taking of the user are deducted from the bus taking times corresponding to the traffic cards, and if the remaining bus taking times of the traffic cards are larger than a first preset threshold value, a counting deduction result of the traffic cards is obtained according to the remaining bus taking times; pushing the counting deduction result of the traffic card to the electronic equipment used by the user, and displaying the counting deduction result of the traffic card by the electronic equipment. Therefore, the electronic card of the bus taking time of the public trip can be realized, the cost of a bus company is reduced, the operation efficiency of the bus company is improved, the cost of maintaining the entity card by a user is also reduced, and the use experience of the user is improved.
Fig. 2 is a flowchart of another embodiment of the method for counting traffic cards in the present specification, as shown in fig. 2, and before step 102, in the embodiment shown in fig. 1 in the present specification, the method may further include:
Step 202, the metering card server receives a traffic card purchase request sent by an electronic device used by a user, where the traffic card purchase request is used for requesting to purchase a traffic card with a metering card type.
Step 204, after determining that the user qualifies for purchasing the traffic card, processing the traffic card purchase request.
Specifically, if the user does not qualify to purchase the traffic card, the time counting card server may send a reason for the inability to purchase to the electronic device, which displays the reason for the inability of the user to purchase the traffic card to the user. For example, the qualification that the user does not purchase a traffic card may be: the user is in a user blacklist.
Step 206, after the traffic card purchase is successful, recording the number of times of the traffic card purchase.
Step 208, the number of times of the traffic card purchase is sent to a public transportation server, so that the public transportation server stores the number of times of the traffic card purchase.
Fig. 3 is a flowchart of still another embodiment of the method for counting traffic cards according to the present disclosure, as shown in fig. 3, in the embodiment shown in fig. 1 according to the present disclosure, after step 104, the method may further include:
Step 302, if the traffic card fails the validity check, determining whether the remaining number of rides of the traffic card is less than a second predetermined threshold. Step 304 or step 306 is then performed.
Specifically, the size of the second predetermined threshold may be set by itself when the implementation is performed, and the size of the second predetermined threshold is not limited in this embodiment, and when the implementation is performed, the second predetermined threshold may be equal to or different from the first predetermined threshold, for example, the second predetermined threshold may be 0.
Step 304, if the number of remaining rides of the traffic card is smaller than a second predetermined threshold, determining that the traffic card is broken down, sending an event that the traffic card is broken down to the public transportation server, so that the public transportation server records the event that the traffic card is broken down, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning device.
And 306, if the remaining number of times of riding the traffic card is greater than or equal to a second preset threshold value, the counting card server sends an instruction for prohibiting the generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
Specifically, since the traffic card fails to pass the validity check, even if the number of times of remaining traffic of the traffic card is greater than or equal to a second predetermined threshold, the counting card server still sends an instruction for prohibiting generation of the two-dimension code to the electronic equipment used by the user, so that the user cannot use the traffic card which fails to pass the validity check to pass the traffic card for taking the bus at the next time, a server-side wind control flow is added in the process of using the traffic card by the user, the two-dimension code forbidden code can be adopted for suspicious users in real time, and the risk expansion of buses is prevented.
Fig. 4 is a flowchart of still another embodiment of the method for counting traffic cards according to the present disclosure, as shown in fig. 4, and after step 108, in the embodiment shown in fig. 1 of the present disclosure, the method may further include:
and step 402, after deducting the number of times of taking the vehicle by the user, if the remaining number of times of taking the vehicle by the traffic card is equal to a second preset threshold value, sending an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
Taking the second preset threshold value as 0 as an example, after deducting the number of times of taking the bus this time, if the number of times of taking the bus this time is 0, which means that the number of times of taking the bus purchased by the user is used up, at this time, the counting card server can send an instruction for prohibiting the generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user, so that the user cannot take the bus by using the traffic card by swiping the code any more when taking the bus next time, the addition of a server side wind control flow in the process of using the traffic card by the user is realized, the two-dimensional code forbidden code can be adopted for the user in real time, and the risk expansion of buses is prevented.
FIG. 5 is a flowchart illustrating a method for counting traffic cards according to still another embodiment of the present disclosure, as shown in FIG. 5, the method for counting traffic cards may include:
step 502, the code scanning device scans the two-dimensional code displayed by the electronic device used by the user.
In this embodiment, the two-dimensional code displayed by the electronic device may be generated by the electronic device, or the electronic device may send a request for generating the two-dimensional code to the time counting card server, and after receiving the request, the time counting card server generates the two-dimensional code and returns the generated two-dimensional code to the electronic device. In some embodiments of the present disclosure, the code value generated by the time counting card server according to the received request may be returned to the electronic device by the time counting card server, and the electronic device may map the code value returned by the time counting card server to a corresponding two-dimensional code, and render and display the two-dimensional code. Or, the metering card server can also directly generate the two-dimensional code picture according to the received request, and return the generated two-dimensional code picture to the electronic equipment so as to display the received two-dimensional code picture by the electronic equipment. Moreover, according to actual use needs, the two-dimensional code generation process includes, but is not limited to, the above explanation, and the embodiment of the present disclosure is not specifically limited.
And 504, after determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card, generating the travel data of the traffic card.
Specifically, determining that the card type of the traffic card corresponding to the two-dimensional code is the counting card may be: and the code scanning equipment inquires a pre-stored card type white list corresponding to the two-dimensional code according to the two-dimensional code obtained by scanning, and determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card.
After determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card, the code scanning device can broadcast a voice prompt that the traffic card is the counting card.
Step 506, the traffic card travel data is sent to a public transportation server, so that the public transportation server sends the traffic card travel data to a counting card server, and the counting card server obtains a counting deduction result of the traffic card according to the travel data.
Specifically, the code scanning device can asynchronously send the travel data of the traffic card to the public transportation server. Of course, the code scanning device may also synchronously send the travel data of the traffic card to the public transportation server, and the mode of sending the travel data of the traffic card by the code scanning device is not limited in this embodiment.
FIG. 6 is a flowchart of still another embodiment of the method for counting traffic cards according to the present disclosure, as shown in FIG. 6, and before step 504, the method according to FIG. 5 of the present disclosure may further include:
step 602, it is determined whether the user is in a blacklist. If the user is not in the blacklist, step 504 is performed.
The public traffic server sends the blacklist to the code scanning device, and the code scanning device receives and stores the blacklist sent by the public traffic server.
If the code scanning device determines that the user is in the blacklist, the code scanning device can broadcast a voice prompt that the traffic card cannot be used.
FIG. 7 is a flowchart illustrating a method for counting traffic cards according to still another embodiment of the present disclosure, as shown in FIG. 7, the method for counting traffic cards may include:
step 702, the code scanning device scans the two-dimensional code displayed by the electronic device used by the user.
Step 704, after determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card, the code scanning device generates travel data of the traffic card and sends the travel data of the traffic card to the public transportation server.
And step 706, the public transportation server receives the travel data of the traffic card sent by the code scanning device and sends the travel data of the traffic card to the metering card server.
Step 708, the metering card server receives the travel data of the traffic card sent by the public transportation server, and performs validity check on the traffic card.
Step 710, after the traffic card passes the validity check, the time counting card server generates a time counting order of the current time of taking the bus of the user according to the travel data, and deducts the time of taking the bus of the user from the time of taking the bus corresponding to the traffic card according to the time counting order.
Step 712, after deducting the number of times the user takes the car this time, if the number of times the traffic card takes the car remaining in the car is greater than a first predetermined threshold, the count card server obtains a count deduction result of the traffic card according to the number of times the traffic card remaining in the car.
In step 714, the counting card server pushes the counting deduction result of the traffic card to the electronic device used by the user.
Step 716, the electronic device displays the counted deduction result of the traffic card.
Further, in this embodiment, after step 708, if the traffic card fails the validity check, the card counting server determines whether the remaining number of rides of the traffic card is less than a second predetermined threshold.
If the remaining number of times of taking the bus is smaller than a second preset threshold value, the counting card server determines that the bus is broken down and sends the event that the bus is broken down to the public transportation server. The public transportation server receives the event that the traffic card is broken down, which is sent by the counting card server, records the event that the traffic card is broken down, adds the user using the traffic card into a blacklist, and sends the blacklist to the code scanning equipment. And the code scanning equipment receives and stores the blacklist sent by the public transportation server.
And if the remaining times of riding the traffic card are greater than or equal to a second preset threshold value, the time counting card server sends an instruction for prohibiting the generation of the two-dimension code corresponding to the traffic card to the electronic equipment used by the user.
The counting method of the traffic card provided by the embodiment of the specification realizes the electronization of the bus number card of the public trip, so that a user can purchase the counting card anytime and anywhere, the time-path cost of the user off-line running network point is avoided, and the cost of maintaining the entity card by the user is reduced.
For public transport companies, the card manufacturing cost of the entity card is reduced, and the cost of service acceptance and handling of off-line network points is reduced. In addition, because the application (App) account of the mobile terminal of the user is bound, the risk that the riding rights and interests are impounded by others is greatly reduced, and the ticket loss of the bus company side is reduced.
According to the counting method of the traffic card, an original calculation mode is migrated from the code scanning equipment (for example, the code brushing machine) to the server, the integrity and maintainability of data can be improved, the code scanning equipment can distinguish the type of the traffic card from the moment of code scanning, a public transportation company is helped to analyze machine and tool passenger flow, a server wind control flow is added in the use process of a user, and the risk expansion of the public transportation company can be prevented by adopting two-dimensional code forbidden codes for suspicious users in real time.
In addition, the method for counting the traffic card provided by the embodiment of the specification can also allow the user to ride in the case that the electronic equipment used by the user is offline, and the code scanning equipment can asynchronously send the travel data of the user to the public transportation server in an offline manner.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Fig. 8 is a schematic structural diagram of an embodiment of a metering device of a traffic card in the present disclosure, where the metering device of the traffic card may be disposed in a metering card server, as shown in fig. 8, and the device may include: a receiving module 81, a checking module 82, a generating module 83, a deducting module 84, an obtaining module 85 and a pushing module 86;
the receiving module 81 is configured to receive travel data of a traffic card sent by a public transportation server, where the travel data of the traffic card is sent after the public transportation server receives the travel data of the traffic card sent by the code scanning device, and the travel data of the traffic card sent by the code scanning device is generated after the code scanning device scans a two-dimensional code displayed by an electronic device used by a user, and determines that a card type of the traffic card corresponding to the two-dimensional code is a counting card;
the verification module 82 is used for verifying the validity of the traffic card;
a generating module 83, configured to generate a counting order of the current bus taking of the user according to the trip data after the traffic card passes the validity check;
the deduction module 84 is configured to deduct the number of times the user takes the bus from the number of times the user takes the bus corresponding to the traffic card according to the order;
An obtaining module 85, configured to obtain a count deduction result of the traffic card according to the number of remaining rides if the number of remaining rides of the traffic card is greater than a first predetermined threshold after deducting the number of rides of the user;
the pushing module 86 is configured to push the account deduction result of the traffic card to an electronic device used by a user, so that the electronic device displays the account deduction result of the traffic card.
The counting device of the traffic card provided by the embodiment shown in fig. 8 can be used for executing the technical scheme of the method embodiment shown in fig. 1 in the specification, and the implementation principle and technical effect can be further described with reference to the related description in the method embodiment.
Fig. 9 is a schematic structural diagram of another embodiment of a counting device of a traffic card in the present disclosure, where the verification module 82 is specifically configured to perform one or more of the following determinations on the traffic card: and judging whether the user is in a blacklist, whether the traffic card is legal, whether the traffic card is forbidden by the public transportation server, and whether the traffic card is in a card withdrawal process.
Further, the metering device of the traffic card may further include: a processing module 87, a recording module 88 and a transmitting module 89;
The receiving module 81 is further configured to receive, before receiving the travel data of the traffic card sent by the public transportation server, a traffic card purchase request sent by the electronic device and used by the user, where the traffic card purchase request is used to request to purchase a traffic card with a card type of a metering card;
a processing module 87, configured to process the traffic card purchase request after determining that the user qualifies for purchasing a traffic card;
a recording module 88 for recording the number of times the traffic card is purchased after the traffic card is purchased successfully;
and the sending module 89 is used for sending the times of taking the bus purchased by the traffic card to the public transportation server so as to enable the public transportation server to store the times of taking the bus purchased by the traffic card.
Further, the apparatus may further include: a judging module 810 and a transmitting module 89;
the judging module 810 is further configured to judge whether the number of remaining rides of the traffic card is less than a second predetermined threshold value if the traffic card fails the validity check after the validity check is performed on the traffic card by the checking module 82;
and the sending module 89 is configured to determine that the traffic card breaks down when the remaining number of times of riding the traffic card is less than a second predetermined threshold, send the event that the traffic card breaks down to a public transportation server, allow the public transportation server to record the event that the traffic card breaks down, add the user using the traffic card to a blacklist, and send the blacklist to the code scanning device.
Further, the sending module 89 is further configured to send, after the determining module 810 determines whether the remaining number of times of taking the traffic card is less than the second predetermined threshold, an instruction to prohibit generation of the two-dimensional code corresponding to the traffic card to the electronic device used by the user if the remaining number of times of taking the traffic card is greater than or equal to the second predetermined threshold.
Further, the apparatus may further include: a transmission module 89;
and the sending module 89 is configured to send, to the electronic device used by the user, an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card, if the remaining number of times of taking the vehicle by the user is equal to a second predetermined threshold after deducting the number of times of taking the vehicle by the user.
The counting device of the traffic card provided by the embodiment shown in fig. 9 can be used for executing the technical scheme of the method embodiment shown in fig. 1 to 4 in the specification, and the implementation principle and technical effect can be further described with reference to the related description of the method embodiment.
Fig. 10 is a schematic structural diagram of still another embodiment of a counting device of a traffic card in the present disclosure, where the counting device of the traffic card may be disposed in a code scanning device, as shown in fig. 10, and the counting device of the traffic card may include: a scanning module 1001, a determining module 1002, a generating module 1003, and a transmitting module 1004;
The scanning module 1001 is configured to scan a two-dimensional code displayed by an electronic device used by a user;
a determining module 1002, configured to determine a card type of a traffic card corresponding to the two-dimensional code;
a generating module 1003, configured to generate travel data of the traffic card after the determining module 1002 determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card;
and the sending module 1004 is configured to send the traffic card travel data to a public transportation server, so that the public transportation server sends the traffic card travel data to a counting card server, and the counting card server obtains a counting deduction result of the traffic card according to the travel data.
The counting device of the traffic card provided by the embodiment shown in fig. 10 can be used for executing the technical scheme of the method embodiment shown in fig. 5 in the specification, and the implementation principle and technical effect can be further described with reference to the related description in the method embodiment.
Fig. 11 is a schematic structural diagram of still another embodiment of a counting device for a traffic card in the present disclosure, in this embodiment, a determining module 1002 is specifically configured to query, according to a two-dimensional code obtained by scanning, a pre-stored white list of card types corresponding to the two-dimensional code, and determine that the card type of the traffic card corresponding to the two-dimensional code is the counting card.
Further, the metering device of the traffic card may further include: a judgment module 1005;
a judging module 1005, configured to judge whether the user is in a blacklist before the determining module 1002 determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card.
Wherein the blacklist is sent to the code scanning device by the public transportation server, and if the judging module 1005 determines that the user is not in the blacklist, the determining module 1002 performs an operation of determining the card type of the traffic card corresponding to the two-dimensional code.
If the code scanning device determines that the user is in the blacklist, the code scanning device can broadcast a voice prompt that the traffic card cannot be used.
The counting device of the traffic card provided by the embodiment shown in fig. 11 can be used for executing the technical scheme of the method embodiment shown in fig. 5 to 6 in the specification, and the implementation principle and technical effect can be further described with reference to the related description in the method embodiment.
FIG. 12 is a schematic diagram illustrating the structure of an embodiment of a card counting server according to the present disclosure, as shown in FIG. 12, the card counting server may include at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor invokes the program instructions to perform the metering method of the traffic card according to the embodiments shown in fig. 1 to fig. 4 of the present specification.
The metering card server may be a common physical server or a cloud server, and the specific type of the metering card server is not limited in this embodiment.
Fig. 12 shows a block diagram of an exemplary time card server suitable for use in implementing embodiments of the present description. The metering card server shown in fig. 12 is only one example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 12, the time card server is in the form of a general purpose computing device. Components of the metering card server device may include, but are not limited to: one or more processors 410, a communication interface 420, a memory 430, and a communication bus 440 that connects the different components (including the memory 430, the communication interface 420, and the processing unit 410).
The communication bus 440 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, communication buses 440 may include industry standard architecture (industry standard architecture, ISA) buses, micro channel architecture (micro channel architecture, MAC) buses, enhanced ISA buses, video electronics standards association (video electronics standards association, VESA) local bus, and peripheral component interconnect (peripheral component interconnection, PCI) buses.
The metering card server typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by the metering card server and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 430 may include computer system readable media in the form of volatile memory, such as random access memory (random access memory, RAM) and/or cache memory. Memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments shown in fig. 1-4 of the present description.
A program/utility having a set (at least one) of program modules may be stored in the memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules generally carry out the functions and/or methods of the embodiments described in fig. 1-4 of the present specification.
The processor 410 executes programs stored in the memory 430 to perform various functional applications and data processing, for example, to implement the metering method of the traffic card provided in the embodiment shown in fig. 1 to 4 of the present specification.
The embodiment of the specification also provides a code scanning device, which may include: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor can execute the counting method of the traffic card provided in the embodiments shown in fig. 5 to 6 of the present specification by calling the program instructions.
The code scanning device can be a card swiping machine arranged on a public transport means (such as a bus) and has the functions of scanning two-dimension codes and decoding the two-dimension codes.
In a specific implementation, the code scanning device may also be implemented by adopting a structure shown in fig. 12, which is not described herein again.
Fig. 13 is a schematic structural diagram of an embodiment of a metering system for a traffic card in the present specification, which may include a metering card server 1301, a code scanning device 1302, and a public transportation server 1303.
In a specific implementation, the time card server 1301 and the code scanning apparatus 1302 may be implemented by the structure shown in fig. 12.
The time card server 1301 may be a common physical server or a cloud server, and the specific type of the time card server 1301 is not limited in this embodiment.
The code scanning device 1302 may be a card swiping machine set on a public transportation means (such as a bus), and has functions of scanning two-dimension codes and decoding the two-dimension codes.
In this embodiment, the card counting server 1301, the code scanning device 1302 and the public transportation server 1303 may interact according to the method provided in the embodiment shown in fig. 7 of the present specification, which is not described herein again.
Embodiments of the present disclosure provide a non-transitory computer readable storage medium storing computer instructions that cause a computer to perform the metering method of a traffic card provided by the embodiments of fig. 1-4 of the present disclosure.
Embodiments of the present disclosure provide a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the metering method of a traffic card provided by the embodiments of fig. 5-6 of the present disclosure.
The non-transitory computer readable storage media described above may employ any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (erasable programmable read only memory, EPROM) or flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for the present specification may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (local area network, LAN) or a wide area network (wide area network, WAN), or may be connected to an external computer (e.g., connected via the internet using an internet service provider).
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present specification, the meaning of "plurality" means at least two, for example, two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present specification in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present specification.
Depending on the context, the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection". Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, the terminals in the embodiments of the present disclosure may include, but are not limited to, a personal computer (personal computer, time card server), a personal digital assistant (personal digital assistant, PDA), a wireless handheld device, a tablet computer (tablet computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the several embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in each embodiment of the present specification may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods described in the embodiments of the present specification. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disk, etc.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (15)

1. A method of counting traffic cards, comprising:
the method comprises the steps that a counting card server receives travel data of a traffic card sent by a public transportation server, the travel data of the traffic card are sent after the public transportation server receives the travel data of the traffic card sent by a code scanning device, the travel data of the traffic card sent by the code scanning device are generated after the code scanning device scans a two-dimensional code displayed by electronic equipment used by a user, and the card type of the traffic card corresponding to the two-dimensional code is determined to be the counting card;
Carrying out validity check on the traffic card;
if the traffic card fails the validity check, judging whether the remaining times of taking the traffic card are smaller than a second preset threshold value;
if the remaining number of times of riding the traffic card is smaller than a second preset threshold value, determining that the traffic card breaks down, sending an event that the traffic card breaks down to the public transportation server, enabling the public transportation server to record the event that the traffic card breaks down, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning equipment;
after the traffic card passes the validity check, generating a metering order of the current bus taking of the user according to the journey data;
according to the order, deducting the times of taking the bus of the user from the times of taking the bus corresponding to the traffic card;
after deducting the number of times of taking the bus of the user, if the number of times of taking the bus of the user is larger than a first preset threshold value, obtaining a counting deduction result of the traffic card according to the number of times of taking the bus of the user;
pushing the counting deduction result of the traffic card to electronic equipment used by the user, so that the electronic equipment can display the counting deduction result of the traffic card.
2. The method of claim 1, wherein the validating the traffic card comprises:
and judging the traffic card by one or more of the following steps: judging whether the user is in a blacklist, whether the traffic card is legal, whether the traffic card is forbidden by the public transportation server, and whether the traffic card is in a card withdrawal process.
3. The method according to claim 1 or 2, wherein before the time card server receives the travel data of the traffic card transmitted by the public transportation server, further comprising:
receiving a traffic card purchase request sent by electronic equipment used by a user, wherein the traffic card purchase request is used for requesting to purchase a traffic card with a card type of a counting card;
after determining that the user qualifies for purchasing the traffic card, processing the traffic card purchase request;
after the traffic card is purchased successfully, recording the times of bus taking purchased by the traffic card;
and sending the times of bus taking purchased by the traffic card to the public transportation server so as to enable the public transportation server to store the times of bus taking purchased by the traffic card.
4. The method of claim 1, wherein the determining whether the remaining number of rides of the traffic card is less than a second predetermined threshold further comprises:
And if the remaining times of riding the traffic card is greater than or equal to a second preset threshold value, sending an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
5. The method of claim 1, wherein the deducting the number of rides of the user this time from the number of rides corresponding to the traffic card according to the order count further comprises:
after deducting the number of times of taking the bus of the user, if the remaining number of times of taking the bus of the traffic card is equal to a second preset threshold value, sending an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
6. A method of counting traffic cards, comprising:
the code scanning equipment scans the two-dimensional code displayed by the electronic equipment used by the user;
after the code scanning equipment determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card, generating travel data of the traffic card, and sending the travel data of the traffic card to a public transportation server;
the public transportation server receives the travel data of the traffic card sent by the code scanning equipment and sends the travel data of the traffic card to a metering card server;
The metering card server receives the travel data of the traffic card sent by the public transportation server and performs validity check on the traffic card;
if the traffic card fails the validity check, the counting card server judges whether the remaining times of taking the traffic card are smaller than a second preset threshold value;
if the remaining number of times of taking the bus is smaller than a second preset threshold value, the time counting card server determines that the bus is broken down and sends an event that the bus is broken down to the public transportation server;
the public transportation server receives an event that the traffic card is broken down, which is sent by the counting card server, records the event that the traffic card is broken down, adds a user using the traffic card into a blacklist, and sends the blacklist to the code scanning equipment;
the code scanning equipment receives and stores a blacklist sent by the public transportation server;
after the traffic card passes the validity verification, the time counting card server generates a time counting order of the current riding of the user according to the travel data, and deducts the riding times of the current riding of the user from the riding times corresponding to the traffic card according to the time counting order;
After deducting the number of times of taking the bus of the user, if the number of times of taking the bus of the user is larger than a first preset threshold value, the counting card server obtains a counting deduction result of the traffic card according to the number of times of taking the bus of the user;
the counting card server pushes counting deduction results of the traffic card to electronic equipment used by the user;
and the electronic equipment displays the counting deduction result of the traffic card.
7. The method of claim 6, wherein after the time card server determines whether the remaining number of rides of the traffic card is less than a second predetermined threshold, further comprising:
and if the remaining times of riding the traffic card is greater than or equal to a second preset threshold value, the time counting card server sends an instruction for prohibiting the generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
8. A metering device of a traffic card, provided in a metering card server, the device comprising:
the receiving module is used for receiving the travel data of the traffic card sent by the public transportation server, wherein the travel data of the traffic card is sent after the public transportation server receives the travel data of the traffic card sent by the code scanning equipment, the travel data of the traffic card sent by the code scanning equipment is generated after the code scanning equipment scans the two-dimensional code displayed by the electronic equipment used by the user, and the card type of the traffic card corresponding to the two-dimensional code is determined to be the counting card;
The verification module is used for verifying the validity of the traffic card; if the traffic card fails the validity check, judging whether the remaining times of taking the traffic card are smaller than a second preset threshold value; if the remaining number of times of riding the traffic card is smaller than a second preset threshold value, determining that the traffic card breaks down, sending an event that the traffic card breaks down to the public transportation server, enabling the public transportation server to record the event that the traffic card breaks down, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning equipment;
the generation module is used for generating a metering order of the current bus taking of the user according to the travel data after the traffic card passes the validity check;
the deduction module is used for deducting the times of taking the bus of the user from the times of taking the bus corresponding to the traffic card according to the order of counting;
the obtaining module is used for obtaining a counting deduction result of the traffic card according to the remaining times of taking the bus if the remaining times of taking the bus of the user are larger than a first preset threshold value after deducting the times of taking the bus of the user;
And the pushing module is used for pushing the counting deduction result of the traffic card to the electronic equipment used by the user so that the electronic equipment can display the counting deduction result of the traffic card.
9. The device of claim 8, wherein the verification module is specifically configured to make one or more of the following determinations on the traffic card: judging whether the user is in a blacklist, whether the traffic card is legal, whether the traffic card is forbidden by the public transportation server, and whether the traffic card is in a card withdrawal process.
10. The apparatus of claim 8 or 9, further comprising: the device comprises a processing module, a recording module and a sending module;
the receiving module is further used for receiving a traffic card purchase request sent by the electronic equipment used by the user before receiving the travel data of the traffic card sent by the public transportation server, wherein the traffic card purchase request is used for requesting to purchase a traffic card with the card type of a counting card;
the processing module is used for processing the traffic card purchase request after determining that the user qualifies for purchasing the traffic card;
the recording module is used for recording the times of bus taking purchased by the traffic card after the traffic card is successfully purchased;
And the sending module is used for sending the times of bus taking purchased by the traffic card to the public transportation server so that the public transportation server can save the times of bus taking purchased by the traffic card.
11. The apparatus of claim 8, wherein,
and the verification module is further used for sending an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user after judging whether the residual times of the traffic card are smaller than a second preset threshold value or not.
12. The apparatus of claim 8, further comprising:
and the sending module is used for sending an instruction for prohibiting generation of the two-dimension code corresponding to the traffic card to the electronic equipment used by the user if the residual number of times of taking the vehicle by the user is equal to a second preset threshold value after deducting the number of times of taking the vehicle by the user.
13. A metering card server comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-5.
14. A metering system for a traffic card, comprising: the time card server, code scanning device, and public transportation server of claim 13.
15. A non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the method of any one of claims 1 to 5.
CN202010546372.XA 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server Active CN111612115B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010546372.XA CN111612115B (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server
CN202311266443.0A CN117372011A (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010546372.XA CN111612115B (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311266443.0A Division CN117372011A (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server

Publications (2)

Publication Number Publication Date
CN111612115A CN111612115A (en) 2020-09-01
CN111612115B true CN111612115B (en) 2023-10-20

Family

ID=72202559

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010546372.XA Active CN111612115B (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server
CN202311266443.0A Pending CN117372011A (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311266443.0A Pending CN117372011A (en) 2020-06-15 2020-06-15 Counting method and device of traffic card, code scanning equipment and counting card server

Country Status (1)

Country Link
CN (2) CN111612115B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828676A (en) * 2006-04-12 2006-09-06 刘秋元 IC card reader-writer for prepaying and giving change, one-card subsystem and its realization method
CN103337022A (en) * 2013-06-05 2013-10-02 袁义青 A public transport electronic system
CN104484943A (en) * 2014-11-20 2015-04-01 北京启能万维科技有限公司 Intelligent bus card swiping method, card swiping device and user terminal
CN105844471A (en) * 2016-03-22 2016-08-10 腾讯科技(深圳)有限公司 Method, device and system for processing services
CN106096925A (en) * 2016-07-15 2016-11-09 建亿通(北京)数据处理信息有限公司 A kind of smart card, the recharge method of a kind of smart card and system
WO2017211019A1 (en) * 2016-06-06 2017-12-14 乐视控股(北京)有限公司 Payment method, device, terminal, and server
CN108234517A (en) * 2018-01-29 2018-06-29 成都智元汇信息技术股份有限公司 A kind of subway based on offline Quick Response Code ticket card is ridden off-line processing system and method
CN109325491A (en) * 2018-08-16 2019-02-12 腾讯科技(深圳)有限公司 Identification code recognition methods, device, computer equipment and storage medium
CN109977718A (en) * 2019-03-21 2019-07-05 连尚(新昌)网络科技有限公司 A kind of method and apparatus of two dimensional code for identification
CN109993519A (en) * 2017-12-29 2019-07-09 沈阳新松机器人自动化股份有限公司 A kind of public transport quick paying method and system based on barcode scanning
CN110046529A (en) * 2018-12-11 2019-07-23 阿里巴巴集团控股有限公司 Two-dimensional code identification method, device and equipment
CN110633975A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Travel control system, method and device in public transport and traffic payment method
WO2020042812A1 (en) * 2018-08-31 2020-03-05 阿里巴巴集团控股有限公司 Boarding billing method and apparatus
CN110992037A (en) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 Risk prevention and control method, device and system based on multi-party security calculation
CN112037416A (en) * 2020-09-04 2020-12-04 海南海岛聚讯科技有限公司 Bus payment method, system, bus charging equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340904B2 (en) * 2006-01-08 2012-12-25 Bo-In Lin Transmission of wireless messages of current vehicle location and estimated arrival time to requestors
KR101510248B1 (en) * 2013-10-15 2015-04-09 순천향대학교 산학협력단 Public Transportation Passenger Decentralization System using Transportation Card Reader

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828676A (en) * 2006-04-12 2006-09-06 刘秋元 IC card reader-writer for prepaying and giving change, one-card subsystem and its realization method
CN103337022A (en) * 2013-06-05 2013-10-02 袁义青 A public transport electronic system
CN104484943A (en) * 2014-11-20 2015-04-01 北京启能万维科技有限公司 Intelligent bus card swiping method, card swiping device and user terminal
CN105844471A (en) * 2016-03-22 2016-08-10 腾讯科技(深圳)有限公司 Method, device and system for processing services
WO2017211019A1 (en) * 2016-06-06 2017-12-14 乐视控股(北京)有限公司 Payment method, device, terminal, and server
CN106096925A (en) * 2016-07-15 2016-11-09 建亿通(北京)数据处理信息有限公司 A kind of smart card, the recharge method of a kind of smart card and system
CN109993519A (en) * 2017-12-29 2019-07-09 沈阳新松机器人自动化股份有限公司 A kind of public transport quick paying method and system based on barcode scanning
CN108234517A (en) * 2018-01-29 2018-06-29 成都智元汇信息技术股份有限公司 A kind of subway based on offline Quick Response Code ticket card is ridden off-line processing system and method
CN110633975A (en) * 2018-06-22 2019-12-31 腾讯科技(深圳)有限公司 Travel control system, method and device in public transport and traffic payment method
CN109325491A (en) * 2018-08-16 2019-02-12 腾讯科技(深圳)有限公司 Identification code recognition methods, device, computer equipment and storage medium
WO2020042812A1 (en) * 2018-08-31 2020-03-05 阿里巴巴集团控股有限公司 Boarding billing method and apparatus
CN110046529A (en) * 2018-12-11 2019-07-23 阿里巴巴集团控股有限公司 Two-dimensional code identification method, device and equipment
CN109977718A (en) * 2019-03-21 2019-07-05 连尚(新昌)网络科技有限公司 A kind of method and apparatus of two dimensional code for identification
CN110992037A (en) * 2020-03-03 2020-04-10 支付宝(杭州)信息技术有限公司 Risk prevention and control method, device and system based on multi-party security calculation
CN112037416A (en) * 2020-09-04 2020-12-04 海南海岛聚讯科技有限公司 Bus payment method, system, bus charging equipment and storage medium

Also Published As

Publication number Publication date
CN111612115A (en) 2020-09-01
CN117372011A (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN107273531B (en) Telephone number classification identification method, device, equipment and storage medium
CN103426083A (en) Television payment method and system based on two-dimensional codes
CN114093038A (en) Parking payment method and device
CN111680761B (en) Information feedback method and device and electronic equipment
CN113507419B (en) Training method of traffic distribution model, traffic distribution method and device
CN113743929A (en) Data processing method, terminal equipment and data processing system
CN111125729A (en) Block chain-based vehicle driving information processing method and device and storage medium
CN113961836A (en) Page jump method and device, electronic equipment and storage medium
CN111612115B (en) Counting method and device of traffic card, code scanning equipment and counting card server
CN112861033B (en) Method and device for executing service
CN111125656B (en) Service processing method and device and electronic equipment
CN112598810A (en) Exhibition entrance processing method and device
WO2024016619A1 (en) Payment method, apparatus and system based on 5g messaging application, and device and medium
CN109120509B (en) Information collection method and device
CN111083145A (en) Message sending method and device and electronic equipment
CN115858368A (en) Cross-border payment oriented data generation method, system, equipment and storage medium
CN112002024A (en) Ticket checking method, device, equipment, server and medium based on face recognition
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
CN113409520A (en) Charging method, charging device, electronic equipment and storage medium
CN111209739A (en) Electronic form, electronic device, storage medium, and electronic form verification method
CN108734814B (en) Visitor information processing method and device
CN111340672A (en) Method and device for acquiring user real name information and electronic equipment
CN113111692A (en) Target detection method and device, computer readable storage medium and electronic equipment
WO2015043290A1 (en) Method and apparatus for implementing action instruction based on barcode
CN116415938A (en) Road information reporting rewarding method, device and system based on digital currency

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40036402

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant