CN110910117B - Service processing method based on public transportation and related device - Google Patents

Service processing method based on public transportation and related device Download PDF

Info

Publication number
CN110910117B
CN110910117B CN201811075012.5A CN201811075012A CN110910117B CN 110910117 B CN110910117 B CN 110910117B CN 201811075012 A CN201811075012 A CN 201811075012A CN 110910117 B CN110910117 B CN 110910117B
Authority
CN
China
Prior art keywords
service
deduction
information
account
target account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811075012.5A
Other languages
Chinese (zh)
Other versions
CN110910117A (en
Inventor
王兆创
韦德志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811075012.5A priority Critical patent/CN110910117B/en
Publication of CN110910117A publication Critical patent/CN110910117A/en
Application granted granted Critical
Publication of CN110910117B publication Critical patent/CN110910117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3276Short 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q50/40

Abstract

The invention discloses a service processing method based on public transportation, 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 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 conditions of the public transportation service, generating second deduction information, wherein the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by 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 public transportation by adopting the electronic code, and can provide more effective technical means for guiding the travel demands of the public transportation through a public transportation transfer preferential mechanism.

Description

Service processing method based on public transportation and related device
Technical Field
The invention relates to the field of public transportation charging, in particular to a service processing method based on public transportation and a related device.
Background
In recent years, with the rapid development of cities, the traffic problem of the cities is increasingly severe, and in order to relieve the situation, mass transit is greatly developed in various large cities in China, so that the traffic capacity of the cities is improved, and the occurrence of congestion is reduced.
In order to facilitate users to select public transportation travel, currently, two-dimension code technology is put into public transportation industry in a wider way. The two-dimensional code is generated through the terminal equipment and is displayed on an interface of the terminal equipment in a picture mode, and a user can deduct traffic amount in a code scanning mode.
However, although the two-dimensional code is adopted to take public transportation with the advantage of high convenience, in practical situations, a great number of users still keep the habit of taking the public transportation card for taking the transportation, which has a great challenge to the popularity of taking the public transportation with the two-dimensional code, so that the viscosity of the users is not increased.
Disclosure of Invention
The embodiment of the invention provides a service processing method based on public transportation and a related device, which can also implement corresponding preferential measures under the condition of taking public transportation by adopting electronic codes, realize transfer preferential among public transportation, effectively improve the viscosity of users, and provide more effective technical means for guiding the travel demands of the public transportation through a public transportation transfer preferential mechanism.
An aspect of an embodiment 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 conditions of the public transportation service, generating second deduction information, wherein the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by 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 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 deduction information;
the determining module is used for determining service state information according to the service request to be processed acquired by the acquiring module, wherein the service state information carries state information related to the service to be processed;
The generation module is used for generating second deduction information if the service state information determined by the determination module meets the preferential conditions of the public transportation service, wherein the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by 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 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 conditions of the public transportation service, generating second deduction information, wherein the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account.
An aspect of an embodiment of the present invention provides a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the method described above.
From the above technical solutions, the embodiment of the present invention has the following advantages:
in the embodiment of the invention, a service processing method based on public transportation is provided, wherein a 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 deduction information, service state information is determined according to the service request to be processed, the service state information carries state information related to the service to be processed, if the service state information meets preferential conditions of the public transportation, second deduction information is generated, the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account. By the mode, corresponding preferential measures can be implemented under the condition that the public transportation is taken by adopting the electronic code, transfer preferential among the public transportation is realized, the viscosity of the user is effectively improved, and more effective technical means can be provided for guiding the travel demands of the public transportation through a public transportation transfer preferential mechanism.
Drawings
FIG. 1 is a schematic diagram of a public transportation-based business processing system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system interaction of a transfer mechanism in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a public transportation network in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a method for processing public transportation-based traffic in accordance with an embodiment of the present invention;
FIG. 5 is a schematic diagram of an embodiment of the present invention employing bus transfer;
FIG. 6 is a schematic diagram of another embodiment of the present invention employing bus transfer;
FIG. 7 is a schematic diagram of another embodiment of the present invention employing bus transfer;
FIG. 8 is a flow chart of a method for processing public transportation-based traffic in an application scenario of the present invention;
fig. 9 is a schematic diagram of an embodiment of a service processing apparatus according to an 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 diagram of a server according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a service processing method based on public transportation and a related device, which can also implement corresponding preferential measures under the condition of taking public transportation by adopting electronic codes, realize transfer preferential among public transportation, effectively improve the viscosity of users, and provide more effective technical means for guiding the travel demands of the public transportation through a public transportation transfer preferential mechanism.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented, for example, 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.
With the rapid development of cities, the traffic problem of the cities is increasingly severe, and in order to relieve the situation, mass transit is greatly developed in various large 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 transportation, the transfer preference among urban public transportation is actively explored, so that the travel cost of bus passengers can be obviously reduced, the attractiveness of urban public transportation is improved to a certain extent, and the user is promoted to select public transportation for travel. The electronic code ticket is a novel ticket which is raised in recent years, is widely and well received due to the offline function, the postpaid function and the payment of mobile phone application programs, is rapidly developed, depends on various application platforms, and can be used for guiding users to public transportation travel more conveniently and rapidly.
It is understood that the invention can be applied to an electronic code riding scene, and provides a public transportation transfer preferential scheme based on the electronic code aiming at the scene. For convenience of description, referring to fig. 1, fig. 1 is a schematic diagram of an architecture of a public transportation-based service processing system in an embodiment of the present invention, where a user opens a client disposed 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 searches whether the order corresponding to the user identifier exists in a period of time, if so, a discount deduction request is generated, and the discount deduction request is sent to the service deduction platform, so that the service deduction platform deducts fees according to discount conditions. Otherwise, if the order corresponding to the user identification does not exist in a period of time, a conventional fee deduction request is generated, and the conventional fee deduction request is sent to the service fee deduction platform, so that the service fee deduction platform deducts fees according to the original price ticket.
It will be appreciated that the client deployed on the terminal device may be a payment-type application or applet, etc., while the terminal device may be a cell phone, tablet, palm top, wearable or other portable device, etc.
It is understood that the code scanner is a machine for reading two-dimensional code (or bar code) information. The method comprises the steps of emitting an infrared light source, decoding by using a chip according to the reflection result, and finally returning the correct character represented by the two-dimensional code (or the bar code). 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 a separate server. The server has the capability to store order information over a period of time without user identification. Such as order information for a million users (each user corresponding to a unique one of the user identities) to take a public transportation vehicle within 12 hours. The business deduction platform is mainly used for sending an electronic code to the client and deducting the amount from the account of the user.
For easy understanding, referring to fig. 2, fig. 2 is a schematic system interaction diagram of a transfer mechanism in an embodiment of the present invention, as shown in the drawing, specifically, in step S1, a user applies for a service charging platform to open an electronic code riding payment mode. In step S2, the service deduction platform opens accounts 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 be allocated with the same account identifier. In step S3, when the user enters and exits by using the electronic code, the bus transaction order system and the subway transaction order system perform journey matching according to the gate journey record, generate an original transaction order, and then push the original transaction order to the unified payment settlement platform. And summarizing the original transaction orders by the unified payment settlement platform, and carrying out transfer discount on the unified charging platform for the unbuckled order request. In step S4, the delayed fee deduction request is pushed to a two-dimension code sending background, namely a service fee deduction platform for fee deduction, and the service fee deduction platform discounts fee deduction on the original order according to the transfer preferential rule.
For convenience of explanation, referring to fig. 3, fig. 3 is a schematic diagram of a public transportation network in an embodiment of the present invention, where a white circle represents a subway station, a white square represents a bus station, and fig. 3 has 3 lines, one of which is a bus line (bus line 6), and the other two of which are subway lines (subway line 1 and subway line 2). Subway transfer refers to taking a subway again after paying for the first taking of the subway out of the station, for example, transferring to the subway line 2 after paying for the first taking of the subway out of the station. Subway transfer may also refer to taking the same subway line at different times. For example, taking the subway line 1 at the time point 1, paying for the subway line 1 at the time point 2 after the station comes out, the subway taking behavior of 2 times can be regarded as subway transfer. The transfer between the bus line and the subway line can also be realized, for example, passengers take the bus line 6 to pay for getting off and then transfer to the subway line 2. Bus route transfer may also refer to taking payment at different times on the same bus route.
The service processing method based on public transportation in the present invention will be described in terms of a service processing device, where the service processing device may 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 service processing method based on public transportation according to an 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 disposed 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 service request to be processed carries account identification, code scanning record and first deduction information of a target account, wherein one target account corresponds to one account identification. It can be understood that when the user needs to pay the fee of public transportation, that is, when the user pays the bus after the user leaves the subway station or the user gets on the bus, the user faces the scanning machine by adopting the electronic code containing the target account on the terminal device, the scanning machine generates the scanning code record and sends the scanning code record to the service processing device, the service processing device generates the service request to be processed according to the obtained scanning code record, that is, the service request to be processed is obtained, and the service request to be processed can also be initiated when the terminal device of the user scans the scanning machine to leave the station or pay the fee. 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 the determined original price without discount.
It should be noted that, the buses herein may be ordinary buses or rapid buses (Bus Rapid Transit, BRT), and the operation of scanning the electronic code is not limited to the time of getting on the bus by the user, but also the operation of scanning the electronic code when getting off the bus by the user.
102. And determining service state information of public transportation 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 service status information of public transportation according to an account identifier or a scan code record of a target account carried by the service request to be processed or first deduction information, where the service status information may be information related to public transportation charging, and the service status information may affect the amount of public transportation charging. The traffic status information includes, but is not limited to, the number of public transportation transfers of the passenger over a period of time, the time interval between the two transfers of the passenger, or the route of the passenger to the public transportation, the deduction account of the passenger to the public transportation, the amount of the passenger to have deducted from the public transportation, etc.
It is assumed that the service processing apparatus determines a time interval between two transfers of the passenger (user a) by querying an order related to the target account, wherein the service request time is a time interval for initiating two adjacent pending service requests, for convenience of explanation, refer to table 1, and table 1 is a record schematic of the user a taking public transportation using the target account.
TABLE 1
Sequence number User A Ride 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 triggering the service request to be processed by the user a is 17 hours, 26 minutes and 18 seconds of 19 days of 7 months of 2018, then 14 hours, 26 minutes and 18 seconds of 19 days of 7 months of 2018 can be obtained after the inquiry record, and the time interval between the two minutes is 3 hours, then the service request time interval is 3 hours, namely, the time interval between two transfers of the passenger contained in the service state information is 3 hours.
103. And if the service state information meets the preferential conditions of the public transportation service, generating second deduction information, wherein the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account.
In this embodiment, assuming that the preferential condition of the public transportation service is that the time interval between two transfers of the passenger is not more than 5 hours, since the time interval between two transfers of the passenger is 3 hours to satisfy the preferential condition of the public transportation service, the discount process is required to be performed on the original fare ticket, so as to generate the second deduction information. For example, the first deduction information is 2 yuan, and the original fare ticket can be nine-folded under the premise of meeting the preferential condition, so that the folded second deduction information, namely 1.8 yuan, is obtained, and at the moment, the second deduction information indicates the amount of money in the deduction target account.
In the embodiment of the invention, a service processing method based on public transportation is provided, wherein a 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 deduction information, service state information is determined according to the service request to be processed, the service state information carries state information related to the service to be processed, if the service state information meets preferential conditions of the public transportation, second deduction information is generated, the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account. By the mode, corresponding preferential measures can be implemented under the condition that the public transportation is taken by adopting the electronic code, transfer preferential among the public transportation is realized, the viscosity of the user is effectively improved, and more effective technical means can be provided for guiding the travel demands of the public transportation through a public transportation transfer preferential mechanism.
Optionally, in an optional embodiment of the public transportation-based service processing method provided by the embodiment of the present invention, after determining service status information according to the service request to be processed, the method further includes:
If the service state information does not meet the preferential conditions of the public transportation service, a first service deduction request is generated, wherein the first service deduction request carries first deduction information;
and sending a 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.
In this embodiment, for the situation that the public transportation service preferential condition 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 original fare information, that is, 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 in the target account according to the first service deduction request.
Specifically, it is assumed that the passenger a enters the subway station from the station M and then exits the subway station from the station N, and in the case that the preferential condition of the public transportation service is not satisfied, the passenger a needs to pay the corresponding ticket fee according to the original fare when exiting, and the amount of 5 yuan is deducted from the target account of the passenger a assuming 5 yuan.
In the embodiment of the invention, if the service state information does not meet the preferential conditions of the public transportation service, a first service deduction request is generated, and then the first service deduction request is sent 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. By the method, except for the condition that the preferential conditions are met, the amount of money on the passenger account is deducted by the original 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 can be improved.
Optionally, in an optional embodiment of the public transportation based service processing method provided by the embodiment of the present invention, the service status information includes a service request time, where the service request time is a time interval for initiating two adjacent service requests to be processed;
after determining the service status information according to the service request to be processed, the method may further include:
judging whether the service request time is smaller 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 conditions of the public transportation service;
if the service request time is smaller than or equal to the transfer time threshold, determining that the service state information meets the preferential conditions of the public transportation service.
In this embodiment, a preferential condition of a public transportation service will be introduced, that is, whether the service request time reaches a transfer time threshold is determined, if the service request time does not reach the transfer time threshold, the preferential condition of the public transportation service is considered to be satisfied, otherwise, if the service request time reaches the transfer time threshold, the preferential condition of the public transportation service is considered to be not satisfied.
Specifically, the situation of the foregoing preferential condition will be described below with reference to fig. 5, referring to fig. 5, fig. 5 is a schematic diagram of an embodiment of the present invention using bus transfer, and as shown in the schematic diagram, it is assumed that a passenger a swipes an electronic code for 1 minute at 14 points of 5 days in 9 months in 2018, gets on a subway from a station a of a subway 1 line, takes on a subway 2 line at a station B, arrives at a station C at 14 points of 25 minutes for 00 seconds in 5 days in 9 months in 2018 after sitting on six stations, and finally swipes an electronic code for the station C. At this time, the service processing apparatus searches the riding record of the passenger first in the past 24 hours, finds that the passenger first is outbound from the subway station at the time of 2018, 9, 5, 9, 25 minutes and 00 seconds, so that the time for initiating the first service request to be processed is 2018, 9, 5, 14, 25 minutes and 00 seconds, the time for initiating the second service request to be processed is 2018, 9, 5, 9, 25 minutes and 00 seconds, and the service request time which is the time interval for initiating the adjacent two service requests to be processed is 5 hours. And judging whether the service request time is smaller than or equal to a transfer time threshold, if the transfer time threshold is 8 hours, determining that the service request time is smaller than the transfer time threshold in 5 hours, and determining that the service request time meets the preferential conditions of the public transportation service.
It can be appreciated that in practical application, the adopted preferential strategies can be various, for example, nine-fold preferential is adopted for transfer between subways, eight-fold preferential is adopted for transfer between buses, and seven-fold preferential is adopted for transfer between subways and buses. Of course, the adjustment of the preferential strategy can also be performed according to practical situations, and is only illustrative and not to be construed as limiting the invention.
In the embodiment of the invention, a scheme for determining whether the preferential condition is satisfied is provided. And judging whether the service request time is smaller than or equal to the transfer time threshold, if so, determining that the service request time meets the preferential conditions of the public transportation service, otherwise, determining that the preferential conditions of the public transportation service are not met. By the method, whether the preferential conditions are met or not can be determined according to the transfer time threshold, and a feasible mode is provided for realizing the scheme, so that the operability of the scheme is improved.
Optionally, in an optional embodiment of the public transportation based service processing method provided by the embodiment of the present invention, the service status information includes location information of a first site and location information of a second site, where the first site is a site that initiates a service request to be processed in the previous time, and the second site is a site that initiates the service request to be processed this time;
After determining the service status 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 changeable 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 changeable line set, determining that the service state information meets preferential conditions of public transportation service;
if the first station and the second station do not belong to the changeable route set, determining that the service state information does not meet the preferential conditions of the public transportation service.
In this embodiment, whether the preferential condition of the public transportation service is satisfied is determined according to the site positions of the two adjacent sites initiating the service request to be processed. If the line between the first station and the second station belongs to the set of the changeable lines, the preferential condition of the public transportation service is met. If the line between the first site and the second site does not belong to the set of the changeable lines, the preferential condition of the public transportation service is not satisfied.
Specifically, the situation of the foregoing preferential condition will be described with reference to fig. 6, and referring to fig. 6, fig. 6 is a schematic diagram of another embodiment of the present invention using bus transfer, where it is assumed that, as shown in the drawing, passenger a swipes an electronic code for 25 min 00 seconds at 14 th day of 9 months of 2018, gets on subway a station a from a subway line 1, takes on a subway line 2 at a station B, sits on two stations, arrives at a station D at 14 th day of 5 months of 2018, 30 min 00 seconds, and swipes an electronic code for outbound. Passenger A gets ten minutes after coming out of station D, gets on bus E at 14:40 seconds at 5.9.5.2018, and finally sits to F for getting off. At this time, the service processing apparatus needs to acquire the site positions of the a station, the B station, the D station, the E station, and the F station according to the code scanning record, and then determine whether the line from the D station to the E station belongs to the set of the commutative lines. Assume that the set of changeable routes includes ten routes (including bus 1, bus 2, bus 3, bus 6, bus 8, subway 1, subway 2, subway 4, subway 10, and subway 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 changeable line set, and the service state information is determined to meet the preferential condition of the public transportation service.
It can be appreciated that in practical application, the adopted preferential strategies can be various, for example, nine-fold preferential is adopted for transfer between subways, eight-fold preferential is adopted for transfer between buses, and seven-fold preferential is adopted for transfer between subways and buses. Of course, the adjustment of the preferential strategy can also be performed according to practical situations, and is only illustrative and not to be construed as limiting the invention.
In the embodiment of the invention, another scheme for determining whether the preferential condition is satisfied is provided. Judging whether the first station and the second station belong to the changeable route set, if so, determining that preferential conditions of public transportation service are met. By the method, whether preferential conditions are met can be determined according to the transfer line set, and another feasible mode is provided for realizing the scheme, so that the operability and the flexibility of the scheme are improved.
Optionally, in an optional embodiment of the public transportation based service processing method provided by the embodiment of the present invention, the service status information includes a transfer number within a transfer time threshold;
after determining the service status information according to the service request to be processed, the method may further include:
Judging whether the transfer times in the transfer time threshold reach the transfer times threshold;
if the transfer times in the transfer time threshold value does not reach the transfer times threshold value, determining that the service state information meets the preferential conditions of the public transportation service;
if the transfer times in the transfer time threshold reach the transfer times threshold, determining that the service state information does not meet the preferential conditions of the public transportation service.
In this embodiment, a third preferential condition of the public transportation service will be described, that is, whether the transfer number reaches the transfer number threshold is determined according to the transfer number in the transfer time threshold, and if not, the preferential condition of the public transportation service is considered to be satisfied. Otherwise, if the transfer times reach the transfer times threshold, the preferential conditions of the public transportation service are not met.
Specifically, the situation of the foregoing preferential condition will be described below with reference to fig. 7, and referring to fig. 7, fig. 7 is a schematic diagram of another embodiment of the present invention using bus transfer, where it is assumed that, as shown in the drawing, passenger a swipes an electronic code for entering at 14:25 min/00 s on 9:5.in 2018, gets on a subway from station H of the subway No. 1 line, then transfers to station B for the subway No. 2 line, sits at two stations, arrives at station D at 14:30 min/00 s on 5.in 9.in 2018, and swipes the electronic code for exiting. Passenger A gets ten minutes after coming out of D station, gets on bus E station at 14 minutes 40 min 00 seconds at 2018 9 month 5 day, and finally sits to G station for getting off. Assuming that the transfer time threshold is 8 hours, the service processing device will query the transfer records of the passenger a in the past 8 hours, and it can be known that the passenger a is transferred 2 times in total, and the transfer times threshold is 10 times, and the preferential condition of the public transportation service is satisfied.
It can be appreciated that in practical application, the adopted preferential strategies can be various, for example, nine-fold preferential is adopted for transfer between subways, eight-fold preferential is adopted for transfer between buses, and seven-fold preferential is adopted for transfer between subways and buses. Of course, the adjustment of the preferential strategy can also be performed according to practical situations, and is only illustrative and not to be construed as limiting the invention.
In the embodiment of the invention, another scheme for determining whether the preferential condition is satisfied is provided. And judging whether the transfer times in the transfer time threshold reach the transfer times threshold, if not, determining that the service request time meets the preferential conditions of the public transportation service. By the method, whether the preferential conditions are met or not can be determined according to the transfer time threshold and the transfer times threshold, and therefore another feasible mode is provided for realizing 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 by the embodiment of the present invention, before obtaining the service request to be processed, the method may further include:
receiving an account opening request sent by terminal equipment 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 machine to trigger the service request to be processed, a target account should be opened first, where the target account and the target user have a unique correspondence, 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 card number or a bank card number, is required to be input, and the information is also information for identifying the identity of the target user. For ease of understanding, referring to Table 2, table 2 shows an indication of the opening of accounts for different target users.
TABLE 2
Target user Identification 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 has only one identification card number, and a target account opened by the identification card number also has uniqueness. It can be understood that in practical application, the target account can be opened by using the bank card number, and only one target account can be opened by one bank card.
In the embodiment of the invention, before acquiring the service request to be processed, the service processing device also needs to receive an account opening request sent by the terminal equipment through the service deduction platform, and then generates a target account according to the account opening request, wherein the target account and the target user have a unique corresponding relation. By the method, the user needs to open an account for paying the vehicle fee in advance, each user can only be associated with a unique account, the phenomenon that multiple users are associated with the same account is avoided, the risk of malicious use of the account is reduced, supervision is facilitated, and accordingly reliability of a scheme is improved.
Optionally, in an optional embodiment of the public transportation based service processing method provided by the embodiment of the present invention, generating the second fee deduction information may include:
generating second fee deduction information according to the public transportation service preferential rule and the first fee deduction information;
after the second fee deduction information is generated, the method further comprises:
generating a second service deduction request according to the second deduction information;
and sending a 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.
In this embodiment, a method for instantaneously deducting the account amount will be described. Specifically, the service processing device may generate the second fee deduction information according to the public transportation service preference rule and the first fee deduction information, where the public transportation service preference rule is a preset relevant preference mode, for example, nine-fold preference is adopted for transfer between subways, eight-fold preference is adopted for transfer between buses, and seven-fold preference is adopted for transfer between subways and buses. The first fee deduction information is the original fare, the original fare is assumed to be 10 yuan, passengers transfer between subways, and according to public transportation service preferential rules, nine folds are needed to be made on the original fare, namely 9 yuan. The service processing device informs the service deduction platform of the amount, so that the service deduction platform deducts 9 elements of the target account immediately.
In the embodiment of the invention, the service processing device generates the second deduction information according to the public transportation service preferential rule and the first deduction information, then 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 corresponding to the target account according to the second deduction information. By the method, the function of instant 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 by the embodiment of the present invention, generating the second fee deduction information may include:
acquiring third fee deduction information in the target time;
generating second fee deduction information according to the public transportation service preferential rule, the first fee deduction information and the third fee deduction information;
after the second fee deduction information is generated, the method further comprises:
generating a second service deduction request according to the second deduction information;
and sending a 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.
In this embodiment, a method for deducting account amount by delay will be described. Specifically, the service processing device obtains the third fee deduction information within a target time, where the target time may be a preset period of time, for example, 2 hours, and in order to obtain more accurate preferential information, the service processing device may use the target time to wait for all order data related to the passenger, that is, the third fee deduction information, and combine the first fee deduction information and the third fee deduction information to generate the second fee deduction information according to a public transportation service preferential rule. The public transportation service preference rules are preset relevant preference modes, for example, nine-fold preference is adopted for transfer between subways, eight-fold preference is adopted for transfer between buses, and seven-fold preference is adopted for transfer between subways and buses. The first fee deduction information is the original fare, the third fee deduction information is the fare possibly missed, the original fare is assumed to be 10 yuan, the passenger is acquired in the target time and takes the subway record for the time, the fare of the subway is 2 yuan, the passenger transfers between subways, and according to the public transportation service preferential rule, the fare (including the original fare and the recorded fare acquired later) needs to be nine folds, namely 10.8 yuan. The service processing device informs the service deduction platform of the amount, so that the service deduction platform deducts 10.8 yuan from the target account.
In the embodiment of the invention, the service processing device acquires the third fee deduction information in the target time, generates the second fee deduction information according to the public transportation service preferential rule, the first fee deduction information and the third fee deduction information, generates the second service fee deduction request according to the second fee deduction information, and sends the second service fee deduction request to the service fee deduction platform so that the service fee deduction platform deducts the amount corresponding to the target account according to the second fee deduction information. By the method, a period of time is needed to wait when the amount of money on the passenger account is deducted, and the function of time delay deduction is realized. Considering that delay may occur in the transaction, in order to ensure preferential fairness, a delay deduction mode is adopted to well prevent data errors, so that the reliability of the scheme is improved.
For convenience of description, the service processing method provided by the present invention will be described with reference to fig. 8, referring to fig. 8, fig. 8 is a charging flow chart of the service processing method based on public transportation in the application scenario of the present invention, and as shown in the drawings, specifically:
in step 201, the server receives a waiting order triggered by the passenger A, where the waiting order may specifically be an order for taking a bus;
In step 202, the server inquires from the background whether an order of the passenger A exists within 24 hours, if so, the step 203 is entered, otherwise, the step 205 is skipped;
in step 203, the server continues to determine whether the order belongs to an order that can be favored, for example, the route passed by the order belongs to a route in a preset route set, if so, the order is considered as the channel order, and step 204 is entered, otherwise, step 205 is skipped;
in step 204, when it is determined that the current order can be offered, the fare is subjected to an offer process according to an offer rule;
in step 205, the server records and saves the first order of the passenger, i.e. updates the first order to the background of the server for subsequent inspection. In addition, the server should return the processed amount, if the discount processing has been performed, the discounted amount, and if the discount has not been performed, the original value amount.
Referring to fig. 9 for a detailed description of the service processing apparatus in the present invention, fig. 9 is a schematic diagram of an embodiment of the service processing apparatus in an embodiment of the present invention, and the service processing apparatus 30 includes:
the obtaining module 301 is configured to obtain 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, and the service request to be processed carries first deduction information;
A determining module 302, configured to determine service status information according to the service request to be processed acquired by the acquiring module 301, where the service status information carries status information related to a service to be processed;
a generating module 303, configured to generate second deduction information if the service status information determined by the determining module 302 meets a preferential condition of a public transportation service, 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 by the target account.
In this embodiment, the 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, the determining module 302 determines service status information according to the service request to be processed obtained by the obtaining module 301, where the service status information carries status information related to the service to be processed, and if the service status information determined by the determining module meets a preferential 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 by the target account.
In an embodiment of the present invention, a service processing device based on public transportation is provided, where a service request to be processed is initiated by a terminal device through an electronic code corresponding to a target account, where the service request to be processed carries first fee deduction information, and service status information is determined according to the service request to be processed, where the service status information carries status information related to the service to be processed, and if the service status information meets a preferential condition of the public transportation service, second fee deduction information is generated, 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 by the target account. By the mode, corresponding preferential measures can be implemented under the condition that the public transportation is taken by adopting the electronic code, transfer preferential among the public transportation is realized, the viscosity of the user is effectively improved, and more effective technical means can be provided for guiding the travel demands of the public transportation through a public transportation transfer preferential mechanism.
Optionally, referring to fig. 10, in an alternative 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 generate a first service deduction request if the service status information does not meet the preferential condition of the public transportation service after the determining module 302 determines the service status information according to the service request to be processed, 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 corresponding to the target account according to the first deduction information.
In the embodiment of the invention, if the service state information does not meet the preferential conditions of the public transportation service, a first service deduction request is generated, and then the first service deduction request is sent 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. By the method, except for the condition that the preferential conditions are met, the amount of money on the passenger account is deducted by the original 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 can be improved.
Optionally, referring to fig. 11, in an alternative embodiment of the service processing apparatus 30 provided by the embodiment of the present invention, the service status information includes a 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 status information does not meet the preferential condition of the public transportation service if the judging module 305 judges that the obtained service request time is greater than the transfer time threshold;
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 judging module 305 judges that the obtained service request time is less than or equal to the transfer time threshold.
In the embodiment of the invention, a scheme for determining whether the preferential condition is satisfied is provided. And judging whether the service request time is smaller than or equal to the transfer time threshold, if so, determining that the service request time meets the preferential conditions of the public transportation service, otherwise, determining that the preferential conditions of the public transportation service are not met. By the method, whether the preferential conditions are met or not can be determined according to the transfer time threshold, and a feasible mode is provided for realizing the scheme, so that the 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 status information includes location information of a first site and location information of a second site, where the first site is a site that initiates a service request to be processed in the previous time, and the second site is a site that initiates a service request to be processed this time;
the judging module 305 is further configured to judge whether the first station and the second station belong to a set of changeable lines according to the location information of the first station and the location information of the second station;
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 judging module 305 judges that the first station and the second station belong to the set of the transfer lines;
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 first station and the second station do not belong to the set of the available transfer lines.
In the embodiment of the invention, another scheme for determining whether the preferential condition is satisfied is provided. And judging whether the line between the first station and the second station belongs to the set of the changeable lines, and if so, determining that preferential conditions of public traffic service are met. By the method, whether preferential conditions are met can be determined according to the changeable line set, and another feasible mode is provided for realizing the scheme, so that the operability and the 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 judging module 305 is further configured to judge whether the transfer times within the transfer time threshold reach a transfer times threshold after the determining module 302 determines 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 judging module 305 judges that the number of times of transfer within the transfer time threshold does not reach the transfer time threshold;
the determining module 302 is further configured to determine that the service status information does not meet the preferential condition of the public transportation service if the determining module 305 determines that the number of times of transfer within the transfer time threshold reaches the transfer time threshold.
In the embodiment of the invention, another scheme for determining whether the preferential condition is satisfied is provided. And judging whether the transfer times in the transfer time threshold reach the transfer times threshold, if not, determining that the preferential conditions of the public transportation service are met. By the method, whether the preferential conditions are met or not can be determined according to the transfer time threshold and the transfer times threshold, and therefore another feasible mode is provided for realizing the scheme, and operability and flexibility of the scheme are improved.
Optionally, in an alternative embodiment of the service processing device 30 provided in the embodiment of the present invention,
the acquiring module 301 is further configured to receive an account opening request sent by the terminal device through the service deduction platform before acquiring a 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 has a unique correspondence with a target user.
In the embodiment of the invention, before acquiring the service request to be processed, the service processing device also needs to receive an account opening request sent by the terminal equipment through the service deduction platform, and then generates a target account according to the account opening request, wherein the target account and the target user have a unique corresponding relation. By the method, the user needs to open an account for paying the vehicle fee in advance, each user can only be associated with a unique account, the phenomenon that multiple users are associated with the same account is avoided, the risk of malicious use of the account is reduced, supervision is facilitated, and accordingly reliability of a scheme is improved.
Optionally, in an embodiment of the service processing device 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 preference rule and the first fee deduction information;
the generating module 303 is further configured to generate a second service deduction request according to the second deduction information after generating the second 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 corresponding to the target account according to the second deduction information.
In the embodiment of the invention, the service processing device generates the second deduction information according to the public transportation service preferential rule and the first deduction information, then 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 corresponding to the target account according to the second deduction information. By the method, the function of instant 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 device 30 provided in the embodiment of the present invention,
The generating module 303 is specifically configured to obtain third fee deduction information in a target time;
generating the second fee deduction information according to the public transportation service preferential rule, the first fee deduction information and the third fee deduction information;
the generating module 303 is further configured to generate a second service deduction request according to the second deduction information after generating the second 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 corresponding to the target account according to the second deduction information.
In the embodiment of the invention, the service processing device acquires the third fee deduction information in the target time, generates the second fee deduction information according to the public transportation service preferential rule, the first fee deduction information and the third fee deduction information, generates the second service fee deduction request according to the second fee deduction information, and sends the second service fee deduction request to the service fee deduction platform so that the service fee deduction platform deducts the amount corresponding to the target account according to the second fee deduction information. By the method, a period of time is needed to wait when the amount of money on the passenger account is deducted, and the function of time delay deduction is realized. Considering that delay may occur in the transaction, in order to ensure preferential fairness, a delay 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 in an embodiment of the present invention, where the server 400 may vary considerably in configuration or performance, and may include one or more central processing units (central processing units, CPU) 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein memory 432 and storage medium 430 may be transitory 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 on a server. Still further, the central processor 422 may be configured 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 ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 12.
In the embodiment of the present invention, the CPU 422 is configured to perform 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 conditions of the public transportation service, generating second deduction information, wherein the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for processing traffic based on public transportation, comprising:
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; the target account is an account which is generated by a unified user account platform and has a unique corresponding relation with a user and is respectively requested by a bus card account system and a subway card account system in the process of applying an on-vehicle electronic code taking payment mode from a service deduction platform by the user, and account identifiers of the target account are stored in the bus card account system and the subway card account system so that electronic codes corresponding to the target account are suitable for taking buses and subways;
Searching orders related to the target account, which are generated by a bus transaction order system and a subway transaction order system according to the scanning code records of electronic codes, according to the account identification of the target account in the service request to be processed, and determining service state information according to the orders related to the target account, wherein the service state information carries state information related to the service to be processed; the service state information comprises service state information for transferring between buses and subways;
if the service state information meets the preferential conditions of the public transportation service, acquiring all order data related to the target account in target time to obtain third fee deduction information, and generating second fee deduction information according to the preferential rules of the public transportation service, the first fee deduction information and the third fee deduction information; generating a second service deduction request according to the second deduction information;
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; the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account; public traffic preference rules corresponding to transfer between subways, public traffic preference rules corresponding to transfer between buses, and public traffic preference rules corresponding to transfer between subways are different.
2. The method according to claim 1, wherein after searching for an order related to the target account generated by a bus transaction order system and a subway transaction order system according to a scan code record of an electronic code according to an account identifier of the target account in the service request to be processed, and determining service status information according to the order related to the target account, the method further comprises:
if the service state information does not meet the preferential conditions of the public transportation service, a first service deduction request is generated, wherein the first service deduction request carries the first 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 comprises a service request time, wherein the service request time is a time interval between initiating two adjacent pending service requests;
the method further comprises the steps of after searching orders related to the target account, which are generated by a bus transaction order system and a subway transaction order system according to the scanning code records of electronic codes, according to the account identification of the target account in the service request to be processed, and determining service state information according to the orders related to the target account:
Judging whether the service request time is smaller 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 conditions of the public transportation service;
and if the service request time is smaller than or equal to the transfer time threshold, determining that the service state information meets the preferential conditions of the public transportation service.
4. The method according to claim 1 or 2, wherein the service status information includes location information of a first station and location information of a second station, wherein the first station is a station that initiated the service request to be processed last time, and the second station is a station that initiated the service request to be processed this time;
the method further comprises the steps of after searching orders related to the target account, which are generated by a bus transaction order system and a subway transaction order system according to the scanning code records of electronic codes, according to the account identification of the target account in the service request to be processed, and determining service state information according to the orders related to the target account:
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 set of the transfer lines, determining that the service state information meets the preferential conditions of the public transportation service;
and if the first station and the second station do not belong to the set of the transfer lines, determining that the service state information does not meet the preferential conditions of the public transportation service.
5. A method according to claim 1 or 2, characterized in that the traffic state information comprises the number of transfers within a transfer time threshold;
the method further comprises the steps of after searching orders related to the target account, which are generated by a bus transaction order system and a subway transaction order system according to the scanning code records of electronic codes, according to the account identification of the target account in the service request to be processed, and determining service state information according to the orders related to the target account:
judging whether the transfer times in the transfer time threshold reach a transfer times threshold or not;
if the transfer times in the transfer time threshold value does not reach the transfer times threshold value, determining that the service state information meets the preferential conditions of the public transportation service;
And if the transfer times in the transfer time threshold reach the transfer times threshold, determining that the service state information does not meet the preferential conditions of the public transportation service.
6. The method of claim 1, wherein the generating the second fee deduction information comprises:
generating the second fee deduction information according to the public transportation service preferential rule and the first fee deduction information;
after the second fee deduction information is generated, the method further includes:
generating a second service deduction request according to the second 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. A service 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 deduction information; the target account is an account which is generated by a unified user account platform and has a unique corresponding relation with a user and is respectively requested by a bus card account system and a subway card account system in the process of applying an on-vehicle electronic code taking payment mode from a service deduction platform by the user, and account identifiers of the target account are stored in the bus card account system and the subway card account system so that electronic codes corresponding to the target account are suitable for taking buses and subways;
The determining module is used for searching orders which are generated by the bus transaction order system and the subway transaction order system according to the code scanning records of the electronic codes and related to the target account according to the account identification of the target account in the service request to be processed, which is acquired by the acquiring module, and determining service state information according to the orders related to the target account, wherein the service state information carries state information related to the service to be processed; the service state information comprises service state information for transferring between buses and subways;
the generation module is used for acquiring all order data related to the target account in target time to obtain third deduction information if the service state information determined by the determination module meets the preferential conditions of the public transportation service, and generating second deduction information according to the preferential rules of the public transportation service, the first deduction information and the third deduction information; generating a second service deduction request according to the second deduction information; 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; the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account; public traffic preference rules corresponding to transfer between subways, public traffic preference rules corresponding to transfer between buses, and public traffic preference rules corresponding to transfer between subways are different.
8. 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 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; the target account is an account which is generated by a unified user account platform and has a unique corresponding relation with a user and is respectively requested by a bus card account system and a subway card account system in the process of applying an on-vehicle electronic code taking payment mode from a service deduction platform by the user, and account identifiers of the target account are stored in the bus card account system and the subway card account system so that electronic codes corresponding to the target account are suitable for taking buses and subways;
searching orders related to the target account, which are generated by a bus transaction order system and a subway transaction order system according to the scanning code records of electronic codes, according to the account identification of the target account in the service request to be processed, and determining service state information according to the orders related to the target account, wherein the service state information carries state information related to the service to be processed; the service state information comprises service state information for transferring between buses and subways;
If the service state information meets the preferential conditions of the public transportation service, acquiring all order data related to the target account in target time to obtain third fee deduction information, and generating second fee deduction information according to the preferential rules of the public transportation service, the first fee deduction information and the third fee deduction information; generating a second service deduction request according to the second deduction information; 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; the second deduction information is smaller than the first deduction information, and the second deduction information is used for indicating the amount to be deducted by the target account; public traffic preference rules corresponding to transfer between subways, public traffic preference rules corresponding to transfer between buses, and public traffic preference rules corresponding to transfer between subways are different.
9. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 6.
CN201811075012.5A 2018-09-14 2018-09-14 Service processing method based on public transportation and related device Active CN110910117B (en)

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 CN110910117A (en) 2020-03-24
CN110910117B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9367841B2 (en) * 2011-07-18 2016-06-14 Tiger T G Zhou Facilitating mobile device payments using product code scanning
US8744937B2 (en) * 2005-02-25 2014-06-03 Sap Ag Consistent set of interfaces derived from a business object model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
"中国移动手机支付平台设计与实现";林松;《中国优秀硕士学位论文 信息科技辑》(第第5期期) *

Also Published As

Publication number Publication date
CN110910117A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110910117B (en) Service processing method based on public transportation and related device
CN110135852B (en) Riding payment method, riding payment system, payment acceptance equipment and server
US20120060226A1 (en) Method for authorizing use of augmented reality (ar) information and apparatus
CN109410634A (en) Vehicles management method, system and storage medium
CN108389268B (en) Payment method, system and equipment
CN105637569A (en) Toll payment collection with communication device
CN114881628A (en) Payment method, device, equipment, medium and product
CN111275418A (en) Car rental management method and related equipment
KR101200605B1 (en) System and method for providing partial payment using near field communication
KR20170006740A (en) User terminal, central server and method for paying fare thereby
JP2015075981A (en) Parking management device and parking management system
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
KR20210111438A (en) System and method for providing subscription transporation services
CN111861603B (en) Riding order generation method and device
CN107122973A (en) A kind of asynchronous ticket processing method and relevant device
CN112686724A (en) Information recommendation method and device, electronic equipment and storage medium
KR100901442B1 (en) Method for Billing by Using the Car Number in Mobile
CN110826870A (en) Scenic spot consumption management method and system and computer readable storage medium
CN110751478A (en) Scenic spot consumption management method, scenic spot server and computer-readable storage medium
MXPA05005733A (en) Free-call certificate service system.
CN109767230A (en) A kind of method of payment, device and traffic payment devices
JP2019079286A (en) Store terminal, parking share server, parking share system, settlement information receiving method, settlement information generation method, and program
CN115545696B (en) Payment method, server and mobile terminal
CN108347535B (en) Data matching method and device

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