CN106779937B - Network payment-based card-free subway ticket selling and checking terminal, server and method - Google Patents

Network payment-based card-free subway ticket selling and checking terminal, server and method Download PDF

Info

Publication number
CN106779937B
CN106779937B CN201611129459.7A CN201611129459A CN106779937B CN 106779937 B CN106779937 B CN 106779937B CN 201611129459 A CN201611129459 A CN 201611129459A CN 106779937 B CN106779937 B CN 106779937B
Authority
CN
China
Prior art keywords
information
user
payment
order
dimensional code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611129459.7A
Other languages
Chinese (zh)
Other versions
CN106779937A (en
Inventor
陈桂友
卢宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CN201611129459.7A priority Critical patent/CN106779937B/en
Publication of CN106779937A publication Critical patent/CN106779937A/en
Application granted granted Critical
Publication of CN106779937B publication Critical patent/CN106779937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/24Credit schemes, i.e. "pay after"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/26Debit schemes, e.g. "pay now"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a card-free subway ticket selling and checking terminal, a server and a method based on network payment; the method comprises the following steps: receiving registration information and ticket selection information of a user to generate an order; feeding back the order to the terminal; receiving a payment mode selected by a user, wherein the payment mode comprises delayed payment and immediate payment, if the payment mode is immediate payment, judging whether the number of immediate payment requests exceeds a set threshold value, if so, setting the payment requests exceeding the set threshold value into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, sending a notification of successful payment to the terminal; simultaneously generating a two-dimensional code and sending the two-dimensional code to a terminal; user registration information and order information are also sent to a security check server; if the payment is delayed, judging whether the user is a user in the integrity database, and if so, sending the two-dimensional code to the terminal; if not, sending a notification of the refund deferred payment request to the terminal; has the advantages of no-card ticket selling and checking.

Description

Network payment-based card-free subway ticket selling and checking terminal, server and method
Technical Field
The invention relates to a card-free subway ticket selling and checking terminal, a card-free subway ticket selling and checking server and a card-free subway ticket selling and checking method based on network payment.
Background
With the development and wide popularization of the public transportation industry, the types, the performances, the station construction, the coverage range and the like of transportation tools are greatly improved compared with the prior art. However, as the degree of urban modernization increases, the density and the mobility of urban population put pressure on the operation of the public transportation industry, and under the current situation of urban traffic congestion, more and more people go out and select public transportation modes.
In recent years, subway, an emerging transportation mode, has become an increasing choice for many people to go out due to the advantages of large transportation capacity, punctuality and great commute time saving. The current subway operation system still has a short board, namely passengers need IC truck tickets to normally take a bus through a ticket checking mechanism.
At present, emerging consumption modes such as WeChat and Payment treasures which take two-dimensional code payment as a main payment mode gradually replace traditional cash consumption modes by the advantages of rapidness, convenience, safety and the like, a payee orders a corresponding two-dimensional code to be displayed to a consumer through a commodity price or an account, and the consumer can complete ordering, payment and other operations only by scanning the two-dimensional code through a mobile phone with a camera, a tablet and other terminal equipment. The mode is already applied to a plurality of consumption scenes in life, and especially saves time for queuing to buy tickets when the tickets are bought.
However, the IC card ticket still needs to be taken after online payment, the process cannot avoid the complexity of obtaining the IC card ticket, wastes time and reduces travel efficiency, and especially during weekends and holidays, a large number of floating population brings huge pressure to subway operation, so that the mode of obtaining the IC card ticket through online payment does not bring due rapidness and convenience, but influences user experience.
The current subway charging mode has the following defects:
1, the ticket carried by the IC truck is easy to lose, and the repair procedure is complicated.
2 the automatic ticket checking requires additional construction of a security ticket checking apparatus, increases costs and has low passenger operation efficiency.
3, the current ticket checking speed is low, the current subway is easy to accumulate people for the peak of going to work and off work, and the time of other passengers is wasted when the passengers can not use the ticket checking gate;
4, the application potential of the two-dimensional code is not fully utilized, and the current two-dimensional code generation process has no encryption measure and is easy to be tampered;
5, for the prior arrival, the prior departure and the delayed departure, no good solution exists at present, for the prior departure of the IC card, for the passengers who have bought tickets but have not arrived and come out in advance, the passengers can not enjoy the economic compensation, money can be wasted by the passengers at present, and the difference price can not be compensated in real time; refunds need to queue in a manual window and are not timely;
6 for passengers who like to catch a cold and feel warm in a public place, no good solution exists at present, so that the waste of public resources is caused, the public resources are few for commuters, and the public resources are occupied by some passengers occupying the space of the subway for a long time, so that the congestion of the subway is caused;
7, manufacturing a large amount of IC truck tickets to cause resource waste, wherein the IC cards can be recycled, but have the characteristic of inconvenient fluidity, for example, the peak outbound passenger flow at the A outbound port is large, so that a large amount of IC cards can be accumulated in a ticket checker at the A outbound port in a short time, the IC cards occupy the storage space, and once the IC cards at a ticket station are insufficient in storage, workers need to take out the IC cards in the card machine with more storage and transport the IC cards to the ticket station needing the IC cards, so that the labor and material resources are wasted in the transportation process, and the inconvenience is brought to consumers;
8 if the IC card is lost at present, only can be made up, and if the IC card is picked up by other passengers, other passengers can use the IC card to come out, and no detection measure is provided.
Disclosure of Invention
The invention aims to solve the problems and provides a card-free subway ticket selling and checking terminal, a card-free subway ticket selling and checking server and a card-free subway ticket selling and checking method based on network payment.
In order to achieve the purpose, the invention adopts the following technical scheme:
the card-free subway ticketing method based on network payment comprises the following steps:
step (a 1): receiving registration information and ticket selection information of a user to generate an order;
step (a 2): feeding back the order to the terminal;
step (a 3): receiving a payment mode selected by a user, wherein the payment mode comprises two modes of delay payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, sending a notification of successful payment to the terminal; simultaneously generating a two-dimensional code and sending the two-dimensional code to a terminal; user registration information and order information are also sent to a security check server;
if the deferred payment is carried out, recording the user order, further judging whether the user is a user in the integrity database, if so, simultaneously sending a notification of allowing the deferred payment to the terminal, generating a two-dimensional code, and sending the two-dimensional code to the terminal; user registration information and order information are also sent to a security check server; if not, the terminal is sent a notice of the refund deferred payment request, and the process is finished.
The user registration information includes a user name, an identity card number, a mobile phone number, a mailbox and a terminal account (such as a micro signal and a Paibao account number). The ticket selection information includes riding time, riding times, riding intervals and order generation dates.
The card-free subway ticketing method based on network payment comprises the following steps:
step (b 1): receiving registration information and ticket selection information of a user, and sending the ticket selection information to a Web server;
step (b 2): receiving a ticket order fed back by the Web server;
step (b 3): receiving a payment mode selected by a user, sending the payment mode to the Web server, wherein the payment mode comprises two modes of deferred payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, receiving a notification of successful payment sent by a Web server; simultaneously receiving the two-dimensional code sent by the Web server;
if the payment is deferred payment, recording the user order, and further judging whether the user is a user in an integrity database, if so, receiving a notice of allowing deferred payment sent by a Web server, and simultaneously receiving a two-dimensional code sent by the Web server; if not, the notification of the refund deferred payment request sent by the Web server is received, and the process is finished.
The integrity database is built up step by step, each newly registered user is assigned an initial credit rating score at registration, the credit rating score has a set threshold, and the user has a credit rating score which can only have a delayed payment right above the set threshold. The initial credit rating score is equal to a set threshold of 1, with the lower limit of the credit rating score being 0 and the upper limit being 5. If the user does not finish the payment of the order within the specified time after selecting the deferred payment mode, deducting a point; if the user completes the order payment on time once, the credit is not deducted, if the user completes the order payment on time for 10 times continuously, a credit is added, and the number of orders allowed to delay payment owned by the user is increased by 10 than the current number of orders allowed to delay payment when a credit evaluation credit is added. The integral is accumulated to 5 points and cannot be increased; if the integral is reduced to 0, the time for resetting to 1 is doubled after three months, and so on.
The generation method of the two-dimensional code comprises the following steps:
step (e 1): acquiring user registration information and order information; allocating a unique identification code to a registered user;
the unique identification code is used for identifying the identity of each user, so that the confusion of user data caused by the conditions of duplicate names and the like is avoided, the unique identification code is bound with user registration information when the user initially registers, and the user registration information is replaced during the subsequent order generation and transaction payment operation; the unique identification code is generated by user registration information (user name, identification card number, mobile phone number and terminal account information) through coding; in practical application, the security of the private information of the user is ensured by replacing the user registration information with the unique identification code, and meanwhile, the data composition of the two-dimensional code is simplified.
Step (e 2): matching the user registration information with the order information to obtain matching information;
matching information is the unique user identification code, the riding time, the number of vehicles, the riding interval, the order generation date and the checksum;
the check sum is generated by coding the unique user identification code, the riding time, the riding times, the riding interval and the order generation date, the sender generates the check sum and sends the check sum and the data to the receiver, the receiver calculates the check sum again after receiving the check sum and compares the check sum with the check sum sent by the sender, and the received data is considered to be correct after the check sum is consistent with the check sum sent by the sender.
Step (e 3): extracting characteristic parameters;
the characteristic parameters are that according to the train number arrangement of a station operation system, the arrival time point, the train number and the station are converted into numbers in one-to-one correspondence according to a conversion rule, and the numbers are recombined according to a set format, so that information coding is completed.
The conversion rule means that the time of day is accurate to minutes, and then the time of day is converted into 12 digits: four digits are the year, two digits are the month, two digits are the date, two digits are the hour and two digits are the minute, the train number is converted into a numerical combination of fixed digits, and the website is converted into the digit number of the alphabet corresponding to the initial letter of the pinyin; finally, a pure digital combination is obtained, namely the coded information;
the digit is recombined according to a set format, and each piece of information is converted into a corresponding digit and then is recombined according to a fixed format: and combining the arrival time point, the train number and the station into a digital combination to finish information coding.
Step (e 4): generating a user information set and an order information set;
the user information set is obtained by splitting the unique identification code of the user. And (e) splitting the unique identification code into q segments according to the encoding mode of the step (e1), wherein the user information set is as follows:
X={x1,x2,…xq};
the order information set corresponds to the encoded information of step (e3), and is considered to be an attribute set of X.
α={α12,…αk};
Step (e 5): generating an information value matrix;
for each xi∈X,yi=(y1,i,y2,i,…ym,i)TIs xiAnd the vector formed by m information values is characterized in that the corresponding m × q order information value matrix is as follows:
Figure BDA0001175814290000041
step (e 6): generating a P-information augmentation matrix corresponding to the information value matrix;
the information value matrix is added or deleted to obtain a corresponding P-information augmentation matrix of
Figure BDA0001175814290000042
Wherein the inner P-information augmentation matrix
Figure BDA0001175814290000043
And outer P-information augmentation matrix AFComprises the following steps:
Figure BDA0001175814290000044
Figure BDA0001175814290000045
the security of the information is improved during information transmission by adding or deleting the attributes;
in order to ensure the information security, the information value matrix needs to be transformed, and the complexity of the transformation is increased to reduce the possibility of being decoded. The complexity increase is achieved by adding meaningless items to the original order information set or deleting items that are not absolutely necessary.
Step (e 7): coding each parameter of the P-information augmentation matrix;
converting the generated matrix into coding information line by line; converting the generated matrix into a row according to the head-to-tail connection mode of each row, namely a piece of coding information;
step (e 8): generating a two-dimensional code according to the coding information;
and (e) combining the coded information obtained in the step (e7) with a checksum to generate a two-dimensional code in a standard form.
The checksum is used for Cyclic Redundancy Check (CRC), and error detection is performed by using the principles of division and remainder. In order to improve the accuracy of data received by a receiving party as much as possible, error detection needs to be performed on the data before the receiving party receives the data, and the receiving party really receives the data only when the detection result is correct.
The card-free subway ticket checking method based on network payment comprises the following steps:
step (c 1): receiving a two-dimensional code of a terminal scanned by a code scanner when the station is entered; receiving user registration information and order information which are sent by a Web server in advance;
step (c 2): decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance; and if the verification is successful, the user is released, and if the verification is failed, the user is not allowed to enter the station.
Decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance:
decoding the two-dimensional code obtained by scanning to obtain a P-information augmentation matrix of user and order information; restoring the P-information augmentation matrix to obtain an information value matrix; reading various parameters of the information value to obtain actual user information and actual order information;
and comparing the actual user information with the user information sent by the Web server in advance, comparing the actual order information with the order information sent by the Web server in advance, and if the actual order information is completely consistent with the order information sent by the Web server in advance, determining that the two-dimensional code is verified successfully.
When the actual order information is compared with the order information sent by the Web server in advance:
if the current site is matched with the order starting site, giving the user the right of passing;
if the current station is between the order starting station and the terminal station, giving the user the right of passing;
if the current station is outside the order starting station and the order terminal station, the user is not allowed to pass.
The card-free subway ticket checking method based on network payment comprises the following steps:
step (d 1): receiving a two-dimensional code of a terminal scanned by a code scanner when the terminal is out of the station; receiving user registration information and order information sent by a Web server in advance;
step (d 2): decoding the two-dimensional code, analyzing actual user information and actual order information obtained after decoding, judging whether the payment is delayed, if so, calculating total travel cost of the user, sending a payment order to a terminal, and if the user finishes the payment within a specified period, giving the user a right of passing; if not, entering step (d 3);
the user who selects the deferred payment is allowed to complete the payment within a specified period after completing the trip and the corresponding credit point is calculated according to the behavior of the user in term, and the payment is not required to be completed before the trip.
Giving permission to pass if payment is completed may still cause congestion and server stress within the station. Deferred payment notification and payment operations may be completed when the server is relatively idle after peak.
Step (d 3): judging whether the two-dimensional code is in a set effective time range, if so, entering a step (d4), if not, calculating the total travel cost of the user, sending a payment order to the terminal, and if the user finishes payment within a specified time limit, giving the user the right of passing;
and (3) calculating the total travel cost of the user: the station information recorded by the system when the user enters the station is S1The station information recorded by the system when the user is out of the station is S2,S1And S2I riding sections are shared among the I riding sections, and S1To S2The standard charge of each riding interval is P in turn1,P2,…PiAnd if the total cost is SUM, the calculation formula is as follows:
SUM=P1+P2+...+Pi
i=S2-S1
step (d 4): judging whether the current site is matched with the order information sent in advance;
if the current site is matched with the order starting site, giving the user the right of passing;
if the current station is between the order starting station and the terminal station, giving the user the right of passing; meanwhile, calculating the differential amount of the fare, sending a notice and a link of the differential amount of the fare to the user, and returning the differential amount of the fare to the user;
if the current station is outside the order starting station and the terminal station, the user is not allowed to pass; and meanwhile, calculating the differential amount of the vehicle fee, sending a vehicle fee compensation differential notification and a link to the user, and giving the user a right of passage when receiving the information of successful differential fee payment.
For the problem that the passengers stay in the station, a method for calculating the total travel time during the outbound is adopted, and for the passengers with the actual travel time exceeding the set time threshold, after exceeding, the percentage of the exceeded time in the set time threshold is calculated, and the extra fee is charged according to the percentage.
Decoding the two-dimensional code:
decoding the two-dimensional code obtained by scanning to obtain a P-information augmentation matrix of user and order information;
decoding the step (e7) of the two-dimensional code generation method to obtain the original P-information augmentation matrix
Figure BDA0001175814290000061
Restoring the P-information augmentation matrix to obtain an information value matrix; and reading various parameters of the information value to obtain actual user information and actual order information.
And (4) obtaining the original information value matrix by reverse deduction according to the rule generated by the P-information augmentation matrix.
A server, comprising:
an information receiving module: receiving registration information and ticket selection information of a user to generate an order;
a feedback module: feeding back the order to the terminal;
a payment mode selection module: receiving a payment mode selected by a user, wherein the payment mode comprises two modes of delay payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, sending a notification of successful payment to the terminal; simultaneously generating a two-dimensional code and sending the two-dimensional code to a terminal; user registration information and order information are also sent to a security check server;
if the deferred payment is carried out, recording the user order, further judging whether the user is a user in the integrity database, if so, simultaneously sending a notification of allowing the deferred payment to the terminal, generating a two-dimensional code, and sending the two-dimensional code to the terminal; user registration information and order information are also sent to a security check server; if not, the terminal is sent a notice of the refund deferred payment request, and the process is finished.
A terminal, comprising:
the registration information receiving module is used for receiving the registration information and the ticket selection information of the user and sending the ticket selection information to the Web server;
the ticket order receiving module: receiving a ticket order fed back by the Web server;
the payment mode receiving module: receiving a payment mode selected by a user, sending the payment mode to the Web server, wherein the payment mode comprises two modes of deferred payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, receiving a notification of successful payment sent by a Web server; simultaneously receiving the two-dimensional code sent by the Web server;
if the payment is deferred payment, recording the user order, and further judging whether the user is a user in an integrity database, if so, receiving a notice of allowing deferred payment sent by a Web server, and simultaneously receiving a two-dimensional code sent by the Web server; if not, the notification of the refund deferred payment request sent by the Web server is received, and the process is finished.
A security check server, comprising:
the two-dimensional code acquisition module of coming to the station: receiving a two-dimensional code of a terminal scanned by a code scanner when the station is entered; receiving user registration information and order information which are sent by a Web server in advance;
the inbound two-dimensional code decoding module: decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance; and if the verification is successful, the user is released, and if the verification is failed, the user is not allowed to enter the station.
Decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance:
decoding the two-dimensional code obtained by scanning to obtain a P-information augmentation matrix of user and order information; restoring the P-information augmentation matrix to obtain an information value matrix; reading various parameters of the information value to obtain actual user information and actual order information;
and comparing the actual user information with the user information sent by the Web server in advance, comparing the actual order information with the order information sent by the Web server in advance, and if the actual order information is completely consistent with the order information sent by the Web server in advance, determining that the two-dimensional code is verified successfully.
The security check server comprises the following steps:
two-dimensional code collection module of leaving a station: receiving a two-dimensional code of a terminal scanned by a code scanner when the terminal is out of the station; receiving user registration information and order information sent by a Web server in advance;
the outbound two-dimensional code decoding module: decoding the two-dimensional code, analyzing actual user information and actual order information obtained after decoding, judging whether the payment is delayed, if so, calculating total travel cost of the user, sending a payment order to a terminal, and if the user finishes the payment within a specified period, giving the user a right of passing; if the payment is not deferred, entering a two-dimension code valid time judgment module;
the user who selects the deferred payment is allowed to complete the payment within a specified period after completing the trip and the corresponding credit point is calculated according to the behavior of the user in term, and the payment is not required to be completed before the trip.
Giving permission to pass if payment is completed may still cause congestion and server stress within the station. Deferred payment notification and payment operations may be completed when the server is relatively idle after peak.
Two-dimensional code valid time judgement module: judging whether the two-dimensional code is in a set effective time range, if so, entering a site matching judgment module, if not, calculating the total travel cost of the user, sending a payment order to a terminal, and if the user finishes payment within a specified time limit, giving the user a right of passing;
and a site matching judgment module: judging whether the current site is matched with the order information sent in advance;
if the current site is matched with the order starting site, giving the user the right of passing;
if the current station is between the order starting station and the terminal station, giving the user the right of passing; meanwhile, calculating the differential amount of the fare, sending a notice and a link of the differential amount of the fare to the user, and returning the differential amount of the fare to the user;
if the current station is outside the order starting station and the terminal station, the user is not allowed to pass; and meanwhile, calculating the differential amount of the vehicle fee, sending a vehicle fee compensation differential notification and a link to the user, and giving the user a right of passage when receiving the information of successful differential fee payment.
For the problem that the passengers stay in the station, a method for calculating the total travel time during the outbound is adopted, and for the passengers with the actual travel time exceeding the set time threshold, after exceeding, the percentage of the exceeded time in the set time threshold is calculated, and the extra fee is charged according to the percentage.
The invention has the beneficial effects that:
1. only one mobile phone or flat panel is needed for paying and checking tickets, so that the payment and checking method is convenient and quick, and the risk of losing the IC card is eliminated.
2. The ticket checking process can be completed only by a code scanning machine without additionally constructing security check ticket equipment;
3. the two-dimensional code scans the code, the speed is fast, no queuing is needed, moreover, after the web server generates the two-dimensional code, the user registration information and the order information are synchronously sent to the security check server, the security check server decodes the two-dimensional code after receiving the actual two-dimensional code, the two-dimensional code is directly compared with the user registration information and the order information which are sent in advance after being decoded, the comparison process is completed in the security check server, the verification is not needed in the web server, the decoded data is directly compared with the order information which is sent in advance instead of comparing the decoded data with the two-dimensional code generated by the web server, and therefore the verification speed is accelerated.
4. The two-dimensional code for authentication is generated by the system according to an encryption algorithm, and the possibility of forgery is extremely low.
5. The security check system carries out double verification on the user entering and leaving the station, ensures that the actual riding cost of the user is consistent with the cost of the riding interval, and simultaneously prevents the ticket evasion condition.
6. The problems of advance station entrance, advance station exit and delay station exit are effectively solved, the difference can be timely withdrawn for passengers, the difference can be timely compensated, and the economic loss of the subway station is avoided;
7. the passengers who like to feel cool and feel warm in the public place can be effectively reduced through the delayed outbound detection, and a more loose traffic place is provided for the passengers needing the public place;
8. through the delayed payment, the pressure of the server in the traffic peak period is greatly relieved, and the server is prevented from being crashed.
9. The IC card is not required to be manufactured, the cost is reduced, the resources are saved, and the sustainable development is facilitated.
Drawings
FIG. 1 is a system architecture diagram of the present invention;
FIG. 2 is a flow chart of server-side ticketing according to the present invention;
FIG. 3 is a flow chart of terminal-side ticketing according to the present invention;
FIG. 4 is a flow chart of two-dimensional code generation according to the present invention;
FIG. 5 is a flow chart of the user's inbound ticket checking according to the present invention;
FIG. 6 is a user outbound ticket checking flowchart of the present invention;
fig. 7 is a flowchart of decoding a two-dimensional code according to the present invention.
Detailed Description
The invention is further described with reference to the following figures and examples.
As shown in fig. 1-7, a paperless and cardless subway ticket selling and checking system based on network payment includes:
the terminal is used for logging in a WeChat public platform, paying the vehicle fee and receiving verification information;
the WeChat public platform is used for WeChat public number authentication, ticket selection and payment entrance and train number information push; the Web server is used for order processing, verification and authorization and database management;
the security check server is used for verifying the security check passage authority and detecting the crowd flow in real time;
and the code scanner is used for scanning the two-dimensional code of the terminal, verifying the two-dimensional code and feeding back a verification result to the security check server.
In order to solve the problems that the current subway operation mode is low in efficiency, resource waste is caused by using a large number of IC (integrated circuit) truck tickets, the application potential of network payment through two-dimensional codes is not fully exerted, and the like, the subway online ticket purchasing mode is designed, and the two-dimensional codes generated by the system are provided to verify the authority after the user pays successfully so as to replace IC (integrated circuit) card tickets, so that the purposes of simplifying the riding process, improving the traveling efficiency and saving resources are achieved.
In this embodiment, a detailed flow of a subway ticketing cardless operation implementation method based on a wechat platform will be described with reference to fig. 1 by taking a wechat payment, which is one of currently popular network payment methods, as an example:
1 subway operators send graphic and text messages and menus to users paying attention to the public number through self-family WeChat public numbers, or set up signs at subway stations to display two-dimensional codes manufactured according to ticket prices so as to provide a mall interface for the users.
And 2, the user pays attention to the subway operator WeChat public number or scans the two-dimensional code provided on the subway station indication board through a mobile phone with a camera shooting function, a tablet and other equipment to obtain a transaction interface.
And 3, enabling the user to enter a mall page to select the train number, the date, the bus taking interval and the like according to the personal route plan to complete the purchasing process and submit the order.
And 4, the system processes the order and returns a payment authorization request to the user, prompts the user to input a password to complete payment, and generates a corresponding two-dimensional code according to detailed information of the user order and an encryption algorithm to provide the user after the subway operator background system receives a notice that the payment of the WeChat payment system is successful.
And 5, the user WeChat client jumps to a payment success interface to display that the payment is successful and receive the two-dimensional code generated by the subway operator background system, and the two-dimensional code is used as verification when passing security check and contains information such as the number of cars, time, riding interval, check code and the like of the user.
And 6, after the user passes the security check, scanning the two-dimensional code provided by the subway operator background system by using a code scanner arranged on the ticket checking mechanism, reading the related information and the check code of the user taking the bus, giving the user the right of passage after the check is successful, and enabling the user to normally pass the security check for taking the bus.
After the user arrives at a target station, the two-dimensional code which is checked by entering the station in the past is scanned on a code scanner of a ticket checking mechanism, the ticket checking mechanism scans and compares the order information of the user and the current station information, and the user is given the right of passage after the user confirms that no error exists. If the user leaves the station in advance, the system sends a message link to the user according to the station information in the user order to return the charge balance; if the user leaves the station after a delay, the user cannot pass code scanning verification of the ticket checking mechanism, and the user is not given the right of passage.
After logging in at the wechat client, a user pays attention to the wechat public number of the subway operator, the subway operator guides the user to enter an online shopping mall through message links or two-dimensional codes, or the subway operator sets a signboard at a subway station to provide the two-dimensional codes generated according to the fare for the user to scan, and the user is helped to generate an order.
And the user inquires the station and the train number information through the mall page to confirm the order or directly scans the two-dimensional code displayed by the subway station to confirm the order.
The WeChat client requests the subway operator background system to generate a payment order, and then the background system generates a merchant order and submits the merchant order to the WeChat payment system.
The WeChat payment system generates a prepayment order and returns prepayment order information to the subway operator background system, the subway operator background system sends payment parameters to the WeChat client, and the user initiates payment through the WeChat client.
And the WeChat payment system checks the legality and authority of the parameter of the payment requested by the WeChat client interface, returns a verification result after the parameter passes the legality and authority of the authorized domain, and prompts a user to input a password so as to provide payment authorization.
And after the user inputs the password and confirms, the WeChat payment system verifies the authorization, informs the merchant of the payment result, and simultaneously sends a message prompt to the WeChat client to return the payment result. The merchant background system inquires the payment result from the WeChat payment system, generates a two-dimensional code (containing information such as a user name, the number of vehicles, a riding interval, effective time and a check code) for checking during security check, and sends a delivery notice to the user. And the WeChat client jumps to a merchant page, displays delivery and obtains the two-dimensional code for checking.
And the two-dimensional code generated by the merchant background system is sent to a security check system server through the Web server for verification and giving the user access right. And when the user passes the security check, the two-dimensional code returned by the merchant is displayed to the code scanner, information such as the number of cars, the station interval, the riding time and the like of the user is acquired after the security check system successfully checks, the user is given the passing right, and the current state of the user is recorded.
When the user leaves the station, the security check system collects the two-dimension code of the user again, compares the two-dimension code with the last state of the user to confirm whether the user journey is in accordance with the expectation or not, and calculates whether the consumption amount is correct or not. If the consumption amounts are matched, giving the user a passing right; if not, the balance is returned or the user is not given the right of passage according to the condition that the user is out of the station in advance or in a delayed way.
The web server and the security check system are respectively provided with an independent verification mechanism, after a user order is generated, the server sends user information and order information to the security check system, the security check system receives and checks the information, scans and reads two-dimensional code information of the user after the information is correct, compares the information received from the server with the information provided by the user, gives a user access right if the information is correct, and simultaneously feeds back information such as real-time state and the like to the server user; and if the two-dimension code sent to the user by the web server is wrong, the security check system detects an abnormal state and immediately feeds back the abnormal state to the web server, the web server processes the order information again after responding and sends the two-dimension code information to the user again, and the user side verifies the two-dimension code again after refreshing.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (9)

1. A card-free subway ticketing method based on network payment is characterized by comprising the following steps:
step (a 1): receiving registration information and ticket selection information of a user to generate an order;
step (a 2): feeding back the order to the terminal;
step (a 3): receiving a payment mode selected by a user, wherein the payment mode comprises two modes of delay payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, sending a notification of successful payment to the terminal; simultaneously generating a two-dimensional code and sending the two-dimensional code to a terminal; user registration information and order information are also sent to a security check server;
if the deferred payment is carried out, recording the user order, further judging whether the user is a user in the integrity database, if so, simultaneously sending a notification of allowing the deferred payment to the terminal, generating a two-dimensional code, and sending the two-dimensional code to the terminal; user registration information and order information are also sent to a security check server; if not, sending a notification of the refund deferred payment request to the terminal, and ending;
the generation method of the two-dimensional code comprises the following steps:
step (e 1): acquiring user registration information and order information; allocating a unique identification code to a registered user;
the unique identification code is used for identifying the identity of each user, so that the confusion of user data caused by the conditions of duplicate names and the like is avoided, the unique identification code is bound with user registration information when the user initially registers, and the user registration information is replaced during the subsequent order generation and transaction payment operation; the unique identification code is generated by encoding the user registration information; in practical application, the security of private information of a user is ensured by replacing user registration information with a unique identification code, and meanwhile, the data composition of a two-dimensional code is simplified;
step (e 2): matching the user registration information with the order information to obtain matching information;
matching information is the unique user identification code, the riding time, the number of vehicles, the riding interval, the order generation date and the checksum;
the check sum is generated by coding the unique user identification code, the riding time, the riding times, the riding interval and the order generation date, the sender generates the check sum and sends the check sum and the data to the receiver, the receiver calculates the check sum again after receiving the check sum and compares the check sum with the check sum sent by the sender, and the received data is considered to be correct after the check sum is consistent with the check sum;
step (e 3): extracting characteristic parameters;
the characteristic parameters are that according to the train number arrangement of a station operation system, the arrival time point, the train number and the station are converted into numbers in one-to-one correspondence according to a conversion rule, and the numbers are recombined according to a set format to complete information coding;
the conversion rule means that the time of day is accurate to minutes, and then the time of day is converted into 12 digits: four digits are the year, two digits are the month, two digits are the date, two digits are the hour and two digits are the minute, the train number is converted into a numerical combination of fixed digits, and the website is converted into the digit number of the alphabet corresponding to the initial letter of the pinyin; finally, a pure digital combination is obtained, namely the coded information;
the digit is recombined according to a set format, and each piece of information is converted into a corresponding digit and then is recombined according to a fixed format: the arrival time point-train number-station point is combined into a digital combination to complete information coding;
step (e 4): generating a user information set and an order information set;
the user information set is obtained by splitting the unique identification code of the user; and (e) splitting the unique identification code into q segments according to the encoding mode of the step (e1), wherein the user information set is as follows:
X={x1,x2,…xq};
the order information set corresponds to the coded information in the step (e3), and is regarded as an attribute set of X;
α={α12,…αk};
step (e 5): generating an information value matrix;
for each xi∈X,yi=(y1,i,y2,i,…ym,i)TIs xiAnd the vector formed by m information values is characterized in that the corresponding m × q order information value matrix is as follows:
Figure FDA0002392554810000021
step (e 6): generating a P-information augmentation matrix corresponding to the information value matrix;
the information value matrix is added or deleted to obtain a corresponding P-information augmentation matrix of
Figure FDA0002392554810000022
Wherein the inner P-information augmentation matrix
Figure FDA0002392554810000023
And outer P-information augmentation matrix AFComprises the following steps:
Figure FDA0002392554810000024
Figure FDA0002392554810000025
the security of the information is improved during information transmission by adding or deleting the attributes;
step (e 7): coding each parameter of the P-information augmentation matrix;
converting the generated matrix into coding information line by line; converting the generated matrix into a row according to the head-to-tail connection mode of each row, namely a piece of coding information;
step (e 8): generating a two-dimensional code according to the coding information;
and (e) combining the coded information obtained in the step (e7) with a checksum to generate a two-dimensional code in a standard form.
2. A card-free subway ticketing method based on network payment is characterized by comprising the following steps:
step (b 1): receiving registration information and ticket selection information of a user, and sending the ticket selection information to a Web server;
step (b 2): receiving a ticket order fed back by the Web server;
step (b 3): receiving a payment mode selected by a user, sending the payment mode to the Web server, wherein the payment mode comprises two modes of deferred payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, receiving a notification of successful payment sent by a Web server; simultaneously receiving the two-dimensional code sent by the Web server;
if the payment is deferred payment, recording the user order, and further judging whether the user is a user in an integrity database, if so, receiving a notice of allowing deferred payment sent by a Web server, and simultaneously receiving a two-dimensional code sent by the Web server; if not, receiving the notification of the refund deferred payment request sent by the Web server, and ending;
the generation method of the two-dimensional code comprises the following steps:
step (e 1): acquiring user registration information and order information; allocating a unique identification code to a registered user;
the unique identification code is used for identifying the identity of each user, so that the confusion of user data caused by the conditions of duplicate names and the like is avoided, the unique identification code is bound with user registration information when the user initially registers, and the user registration information is replaced during the subsequent order generation and transaction payment operation; the unique identification code is generated by encoding the user registration information; in practical application, the security of private information of a user is ensured by replacing user registration information with a unique identification code, and meanwhile, the data composition of a two-dimensional code is simplified;
step (e 2): matching the user registration information with the order information to obtain matching information;
matching information is the unique user identification code, the riding time, the number of vehicles, the riding interval, the order generation date and the checksum;
the check sum is generated by coding the unique user identification code, the riding time, the riding times, the riding interval and the order generation date, the sender generates the check sum and sends the check sum and the data to the receiver, the receiver calculates the check sum again after receiving the check sum and compares the check sum with the check sum sent by the sender, and the received data is considered to be correct after the check sum is consistent with the check sum;
step (e 3): extracting characteristic parameters;
the characteristic parameters are that according to the train number arrangement of a station operation system, the arrival time point, the train number and the station are converted into numbers in one-to-one correspondence according to a conversion rule, and the numbers are recombined according to a set format to complete information coding;
the conversion rule means that the time of day is accurate to minutes, and then the time of day is converted into 12 digits: four digits are the year, two digits are the month, two digits are the date, two digits are the hour and two digits are the minute, the train number is converted into a numerical combination of fixed digits, and the website is converted into the digit number of the alphabet corresponding to the initial letter of the pinyin; finally, a pure digital combination is obtained, namely the coded information;
the digit is recombined according to a set format, and each piece of information is converted into a corresponding digit and then is recombined according to a fixed format: the arrival time point-train number-station point is combined into a digital combination to complete information coding;
step (e 4): generating a user information set and an order information set;
the user information set is obtained by splitting the unique identification code of the user; and (e) splitting the unique identification code into q segments according to the encoding mode of the step (e1), wherein the user information set is as follows:
X={x1,x2,…xq};
the order information set corresponds to the coded information in the step (e3), and is regarded as an attribute set of X;
α={α12,…αk};
step (e 5): generating an information value matrix;
for each xi∈X,yi=(y1,i,y2,i,…ym,i)TIs xiAnd the vector formed by m information values is characterized in that the corresponding m × q order information value matrix is as follows:
Figure FDA0002392554810000041
step (e 6): generating a P-information augmentation matrix corresponding to the information value matrix;
the information value matrix is added or deleted to obtain a corresponding P-information augmentation matrix of
Figure FDA0002392554810000042
Wherein the inner P-information augmentation matrix
Figure FDA0002392554810000043
And outer P-information augmentation matrix AFComprises the following steps:
Figure FDA0002392554810000044
Figure FDA0002392554810000045
the security of the information is improved during information transmission by adding or deleting the attributes;
step (e 7): coding each parameter of the P-information augmentation matrix;
converting the generated matrix into coding information line by line; converting the generated matrix into a row according to the head-to-tail connection mode of each row, namely a piece of coding information;
step (e 8): generating a two-dimensional code according to the coding information;
and (e) combining the coded information obtained in the step (e7) with a checksum to generate a two-dimensional code in a standard form.
3. The card-free subway ticket checking method based on network payment is characterized by comprising the following steps of:
step (c 1): receiving a two-dimensional code of a terminal scanned by a code scanner when the station is entered; receiving user registration information and order information which are sent by a Web server in advance;
step (c 2): decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance; if the verification is successful, the user is released, and if the verification is failed, the user is not allowed to enter the station;
decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance:
decoding the two-dimensional code obtained by scanning to obtain a P-information augmentation matrix of user and order information; restoring the P-information augmentation matrix to obtain an information value matrix; reading various parameters of the information value to obtain actual user information and actual order information;
the P-information amplification matrix is
Figure FDA0002392554810000051
Wherein the inner P-information augmentation matrix
Figure FDA0002392554810000052
And outer P-information augmentation matrix AFComprises the following steps:
Figure FDA0002392554810000053
Figure FDA0002392554810000054
comparing the actual user information with user information sent by a Web server in advance, comparing the actual order information with order information sent by the Web server in advance, and if the actual order information is completely consistent with the order information sent by the Web server in advance, determining that the two-dimensional code is verified successfully;
when the actual order information is compared with the order information sent by the Web server in advance:
if the current site is matched with the order starting site, giving the user the right of passing;
if the current station is between the order starting station and the terminal station, giving the user the right of passing;
if the current station is outside the order starting station and the order terminal station, the user is not allowed to pass.
4. The card-free subway ticket checking method based on network payment is characterized by comprising the following steps of:
step (d 1): receiving a two-dimensional code of a terminal scanned by a code scanner when the terminal is out of the station; receiving user registration information and order information sent by a Web server in advance;
step (d 2): decoding the two-dimensional code, analyzing actual user information and actual order information obtained after decoding, judging whether the payment is delayed, if so, calculating total travel cost of the user, sending a payment order to a terminal, and if the user finishes the payment within a specified period, giving the user a right of passing; if not, entering step (d 3);
allowing the user who selects the deferred payment to complete the payment within a specified period after completing the trip and the outbound, and calculating corresponding credit points according to the behavior of the user in the scheduled payment without requiring the payment to be completed before the outbound;
the permission given if payment is completed still can cause congestion in the station and stress on the server; the delayed payment notification and the payment operation can be finished when the server is relatively idle after the peak;
step (d 3): judging whether the two-dimensional code is in a set effective time range, if so, entering a step (d4), if not, calculating the total travel cost of the user, sending a payment order to the terminal, and if the user finishes payment within a specified time limit, giving the user the right of passing;
step (d 4): judging whether the current site is matched with the order information sent in advance;
if the current site is matched with the order starting site, giving the user the right of passing;
if the current station is between the order starting station and the terminal station, giving the user the right of passing; meanwhile, calculating the differential amount of the fare, sending a notice and a link of the differential amount of the fare to the user, and returning the differential amount of the fare to the user;
if the current station is outside the order starting station and the terminal station, the user is not allowed to pass; and meanwhile, calculating the differential amount of the vehicle fee, sending a vehicle fee compensation differential notification and a link to the user, and giving the user a right of passage when receiving the information of successful differential fee payment.
5. The network payment-based card-free subway ticket checking method as claimed in claim 4, wherein for the problem that the passenger stays in the station, a method of calculating the total travel time at the time of leaving the station is adopted, and for the passenger whose actual travel time exceeds the set time threshold, after exceeding, the percentage of the exceeded time in the set time threshold is calculated, and the extra fee is charged according to the percentage.
6. A server, comprising:
an information receiving module: receiving registration information and ticket selection information of a user to generate an order;
a feedback module: feeding back the order to the terminal;
a payment mode selection module: receiving a payment mode selected by a user, wherein the payment mode comprises two modes of delay payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, sending a notification of successful payment to the terminal; simultaneously generating a two-dimensional code and sending the two-dimensional code to a terminal; user registration information and order information are also sent to a security check server;
if the deferred payment is carried out, recording the user order, further judging whether the user is a user in the integrity database, if so, simultaneously sending a notification of allowing the deferred payment to the terminal, generating a two-dimensional code, and sending the two-dimensional code to the terminal; user registration information and order information are also sent to a security check server; if not, sending a notification of the refund deferred payment request to the terminal, and ending;
the generation method of the two-dimensional code comprises the following steps:
step (e 1): acquiring user registration information and order information; allocating a unique identification code to a registered user;
the unique identification code is used for identifying the identity of each user, so that the confusion of user data caused by the conditions of duplicate names and the like is avoided, the unique identification code is bound with user registration information when the user initially registers, and the user registration information is replaced during the subsequent order generation and transaction payment operation; the unique identification code is generated by encoding the user registration information; in practical application, the security of private information of a user is ensured by replacing user registration information with a unique identification code, and meanwhile, the data composition of a two-dimensional code is simplified;
step (e 2): matching the user registration information with the order information to obtain matching information;
matching information is the unique user identification code, the riding time, the number of vehicles, the riding interval, the order generation date and the checksum;
the check sum is generated by coding the unique user identification code, the riding time, the riding times, the riding interval and the order generation date, the sender generates the check sum and sends the check sum and the data to the receiver, the receiver calculates the check sum again after receiving the check sum and compares the check sum with the check sum sent by the sender, and the received data is considered to be correct after the check sum is consistent with the check sum;
step (e 3): extracting characteristic parameters;
the characteristic parameters are that according to the train number arrangement of a station operation system, the arrival time point, the train number and the station are converted into numbers in one-to-one correspondence according to a conversion rule, and the numbers are recombined according to a set format to complete information coding;
the conversion rule means that the time of day is accurate to minutes, and then the time of day is converted into 12 digits: four digits are the year, two digits are the month, two digits are the date, two digits are the hour and two digits are the minute, the train number is converted into a numerical combination of fixed digits, and the website is converted into the digit number of the alphabet corresponding to the initial letter of the pinyin; finally, a pure digital combination is obtained, namely the coded information;
the digit is recombined according to a set format, and each piece of information is converted into a corresponding digit and then is recombined according to a fixed format: the arrival time point-train number-station point is combined into a digital combination to complete information coding;
step (e 4): generating a user information set and an order information set;
the user information set is obtained by splitting the unique identification code of the user; and (e) splitting the unique identification code into q segments according to the encoding mode of the step (e1), wherein the user information set is as follows:
X={x1,x2,…xq};
the order information set corresponds to the coded information in the step (e3), and is regarded as an attribute set of X;
α={α12,…αk};
step (e 5): generating an information value matrix;
for each xi∈X,yi=(y1,i,y2,i,…ym,i)TIs xiAnd the vector formed by m information values is characterized in that the corresponding m × q order information value matrix is as follows:
Figure FDA0002392554810000071
step (e 6): generating a P-information augmentation matrix corresponding to the information value matrix;
the information value matrix is added or deleted to obtain a corresponding P-information augmentation matrix of
Figure FDA0002392554810000072
Wherein the inner P-information augmentation matrix
Figure FDA0002392554810000073
And outer P-information augmentation matrix AFComprises the following steps:
Figure FDA0002392554810000074
Figure FDA0002392554810000075
the security of the information is improved during information transmission by adding or deleting the attributes;
step (e 7): coding each parameter of the P-information augmentation matrix;
converting the generated matrix into coding information line by line; converting the generated matrix into a row according to the head-to-tail connection mode of each row, namely a piece of coding information;
step (e 8): generating a two-dimensional code according to the coding information;
and (e) combining the coded information obtained in the step (e7) with a checksum to generate a two-dimensional code in a standard form.
7. A terminal, comprising:
the registration information receiving module is used for receiving the registration information and the ticket selection information of the user and sending the ticket selection information to the Web server;
the ticket order receiving module: receiving a ticket order fed back by the Web server;
the payment mode receiving module: receiving a payment mode selected by a user, sending the payment mode to the Web server, wherein the payment mode comprises two modes of deferred payment and immediate payment,
if the payment is immediate, judging whether the number of immediate payment requests exceeds a set threshold, if so, setting the payment requests exceeding the set threshold into a queue waiting state, and if not, executing a payment instruction; after the order payment is finished, receiving a notification of successful payment sent by a Web server; simultaneously receiving the two-dimensional code sent by the Web server;
if the payment is deferred payment, recording the user order, and further judging whether the user is a user in an integrity database, if so, receiving a notice of allowing deferred payment sent by a Web server, and simultaneously receiving a two-dimensional code sent by the Web server; if not, receiving the notification of the refund deferred payment request sent by the Web server, and ending;
the generation method of the two-dimensional code comprises the following steps:
step (e 1): acquiring user registration information and order information; allocating a unique identification code to a registered user;
the unique identification code is used for identifying the identity of each user, so that the confusion of user data caused by the conditions of duplicate names and the like is avoided, the unique identification code is bound with user registration information when the user initially registers, and the user registration information is replaced during the subsequent order generation and transaction payment operation; the unique identification code is generated by encoding the user registration information; in practical application, the security of private information of a user is ensured by replacing user registration information with a unique identification code, and meanwhile, the data composition of a two-dimensional code is simplified;
step (e 2): matching the user registration information with the order information to obtain matching information;
matching information is the unique user identification code, the riding time, the number of vehicles, the riding interval, the order generation date and the checksum;
the check sum is generated by coding the unique user identification code, the riding time, the riding times, the riding interval and the order generation date, the sender generates the check sum and sends the check sum and the data to the receiver, the receiver calculates the check sum again after receiving the check sum and compares the check sum with the check sum sent by the sender, and the received data is considered to be correct after the check sum is consistent with the check sum;
step (e 3): extracting characteristic parameters;
the characteristic parameters are that according to the train number arrangement of a station operation system, the arrival time point, the train number and the station are converted into numbers in one-to-one correspondence according to a conversion rule, and the numbers are recombined according to a set format to complete information coding;
the conversion rule means that the time of day is accurate to minutes, and then the time of day is converted into 12 digits: four digits are the year, two digits are the month, two digits are the date, two digits are the hour and two digits are the minute, the train number is converted into a numerical combination of fixed digits, and the website is converted into the digit number of the alphabet corresponding to the initial letter of the pinyin; finally, a pure digital combination is obtained, namely the coded information;
the digit is recombined according to a set format, and each piece of information is converted into a corresponding digit and then is recombined according to a fixed format: the arrival time point-train number-station point is combined into a digital combination to complete information coding;
step (e 4): generating a user information set and an order information set;
the user information set is obtained by splitting the unique identification code of the user; and (e) splitting the unique identification code into q segments according to the encoding mode of the step (e1), wherein the user information set is as follows:
X={x1,x2,…xq};
the order information set corresponds to the coded information in the step (e3), and is regarded as an attribute set of X;
α={α12,…αk};
step (e 5): generating an information value matrix;
for each xi∈X,yi=(y1,i,y2,i,…ym,i)TIs xiAnd the vector formed by m information values is characterized in that the corresponding m × q order information value matrix is as follows:
Figure FDA0002392554810000091
step (e 6): generating a P-information augmentation matrix corresponding to the information value matrix;
the information value matrix is added or deleted to obtain a corresponding P-information augmentation matrix of
Figure FDA0002392554810000092
Wherein the inner P-information augmentation matrix
Figure FDA0002392554810000093
And outer P-information augmentation matrix AFComprises the following steps:
Figure FDA0002392554810000094
Figure FDA0002392554810000095
the security of the information is improved during information transmission by adding or deleting the attributes;
step (e 7): coding each parameter of the P-information augmentation matrix;
converting the generated matrix into coding information line by line; converting the generated matrix into a row according to the head-to-tail connection mode of each row, namely a piece of coding information;
step (e 8): generating a two-dimensional code according to the coding information;
and (e) combining the coded information obtained in the step (e7) with a checksum to generate a two-dimensional code in a standard form.
8. Security installations server, characterized by includes:
the two-dimensional code acquisition module of coming to the station: receiving a two-dimensional code of a terminal scanned by a code scanner when the station is entered; receiving user registration information and order information which are sent by a Web server in advance;
the inbound two-dimensional code decoding module: decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance; if the verification is successful, the user is released, and if the verification is failed, the user is not allowed to enter the station;
decoding the two-dimensional code, and verifying a decoding result by utilizing user registration information and order information which are sent by a Web server in advance:
decoding the two-dimensional code obtained by scanning to obtain a P-information augmentation matrix of user and order information; restoring the P-information augmentation matrix to obtain an information value matrix; reading various parameters of the information value to obtain actual user information and actual order information;
the P-information amplification matrix is
Figure FDA0002392554810000101
Wherein the inner P-information augmentation matrix
Figure FDA0002392554810000102
And outer P-information augmentation matrix AFComprises the following steps:
Figure FDA0002392554810000103
Figure FDA0002392554810000104
and comparing the actual user information with the user information sent by the Web server in advance, comparing the actual order information with the order information sent by the Web server in advance, and if the actual order information is completely consistent with the order information sent by the Web server in advance, determining that the two-dimensional code is verified successfully.
9. Security installations server, characterized by includes:
two-dimensional code collection module of leaving a station: receiving a two-dimensional code of a terminal scanned by a code scanner when the terminal is out of the station; receiving user registration information and order information sent by a Web server in advance;
the outbound two-dimensional code decoding module: decoding the two-dimensional code, analyzing actual user information and actual order information obtained after decoding, judging whether the payment is delayed, if so, calculating total travel cost of the user, sending a payment order to a terminal, and if the user finishes the payment within a specified period, giving the user a right of passing; if the payment is not deferred, entering a two-dimension code valid time judgment module;
allowing the user who selects the deferred payment to complete the payment within a specified period after completing the trip and the outbound, and calculating corresponding credit points according to the behavior of the user in the scheduled payment without requiring the payment to be completed before the outbound;
the permission given if payment is completed still can cause congestion in the station and stress on the server; the delayed payment notification and the payment operation can be finished when the server is relatively idle after the peak;
two-dimensional code valid time judgement module: judging whether the two-dimensional code is in a set effective time range, if so, entering a site matching judgment module, if not, calculating the total travel cost of the user, sending a payment order to a terminal, and if the user finishes payment within a specified time limit, giving the user a right of passing;
and a site matching judgment module: judging whether the current site is matched with the order information sent in advance;
if the current site is matched with the order starting site, giving the user the right of passing;
if the current station is between the order starting station and the terminal station, giving the user the right of passing; meanwhile, calculating the differential amount of the fare, sending a notice and a link of the differential amount of the fare to the user, and returning the differential amount of the fare to the user;
if the current station is outside the order starting station and the terminal station, the user is not allowed to pass; meanwhile, calculating the differential amount of the vehicle fee, sending a vehicle fee compensation differential notification and a link to the user, and giving the user a right of passage when receiving the information of successful differential payment;
for the problem that the passengers stay in the station, a method for calculating the total travel time during the outbound is adopted, and for the passengers with the actual travel time exceeding the set time threshold, after exceeding, the percentage of the exceeded time in the set time threshold is calculated, and the extra fee is charged according to the percentage.
CN201611129459.7A 2016-12-09 2016-12-09 Network payment-based card-free subway ticket selling and checking terminal, server and method Active CN106779937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611129459.7A CN106779937B (en) 2016-12-09 2016-12-09 Network payment-based card-free subway ticket selling and checking terminal, server and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611129459.7A CN106779937B (en) 2016-12-09 2016-12-09 Network payment-based card-free subway ticket selling and checking terminal, server and method

Publications (2)

Publication Number Publication Date
CN106779937A CN106779937A (en) 2017-05-31
CN106779937B true CN106779937B (en) 2020-04-24

Family

ID=58875695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611129459.7A Active CN106779937B (en) 2016-12-09 2016-12-09 Network payment-based card-free subway ticket selling and checking terminal, server and method

Country Status (1)

Country Link
CN (1) CN106779937B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737632B (en) * 2017-08-16 2024-05-31 北京嘀嘀无限科技发展有限公司 Queuing time determining method, queuing time determining device, server and computer readable storage medium
CN107481328A (en) * 2017-09-14 2017-12-15 珠海优仕达信息科技有限公司 A kind of novel intelligent subway gate passes through method, system and circuit
CN109002958A (en) * 2018-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method of risk identification, system, device and equipment
CN110533826B (en) * 2019-09-02 2021-04-20 创新先进技术有限公司 Information identification method and system
CN112002025B (en) * 2020-08-31 2022-05-31 盛威时代科技集团有限公司 Ticket checking method and device, user equipment and ticket checking server
CN116051119B (en) * 2023-04-03 2023-07-07 山东恒宇电子有限公司 Cashier terminal and correction method based on public transportation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787722A (en) * 2016-02-29 2016-07-20 陕西科技大学 System and method for realizing subway charging by mileage based on advanced online payment
CN106157016A (en) * 2016-07-01 2016-11-23 宁波轩悦行电动汽车服务有限公司 The method carrying out reimbursement of expense based on client flow WebApp
CN106204762A (en) * 2016-06-30 2016-12-07 成都生辉电子科技有限公司 A kind of time delay pays the management method of parking fee

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050182694A1 (en) * 2004-02-13 2005-08-18 Kimberly Inskeep Single order method for independent sales representative

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787722A (en) * 2016-02-29 2016-07-20 陕西科技大学 System and method for realizing subway charging by mileage based on advanced online payment
CN106204762A (en) * 2016-06-30 2016-12-07 成都生辉电子科技有限公司 A kind of time delay pays the management method of parking fee
CN106157016A (en) * 2016-07-01 2016-11-23 宁波轩悦行电动汽车服务有限公司 The method carrying out reimbursement of expense based on client flow WebApp

Also Published As

Publication number Publication date
CN106779937A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106779937B (en) Network payment-based card-free subway ticket selling and checking terminal, server and method
KR101511801B1 (en) Delayed Transit Fare Assessment
CN105787722A (en) System and method for realizing subway charging by mileage based on advanced online payment
CN109166043A (en) A kind of steel industry sharing service platform and method
KR20190143247A (en) System of authenticating certificated emissions reduction according to the use of public transportation
CN113159873B (en) Data processing method and device based on reimbursement codes
CN111815326B (en) Payment method under flight state, device, equipment and storage medium thereof
CN106504346A (en) Sell ticket checking method and system
US20130006823A1 (en) System and method for automated travel notification based on travel booking information
US20130006858A1 (en) System and method for automatically updating a purchase card account based on travel of the card user
CN113628352B (en) Subway ticket business system based on secondary selling and subway ticket secondary selling method
CN107341656A (en) A kind of interactive coded image recognition methods and system
WO2024022544A1 (en) Travel method and apparatus fusing multiple systems
US20130006822A1 (en) System and method for automated travel notification
JP4189976B2 (en) Rent guarantee processing device, method and computer program
US20210150824A1 (en) A method of collecting travel fares in a transport system
JP4236124B1 (en) Small amount liquidation apparatus, method, and computer program
CN114819820A (en) Intelligent supply chain management method, device, system and medium based on artificial intelligence
CN107481123A (en) Computer ticket buying system
KR101029608B1 (en) Method for using golf member club
TW202147220A (en) Method for renting and returning electric car located near the exit of a transfer station of public transportation
CN112017066A (en) Information processing method, device, server and storage medium
CN112508652A (en) Server-side-based petroleum data processing method and device and storage medium
CN111523873A (en) Bill data processing method and device, computer equipment and storage medium
KR102004652B1 (en) Mobile notification and payment system based on automobile registration number and messenger authentication, and method thereof

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
GR01 Patent grant
GR01 Patent grant