CN110910117A - Service processing method based on public transport and related device - Google Patents
Service processing method based on public transport and related device Download PDFInfo
- Publication number
- CN110910117A CN110910117A CN201811075012.5A CN201811075012A CN110910117A CN 110910117 A CN110910117 A CN 110910117A CN 201811075012 A CN201811075012 A CN 201811075012A CN 110910117 A CN110910117 A CN 110910117A
- Authority
- CN
- China
- Prior art keywords
- service
- information
- processed
- request
- deduction
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000012546 transfer Methods 0.000 claims abstract description 127
- 238000012545 processing Methods 0.000 claims abstract description 54
- 238000000034 method Methods 0.000 claims description 49
- 230000007246 mechanism Effects 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000003111 delayed effect 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
- 238000011161 development Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000007474 system interaction Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000001960 triggered effect 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/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/3276—Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
-
- 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
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
-
- 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Primary Health Care (AREA)
- Tourism & Hospitality (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
The invention discloses a service processing method based on public transport, which comprises the following steps: acquiring a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, and the service request to be processed carries first deduction information; determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed; and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account. The invention also provides a service processing device and a server. The invention can also implement corresponding preferential measures under the condition of taking the public transport by adopting the electronic code, and can provide more effective technical means for guiding the travel demand of the public transport through a public transport transfer preferential mechanism.
Description
Technical Field
The invention relates to the field of public transportation charging, in particular to a business processing method based on public transportation and a related device.
Background
In recent years, along with the rapid development of cities, the urban traffic problem is increasingly severe, and in order to alleviate the situation, public traffic is vigorously developed in various big cities in China, so that the urban traffic transportation capacity is improved, and the occurrence of congestion is reduced.
In order to facilitate users to select public transport trips, the two-dimensional code technology is put into the public transport industry at present and is a relatively wide mode. The two-dimensional code is generated through the terminal equipment, the two-dimensional code is displayed on an interface of the terminal equipment in a picture mode, and a user can deduct the traffic amount in a code scanning mode.
However, although the public transportation using the two-dimensional code has the advantage of high convenience, in practical situations, a lot of users still keep the habit of using the public transportation card to ride the transportation, which also has a great challenge to the popularity of the public transportation using the two-dimensional code, thereby being not beneficial to increasing the viscosity of the users.
Disclosure of Invention
The embodiment of the invention provides a business processing method and a related device based on public transport, which can also implement corresponding preferential measures under the condition of taking the public transport by adopting an electronic code, realize the transfer preference among the public transport, effectively improve the viscosity of users, and provide a more effective technical means for guiding the travel demand of the public transport by a public transport transfer preference mechanism.
One aspect of the embodiments of the present invention provides a service processing method based on public transportation, including:
acquiring a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, and the service request to be processed carries first deduction information;
determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed;
and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
An aspect of an embodiment of the present invention provides a service processing apparatus, including:
the terminal equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a service request to be processed, the service request to be processed is initiated by the terminal equipment through an electronic code corresponding to a target account, and the service request to be processed carries first fee deduction information;
a determining module, configured to determine service state information according to the to-be-processed service request acquired by the acquiring module, where the service state information carries state information related to the to-be-processed service;
and the generating module is used for generating second fee deduction information if the service state information determined by the determining module meets the preferential condition of the public transport service, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
An aspect of an embodiment of the present invention provides a server, including: a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program in the memory to implement the steps of:
acquiring a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, and the service request to be processed carries first deduction information;
determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed;
and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
An aspect of the embodiments of the present invention provides a computer-readable storage medium having stored therein instructions, which, when executed on a computer, cause the computer to perform the above-mentioned method.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a service processing method based on public transport, which comprises the steps of firstly obtaining a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, the service request to be processed carries first fee deduction information, determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed, and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted by the target account. By the mode, under the condition that the electronic code is adopted to take the public transport, corresponding preferential measures can be carried out, transfer preference among the public transport is realized, the viscosity of a user is effectively improved, and a more effective technical means can be provided for guiding the travel demand of the public transport through a public transport transfer preference mechanism.
Drawings
FIG. 1 is a schematic diagram of an architecture of a public transportation-based service processing system according to an embodiment of the present invention;
FIG. 2 is a system interaction diagram of the transfer mechanism in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a mass transit network in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a public transportation-based service processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an embodiment of the invention in which bus transportation is used for transfer;
FIG. 6 is a schematic diagram of another embodiment of the present invention;
FIG. 7 is a schematic diagram of another embodiment of the present invention;
FIG. 8 is a flow chart of a billing method for a public transportation-based service processing in an application scenario of the present invention;
FIG. 9 is a schematic diagram of an embodiment of a service processing apparatus according to the embodiment of the present invention;
fig. 10 is a schematic diagram of another embodiment of a service processing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram of another embodiment of a service processing apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a business processing method and a related device based on public transport, which can also implement corresponding preferential measures under the condition of taking the public transport by adopting an electronic code, realize the transfer preference among the public transport, effectively improve the viscosity of users, and provide a more effective technical means for guiding the travel demand of the public transport by a public transport transfer preference mechanism.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Along with the high-speed development of cities, the traffic problems of the cities are increasingly severe, and in order to relieve the situation, public traffic is vigorously developed in various big cities in China so as to improve the traffic capacity of the cities and reduce congestion. On the basis of increasing the diversity infrastructure of urban public transport, the travel cost of public transport passengers can be obviously reduced by actively exploring the transfer privilege among the urban public transport, the attraction of the urban public transport is improved to a certain extent, and the user is promoted to select the public transport for travel. The electronic code ticket is a novel ticket which is popular and rapid in development due to the fact that the electronic code ticket has an offline function, a post-payment function and mobile phone application program payment, and can guide a user to a public transport trip more conveniently and rapidly by means of each application platform.
It should be understood that the invention can be applied to an electronic code riding scene, and a public transport transfer preferential scheme based on an electronic code is provided for the scene. For convenience of introduction, referring to fig. 1, fig. 1 is a schematic structural diagram of a public transportation-based service processing system according to an embodiment of the present invention, as shown in the figure, a user opens a client deployed on a terminal device, and scans an electronic code on the client through a code scanner, where the electronic code has a unique user identifier. The code scanning machine uploads the electronic code to the server, the server can search whether an order corresponding to the user identification exists in the past period of time, if yes, a discount fee deduction request is generated, and the discount fee deduction request is sent to the service fee deduction platform, so that the service fee deduction platform carries out fee deduction according to the discount condition. Otherwise, if the order corresponding to the user identification does not exist in a period of time, generating a conventional fee deduction request, and sending the conventional fee deduction request to the service fee deduction platform, so that the service fee deduction platform deducts fees according to the original price ticket.
It is understood that the client deployed on the terminal device may be a payment-type application or applet, and the terminal device may be a mobile phone, a tablet computer, a palm computer, a wearable device or other portable device.
It is understood that a bar code scanner is a machine that reads two-dimensional code (or bar code) information. The infrared light source is used, then the chip is used for decoding according to the reflection result, and finally the correct character represented by the two-dimensional code (or bar code) is returned. The logic signal received by the code scanner can generate data according to the coding rule.
It is to be understood that the number of servers is not limited to one, and may be a server cluster, or may be an independent server. The server has a memory for storing order information over a period of time without user identification. Such as order information for one million users (each user corresponding to a unique user identification) riding in a public transportation vehicle within 12 hours. The service deduction platform is mainly used for sending electronic codes to the client and deducting money from the account of the user.
For easy understanding, please refer to fig. 2, and fig. 2 is a system interaction diagram of a transfer mechanism according to an embodiment of the present invention, as shown in the figure, specifically, in step S1, a user applies for a car payment method of an electronic code to a service deduction platform. In step S2, the service deduction platform opens an account to the bus card account system and the subway account system according to the request, where the bus card account system and the subway card account system respectively request the unified user account platform to generate an account, and for the same user, the bus card account system and the subway card account system need to allocate the same account identifier. In step S3, when the user enters or exits the station by using the electronic code, the bus transaction order system and the subway transaction order system perform the route matching according to the gate route record, generate an original transaction order, and then push the original transaction order to the unified payment settlement platform. And the unified payment settlement platform collects the original transaction orders and requests the unified charging platform for the non-fee-deducting orders to carry out transfer discount. In step S4, the delayed fee deduction request is pushed to the two-dimensional code sending background, i.e. the service fee deduction platform, to deduct the fee, and the service fee deduction platform discounts the fee of the original order according to the transfer discount rule.
For convenience of description, a public transportation transfer scene will be introduced below, please refer to fig. 3, where fig. 3 is a schematic diagram of a public transportation network in an embodiment of the present invention, as shown in the figure, a white circle in the diagram represents a subway station, a white square represents a bus station, fig. 3 has 3 lines, one of which is a bus line (bus 6 line), and the other two are subway lines (subway 1 line and subway 2 line). The subway transfer refers to taking the subway again after taking the subway for the first time and paying for the subway out, for example, taking the subway from the subway line No. 1 and paying for the subway out and transferring to the subway line No. 2. Subway transfers may also refer to taking the same subway line at different times. For example, when a subway 1 line is taken at the time point 1, after the payment is outbound, a subway 1 line is also taken at the time point 2, and the behavior of taking 2 subways can also be regarded as subway transfer. The bus line and the subway line can be transferred, for example, a passenger takes the bus line 6 to pay to get off and then transfers to the subway line 2. Bus route transfer may also refer to taking the same bus route for payment at different times.
The service processing method based on public transportation according to the present invention will be described in the following from the perspective of a service processing device, wherein the service processing device can be deployed on the same server (or server cluster) corresponding to the ticket card platform and the transaction settlement platform. Referring to fig. 4, an embodiment of a method for processing a service based on public transportation according to the embodiment of the present invention includes:
101. and acquiring a service request to be processed, wherein the service request to be processed is initiated by the terminal equipment through an electronic code corresponding to the target account, and the service request to be processed carries first fee deduction information.
In this embodiment, in one case, the service processing device deployed on the server receives an electronic code sent by a code scanning machine (such as a subway gate or a bus card reader), and generates a service request to be processed according to the electronic code. The to-be-processed service request carries account identification, code scanning records and first deduction information of target accounts, wherein one target account corresponds to one account identification. It can be understood that when the user needs to pay the fee of the public transportation, that is, the user pays the time of the bus after getting out of the station from the subway station or getting on the bus, the user uses the electronic code containing the target account on the terminal device to face the scanning tool, the code scanning tool generates the code scanning record and sends the code scanning record to the service processing device, the service processing device generates the service request to be processed according to the obtained code scanning record, that is, the service request to be processed is obtained, or the service request to be processed is initiated when the terminal device of the user scans the code out of the station or pays the fee against the scanning tool. The service processing device obtains a to-be-processed service request according to the code scanning record, the to-be-processed service request is a request for charging according to the code scanning record, the to-be-processed service can be a charging service, the to-be-processed service request also carries first fee deduction information generated according to the account identifier and the code scanning record, and the first fee deduction information can be determined original-price vehicle fees without discounts.
It should be noted that the bus may be a common bus or a Bus Rapid Transit (BRT), and the operation of scanning the electronic code is not limited to the time when the user gets on the bus, but may also be the time when the user gets off the bus.
102. And determining the service state information of the public transport according to the service request to be processed, wherein the service state information carries state information related to the service to be processed.
In this embodiment, the service processing device may determine the service state information of the public transportation according to the account identifier of the target account carried in the to-be-processed service request, or the code scanning record, or the first fee deduction information, where the service state information may be information related to public transportation charging, and how much the service state information may affect public transportation charging. The service status information includes, but is not limited to, the number of times the passenger has made a public transportation transfer over a period of time, the time interval between two transfers of the passenger, or the route on which the passenger takes the public transportation, the amount of money the passenger has paid by taking the public transportation account, the amount of money the passenger has paid by taking the public transportation, etc.
Assuming that the service processing device determines the time interval between two transfers of a passenger (user a) by querying an order related to a target account, wherein the service request time is the time interval between two adjacent pending service requests, for convenience of description, please refer to table 1, where table 1 is a record schematic of the user a taking public transportation by using the target account.
TABLE 1
Serial number | User A | Riding time |
1 | Target account A | 2018-7-18 10:06:25 |
2 | Target account A | 2018-7-18 10:30:33 |
3 | Target account A | 2018-7-19 8:55:09 |
4 | Target account A | 2018-7-19 9:15:44 |
5 | Target account A | 2018-7-19 14:26:18 |
6 | Target account A | 2018-7-19 17:26:18 |
Taking table 1 as an example, assuming that the time for the user a to trigger the service request to be processed is 17 hours, 26 minutes and 18 seconds of 7 months and 19 days in 2018, the time for the last bus taking is 14 hours, 26 minutes and 18 seconds of 7 months and 19 days in 2018 after the query record, and the interval between the two is 3 hours, the service request time interval is 3 hours, that is, the time interval between two transfers of the passenger included in the service state information is 3 hours.
103. And if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
In this embodiment, it is assumed that the preferential condition of the public transportation service is that the time interval between two transfers of the passenger is not greater than 5 hours, and since the time interval between two transfers of the passenger is 3 hours and meets the preferential condition of the public transportation service, the original fare ticket needs to be discounted, so as to generate the second deduction information. For example, the first deduction information is 2 yuan, and a discount of nine folds can be made on the original price ticket on the premise of meeting the preferential condition, so that the folded second deduction information, namely 1.8 yuan, is obtained, and at this time, the second deduction information indicates to deduct the amount of money in the target account.
The embodiment of the invention provides a service processing method based on public transport, which comprises the steps of firstly obtaining a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, the service request to be processed carries first fee deduction information, determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed, and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted by the target account. By the mode, under the condition that the electronic code is adopted to take the public transport, corresponding preferential measures can be carried out, transfer preference among the public transport is realized, the viscosity of a user is effectively improved, and a more effective technical means can be provided for guiding the travel demand of the public transport through a public transport transfer preference mechanism.
Optionally, in an optional embodiment of the public transportation-based service processing method provided in the embodiment of the present invention, after determining the service state information according to the to-be-processed service request, the method further includes:
if the service state information does not meet the preferential condition of the public transport service, generating a first service fee deduction request, wherein the first service fee deduction request carries first fee deduction information;
and sending a first service fee deduction request to the service fee deduction platform so that the service fee deduction platform deducts the amount of money corresponding to the target account according to the first fee deduction information.
In this embodiment, for the case that the preferential condition of the public transportation service is not satisfied, the service processing device deployed on the server may generate a first service deduction request according to the service request to be processed, where the first service deduction request carries the original fare information, that is, the first deduction information. And then the service processing device sends a first service deduction request to the service deduction platform, and the service deduction platform can deduct the amount of money in the target account according to the first service deduction request.
Specifically, assuming that a passenger a enters a subway station from a station M and then leaves the subway station from a station N, and if the preferential condition of public transportation service is not met, the passenger a needs to pay a corresponding fare according to an original fare when leaving the station, and if the preferential condition is 5 yuan, the amount of 5 yuan is deducted from a target account of the passenger a.
Secondly, in the embodiment of the invention, if the service state information does not meet the preferential condition of the public transport service, a first service fee deduction request is generated, and then the first service fee deduction request is sent to the service fee deduction platform, so that the service fee deduction platform deducts the amount corresponding to the target account according to the first fee deduction information. Through the mode, except the condition that the preferential condition is met, the amount of money on the passenger account is deducted by the original price ticket under other conditions, so that the practical operation condition of the transportation industry can be started, and the practicability and feasibility of the scheme are improved.
Optionally, in an optional embodiment of the method for processing a service based on public transportation provided in the embodiment of the present invention, the service state information includes service request time, where the service request time is a time interval between two adjacent service requests to be processed;
after determining the service state information according to the service request to be processed, the method may further include:
judging whether the service request time is less than or equal to a transfer time threshold value;
if the service request time is greater than the transfer time threshold, determining that the service state information does not meet the preferential condition of the public transport service;
and if the service request time is less than or equal to the transfer time threshold, determining that the service state information meets the preferential condition of the public transportation service.
In this embodiment, a preferential condition of the public transportation service will be introduced, that is, it is determined whether the service request time reaches the transfer time threshold, if not, the preferential condition of the public transportation service is considered to be satisfied, otherwise, if the transfer time threshold has been reached, the preferential condition of the public transportation service is considered not to be satisfied.
Specifically, the situation of the above preferential conditions will be described below with reference to fig. 5, please refer to fig. 5, and fig. 5 is a schematic view of an embodiment of the present invention for adopting transit transfer, and as shown in the figure, it is assumed that a passenger a swipes an electronic code into a station at 14: 00 min/00 sec in 9/5/2018, gets on a subway from a station a of a subway No. 1 line, then takes a subway No. 2 line in a station B, sits on six stations, then arrives at a station C at 14: 25 min/00 sec in 9/5/2018, and finally swipes an electronic code out of the station C. At this time, the service processing device inquires the taking record of the passenger A in the last 24 hours, and finds that the passenger A is out of the subway at 9.9.5.9.25 min 00 s in 2018, so that the time for initiating the first service request to be processed is 25 min 00 s at 14.9.5.9.9.9.10.00 s in 2018, the time for initiating the second service request to be processed is 25 min 00 s at 9.9.9.9.9.9 in 2018, and the service request time which is the time interval for initiating two adjacent service requests to be processed is 5 hours. And then judging whether the service request time is less than or equal to a transfer time threshold, if the transfer time threshold is 8 hours, determining that the service request time of 5 hours is less than the transfer time threshold, and determining that the service request time meets the preferential condition of the public transport service.
It can be understood that in practical application, the adopted preferential strategies can be various, for example, nine-fold preferential strategies are adopted for transfer among subways, eight-fold preferential strategies are adopted for transfer among buses, and seven-fold preferential strategies are adopted for transfer among subways and buses. Of course, the adjustment of the preferential policy may also be performed according to actual situations, which are only an illustration here and should not be construed as a limitation to the present invention.
Thirdly, the embodiment of the invention provides a scheme for determining whether the preferential condition is met. Namely, whether the service request time is less than or equal to the transfer time threshold value is judged, if yes, the service request time is determined to meet the preferential condition of the public transportation service, otherwise, the preferential condition of the public transportation service is determined not to be met. By means of the method, whether the preferential condition is met or not can be determined according to the transfer time threshold, and a feasible method is provided for implementation of the scheme, so that operability of the scheme is improved.
Optionally, in an optional embodiment of the method for processing a service based on public transportation provided in the embodiment of the present invention, the service state information includes position information of a first station and position information of a second station, where the first station is a station that initiated a service request to be processed last time, and the second station is a station that initiated the service request to be processed this time;
after determining the service state information according to the service request to be processed, the method may further include:
judging whether the first station and the second station belong to a transfer line set or not according to the position information of the first station and the position information of the second station;
if the first station and the second station belong to the transferable line set, determining that the service state information meets the preferential condition of the public transport service;
and if the first station and the second station do not belong to the transferable line set, determining that the service state information does not meet the preferential condition of the public transport service.
In the embodiment, whether the preferential condition of the public transportation service is met is judged according to the positions of the stations which initiate the service request to be processed twice. If the line between the first station and the second station belongs to the transferable line set, the preferential condition of the public transport service is satisfied. And if the line between the first station and the second station does not belong to the transferable line set, indicating that the preferential condition of the public transportation service is not met.
Specifically, the situation of the above preferential conditions will be described below with reference to fig. 6, please refer to fig. 6, and fig. 6 is a schematic view of another embodiment of the present invention for adopting transit transfer, and as shown in the figure, it is assumed that a passenger a swipes an electronic code to enter a station at 14 o 25 min 00 s at 9/5 th in 2018, gets on a subway from a station of a subway No. 1 line, then takes a subway No. 2 line at a station B, sits two stations, and then arrives at a station D at 14 o 30 min 00 s at 9/5 th in 2018, and swipes the electronic code to exit the station. The passenger A walks ten minutes after coming out of the station D, gets on the bus at the station E in 2018 at 14 o' clock of 5 th in 9 th in 5 th in 40 min 00 s, and finally gets off the bus by sitting at the station F. At this time, the service processing apparatus needs to acquire the station positions of the station a, the station B, the station D, the station E, and the station F according to the code scanning record, and then determine whether the line from the station D to the station E belongs to the commutable line set. The assumption is that the set of transfer lines includes ten lines (including bus line 1, bus line 2, bus line 3, bus line 6, bus line 8, subway line 1, subway line 2, subway line 4, subway line 10 and subway line 11). The first station is a D station of a subway No. 2 line, and the second station is an E station of a bus No. 6 line. Therefore, the first station and the second station belong to the transferable line set, and the service state information is determined to meet the preferential condition of the public transport service.
It can be understood that in practical application, the adopted preferential strategies can be various, for example, nine-fold preferential strategies are adopted for transfer among subways, eight-fold preferential strategies are adopted for transfer among buses, and seven-fold preferential strategies are adopted for transfer among subways and buses. Of course, the adjustment of the preferential policy may also be performed according to actual situations, which are only an illustration here and should not be construed as a limitation to the present invention.
Thirdly, the embodiment of the invention provides another scheme for determining whether the preferential condition is met. Namely, whether the first station and the second station belong to the commutable line set or not is judged, and if yes, the preferential condition of the public traffic service is determined to be met. By the method, whether the preferential conditions are met can be determined according to the transfer line set, and another feasible method is provided for implementation of the scheme, so that operability and flexibility of the scheme are improved.
Optionally, in an optional embodiment of the public transportation-based service processing method provided in the embodiment of the present invention, the service state information includes transfer times within a transfer time threshold;
after determining the service state information according to the service request to be processed, the method may further include:
judging whether the transfer times within the transfer time threshold reach a transfer time threshold or not;
if the transfer times in the transfer time threshold value do not reach the transfer time threshold value, determining that the service state information meets the preferential condition of the public traffic service;
and if the transfer times within the transfer time threshold reach the transfer time threshold, determining that the service state information does not meet the preferential condition of the public transport service.
In this embodiment, a third preferential condition for the public transportation service will be introduced, that is, whether the transfer times reaches the threshold of the transfer times is determined according to the transfer times within the threshold of the transfer time, and if not, the preferential condition for the public transportation service is considered to be satisfied. On the contrary, if the transfer times reach the threshold value of the transfer times, the preferential conditions of the public transportation service are not satisfied.
Specifically, the situation of the above preferential conditions will be described below with reference to fig. 7, please refer to fig. 7, and fig. 7 is a schematic view of another embodiment of the present invention for adopting transit transfer, and as shown in the figure, it is assumed that a passenger a swipes an electronic code to enter a station at 14 o 25 min 00 s at 9/5/2018, gets on the subway from the H station of the subway No. 1 line, then transfers to the subway No. 2 line at the B station, sits two stations, and then arrives at the D station at 30 min 00 s at 14 o 30 min 5/9/5/2018 after sitting on the two stations, and swipes the electronic code to exit the station. The passenger A walks ten minutes after coming out of the station D, gets on the bus at the station E at 14 o 'clock 40 min and 00 s at 5 o' clock 9 m in 2018, and finally gets off the bus by sitting at the station G. Assuming that the threshold value of the transfer time is 8 hours, the service processing device inquires the transfer record of the passenger A in the past 8 hours, and can know that the passenger A transfers 2 times in total, and the threshold value of the transfer times is 10 times, which indicates that the preferential condition of the public transportation service is satisfied.
It can be understood that in practical application, the adopted preferential strategies can be various, for example, nine-fold preferential strategies are adopted for transfer among subways, eight-fold preferential strategies are adopted for transfer among buses, and seven-fold preferential strategies are adopted for transfer among subways and buses. Of course, the adjustment of the preferential policy may also be performed according to actual situations, which are only an illustration here and should not be construed as a limitation to the present invention.
Thirdly, the embodiment of the invention provides another scheme for determining whether the preferential condition is met. Namely, whether the transfer times in the transfer time threshold reach the transfer time threshold is judged, and if not, the service request time is determined to meet the preferential condition of the public traffic service. By the method, whether the preferential condition is met can be determined according to the transfer time threshold and the transfer times threshold, so that another feasible method is provided for implementation of the scheme, and operability and flexibility of the scheme are improved.
Optionally, in an optional embodiment of the public transportation-based service processing method provided in the embodiment of the present invention, before acquiring the service request to be processed, the method may further include:
receiving an account opening request sent by a terminal device through a service deduction platform;
and generating a target account according to the account opening request, wherein the target account and the target user have a unique corresponding relation.
In this embodiment, before the target user (i.e., the passenger) uses the electronic code scanning scanner to trigger the pending service request, a target account should be opened first, and the target account and the target user have a unique corresponding relationship, that is, only one target account can be provided for one target user. In the process of opening the target account, information related to the target user, such as an identification number or a bank card number, needs to be input, and the information is also used for identifying the identity of the target user. For ease of understanding, please refer to table 2, where table 2 provides an illustration of opening accounts for different target users.
TABLE 2
Target user | Identity card number | Target account |
User A | 44030119850613XXXX | Account 1 |
User B | 41108119900423XXXX | Account 2 |
User C | 61242219960806XXXX | Account 3 |
User D | 36012119881027XXXX | Account 4 |
User E | 23023019920803XXXX | Account 5 |
As shown in table 2, a target user only has one identification number, and the target account opened by the identification number also has uniqueness. It can be understood that, in practical applications, the target account can also be opened by using the bank card number, and one bank card can only open one target account.
Secondly, in the embodiment of the present invention, before acquiring the service request to be processed, the service processing apparatus further needs to receive an account opening request sent by the terminal device through the service deduction platform, and then generates a target account according to the account opening request, where the target account and the target user have a unique corresponding relationship. Through the mode, the user needs to open an account for paying the fare in advance, and each user can only be associated with the only account, so that the phenomenon that multiple users are associated with the same account is avoided, the risk that the account is used maliciously is reduced, the supervision is convenient, and the reliability of the scheme is improved.
Optionally, in an optional embodiment of the public transportation-based service processing method provided in the embodiment of the present invention, the generating of the second deduction information may include:
generating second fee deduction information according to the public transport service discount rule and the first fee deduction information;
after generating the second deduction information, the method further comprises:
generating a second service fee deduction request according to the second fee deduction information;
and sending a second service fee deduction request to the service fee deduction platform so that the service fee deduction platform deducts the amount of money corresponding to the target account according to the second fee deduction information.
In this embodiment, a method for instantly deducting the account amount will be described. Specifically, the service processing device may generate the second fee deduction information according to a public transportation service discount rule and the first fee deduction information, where the public transportation service discount rule is a preset relevant discount mode, for example, transfer between subways all uses nine-fold discount, transfer between buses all uses eight-fold discount, and transfer between subways and buses uses seven-fold discount. The first fee deduction information is the original fare, the passenger can transfer between subways on the assumption that the original fare is 10 yuan, and the original fare needs to be folded nine times according to the preferential rules of public transport services, namely 9 yuan. The service processing device informs the service deduction platform of the amount of money, so that the service deduction platform deducts 9 yuan of the target account immediately.
Secondly, in the embodiment of the present invention, the service processing device generates second deduction information according to the public transportation service discount rule and the first deduction information, then generates a second service deduction request according to the second deduction information, and sends the second service deduction request to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the second deduction information. Through the mode, the function of instant fee deduction is realized without waiting when the amount of money on the passenger account is deducted, so that the feasibility of the scheme is improved.
Optionally, in an optional embodiment of the public transportation-based service processing method provided in the embodiment of the present invention, the generating of the second deduction information may include:
acquiring third fee deduction information in the target time;
generating second fee deduction information according to the public transport service discount rule, the first fee deduction information and the third fee deduction information;
after generating the second deduction information, the method further comprises:
generating a second service fee deduction request according to the second fee deduction information;
and sending a second service fee deduction request to the service fee deduction platform so that the service fee deduction platform deducts the amount of money corresponding to the target account according to the second fee deduction information.
In this embodiment, a method for deducting the account amount in a delayed manner will be described. Specifically, the service processing device obtains the third deduction information within a target time, where the target time may be a preset period of time, such as 2 hours, and in order to obtain more accurate discount information, the service processing device may wait for all order data related to the passenger, that is, the third deduction information, using the target time, and generate the second deduction information according to the public transportation discount rule by combining the first deduction information and the third deduction information. The preferential rules of the public transport service are related preferential modes which are preset, for example, nine-fold preferential rules are adopted for transfer among subways, eight-fold preferential rules are adopted for transfer among buses, and seven-fold preferential rules are adopted for transfer among subways and buses. The first fee deduction information is the original fare, the third fee deduction information is the fare which is possibly missed, the original fare is 10 yuan, the passenger is obtained in the target time and also takes a subway record, the fare of taking the subway is 2 yuan, the passenger changes the subway, and the fare (including the original fare and the recorded fare obtained subsequently) needs to be folded nine times according to the preferential rule of the public transport service, namely 10.8 yuan. The service processing device informs the service deduction platform of the amount of money, so that the service deduction platform deducts 10.8 yuan of the target account immediately.
Secondly, in the embodiment of the present invention, the service processing device obtains the third deduction information within the target time, then generates the second deduction information according to the public transportation service discount rule, the first deduction information and the third deduction information, and finally generates the second service deduction request according to the second deduction information, and sends the second service deduction request to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the second deduction information. By the mode, when the amount of money on the passenger account is deducted, a period of time is required to wait, and the function of delaying fee deduction is realized. In consideration of the situation that the transaction may be delayed, in order to ensure the fairness of the benefit, a delay fee deduction mode is adopted to well prevent data errors, so that the reliability of the scheme is improved.
For convenience of introduction, the service processing method provided by the present invention will be described below with reference to fig. 8, please refer to fig. 8, where fig. 8 is a charging flow chart of the service processing method based on public transportation in an application scenario of the present invention, and as shown in the figure, specifically:
in step 201, a server receives a to-be-processed order triggered by a passenger A, wherein the to-be-processed order can be an order for taking a bus specifically;
in step 202, the server inquires whether an order of a passenger A exists in 24 hours from a background, if so, the step 203 is carried out, otherwise, the step 205 is carried out;
in step 203, the server continues to determine whether the order belongs to an order that can be preferential, for example, a route passed by the order belongs to a route in a preset route set, if so, the order is regarded as the channel order, and the step 204 is entered, otherwise, the step 205 is skipped;
in step 204, when the order can be preferential, carrying out preferential treatment on the ticket price according to a preferential rule;
in step 205, the server records and stores the order of the passenger a, i.e. updates the order to the background of the server for the subsequent examination. In addition, the server should return the processed amount, if the discounted amount is processed, the discounted amount is returned, and if the discounted amount is not processed, the original price amount is returned.
Referring to fig. 9, fig. 9 is a schematic view of an embodiment of a service processing apparatus according to an embodiment of the present invention, where the service processing apparatus 30 includes:
an obtaining module 301, configured to obtain a to-be-processed service request, where the to-be-processed service request is initiated by the terminal device through an electronic code corresponding to a target account, and the to-be-processed service request carries first fee deduction information;
a determining module 302, configured to determine service state information according to the to-be-processed service request acquired by the acquiring module 301, where the service state information carries state information related to the to-be-processed service;
a generating module 303, configured to generate second fee deduction information if the service state information determined by the determining module 302 meets a discount condition of a public transportation service, where the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used to indicate an amount to be deducted from the target account.
In this embodiment, an obtaining module 301 obtains a service request to be processed, where the service request to be processed is initiated by the terminal device through an electronic code corresponding to a target account, the service request to be processed carries first deduction information, a determining module 302 determines service state information according to the service request to be processed obtained by the obtaining module 301, where the service state information carries state information related to a service to be processed, and if the service state information determined by the determining module meets a discount condition of a public transportation service, the generating module 303 generates second deduction information, where the second deduction information is smaller than the first deduction information, and the second deduction information is used to indicate an amount to be deducted from the target account.
The embodiment of the invention provides a service processing device based on public transport, which comprises the steps of firstly obtaining a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, the service request to be processed carries first fee deduction information, determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed, and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted by the target account. By the mode, under the condition that the electronic code is adopted to take the public transport, corresponding preferential measures can be carried out, transfer preference among the public transport is realized, the viscosity of a user is effectively improved, and a more effective technical means can be provided for guiding the travel demand of the public transport through a public transport transfer preference mechanism.
Optionally, referring to fig. 10, in an optional embodiment of the service processing apparatus 30 provided in the embodiment of the present invention, the service processing apparatus 30 further includes a sending module 304;
the generating module 303 is further configured to, after the determining module 302 determines service state information according to the to-be-processed service request, generate a first service deduction request if the service state information does not satisfy a preferential condition of the public transportation service, where the first service deduction request carries the first deduction information;
the sending module 304 is configured to send the first service deduction request generated by the generating module 303 to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the first deduction information.
Secondly, in the embodiment of the invention, if the service state information does not meet the preferential condition of the public transport service, a first service fee deduction request is generated, and then the first service fee deduction request is sent to the service fee deduction platform, so that the service fee deduction platform deducts the amount corresponding to the target account according to the first fee deduction information. Through the mode, except the condition that the preferential condition is met, the amount of money on the passenger account is deducted by the original price ticket under other conditions, so that the practical operation condition of the transportation industry can be started, and the practicability and feasibility of the scheme are improved.
Optionally, referring to fig. 11, in an optional embodiment of the service processing apparatus 30 provided in the embodiment of the present invention, the service state information includes service request time, where the service request time is a time interval between two adjacent service requests to be processed;
the service processing device 30 further includes a judging module 305;
the determining module 305 is configured to determine whether the service request time is less than or equal to a transfer time threshold;
the determining module 302 is further configured to determine that the service state information does not satisfy the preferential condition of the public transportation service if the service request time determined by the determining module 305 is greater than the transfer time threshold;
the determining module 302 is further configured to determine that the service state information satisfies the preferential condition of the public transportation service if the service request time determined by the determining module 305 is less than or equal to the transfer time threshold.
Thirdly, the embodiment of the invention provides a scheme for determining whether the preferential condition is met. Namely, whether the service request time is less than or equal to the transfer time threshold value is judged, if yes, the service request time is determined to meet the preferential condition of the public transportation service, otherwise, the preferential condition of the public transportation service is determined not to be met. By means of the method, whether the preferential condition is met or not can be determined according to the transfer time threshold, and a feasible method is provided for implementation of the scheme, so that operability of the scheme is improved.
Optionally, in an optional embodiment of the service processing apparatus 30 provided in the embodiment of the present invention, the service state information includes location information of a first site and location information of a second site, where the first site is a site that initiated a service request to be processed last time, and the second site is a site that initiated the service request to be processed this time;
the determining module 305 is further configured to determine whether the first station and the second station belong to a transfer line set according to the position information of the first station and the position information of the second station;
the determining module 302 is further configured to determine that the service state information meets a preferential condition of the public transportation service if the determining module 305 determines that the first station and the second station belong to the transferable line set;
the determining module 302 is further configured to determine that the service state information does not satisfy the preferential condition of the public transportation service if the determining module 305 determines that the first station and the second station do not belong to the transferable line set.
Thirdly, the embodiment of the invention provides another scheme for determining whether the preferential condition is met. Namely, whether the line between the first station and the second station belongs to the transferable line set is judged, and if yes, the preferential condition of the public transport service is determined to be satisfied. By the method, whether the preferential condition is met can be determined according to the changeable multiplying line set, and another feasible method is provided for realizing the scheme, so that the operability and flexibility of the scheme are improved.
Optionally, in another embodiment of the service processing apparatus 30 provided in the embodiment of the present invention, the service status information includes a transfer number within a transfer time threshold;
the determining module 305 is further configured to determine whether the transfer times within the transfer time threshold reach a transfer time threshold after the determining module 302 determines the service status information according to the service request to be processed;
the determining module 302 is further configured to determine that the service status information meets the preferential condition of the public transportation service if the determining module 305 determines that the transfer times within the transfer time threshold do not reach the transfer time threshold;
the determining module 302 is further configured to determine that the service status information does not satisfy the preferential condition of the public transportation service if the determining module 305 determines that the transfer times within the transfer time threshold reach the transfer time threshold.
Thirdly, the embodiment of the invention provides another scheme for determining whether the preferential condition is met. Namely, whether the transfer times in the transfer time threshold reach the transfer time threshold is judged, and if not, the preferential condition of the public traffic service is determined to be met. By the method, whether the preferential condition is met can be determined according to the transfer time threshold and the transfer times threshold, so that another feasible method is provided for implementation of the scheme, and operability and flexibility of the scheme are improved.
Optionally, in an optional embodiment of the service processing apparatus 30 provided in the embodiment of the present invention,
the obtaining module 301 is further configured to receive an account opening request sent by the terminal device through the service deduction platform before obtaining the service request to be processed;
the generating module 303 is further configured to generate the target account according to the account opening request received by the obtaining module 301, where the target account and the target user have a unique corresponding relationship.
Secondly, in the embodiment of the present invention, before acquiring the service request to be processed, the service processing apparatus further needs to receive an account opening request sent by the terminal device through the service deduction platform, and then generates a target account according to the account opening request, where the target account and the target user have a unique corresponding relationship. Through the mode, the user needs to open an account for paying the fare in advance, and each user can only be associated with the only account, so that the phenomenon that multiple users are associated with the same account is avoided, the risk that the account is used maliciously is reduced, the supervision is convenient, and the reliability of the scheme is improved.
Optionally, in an embodiment of the service processing apparatus 30 provided in the embodiment of the present invention,
the generating module 303 is specifically configured to generate the second fee deduction information according to a public transportation service discount rule and the first fee deduction information;
the generating module 303 is further configured to generate a second service fee deduction request according to the second fee deduction information after generating the second fee deduction information;
the sending module 304 is further configured to send the second service deduction request generated by the generating module 303 to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the second deduction information.
Secondly, in the embodiment of the present invention, the service processing device generates second deduction information according to the public transportation service discount rule and the first deduction information, then generates a second service deduction request according to the second deduction information, and sends the second service deduction request to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the second deduction information. Through the mode, the function of instant fee deduction is realized without waiting when the amount of money on the passenger account is deducted, so that the feasibility of the scheme is improved.
Optionally, in an embodiment of the service processing apparatus 30 provided in the embodiment of the present invention,
the generating module 303 is specifically configured to obtain third deduction information within a target time;
generating the second fee deduction information according to public transport service discount rules, the first fee deduction information and the third fee deduction information;
the generating module 303 is further configured to generate a second service fee deduction request according to the second fee deduction information after generating the second fee deduction information;
the sending module 304 is further configured to send the second service deduction request generated by the generating module 303 to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the second deduction information.
Secondly, in the embodiment of the present invention, the service processing device obtains the third deduction information within the target time, then generates the second deduction information according to the public transportation service discount rule, the first deduction information and the third deduction information, and finally generates the second service deduction request according to the second deduction information, and sends the second service deduction request to the service deduction platform, so that the service deduction platform deducts the amount of money corresponding to the target account according to the second deduction information. By the mode, when the amount of money on the passenger account is deducted, a period of time is required to wait, and the function of delaying fee deduction is realized. In consideration of the situation that the transaction may be delayed, in order to ensure the fairness of the benefit, a delay fee deduction mode is adopted to well prevent data errors, so that the reliability of the scheme is improved.
Fig. 12 is a schematic diagram of a server structure provided by an embodiment of the present invention, where the server 400 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and a memory 432, and one or more storage media 430 (e.g., one or more mass storage devices) for storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 422 may be arranged to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.
The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 458, and/or one or more operating systems 441, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps performed by the server in the above embodiment may be based on the server structure shown in fig. 12.
In this embodiment of the present invention, the CPU 422 is configured to execute the following steps:
acquiring a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, and the service request to be processed carries first deduction information;
determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed;
and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, 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 other divisions may be realized in practice, 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.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention 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, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A service processing method based on public transportation is characterized by comprising the following steps:
acquiring a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, and the service request to be processed carries first deduction information;
determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed;
and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
2. The service processing method according to claim 1, wherein after determining the service status information according to the pending service request, the method further comprises:
if the service state information does not meet the preferential condition of the public transport service, generating a first service fee deduction request, wherein the first service fee deduction request carries the first fee deduction information;
and sending the first service deduction request to the service deduction platform so that the service deduction platform deducts the amount corresponding to the target account according to the first deduction information.
3. The method according to claim 1 or 2, wherein the service status information includes service request time, wherein the service request time is a time interval between two adjacent pending service requests;
after determining the service state information according to the service request to be processed, the method further includes:
judging whether the service request time is less than or equal to a transfer time threshold value;
if the service request time is greater than the transfer time threshold, determining that the service state information does not meet the preferential condition of the public transport service;
and if the service request time is less than or equal to the transfer time threshold, determining that the service state information meets the preferential condition of the public transport service.
4. The method according to claim 1 or 2, wherein the service status information includes location information of a first site and location information of a second site, wherein the first site is a site that initiated the pending service request last time, and the second site is a site that initiated the pending service request this time;
after determining the service state information according to the service request to be processed, the method further includes:
judging whether the first station and the second station belong to a transfer line set or not according to the position information of the first station and the position information of the second station;
if the first station and the second station belong to the transfer line set, determining that the service state information meets the preferential condition of the public transport service;
and if the first station and the second station do not belong to the transferable line set, determining that the service state information does not meet the preferential condition of the public transport service.
5. The method of claim 1 or 2, wherein the traffic status information comprises a number of transfers within a transfer time threshold;
after determining the service state information according to the service request to be processed, the method further includes:
judging whether the transfer times within the transfer time threshold reach a transfer time threshold or not;
if the transfer times in the transfer time threshold value do not reach the transfer time threshold value, determining that the service state information meets the preferential condition of the public traffic service;
and if the transfer times within the transfer time threshold reach the transfer time threshold, determining that the service state information does not meet the preferential condition of the public transport service.
6. The method of claim 1, wherein generating second deduction information comprises:
generating the second fee deduction information according to public transport service discount rules and the first fee deduction information;
after the generating the second deduction information, the method further comprises:
generating a second service fee deduction request according to the second fee deduction information;
and sending the second service deduction request to the service deduction platform so that the service deduction platform deducts the amount corresponding to the target account according to the second deduction information.
7. The method of claim 1, wherein generating second deduction information comprises:
acquiring third fee deduction information in the target time;
generating the second fee deduction information according to public transport service discount rules, the first fee deduction information and the third fee deduction information;
after the generating the second deduction information, the method further comprises:
generating a second service fee deduction request according to the second fee deduction information;
and sending the second service deduction request to the service deduction platform so that the service deduction platform deducts the amount corresponding to the target account according to the second deduction information.
8. A traffic processing apparatus, comprising:
the terminal equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a service request to be processed, the service request to be processed is initiated by the terminal equipment through an electronic code corresponding to a target account, and the service request to be processed carries first fee deduction information;
a determining module, configured to determine service state information according to the to-be-processed service request acquired by the acquiring module, where the service state information carries state information related to the to-be-processed service;
and the generating module is used for generating second fee deduction information if the service state information determined by the determining module meets the preferential condition of the public transport service, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
9. A server, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program in the memory to implement the steps of:
acquiring a service request to be processed, wherein the service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, and the service request to be processed carries first deduction information;
determining service state information according to the service request to be processed, wherein the service state information carries state information related to the service to be processed;
and if the service state information meets the preferential condition of the public transport service, generating second fee deduction information, wherein the second fee deduction information is smaller than the first fee deduction information, and the second fee deduction information is used for indicating the amount of money to be deducted from the target account.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811075012.5A CN110910117B (en) | 2018-09-14 | 2018-09-14 | Service processing method based on public transportation and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811075012.5A CN110910117B (en) | 2018-09-14 | 2018-09-14 | Service processing method based on public transportation and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110910117A true CN110910117A (en) | 2020-03-24 |
CN110910117B CN110910117B (en) | 2023-10-03 |
Family
ID=69812314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811075012.5A Active CN110910117B (en) | 2018-09-14 | 2018-09-14 | Service processing method based on public transportation and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110910117B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111640209A (en) * | 2020-05-15 | 2020-09-08 | 支付宝(杭州)信息技术有限公司 | Riding charging method and device and electronic equipment |
CN112037416A (en) * | 2020-09-04 | 2020-12-04 | 海南海岛聚讯科技有限公司 | Bus payment method, system, bus charging equipment and storage medium |
CN112835653A (en) * | 2021-02-02 | 2021-05-25 | 北京三快在线科技有限公司 | Method, device and system for processing service |
CN116957665A (en) * | 2023-09-21 | 2023-10-27 | 深圳市深圳通有限公司 | Travel information processing method, device, terminal equipment and storage medium |
CN117993967A (en) * | 2024-01-23 | 2024-05-07 | 深圳市深圳通有限公司 | Method, device, terminal equipment and storage medium for processing riding right information |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070150387A1 (en) * | 2005-02-25 | 2007-06-28 | Michael Seubert | Consistent set of interfaces derived from a business object model |
US20120006891A1 (en) * | 2011-07-18 | 2012-01-12 | Tiger T G Zhou | Facilitating mobile device payments using product code scanning |
CN103218884A (en) * | 2012-11-29 | 2013-07-24 | 彭超 | Bus card swiping system by applying cell phone two-dimensional code technology |
CN104700260A (en) * | 2015-03-26 | 2015-06-10 | 何冬华 | Method for achieving bus taking voucher by using two-dimension code displayed by mobile phone |
CN105096109A (en) * | 2015-08-31 | 2015-11-25 | 盛世铸成科技(天津)有限公司 | Bus taking payment method and bus taking payment system |
CN105405172A (en) * | 2015-12-07 | 2016-03-16 | 广西米付网络技术有限公司 | Bus charging terminal based on low-power-consumption bluetooth and two-dimensional code scanning |
CN107292421A (en) * | 2017-05-26 | 2017-10-24 | 东南大学 | Public transport interchange preference scheme and its implementation based on automatic fare collection system |
-
2018
- 2018-09-14 CN CN201811075012.5A patent/CN110910117B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070150387A1 (en) * | 2005-02-25 | 2007-06-28 | Michael Seubert | Consistent set of interfaces derived from a business object model |
US20120006891A1 (en) * | 2011-07-18 | 2012-01-12 | Tiger T G Zhou | Facilitating mobile device payments using product code scanning |
CN103218884A (en) * | 2012-11-29 | 2013-07-24 | 彭超 | Bus card swiping system by applying cell phone two-dimensional code technology |
CN104700260A (en) * | 2015-03-26 | 2015-06-10 | 何冬华 | Method for achieving bus taking voucher by using two-dimension code displayed by mobile phone |
CN105096109A (en) * | 2015-08-31 | 2015-11-25 | 盛世铸成科技(天津)有限公司 | Bus taking payment method and bus taking payment system |
CN105405172A (en) * | 2015-12-07 | 2016-03-16 | 广西米付网络技术有限公司 | Bus charging terminal based on low-power-consumption bluetooth and two-dimensional code scanning |
CN107292421A (en) * | 2017-05-26 | 2017-10-24 | 东南大学 | Public transport interchange preference scheme and its implementation based on automatic fare collection system |
Non-Patent Citations (1)
Title |
---|
林松: ""中国移动手机支付平台设计与实现"", 《中国优秀硕士学位论文 信息科技辑》, no. 5 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111640209A (en) * | 2020-05-15 | 2020-09-08 | 支付宝(杭州)信息技术有限公司 | Riding charging method and device and electronic equipment |
CN112037416A (en) * | 2020-09-04 | 2020-12-04 | 海南海岛聚讯科技有限公司 | Bus payment method, system, bus charging equipment and storage medium |
CN112835653A (en) * | 2021-02-02 | 2021-05-25 | 北京三快在线科技有限公司 | Method, device and system for processing service |
CN116957665A (en) * | 2023-09-21 | 2023-10-27 | 深圳市深圳通有限公司 | Travel information processing method, device, terminal equipment and storage medium |
CN117993967A (en) * | 2024-01-23 | 2024-05-07 | 深圳市深圳通有限公司 | Method, device, terminal equipment and storage medium for processing riding right information |
Also Published As
Publication number | Publication date |
---|---|
CN110910117B (en) | 2023-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110910117A (en) | Service processing method based on public transport and related device | |
JP6534008B2 (en) | Parking lot management method, parking lot management server and parking lot management system | |
US20060059038A1 (en) | Electronic money value conversion device, system, and electronic money value conversion method | |
KR101117004B1 (en) | Method for paying parking fee | |
WO2014157950A1 (en) | Method for providing vehicle parking information and apparatus therefor | |
KR102382135B1 (en) | Electronic money management system and electronic money management method | |
CN108389268B (en) | Payment method, system and equipment | |
KR20150129336A (en) | Payment processing method for parking fee and processing system thereof | |
JP5130469B2 (en) | Information processing apparatus, information processing method, and information processing program | |
JP2019079460A (en) | Fee calculation device, fee calculation system and server device | |
CN108629860A (en) | For charge processing method, apparatus, system and the medium at toll on the road and bridge station | |
KR20210111438A (en) | System and method for providing subscription transporation services | |
KR20170006740A (en) | User terminal, central server and method for paying fare thereby | |
CN110084897B (en) | Charging method, system, device and computer readable storage medium | |
CN111383029A (en) | Electronic ticket management method and device | |
JP7139986B2 (en) | Information processing device, information processing method, program | |
CN110458577A (en) | A kind of subway trip post-billing mode sorting auditing method and system | |
JP2005182428A (en) | Parking charge collecting method and device | |
WO2017129034A1 (en) | Sub-account information determination method, apparatus and system in logistics business | |
CN113506103A (en) | Public transport fee intelligent payment method based on digital currency | |
CN111861603B (en) | Riding order generation method and device | |
JP6955420B2 (en) | Store terminal, parking share server, parking share system, payment information reception method, payment information generation method, program | |
CN112686724A (en) | Information recommendation method and device, electronic equipment and storage medium | |
JP7342216B2 (en) | Vehicle payment support device | |
JP2001325625A (en) | System and method for automatically collecting toll for means of transportation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40021666 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |