CN111612115A - Traffic card counting method and device, code scanning equipment and counting card server - Google Patents
Traffic card counting method and device, code scanning equipment and counting card server Download PDFInfo
- Publication number
- CN111612115A CN111612115A CN202010546372.XA CN202010546372A CN111612115A CN 111612115 A CN111612115 A CN 111612115A CN 202010546372 A CN202010546372 A CN 202010546372A CN 111612115 A CN111612115 A CN 111612115A
- Authority
- CN
- China
- Prior art keywords
- card
- traffic card
- traffic
- counting
- server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 106
- 238000012545 processing Methods 0.000 claims description 21
- 230000008569 process Effects 0.000 claims description 17
- 238000012797 qualification Methods 0.000 claims description 5
- 238000012795 verification Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/34—Payment 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/341—Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3274—Short 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
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
The embodiment of the specification provides a counting method, a counting device, a code scanning device and a counting card server of a traffic card, wherein in the counting method of the traffic card, after the counting card server receives travel data of the traffic card sent by a public traffic server, validity check is carried out on the traffic card, after the traffic card passes the validity check, a counting order of the current riding of a user is generated according to the travel data, then the riding times of the current riding of the user are deducted from the riding times corresponding to the traffic card, and if the remaining riding times of the traffic card are greater than a first preset threshold value, a counting deduction result of the traffic card is obtained according to the remaining riding times; and 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
[ technical field ] A method for producing a semiconductor device
The embodiment of the specification relates to the technical field of internet, in particular to a traffic card counting method and device, code scanning equipment and a counting card server.
[ background of the invention ]
At present, when passengers go out by taking a bus or a subway, the passengers need to purchase entity counting cards at offline network points of a bus company, and the passengers can pay by swiping the cards to enter the bus or the subway to take the bus or the subway and enjoy the counting rights and interests of taking the bus.
However, in this way of taking a car with the entity counting card, for the passenger, the entity counting card needs to go off-line and go to a website for purchase, which is time-consuming, labor-consuming and easy to lose.
For a public transport company, when a passenger uses an entity card to take a public transport or a subway to swipe the card, the public transport company cannot verify the user, so that the risk of using the entity card exists, and the fund loss of ticketing is caused; in addition, the off-line network of the public transport company needs to receive the application and transaction service of the entity card, and the card making cost of the entity card is also needed, so that the comprehensive cost is higher.
Therefore, a counting method of the traffic card is needed to be provided, so that the cost of the public transport company is reduced, the operation efficiency of the public transport company is improved, and the use experience of passengers is improved.
[ summary of the invention ]
The embodiment of the specification provides a counting method and device of a traffic card, a code scanning device and a counting card server, so that a bus taking counting card for public travel is electronized, the cost of a public transport company is reduced, the operation efficiency of the public transport company is improved, and the use experience of a user is improved.
In a first aspect, an embodiment of the present specification provides a method for counting traffic cards, including:
the method comprises the steps that a counting card server receives travel data of a traffic card sent by a public traffic server, the travel data of the traffic card are sent after the public traffic 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 two-dimensional codes displayed by electronic equipment used by a user and scanned by the code scanning device, and the card type of the traffic card corresponding to the two-dimensional codes is determined to be generated after the counting card is generated;
carrying out validity check on the traffic card;
after the traffic card passes the validity check, generating a counting order of the riding of the user this time according to the travel data;
according to the counting order, deducting the riding times of the user for taking the bus from the riding times corresponding to the traffic card;
after deducting the riding times of the current riding of the user, if the remaining riding times of the traffic card are larger than a first preset threshold value, obtaining a counting deduction result of the traffic card according to the remaining riding times;
and 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 the counting method of the traffic card, after receiving travel data of the traffic card sent by a public traffic server, a counting card server performs validity check on the traffic card, generates a counting order of the current riding of a user according to the travel data after the traffic card passes the validity check, deducts the riding times of the current riding of the user from the riding times corresponding to the traffic card, and obtains a counting deduction result of the traffic card according to the remaining riding times if the remaining riding times of the traffic card are greater than a first preset threshold; and 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 bus taking time card of the public trip can be electronized, the cost of the public transport company is reduced, the operation efficiency of the public transport company is improved, the cost of maintaining the entity card by the user is reduced, and the use experience of the user is improved.
In one possible implementation manner, the checking the validity of the traffic card includes:
making 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 traffic server, and whether the traffic card is in a card returning process.
In one possible implementation manner, before the time card server receives the travel data of the transportation card sent by the public transportation server, the method further includes:
receiving a traffic card purchase request sent by electronic equipment used by the user, wherein the traffic card purchase request is used for requesting to purchase a traffic card of which the card type is a counting card;
processing the transportation card purchase request after determining that the user is eligible to purchase the transportation card;
after the traffic card is purchased successfully, recording the number of times of bus taking of the traffic card purchase;
and sending the number of times of taking the bus purchased by the traffic card to the public transportation server so that the public transportation server can store the number of times of taking the bus purchased by the traffic card.
In one possible implementation manner, after the validity check is performed on the transportation card, the method further includes:
if the traffic card does not pass the validity check, judging whether the remaining riding times of the traffic card is less than a second preset threshold value;
and if the remaining number of times of taking the vehicle by the traffic card is less than a second preset threshold value, determining that the traffic card is broken down, sending the broken-down event of the traffic card to the public transportation server so that the public transportation server can record the broken-down event of the traffic card, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning device.
In one possible implementation manner, after determining whether the remaining number of times of taking the vehicle by the traffic card is less than a second predetermined threshold, the method further includes:
and if the remaining number of times of taking the vehicle by the traffic card is greater than or equal to a second preset threshold value, sending an instruction for forbidding 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 of taking the vehicle of the user this time from the number of times of taking the vehicle corresponding to the traffic card according to the count order, the method further includes:
after deducting the number of times of taking the vehicle by the user this time, 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 forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
In a second aspect, an embodiment of the present specification provides a method for counting traffic cards, including:
scanning a two-dimensional code displayed by electronic equipment used by a user by code scanning equipment;
after the card type of the traffic card corresponding to the two-dimensional code is determined to be a counting card, generating travel data of the traffic card;
and sending the travel data of the traffic card to a public traffic server for the public traffic server to send the travel data of the traffic card to a count card server, and obtaining a count deduction result of the traffic card by the count card server according to the travel data.
In one possible implementation manner, the determining that the card type of the transportation card corresponding to the two-dimensional code is a count card includes:
and inquiring a card type white list corresponding to the pre-stored 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 transportation card corresponding to the two-dimensional code is a count 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 count card.
In a third aspect, an embodiment of the present specification provides a counting device for a transportation card, which is disposed in a counting card server, and includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving travel data of a traffic card sent by a public traffic server, the travel data of the traffic card is sent by the public traffic server after the public traffic server receives the travel data of the traffic card sent by a 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 electronic equipment used by a user and determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card;
the verification module is used for verifying the validity of the traffic card;
the generation module is used for generating a counting order of the riding of the user according to the travel data after the traffic card passes the validity check;
the deduction module is used for deducting the riding times of the user for taking the bus from the riding times corresponding to the traffic card according to the counting order;
the obtaining module is used for obtaining a counting deduction result of the traffic card according to the remaining riding times if the remaining riding times of the traffic card are larger than a first preset threshold after deducting the riding times of the user for the current riding;
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 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 traffic server, and whether the traffic card is in a card returning 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 the traffic card of which the card type is a counting card;
the processing module is used for processing the traffic card purchase request after determining that the user has the qualification of purchasing the traffic card;
the recording module is used for recording the riding times of the traffic card purchase after the traffic card purchase is successful;
the storage module is used for sending the riding times purchased by the traffic card to the public transportation server so that the public transportation server can store the riding times 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, after the checking module checks the validity of the traffic card, judge whether the remaining number of times of taking a bus of the traffic card is less than a second predetermined threshold if the traffic card does not pass the validity check;
the sending module is used for determining that the traffic card is broken down when the remaining number of times of taking the vehicle by the traffic card is smaller than a second preset threshold value, sending the broken-down event of the traffic card to the public transportation server so that the public transportation server can record the broken-down event of the traffic card, 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 the invention,
the sending module is further configured to send an instruction for prohibiting generation of a 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 vehicle by the traffic card is greater than or equal to a second predetermined threshold after the determining module determines whether the remaining number of times of taking the vehicle by the traffic card is less than the second predetermined threshold.
In one possible implementation manner, the method further includes:
and the sending module is used for sending an instruction for forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used 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 after deducting the number of times of taking the vehicle by the user this time.
In a fourth aspect, an embodiment of the present specification provides a data annotation device, which is disposed in a code scanning device, and includes:
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 generating module is used for generating the travel data of the traffic card after the determining 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 traffic server so that the public traffic server sends the travel data of the traffic card to a count card server, and the count card server obtains a count deduction result of the traffic card according to the travel data.
In one possible implementation manner, the determining module is specifically configured to query a card type white list corresponding to a pre-stored two-dimensional code according to the two-dimensional code obtained by scanning, and determine that the card type of the transportation card corresponding to the two-dimensional code is a count 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 a counting card.
In a fifth aspect, an embodiment of the present specification provides a card counting 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 calling the program instructions to be able to perform the method provided by the first aspect.
In a sixth aspect, an embodiment of the present specification provides a code scanning device, 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 calling the program instructions to be able to perform the method provided by the second aspect.
In a seventh aspect, an embodiment of the present specification provides a counting system for a traffic card, including: the counting card server, the code scanning device and the public transportation server are all arranged on the same platform.
In an eighth aspect, embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect.
In a ninth aspect, embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method provided by the second aspect.
It should be understood that the third and fifth aspects of the embodiments in this specification are consistent with the technical solution of the first aspect of the embodiments in this specification, and similar beneficial effects are achieved in various aspects and corresponding possible implementation manners, and thus detailed description is omitted.
It should be understood that the fourth and sixth aspects of the embodiments in this specification are consistent with the technical solution of the second aspect of the embodiments in this specification, and the beneficial effects achieved by each aspect and the corresponding possible implementation are similar and will not be described again.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of one embodiment of a traffic card counting method of the present disclosure;
FIG. 2 is a flow chart of another embodiment of a traffic card counting method of the present disclosure;
FIG. 3 is a flow chart of yet another embodiment of a traffic card counting method of the present disclosure;
FIG. 4 is a flow chart of yet another embodiment of a traffic card counting method of the present disclosure;
FIG. 5 is a flow chart of yet another embodiment of a traffic card counting method of the present disclosure;
FIG. 6 is a flow chart of yet another embodiment of a traffic card counting method of the present disclosure;
FIG. 7 is a flow chart of yet another embodiment of a traffic card counting method of the present disclosure;
FIG. 8 is a schematic structural diagram of one embodiment of a counting device of a traffic card according to the present disclosure;
FIG. 9 is a schematic structural diagram of another embodiment of a counting device of a transportation card of the present disclosure;
FIG. 10 is a schematic view of a counting device of a traffic card according to another embodiment of the present disclosure;
FIG. 11 is a schematic view of a counting device of a traffic card according to another embodiment of the present disclosure;
FIG. 12 is a schematic block diagram of one embodiment of a card counting server according to the present disclosure;
FIG. 13 is a schematic structural diagram of an embodiment of a counting system of a transportation card according to the present disclosure.
[ detailed description ] embodiments
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present specification is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the specification examples 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 travel in buses or subways, and need to purchase entity counting cards at offline network points of a bus company, and the passengers can pay for the buses or the subways by swiping the cards to enter the stations to enjoy the counting rights and interests of taking the buses or the subways.
However, in this way of taking a car with the entity counting card, for the passenger, the entity counting card needs to go off-line and go to a website for purchase, which is time-consuming, labor-consuming and easy to lose.
For a public transport company, when a passenger uses an entity card to take a public transport or a subway to swipe the card, the public transport company cannot verify the user, so that the risk of using the entity card exists, and the fund loss of ticketing is caused; in addition, the off-line network of the public transport company needs to receive the application and transaction service of the entity card, and the card making cost of the entity card is also needed, so that the comprehensive cost is higher.
Based on the above problems, the embodiments of the present specification provide a counting method for a traffic card, which reduces the cost of a public transport company, improves the operation efficiency of the public transport company, and improves the use experience of passengers.
Fig. 1 is a flowchart of an embodiment of a traffic card counting method according to the present disclosure, and as shown in fig. 1, the traffic card counting method may include:
and 102, receiving the travel data of the traffic card sent by the public traffic server by the counting card 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, and the travel data of the traffic card sent by the code scanning device is generated after the code scanning device scans the two-dimensional code displayed by the electronic device used by the user and determines that the card type of the traffic card corresponding to the two-dimensional code is 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-dimensional code and decoding the two-dimensional code.
The electronic device may be: the present embodiment does not limit the specific type of the electronic device, as 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 barcode, and a common two-dimensional Code is a QR Code, which is called a QuickResponse, and is a coding method on a mobile device, and compared with a traditional Bar Code barcode, the two-dimensional Code can store more information and can also represent more data types.
In this embodiment, when a passenger takes a public transportation vehicle, the passenger takes the transportation card for taking a bus, and the embodiment takes the transportation card as an example of an electronic card, which is more convenient and safer than a physical card.
And 104, verifying the validity of the traffic card.
Specifically, the count card server may determine one or more of the following for the transportation 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 traffic server and whether the traffic card is in a card returning process.
When the judgment result of the one or more judgments is yes, the traffic card can be determined to pass validity check; and when the judgment item with the judgment result of 'no' exists in the one or more judgment items, the traffic card can be determined not to pass the validity check.
And 106, after the traffic card passes the validity check, generating a counting order of the current riding of the user according to the travel data.
And 108, deducting the riding times of the current riding of the user from the riding times corresponding to the traffic card according to the counting order.
And step 110, after deducting the number of times of taking the bus by the user this time, if the remaining number of times of taking the bus by the traffic card is greater than a first preset threshold value, obtaining a count deduction result of the traffic card according to the remaining number of times of taking the bus.
Specifically, the size of the first predetermined threshold may be set by itself when the first predetermined threshold is implemented, and the size of the first predetermined threshold is not limited in this embodiment as long as the first predetermined threshold is a non-negative number, for example, the first predetermined threshold may be 0.
In the counting method of the traffic card, after receiving travel data of the traffic card sent by a public traffic server, a counting card server performs validity check on the traffic card, generates a counting order of the current riding of a user according to the travel data after the traffic card passes the validity check, deducts the riding times of the current riding of the user from the riding times corresponding to the traffic card, and obtains a counting deduction result of the traffic card according to the remaining riding times if the remaining riding times of the traffic card are greater than a first preset threshold; and 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 bus taking time card of the public trip can be electronized, the cost of the public transport company is reduced, the operation efficiency of the public transport company is improved, the cost of maintaining the entity card by the user is reduced, and the use experience of the user is improved.
Fig. 2 is a flowchart of another embodiment of a counting method for a transportation card in the present description, as shown in fig. 2, in the embodiment shown in fig. 1 in the present description, before step 102, the method may further include:
Specifically, if the user does not have the qualification to purchase the transportation card, the card counting server may send the reason why the user cannot purchase the transportation card to the electronic device, and the electronic device may display the reason why the user cannot purchase the transportation card to the user. For example, the user's failure to purchase a transportation card may be: the user is in a user blacklist.
And step 206, recording the number of times of the traffic card after the traffic card is purchased successfully.
And step 208, sending the riding times purchased by the traffic card to a public transportation server so that the public transportation server can store the riding times purchased by the traffic card.
Fig. 3 is a flowchart of a counting method for a transportation card according to still another embodiment of the present disclosure, as shown in fig. 3, in the embodiment shown in fig. 1 of the present disclosure, after step 104, the method may further include:
Specifically, the size of the second predetermined threshold may be set by itself when the implementation is performed, the size of the second predetermined threshold is not limited in this embodiment, and in the implementation, the second predetermined threshold may be equal to or different from the first predetermined threshold, for example, the second predetermined threshold may be 0.
And 304, if the remaining number of times of taking the vehicle by the traffic card is less than a second preset threshold value, determining that the traffic card is broken down, sending the broken-down event of the traffic card to the public transportation server so that the public transportation server can record the broken-down event of the traffic card, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning device.
And step 306, if the remaining number of times of taking the vehicle by the traffic card is greater than or equal to a second preset threshold value, the counting card server sends an instruction for forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
Specifically, because the traffic card fails to pass the validity check, even if the remaining number of times of taking the bus of the traffic card is greater than or equal to the second predetermined threshold, the counting card server still sends an instruction for forbidding generation of the two-dimensional code to the electronic device used by the user, so that the user cannot use the traffic card which fails to pass the validity check for code swiping for taking the bus next time, the service end wind control process is added in the process that the user uses the traffic card, the two-dimensional code forbidden code can be adopted for the suspicious user in real time, and the risk expansion of the public transport company is prevented.
Fig. 4 is a flowchart of a counting method for a transportation card according to still another embodiment of the present disclosure, as shown in fig. 4, in the embodiment shown in fig. 1 of the present disclosure, after step 108, the method may further include:
Taking the second predetermined threshold value as 0 as an example, after the number of times of taking the bus by the user this time is deducted, if the remaining number of times of taking the bus by the traffic card is 0, which indicates that the number of times of taking the bus purchased by the user is used up, at this time, the counting card server may send an instruction for prohibiting generation of the two-dimensional code corresponding to the traffic card to the electronic device used by the user, so that the user cannot use the traffic card for code-swiping bus at the next time of taking the bus, thereby adding a service end wind control process in the process of using the traffic card by the user, adopting the two-dimensional code prohibition code for the user in real time, and preventing the risk of the public transport company from being expanded.
Fig. 5 is a flowchart of a traffic card counting method according to still another embodiment of the present disclosure, and as shown in fig. 5, the traffic card counting method may include:
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 card counting server, and after receiving the request, the card counting server generates the two-dimensional code and returns the generated two-dimensional code to the electronic device. In some embodiments of the present description, what the card counting server returns to the electronic device may be a code value generated by the card counting server according to the received request, and the electronic device may map the code value returned by the card counting server into a corresponding two-dimensional code and render and display the two-dimensional code. Or, the card counting server may also directly generate a two-dimensional code picture according to the received request, and return the generated two-dimensional code picture to the electronic device, so that the electronic device displays the received two-dimensional code picture. Furthermore, according to actual use needs, the generation process of the two-dimensional code includes, but is not limited to, the above explanation, and the embodiments of the present specification are not particularly limited.
And 504, generating the travel data of the traffic card after determining that the card type of the traffic card corresponding to the two-dimensional code is a counting card.
Specifically, determining that the card type of the traffic card corresponding to the two-dimensional code is a count card may be: and the code scanning equipment inquires a card type white list corresponding to the prestored 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 count card.
After the card type of the traffic card corresponding to the two-dimensional code is determined to be the time counting card, the code scanning device can broadcast the voice prompt of the traffic card as the time counting card.
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 manner in which the code scanning device sends the travel data of the traffic card is not limited in this embodiment.
Fig. 6 is a flowchart of a counting method for a transportation card according to still another embodiment of the present disclosure, as shown in fig. 6, in the embodiment shown in fig. 5 of the present disclosure, before step 504, the method may further include:
The blacklist is sent to the code scanning device by the public transport server, and the code scanning device receives and stores the blacklist sent by the public transport server.
And 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 of a traffic card counting method according to still another embodiment of the present disclosure, and as shown in fig. 7, the traffic card counting method may include:
step 702, the code scanning device scans a two-dimensional code displayed by the electronic device used by the user.
Step 704, after the code scanning device determines that the card type of the traffic card corresponding to the two-dimensional code is a count card, the travel data of the traffic card is generated, and the travel data of the traffic card is sent to a public transport server.
Step 706, the public transportation server receives the travel data of the transportation card sent by the code scanning device, and sends the travel data of the transportation card to the count card server.
And 708, the counting card server receives the travel data of the traffic card sent by the public traffic server and verifies the validity of the traffic card.
And 710, after the validity of the traffic card is verified, generating a counting order of the current riding of the user by the counting card server according to the travel data, and deducting the riding times of the current riding of the user from the riding times corresponding to the traffic card according to the counting order.
And 712, after deducting the number of times the user takes the vehicle this time, if the remaining number of times the traffic card is greater than a first predetermined threshold, the count card server obtains a count deduction result of the traffic card according to the remaining number of times the traffic card is taken.
Step 714, the counting card server pushes the counting deduction result of the transportation card to the electronic device used by the user.
In step 716, the electronic device displays the count deduction result of the transportation card.
Further, in this embodiment, after the step 708, if the transportation card fails the validity check, the counting card server determines whether the remaining number of rides of the transportation card is less than a second predetermined threshold.
And if the remaining number of times of taking the bus by the traffic card is less than a second preset threshold value, the counting card server determines that the traffic card is broken down and sends the broken-down event of the traffic card to the public traffic server. And the public transport server receives the event that the traffic card is punctured and sent by the card counting server, records the event that the traffic card is punctured, adds a user using the traffic card into a blacklist, and sends the blacklist to the code scanning device. And the code scanning device receives and stores the blacklist sent by the public transport server.
And 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 forbidding generation of the two-dimensional 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 electronization of the bus taking time card of the public trip, and for a user, the user can purchase the counting card anytime and anywhere, so that the time and route cost of running points under a user line is avoided, and the cost of maintaining the entity card by the user is reduced.
For a public transport company, the card making cost of the entity card is reduced, and the service receiving and handling cost of an offline network point is reduced. In addition, because the mobile terminal of the user is bound by an application (App) account, the risk that the riding right is falsely used by other people is greatly reduced, and the ticket business loss of the public transport company side is reduced.
The counting method of the traffic card provided by the embodiment of the specification migrates the original calculation mode from the code scanning device (such as a code swiping machine) to the server, can improve the integrity and maintainability of data, can distinguish the type of the traffic card from the moment of code scanning by the code scanning device, helps a public transport company to analyze the passenger flow of the machine, adds a server wind control process in the using process of a user, and can adopt two-dimensional code forbidden in real time for a suspicious user to prevent the expansion of the risk of the public transport company.
In addition, the counting method of the traffic card provided by the embodiment of the specification can allow the user to take a car even when the electronic device used by the user is offline, and the code scanning device can asynchronously send the travel data of the user to the public transportation server offline.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
Fig. 8 is a schematic structural diagram of an embodiment of a counting device of a transportation card according to the present disclosure, the counting device of the transportation card may be disposed in a counting card server, as shown in fig. 8, the counting device may include: the system comprises 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 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 by the public transportation server 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 the two-dimensional code displayed by the electronic device used by the user and determines the card type of the traffic card corresponding to the two-dimensional code as a count card;
the checking module 82 is used for checking the validity of the traffic card;
a generating module 83, configured to generate a counting order of the current riding of the user according to the travel data after the validity check of the traffic card is passed;
a deduction module 84, configured to deduct the number of times of taking the bus of the current time of the user from the number of times of taking the bus corresponding to the traffic card according to the count order;
the obtaining module 85 is configured to, after deducting the number of times of taking a bus by the user this time, obtain a count deduction result of the traffic card according to the remaining number of times of taking a bus if the remaining number of times of taking a bus by the traffic card is greater than a first predetermined threshold;
the pushing module 86 is configured to push the count deduction result of the traffic card to an electronic device used by a user, so that the electronic device displays the count deduction result of the traffic card.
The counting device of the transportation card provided in the embodiment shown in fig. 8 can be used to implement the technical solution of the method embodiment shown in fig. 1 in this specification, and the implementation principle and technical effects thereof can be further referred to the related description in the method embodiment.
Fig. 9 is a schematic structural diagram of another embodiment of a counting device of a transportation card in the present description, in this embodiment, the verification module 82 is specifically configured to perform one or more of the following determinations on the transportation 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 traffic server, and whether the traffic card is in a card returning process.
Further, the counting device of the transportation card may further include: a processing module 87, a recording module 88 and a sending module 89;
the receiving module 81 is further configured to receive a transportation card purchase request sent by an electronic device used by a user before receiving travel data of a transportation card sent by a public transportation server, where the transportation card purchase request is used to request for purchasing a transportation card of which the card type is a count card;
the processing module 87 is used for processing the traffic card purchase request after determining that the user has the qualification of purchasing the traffic card;
the recording module 88 is used for recording the riding times of the traffic card purchase after the traffic card purchase is successful;
and the sending module 89 is used for sending the riding times purchased by the traffic card to the public transportation server so that the public transportation server can store the riding times purchased by the traffic card.
Further, the above apparatus may further include: a judging module 810 and a sending module 89;
the determining module 810 is further configured to, after the checking module 82 performs validity checking on the traffic card, determine whether the remaining number of times of taking the vehicle by the traffic card is less than a second predetermined threshold value if the traffic card fails the validity checking;
and the sending module 89 is used for determining that the traffic card is broken down when the remaining number of times of taking the vehicle by the traffic card is smaller than a second preset threshold value, sending the broken-down event of the traffic card to a public transportation server so that the public transportation server can record the broken-down event of the traffic card, adding a user using the traffic card to a blacklist, and sending the blacklist to code scanning equipment.
Further, the sending module 89 is further configured to, after the determining module 810 determines whether the remaining number of times of taking the vehicle by the traffic card is smaller than a second predetermined threshold, send an instruction to the electronic device used by the user to prohibit the generation of the two-dimensional code corresponding to the traffic card if the remaining number of times of taking the vehicle by the traffic card is greater than or equal to the second predetermined threshold.
Further, the above apparatus may further include: a sending 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 traffic card is equal to a second predetermined threshold after deducting the number of times of taking the vehicle by the user this time.
The counting device of the transportation card provided in the embodiment shown in fig. 9 can be used to execute the technical solutions of the method embodiments shown in fig. 1 to fig. 4 in this specification, and the implementation principles and technical effects thereof can be further described with reference to the related descriptions in the method embodiments.
Fig. 10 is a schematic structural diagram of still another embodiment of the counting device of the transportation card according to the present disclosure, the counting device of the transportation card may be disposed in a code scanning device, as shown in fig. 10, the counting device of the transportation card may include: a scanning module 1001, a determining module 1002, a generating module 1003 and a transmitting module 1004;
a scanning module 1001, configured to scan a two-dimensional code displayed by an electronic device used by a user;
the determining module 1002 is configured to determine a card type of the traffic card corresponding to the two-dimensional code;
the generating module 1003 is configured to generate the travel data of the transportation card after the determining module 1002 determines that the card type of the transportation card corresponding to the two-dimensional code is a count card;
the sending module 1004 is configured to send 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 count card server, and the count card server obtains a count deduction result of the traffic card according to the travel data.
The counting device of the transportation card provided in the embodiment shown in fig. 10 can be used to implement the technical solution of the method embodiment shown in fig. 5 in this specification, and the implementation principle and technical effects thereof can be further referred to the related description in the method embodiment.
Fig. 11 is a schematic structural diagram of another embodiment of a counting device of a transportation card in the present specification, in this embodiment, the determining module 1002 is specifically configured to perform query in a card type white list corresponding to a pre-stored two-dimensional code according to a two-dimensional code obtained by scanning, and determine that a card type of a transportation card corresponding to the two-dimensional code is a counting card.
Further, the counting device of the transportation card may further include: a judging module 1005;
the determining module 1005 is configured to determine whether the user is in the blacklist before the determining module 1002 determines that the card type of the traffic card corresponding to the two-dimensional code is a count card.
The blacklist is sent to the code scanning device by the public transportation server, and if the determining module 1005 determines that the user is not in the blacklist, the determining module 1002 executes an operation of determining the card type of the traffic card corresponding to the two-dimensional code.
And 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 transportation card provided in the embodiment shown in fig. 11 can be used to execute the technical solutions of the method embodiments shown in fig. 5 to fig. 6 in this specification, and the implementation principle and the technical effects thereof can be further described with reference to the related descriptions in the method embodiments.
FIG. 12 is a schematic block diagram of one embodiment of a card counting server according to the present disclosure, which may include at least one processor, as shown in FIG. 12; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the counting method of the traffic card provided by the embodiment shown in fig. 1 to 4 in the specification.
The time counting card server may be a common physical server or a cloud server, and the specific type of the time counting card server is not limited in this embodiment.
FIG. 12 illustrates a block diagram of an exemplary card counting server suitable for use in implementing embodiments of the present specification. The card counting server shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present specification.
As shown in fig. 12, the card counting server is in the form of a general purpose computing device. Components of the time 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 various components (including the memory 430, the communication interface 420, and the processing unit 410).
The count card server typically includes a variety of computer system readable media. Such media may be any available media that can be accessed by the card server and includes both volatile and nonvolatile media, removable and non-removable media.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 430, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methods of the embodiments described in fig. 1-4 herein.
The processor 410 executes various functional applications and data processing by executing programs stored in the memory 430, for example, implementing the counting method of the transportation card provided by the embodiments shown in fig. 1 to 4 of the present specification.
An embodiment of the present specification further provides a code scanning device, where the code scanning device 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 calls the program instructions to execute the traffic card counting method provided by the embodiments shown in fig. 5 to 6 in the present specification.
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-dimensional code and decoding the two-dimensional code.
In a specific implementation, the code scanning device may also be implemented by using the structure shown in fig. 12, which is not described herein again.
Fig. 13 is a schematic structural diagram of an embodiment of a traffic card counting system according to the present disclosure, where the traffic card counting system may include a traffic card server 1301, a code scanning device 1302, and a public transportation server 1303.
In a specific implementation, the time counting card server 1301 and the code scanning device 1302 may be implemented by the structure shown in fig. 12.
The count card server 1301 may be a common physical server or a cloud server, and the specific type of the count card server 1301 is not limited in this embodiment.
The code scanning device 1302 may be a card reader arranged on a public transport vehicle (e.g., a bus), and has functions of scanning and decoding the two-dimensional code.
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 in this specification, and details are not described here.
The embodiment of the present specification provides a non-transitory computer readable storage medium, which stores computer instructions, which cause the computer to execute the counting method of traffic cards provided by the embodiment shown in fig. 1 to 4 of the present specification.
The embodiment of the present specification provides a non-transitory computer readable storage medium, which stores computer instructions, and the computer instructions cause the computer to execute the counting method of the traffic card provided by the embodiment shown in fig. 5 to 6 of the present specification.
The non-transitory computer readable storage medium described above may take 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 (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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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 thereof. 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 aspects of the present description may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," 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 specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., 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 steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description 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 description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the terminal referred to in the embodiments of the present disclosure may include, but is not limited to, a personal computer (personal computer), a 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 system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims (26)
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 traffic server, the travel data of the traffic card are sent after the public traffic 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 two-dimensional codes displayed by electronic equipment used by a user and scanned by the code scanning device, and the card type of the traffic card corresponding to the two-dimensional codes is determined to be generated after the counting card is generated;
carrying out validity check on the traffic card;
after the traffic card passes the validity check, generating a counting order of the riding of the user this time according to the travel data;
according to the counting order, deducting the riding times of the user for taking the bus from the riding times corresponding to the traffic card;
after deducting the riding times of the current riding of the user, if the remaining riding times of the traffic card are larger than a first preset threshold value, obtaining a counting deduction result of the traffic card according to the remaining riding times;
and 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.
2. The method of claim 1, wherein the validating the traffic card comprises:
making 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 traffic server, and whether the traffic card is in a card returning process.
3. The method of claim 1 or 2, wherein before the sequence card server receives the travel data of the transportation card sent by the public transportation server, the method further comprises:
receiving a traffic card purchase request sent by electronic equipment used by the user, wherein the traffic card purchase request is used for requesting to purchase a traffic card of which the card type is a counting card;
processing the transportation card purchase request after determining that the user is eligible to purchase the transportation card;
after the traffic card is purchased successfully, recording the number of times of bus taking of the traffic card purchase;
and sending the number of times of taking the bus purchased by the traffic card to the public transportation server so that the public transportation server can store the number of times of taking the bus purchased by the traffic card.
4. The method of claim 1 or 2, wherein after the validity check of the transportation card, further comprising:
if the traffic card does not pass the validity check, judging whether the remaining riding times of the traffic card is less than a second preset threshold value;
and if the remaining number of times of taking the vehicle by the traffic card is less than a second preset threshold value, determining that the traffic card is broken down, sending the broken-down event of the traffic card to the public transportation server so that the public transportation server can record the broken-down event of the traffic card, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning device.
5. The method of claim 4, wherein after determining whether the number of remaining rides of the traffic card is less than a second predetermined threshold, further comprising:
and if the remaining number of times of taking the vehicle by the traffic card is greater than or equal to a second preset threshold value, sending an instruction for forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
6. The method of claim 1, wherein after deducting the number of times of taking the vehicle of the user this time from the number of times of taking the vehicle corresponding to the transportation card according to the count order, the method further comprises:
after deducting the number of times of taking the vehicle by the user this time, 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 forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
7. A method of counting traffic cards, comprising:
scanning a two-dimensional code displayed by electronic equipment used by a user by code scanning equipment;
after the card type of the traffic card corresponding to the two-dimensional code is determined to be a counting card, generating travel data of the traffic card;
and sending the travel data of the traffic card to a public traffic server for the public traffic server to send the travel data of the traffic card to a count card server, and obtaining a count deduction result of the traffic card by the count card server according to the travel data.
8. The method of claim 7, wherein the determining that the card type of the traffic card corresponding to the two-dimensional code is a count card comprises:
and inquiring a card type white list corresponding to the pre-stored 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.
9. The method of claim 7 or 8, wherein before determining that the card type of the transportation card corresponding to the two-dimensional code is a count card, the method further comprises:
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 count card.
10. A method of counting traffic cards, comprising:
scanning a two-dimensional code displayed by electronic equipment used by a user by code scanning equipment;
after the code scanning device 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 transport server;
the public transport 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 count card server;
the counting card server receives the travel data of the traffic card sent by the public traffic server and verifies the validity of the traffic card;
after the traffic card passes the validity check, the counting card server generates a 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 counting order;
after deducting the riding times of the current riding of the user, if the remaining riding times of the traffic card are larger than a first preset threshold value, the counting card server obtains a counting deduction result of the traffic card according to the remaining riding times;
the counting card server pushes the counting deduction result of the traffic card to the electronic equipment used by the user;
and the electronic equipment displays the counting deduction result of the traffic card.
11. The method of claim 10, wherein after the credit card server performs a validity check on the transit card, further comprising:
if the traffic card does not pass the validity check, the counting card server judges whether the remaining number of times of taking the bus of the traffic card is less than a second preset threshold value;
if the remaining number of times of taking the bus of the traffic card is smaller than a second preset threshold value, the counting card server determines that the traffic card is broken down, and sends the broken-down event of the traffic card to the public transportation server;
the public transport server receives the event that the traffic card is broken down and 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 device;
and the code scanning device receives and stores the blacklist sent by the public transport server.
12. The method of claim 11, wherein after the count card server determines whether the remaining number of rides for the traffic card is less than a second predetermined threshold, further comprising:
and if the remaining number of times of taking the vehicle by the traffic card is greater than or equal to a second preset threshold value, the counting card server sends an instruction for forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used by the user.
13. A counting device of a traffic card, provided in a counting card server, the device comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving travel data of a traffic card sent by a public traffic server, the travel data of the traffic card is sent by the public traffic server after the public traffic server receives the travel data of the traffic card sent by a 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 electronic equipment used by a user and determines that the card type of the traffic card corresponding to the two-dimensional code is a counting card;
the verification module is used for verifying the validity of the traffic card;
the generation module is used for generating a counting order of the riding of the user according to the travel data after the traffic card passes the validity check;
the deduction module is used for deducting the riding times of the user for taking the bus from the riding times corresponding to the traffic card according to the counting order;
the obtaining module is used for obtaining a counting deduction result of the traffic card according to the remaining riding times if the remaining riding times of the traffic card are larger than a first preset threshold after deducting the riding times of the user for the current riding;
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.
14. The apparatus of claim 13, wherein the verification module is specifically configured to determine one or more of the following for the transportation 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 traffic server, and whether the traffic card is in a card returning process.
15. The apparatus of claim 13 or 14, 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 the traffic card of which the card type is a counting card;
the processing module is used for processing the traffic card purchase request after determining that the user has the qualification of purchasing the traffic card;
the recording module is used for recording the riding times of the traffic card purchase after the traffic card purchase is successful;
the sending module is used for sending the riding times purchased by the traffic card to the public transportation server so that the public transportation server can store the riding times purchased by the traffic card.
16. The apparatus of claim 13 or 14, further comprising: the device comprises a judging module and a sending module;
the judging module is further configured to, after the checking module checks the validity of the traffic card, judge whether the remaining number of times of taking a bus of the traffic card is less than a second predetermined threshold if the traffic card does not pass the validity check;
the sending module is used for determining that the traffic card is broken down when the remaining number of times of taking the vehicle by the traffic card is smaller than a second preset threshold value, sending the broken-down event of the traffic card to the public transportation server so that the public transportation server can record the broken-down event of the traffic card, adding a user using the traffic card to a blacklist, and sending the blacklist to the code scanning device.
17. The apparatus of claim 16, wherein,
the sending module is further configured to send an instruction for prohibiting generation of a 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 vehicle by the traffic card is greater than or equal to a second predetermined threshold after the determining module determines whether the remaining number of times of taking the vehicle by the traffic card is less than the second predetermined threshold.
18. The apparatus of claim 13, further comprising:
and the sending module is used for sending an instruction for forbidding generation of the two-dimensional code corresponding to the traffic card to the electronic equipment used 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 after deducting the number of times of taking the vehicle by the user this time.
19. A counting device of a traffic card, which is arranged in a code scanning device, the device comprises:
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 generating module is used for generating the travel data of the traffic card after the determining 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 traffic server so that the public traffic server sends the travel data of the traffic card to a count card server, and the count card server obtains a count deduction result of the traffic card according to the travel data.
20. The apparatus according to claim 19, wherein the determining module is specifically configured to query a pre-stored card type white list corresponding to the two-dimensional code according to the two-dimensional code obtained by scanning, and determine that the card type of the transportation card corresponding to the two-dimensional code is a count card.
21. The apparatus of claim 19 or 20, further comprising:
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 a counting card.
22. A time 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 to 6.
23. A code scanning apparatus 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 7 to 9.
24. A counting system for a traffic card, comprising: the time-counting card server of claim 22, the code scanning device of claim 23, and a public transportation server.
25. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 1-6.
26. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 7 to 9.
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 true CN111612115A (en) | 2020-09-01 |
CN111612115B 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 (17)
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 |
US20070197231A1 (en) * | 2006-01-08 | 2007-08-23 | Bo-In Lin | Transmission of wireless messages of current vehicle location and estimated arrival time to requestors |
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 |
US20150106159A1 (en) * | 2013-10-15 | 2015-04-16 | Soonchunhyang University Industry Academy Cooperation Foundation | System and method for decentralizing public transportation passengers using transportation card reader |
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 |
-
2020
- 2020-06-15 CN CN202010546372.XA patent/CN111612115B/en active Active
- 2020-06-15 CN CN202311266443.0A patent/CN117372011A/en active Pending
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070197231A1 (en) * | 2006-01-08 | 2007-08-23 | Bo-In Lin | Transmission of wireless messages of current vehicle location and estimated arrival time to requestors |
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 |
US20150106159A1 (en) * | 2013-10-15 | 2015-04-16 | Soonchunhyang University Industry Academy Cooperation Foundation | System and method for decentralizing public transportation passengers using transportation card reader |
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 |
---|---|
CN117372011A (en) | 2024-01-09 |
CN111612115B (en) | 2023-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11861621B2 (en) | Payment risk control method and system | |
CN108898206A (en) | A kind of method and barcode scanning safe checking method generating gathering code | |
CN104599113A (en) | Information processing method, device and system | |
CN108305065B (en) | Data processing method, terminal equipment and data processing system | |
CN107451631A (en) | A kind of present distribution method and device | |
CN116911843A (en) | Payment method, device, equipment and medium based on near field communication | |
TW202125425A (en) | Information identification method and system | |
CN103858378A (en) | Method and apparatus for determining input | |
CN111125656B (en) | Service processing method and device and electronic equipment | |
CN111612115B (en) | Counting method and device of traffic card, code scanning equipment and counting card server | |
CN109087439A (en) | Bill method of calibration, terminal device, storage medium and electronic equipment | |
CN109544764B (en) | Two-dimensional code-based brake control method and system | |
CN110728386A (en) | Information verification method and device and computer equipment | |
US8733645B2 (en) | Unified transportation payment system | |
US20170228722A1 (en) | Real-time valuation display for transaction cards | |
CN112002024A (en) | Ticket checking method, device, equipment, server and medium based on face recognition | |
CN109118205B (en) | Data processing method, data processing device and terminal equipment | |
CN113409520A (en) | Charging method, charging device, electronic equipment and storage medium | |
CN111652990A (en) | Public transport riding code generation method and device and electronic equipment | |
CN111784346A (en) | User interception method and device based on unmanned selling equipment and server | |
CN118396630B (en) | Payment method, device, apparatus and computer program product | |
CN111062701A (en) | Insurance management method and related device | |
CN104243424A (en) | Data downloading method, device and system | |
CN116415938A (en) | Road information reporting rewarding method, device and system based on digital currency | |
CN112002025B (en) | Ticket checking method and device, user equipment and ticket checking server |
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 |