Automatic ticket checking method and device, computer equipment and storage medium

文档序号:116792 发布日期:2021-10-19 浏览:41次 中文

阅读说明:本技术 自动检票方法、装置、计算机设备和存储介质 (Automatic ticket checking method and device, computer equipment and storage medium ) 是由 戚广杰 杨奥楠 于 2021-04-21 设计创作,主要内容包括:本申请涉及一种自动检票方法、装置、计算机设备和存储介质。所述方法包括:检票系统响应于第一运营系统发送的检票请求,获取预先存储的与检票请求对应的用户行程信息;其中,第一运营系统为触发检票请求的检票闸口对应的运营系统;基于预设的票务规则,对用户行程信息进行合法性检测;若合法性检测通过,则将检测结果返回至第一运营系统,以使第一运营系统生成开闸指令,并返回对应的检票交易信息;开闸指令用于第一运营系统对检票闸口执行开闸处理;接收检票交易信息,并获取检票交易信息对应用户属性以及交易属性,将检票交易信息推送至与用户属性以及交易属性关联的第二运营系统。采用本方法能够实现乘车信息在多运营系统之间的共享。(The application relates to an automatic ticket checking method, an automatic ticket checking device, computer equipment and a storage medium. The method comprises the following steps: the ticket checking system responds to a ticket checking request sent by the first operation system and acquires pre-stored user travel information corresponding to the ticket checking request; the first operation system is an operation system corresponding to a ticket checking gate for triggering a ticket checking request; based on a preset ticket rule, carrying out validity detection on the user travel information; if the legality detection is passed, returning the detection result to the first operation system so that the first operation system generates a switching-off instruction and returns corresponding ticket checking transaction information; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate; and receiving ticket checking transaction information, acquiring user attributes and transaction attributes corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to a second operation system associated with the user attributes and the transaction attributes. By adopting the method, the sharing of the riding information among the multiple operation systems can be realized.)

1. An automatic ticket checking method is applied to a ticket checking system, and comprises the following steps:

responding to a ticket checking request sent by a first operation system, and acquiring pre-stored user travel information corresponding to the ticket checking request; the first operation system is an operation system corresponding to a ticket checking gate for triggering the ticket checking request;

based on a preset ticket rule, carrying out validity detection on the user travel information;

if the detection result of the validity detection is that the detection is passed, returning the detection result to the first operation system so that the first operation system generates a gate opening instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate;

and receiving the ticket checking transaction information, acquiring a user attribute and a transaction attribute corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to a second operation system associated with the user attribute and the transaction attribute.

2. The method of claim 1, wherein after receiving the ticketing transaction information, further comprising:

acquiring updated travel information corresponding to the ticket checking transaction information according to the ticket checking transaction information;

and updating the user travel information corresponding to the ticket checking request by using the updated travel information.

3. The method of claim 2, wherein after receiving the ticketing transaction information, further comprising: generating order information corresponding to the ticket checking transaction information based on a preset order generation rule and storing the order information;

the method further comprises the following steps:

responding to an order inquiry request initiated by an order inquiry operation system, and carrying out legality authentication processing on the order inquiry operation system;

and if the legality authentication result of the order inquiry operation system is authentication passing, acquiring order information corresponding to the order inquiry request, and returning the order information to the order inquiry operation system.

4. The method of claim 1, wherein the ticket checking request carries a user identification;

the acquiring of the pre-stored user travel information corresponding to the ticket checking request includes:

and acquiring user travel information corresponding to the user identification from a travel information base in which a plurality of pieces of user travel information are stored in advance, wherein the user travel information is used as the user travel information corresponding to the ticket checking request.

5. The method according to claim 4, wherein before the obtaining the user travel information corresponding to the user identifier from the travel information library in which a plurality of user travel information are stored in advance, the method further comprises:

responding to a user registration request, and acquiring user information corresponding to the user registration request;

and auditing the user information, acquiring a user identifier to be registered from a user identifier resource pool after the user information is approved, and establishing a corresponding relation between the user identifier to be registered and the user information.

6. The method according to claim 5, wherein after the establishing the correspondence between the user identifier to be registered and the user information, further comprising:

responding to a user information inquiry request initiated by a user information inquiry operation system, and carrying out legality authentication processing on the user information inquiry operation system;

if the legality authentication result of the user information inquiry operation system is authentication passing, acquiring a user identifier to be inquired corresponding to the user information inquiry request;

and acquiring user information corresponding to the user identifier to be inquired, and returning the user information to the user information inquiry operation system.

7. The method according to any one of claims 1 to 6, wherein the acquiring of the pre-stored user travel information corresponding to the ticket checking request comprises:

carrying out legality authentication processing on the first operation system;

and if the legality authentication result of the first operation system is authentication passing, acquiring user travel information corresponding to the ticket checking request.

8. An automatic ticket checking device, which is applied to a ticket checking system, the device comprises:

the system comprises a travel information acquisition module, a ticket checking module and a ticket checking module, wherein the travel information acquisition module is used for responding to a ticket checking request sent by a first operation system and acquiring pre-stored user travel information corresponding to the ticket checking request; the first operation system is an operation system corresponding to a ticket checking gate for triggering a ticket checking request;

the journey information detection module is used for carrying out validity detection on the user journey information based on a preset ticketing rule;

the journey detection sending module is used for returning the detection result to the first operation system if the detection result of the validity detection is that the detection is passed, so that the first operation system generates a switching-off instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate;

and the transaction information sharing module is used for receiving the ticket checking transaction information, acquiring the user attribute and the transaction attribute corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to a second operation system associated with the user attribute and the transaction attribute.

9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of traffic technologies, and in particular, to an automatic ticket checking method, apparatus, computer device, and storage medium.

Background

With the development of traffic technology, a technology for realizing ticket checking and traveling by using an intelligent card is provided, and when a user uses the intelligent card to punch a card to take a bus, a gate for punching the card can write information of entering or leaving, charging for leaving and the like into the intelligent card.

The current riding media used by users in outgoing are expanded from smart cards to emerging media such as two-dimensional codes and financial IC cards, and the emerging media are different from the traditional smart cards in that the media belong to read-only attributes, equipment cannot write riding information into the emerging media, and particularly for a plurality of traffic operation systems, the current automatic ticket checking system cannot achieve interconnection and intercommunication among the riding information.

Disclosure of Invention

In view of the above, it is necessary to provide an automatic ticket checking method, apparatus, computer device and storage medium for solving the above technical problems.

An automatic ticket checking method is applied to a ticket checking system and comprises the following steps:

responding to a ticket checking request sent by a first operation system, and acquiring pre-stored user travel information corresponding to the ticket checking request; the first operation system is an operation system corresponding to a ticket checking gate for triggering the ticket checking request;

based on a preset ticket rule, carrying out validity detection on the user travel information;

if the detection result of the validity detection is that the detection is passed, returning the detection result to the first operation system so that the first operation system generates a gate opening instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate;

and receiving the ticket checking transaction information, acquiring a user attribute and a transaction attribute corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to a second operation system associated with the user attribute and the transaction attribute.

In one embodiment, after receiving the ticket checking transaction information, the method further includes: acquiring updated travel information corresponding to the ticket checking transaction information according to the ticket checking transaction information; and updating the user travel information corresponding to the ticket checking request by using the updated travel information.

In one embodiment, after receiving the ticket checking transaction information, the method further includes: generating order information corresponding to the ticket checking transaction information based on a preset order generation rule and storing the order information; the method further comprises the following steps: responding to an order inquiry request initiated by an order inquiry operation system, and carrying out legality authentication processing on the order inquiry operation system; and if the legality authentication result of the order inquiry operation system is authentication passing, acquiring order information corresponding to the order inquiry request, and returning the order information to the order inquiry operation system.

In one embodiment, the ticket checking request carries a user identifier; the acquiring of the pre-stored user travel information corresponding to the ticket checking request includes: and acquiring user travel information corresponding to the user identification from a travel information base in which a plurality of pieces of user travel information are stored in advance, wherein the user travel information is used as the user travel information corresponding to the ticket checking request.

In one embodiment, before the obtaining the user travel information corresponding to the user identifier from the travel information library in which a plurality of user travel information are stored in advance, the method further includes: responding to a user registration request, and acquiring user information corresponding to the user registration request; and auditing the user information, acquiring a user identifier to be registered from a user identifier resource pool after the user information is approved, and establishing a corresponding relation between the user identifier to be registered and the user information.

In one embodiment, after the establishing the corresponding relationship between the user identifier to be registered and the user information, the method further includes: responding to a user information inquiry request initiated by a user information inquiry operation system, and carrying out legality authentication processing on the user information inquiry operation system; if the legality authentication result of the user information inquiry operation system is authentication passing, acquiring a user identifier to be inquired corresponding to the user information inquiry request; and acquiring user information corresponding to the user identifier to be inquired, and returning the user information to the user information inquiry operation system.

In one embodiment, the obtaining of the pre-stored user travel information corresponding to the ticket checking request includes: carrying out legality authentication processing on the first operation system; and if the legality authentication result of the first operation system is authentication passing, acquiring user travel information corresponding to the ticket checking request.

An automatic ticket checking device is applied to a ticket checking system, and comprises:

the system comprises a travel information acquisition module, a ticket checking module and a ticket checking module, wherein the travel information acquisition module is used for responding to a ticket checking request sent by a first operation system and acquiring pre-stored user travel information corresponding to the ticket checking request; the first operation system is an operation system corresponding to a ticket checking gate for triggering a ticket checking request;

the journey information detection module is used for carrying out validity detection on the user journey information based on a preset ticketing rule;

the journey detection sending module is used for returning the detection result to the first operation system if the detection result of the validity detection is that the detection is passed, so that the first operation system generates a switching-off instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate;

and the transaction information sharing module is used for receiving the ticket checking transaction information, acquiring the user attribute and the transaction attribute corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to a second operation system associated with the user attribute and the transaction attribute.

A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.

According to the automatic ticket checking method, the automatic ticket checking device, the computer equipment and the storage medium, the ticket checking system responds to the ticket checking request sent by the first operation system, and the pre-stored user travel information corresponding to the ticket checking request is obtained; the first operation system is an operation system corresponding to a ticket checking gate for triggering a ticket checking request; based on a preset ticket rule, carrying out validity detection on the user travel information; if the detection result of the legality detection is that the detection is passed, returning the detection result to the first operation system, so that the first operation system generates a switching-off instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate; and receiving ticket checking transaction information, acquiring user attributes and transaction attributes corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to a second operation system associated with the user attributes and the transaction attributes. According to the method and the system, by setting the ticket checking system, after the first operation system completes ticket checking and opening, the transaction information of the ticket checking can be transmitted into the ticket checking system, and the ticket checking system shares the transaction information to other related second operation systems, so that the sharing of the riding information among multiple operation systems can be realized without writing the riding information into a riding medium.

Drawings

FIG. 1 is a diagram of an application environment of an automatic ticket checking method in one embodiment;

FIG. 2 is a schematic flow chart diagram of an automatic ticket checking method in one embodiment;

FIG. 3 is a flow diagram illustrating query of order information in one embodiment;

FIG. 4 is a schematic flow chart diagram illustrating user information querying in one embodiment;

FIG. 5 is a schematic diagram of an automatic ticket checking system in an application example;

FIG. 6 is a flow diagram illustrating user itinerary management in an example application;

FIG. 7 is a flow diagram illustrating the uploading of a check transaction in an example application;

FIG. 8 is a flow chart illustrating order matching in an exemplary application;

FIG. 9 is a block diagram showing the construction of an automatic ticket gate apparatus according to an embodiment;

FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The automatic ticket checking method provided by the application can be applied to the application environment shown in fig. 1. The ticket checking system 102 communicates with the first operation system 101 and the second operation system 103 via a network. The first operation system 101 may be an operation system corresponding to a ticket checking gate that a user needs to pass through, and the second operation system may be an operation system that needs to share information. Specifically, when a user passes through a certain ticket checking gate by using a riding medium, the first operation system 101 corresponding to the gate can send a corresponding ticket checking request to the ticket checking system 102, after the ticket checking system 102 obtains the travel information of the corresponding user, whether the user travel is legal is judged according to a ticketing rule, if the user travel is legal, a detection result of the user travel is returned to the first operation system 101, the first operation system 101 executes a gate opening instruction and returns corresponding ticket checking transaction information, and the ticket checking system 102 shares the ticket checking transaction information with other related second operation systems 103. The ticket checking system 102, the first operation system 101, and the second operation system 103 may be implemented by independent servers or a server cluster composed of a plurality of servers.

In one embodiment, as shown in fig. 2, an automatic ticket checking method is provided, which is illustrated by applying the method to the ticket checking system 102 in fig. 1, and comprises the following steps:

step S201, the ticket checking system 102 responds to the ticket checking request sent by the first operation system 101, and obtains the pre-stored user travel information corresponding to the ticket checking request; the first operation system 101 is an operation system corresponding to a ticket checking gate for triggering a ticket checking request.

The ticket checking request refers to a ticket checking request triggered by the first operating system 101 to the ticket checking system 102, where the request may be triggered by the first operating system 101 from a ticket checking gate managed by the first operating system, for example, when a user passes through a ticket checking gate by using a certain riding medium, the ticket checking gate may generate a corresponding ticket checking request to the corresponding first operating system 101, which may be an operating system of an operating company corresponding to the ticket checking gate, and the user travel information may trigger a relevant travel of the user requesting the ticket checking request by using the riding medium, for example, an inbound time of the user, an inbound gate, or the like.

Specifically, the ticket checking system 102 may establish a network communication connection with various operation systems in advance, when a user needs to pass through a certain ticket checking gate, the gate may trigger a corresponding ticket checking request to the corresponding first operation system 101, and the first operation system may transmit the ticket checking request to the ticket checking system 102, so that the ticket checking system 102 queries the trip information corresponding to the user according to the obtained ticket checking request.

Step S202, the ticket checking system 102 performs validity detection on the user travel information based on a preset ticket rule.

The preset ticketing rule refers to a rule designed in advance for detecting whether a user travel is legal, for example, the rule may be an urban rail transit ticketing rule, the process of validity detection may be, for example, determining whether the user takes a car maliciously according to the entry time and the exit time of the user, or whether the user lacks entry records and other possible malicious ticket evasion behaviors, and the ticket checking system 102 may determine whether the user travel is legal according to the preset ticketing rule.

Step S203, if the detection result of the validity detection is that the detection is passed, the ticket checking system 102 returns the detection result to the first operation system 101, so that the first operation system 101 generates a switching-off instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system 101 to execute opening processing on the ticket checking gate.

Then, if the ticket checking system 102 determines that the user's travel validity detection passes, the result of the detection may be sent to the first operating system 101, so that the first operating system 101 may generate a brake opening instruction according to the detection result of the detection, perform brake opening processing on a brake gate triggering the ticket checking request, and return corresponding ticket checking transaction information, where the ticket checking transaction information may include related information of the user's riding time, riding start station, destination station, riding ticket price, and the like.

Step S204, the ticket checking system 102 receives the ticket checking transaction information, obtains the user attribute and the transaction attribute corresponding to the ticket checking transaction information, and pushes the ticket checking transaction information to the second operation system 102 associated with the user attribute and the transaction attribute.

Finally, the ticket checking system 102 may receive the ticket checking transaction information returned by the first operating system 101, and the second operating system 102 that associates the ticket checking transaction information with the user attribute and the transaction attribute corresponding to the ticket checking transaction information, for example, the second operating system 102 that is authorized in advance by the user and can share information with the transaction information may be used as the second operating system 102 that is associated with the user attribute and the transaction attribute, or a gateway used by the user to enter the gate and a gateway used by the user to exit the gate may correspond to different operating systems, so that the operating system corresponding to the gateway through which the user enters the gate may be used as the second operating system 102, and so on.

In the automatic ticket checking method, the ticket checking system 102 responds to a ticket checking request sent by the first operation system 101 to acquire pre-stored user travel information corresponding to the ticket checking request; the first operation system 101 is an operation system corresponding to a ticket checking gate for triggering a ticket checking request; based on a preset ticket rule, carrying out validity detection on the user travel information; if the detection result of the validity detection is that the detection is passed, returning the detection result to the first operation system 101, so that the first operation system 101 generates a gating command according to the detection result and returns the ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system 101 to execute opening processing on the ticket checking gate; receiving the ticket checking transaction information, acquiring the user attribute and the transaction attribute corresponding to the ticket checking transaction information, and pushing the ticket checking transaction information to the second operation system 103 associated with the user attribute and the transaction attribute. According to the method and the system, by setting the ticket checking system, after the first operation system 101 completes ticket checking and opening, the transaction information of the ticket checking can be transmitted into the ticket checking system 102, and the ticket checking system 102 shares the transaction information to other related second operation systems 103, so that the sharing of the riding information among multiple operation systems can be realized without writing the riding information into a riding medium.

In one embodiment, after step S204, the method may further include: the ticket checking system 102 acquires updated travel information corresponding to the ticket checking transaction information according to the ticket checking transaction information; and updating the user travel information corresponding to the ticket checking request by utilizing the updated travel information.

The updated trip information refers to update information for updating user trip information stored in the ticket checking system 102, and since the corresponding trip information of the user is inevitably updated after the user passes through a gate by bus, the ticket checking system 102 may obtain the updated trip information based on the ticket checking transaction information returned by the first operation system 101, and update the user trip information stored in the ticket checking system 102 by using the updated trip information, for example, the ticket checking transaction information may carry exit time and exit time of the user, and the ticket checking system 102 may use the exit time and the exit time as the updated trip information, thereby updating the stored user trip information of the user.

In this embodiment, the ticket checking system 102 may also update the stored user travel information according to the ticket checking transaction information returned by the first operating system 101, so as to form a closed loop of transaction data and user travel update, thereby ensuring real-time accuracy of the user travel information stored by the ticket checking system 102.

Further, after step S204, the method may further include: the ticket checking system 102 generates and stores order information corresponding to the ticket checking transaction information based on a preset order generation rule; as shown in fig. 3, the automatic ticket checking method may further include:

step S301, the ticket checking system 102 responds to the order inquiry request initiated by the order inquiry operation system, and performs validity authentication processing on the order inquiry operation system.

After the ticket checking system 102 obtains the ticket checking transaction information returned by the first operating system 101 in step S204, a complete fee deduction order may be generated according to the ticket checking transaction information and the related order generation rule, for example, a corresponding order is generated according to the exit time, exit station or deducted riding fee in the ticket checking transaction information, and is stored. The order query operation system is an operation system that needs to execute order query service, and the operation system may be any operation system that establishes a connection relationship with the ticket checking system 102 in advance and needs to query order information stored in the ticket checking system 102.

Specifically, the order inquiry operation system may initiate an order inquiry request for inquiring the stored order information to the ticket checking system 102, and then the ticket checking system 102 may perform validity authentication on the order inquiry operation system initiating the request to determine whether the order inquiry operation system has an authority to acquire the order information, where the validity authentication process may be that the ticket checking system 102 stores in advance a system identifier of an operation system capable of implementing the order inquiry function, and in the validity authentication process, it may be determined whether the system identifier of the order inquiry operation system initiating the request belongs to the system identifier of the operation system capable of implementing the order inquiry function, and if so, it may be determined that the validity authentication result of the order inquiry operation system passes authentication.

Step S302, if the validity authentication result of the order query operation system is authentication pass, the ticket checking system 102 obtains the order information corresponding to the order query request, and returns the order information to the order query operation system.

If the legality authentication result of the order query operation system is that the authentication is passed, the ticket checking system 102 may read order information corresponding to the order query request from the pre-stored order information and return the order information to the order query operation system to execute a response of the order query request.

In this embodiment, the ticket checking system 102 may store the order information corresponding to the ticket checking transaction information, and when the operation system needs to query the order information, the order information may be returned, and meanwhile, the operation system that initiated the order query request may be authenticated, thereby ensuring the security of the order information.

In one embodiment, the ticket checking request carries a user identifier; step S201 may further include: the ticket checking system 102 acquires user travel information corresponding to a user identifier from a travel information base in which a plurality of pieces of user travel information are stored in advance, as user travel information corresponding to a ticket checking request.

The user identifier may be used to identify the identity of the user, and may be, for example, an identifier that can uniquely characterize the identity, such as a user number of the user or a ticket number corresponding to the user. Specifically, when the user passes through the ticket checking gate by using the riding medium, the ticket checking gate may read the user identifier from the riding medium, and transmit a ticket checking request including the user identifier to the first operating system 101, and the first operating system 101 may upload the ticket checking request to the ticket checking system 102. After obtaining the ticket checking request, the ticket checking system 102 may extract the user identifier from the ticket checking request, and query, by using the user identifier, the user trip information corresponding to the user identifier from the trip information base in which all the user trip information is stored, as the user trip information corresponding to the ticket checking request.

In this embodiment, the ticket checking request obtained by the ticket checking system 102 may carry a user identifier identifying a user, so that the corresponding user travel information may be retrieved from the travel information base according to the user identifier, thereby improving the efficiency of obtaining the user travel information.

Further, before the ticket checking system 102 acquires the user trip information corresponding to the user identifier from a trip information base in which a plurality of pieces of user trip information are stored in advance, the method may further include: the ticket checking system 102 responds to the user registration request, and acquires user information corresponding to the user registration request; and auditing the user information, acquiring a user identifier to be registered from the user identifier resource pool after the user information is approved, and establishing a corresponding relation between the user identifier to be registered and the user information.

The user registration request is a registration request of a user for a corresponding user identifier of the user, and before the user uses a riding medium to check tickets and go out, a registration operation is firstly required, the registration operation can be performed through a terminal of the user, for example, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices and the like of the user, and the user information is related registration information which needs to be entered by the user when the user initiates the registration request, for example, related information such as a name, a mobile phone number and the like of the user.

Specifically, a user may initiate a user registration request to the ticket checking system 102 through a held user terminal, and fill in related user information, then the ticket checking system 102 may perform an authentication on the user information, which may be an identity verification on the user information, and after the authentication is passed, may randomly select one to-be-registered user identifier from a resource pool in which a plurality of user identifiers that may be used for registration, that is, user identifiers to be registered, are stored, and establish a correspondence between the to-be-registered user identifier and the obtained user information, thereby implementing user registration, and the obtained to-be-registered user identifier may be used as a user identifier corresponding to the user.

In this embodiment, the ticket checking system 102 may implement registration of the user information, and may implement binding of the user information and the user identifier after successful registration, thereby providing technical support for query of the user travel information.

In addition, as shown in fig. 4, after the ticket checking system 102 establishes the corresponding relationship between the user identifier to be registered and the user information, the method may further include:

step S401, the ticket checking system 102 responds to the user information query request initiated by the user information query operation system, and performs validity authentication processing on the user information query operation system.

In this embodiment, the operation system in communication connection with the ticket checking system 102 may also query the user information stored in the ticket checking system 102 from the ticket checking system 102. Specifically, when a certain operation system needs to query user information, the user information query operation system can be used as a user information query operation system to initiate a query request of stored user information to the ticket checking system 102, the ticket checking system 102 can perform validity authentication on the user information query operation system initiating the request, and the process of the validity authentication can be performed in a similar manner to the validity authentication on the order query operation system, so that the validity authentication result of the user information query operation system is obtained.

Step S402, if the legality authentication result of the user information inquiry operation system is authentication passing, the ticket checking system 102 acquires the user identification to be inquired corresponding to the user information inquiry request;

step S403, the ticket checking system 102 obtains the user information corresponding to the user identifier to be queried, and returns the user information to the user information query operation system.

The user identifier to be inquired is a user identifier corresponding to a user information inquiry request initiated by a user information inquiry operation system. In the process that the user information inquiry operation system triggers the user information inquiry request to the ticket checking system 102, the user information inquiry operation system needs to indicate user information of users which need to be inquired, therefore, the user information inquiry operation system can send a user identifier of the user information which needs to be inquired as a user identifier to be inquired and the user information inquiry request to the ticket checking system 102, and after the ticket checking system 102 determines that the legality authentication of the user information inquiry operation system passes, the obtained user information corresponding to the identifier can be inquired by using the obtained user identifier to be inquired, and the corresponding user information is returned to the user information inquiry operation system.

In this embodiment, the operation system may further obtain the user information stored in the ticket checking system 102, and the ticket checking system 102 may further authenticate the operation system to ensure the security of the user information.

In one embodiment, step S201 may further include: the ticket checking system 102 performs validity authentication processing on the first operation system 101; and if the legality authentication result of the first operation system 101 is that the authentication is passed, acquiring user travel information corresponding to the ticket checking request.

In this embodiment, when the first operation system 101 initiates the ticket checking request to the ticket checking system 102, the ticket checking system 102 may also perform validity authentication on the first operation system 101 to ensure the validity of the initiated ticket checking request, the authentication process may be similar to the process in which the ticket checking system 102 queries the operation system for the order or queries the operation system for the user information, and after the authentication is passed, the ticket checking system 102 obtains the user travel information corresponding to the ticket checking request.

In the above embodiment, the ticket checking system 102 may perform the validity authentication on the first operating system 101, and the user trip information is acquired only after the authentication is passed, so that the validity of the ticket checking request and the security of the user trip information can be ensured.

In an example application, as shown in fig. 5, there is provided an automatic ticket checking system, which includes: the system comprises an access authentication module, a push module, a user information management module, a ticket card parameter management module, an equipment management module, a passenger transaction processing module, a transaction management module, an order management module, a clock synchronization module and the like, wherein:

the access authentication module is used for carrying out legality authentication on the accessed operation system and equipment transaction and providing interfaces for ticket checking, transaction uploading, ticket card processing and the like; providing information inquiry interfaces of transaction, order and user; and interfaces such as account checking file downloading are provided. The module can flexibly support the expansion access of multiple operation systems, and the operation access system serial numbers, secret keys and the like distributed by the interconnected automatic fare collection system are used for unified management authorization. The method can quickly adapt to the complex and variable rail transit operation management needs.

The information pushing module is used for pushing corresponding travel transaction information, matched order data and the like to different operation systems according to the identifications of the transaction and the order; and providing a uniform output management interface. The module can configure parameters of the multi-operation access system, and classify and forward transaction order data according to formed attribute information of transactions and orders, and send the transaction order data to a corresponding operation system background. The scheme can flexibly control the breadth of information available by each operation system. And controlling the transaction and order data of the whole network or the line related to the self operation system. The data boundary is effectively controlled, the data value is reflected, and reliable support is provided for ensuring the data security.

And the user information module is used for providing user real-name information data management, travel data management and the like. As a unified user management data center of the urban rail transit, the system has the most complete and comprehensive user data and travel data so as to make the most timely and ready judgment on the in-and-out behaviors of passengers.

And the ticket card management module is used for providing ticket card unified coding management, operation parameter unified management, key file management and the like.

The device management module provides unified registration management authorization and the like of the devices, and effectively controls the range of the access devices and prevents the access of illegal devices.

The passenger transaction module provides ticket checking service of the ticket card; providing ticket exception handling. The functions of the device such as the entrance and exit request of the device under the management of the operation system of each operation company, the ticket card analysis of the semi-automatic ticket vending machine, the ticket card exception processing and the like are provided.

The transaction management module is used for providing transaction storage management; providing transaction matching functionality. The module manages the transaction information transmitted by each operation system, arranges and combines the transaction information of the whole network, matches the effective and legal travel transaction to form complete travel matching information and order information.

And the order management module provides an order management function.

The clock service module maintains the same clock source and provides clock synchronization function for keeping the clocks of the system and the terminal equipment under the management of each operation system uniform.

Specifically, the automatic ticket checking system can realize the following business processes:

as shown in fig. 6, when the user registers, the user provides necessary registration information (such as name, mobile phone number, identity information, etc.), calls a registration interface of the user information module, and after the user information module verifies the registration information, the user information module applies for a logical card number from the ticket card parameter management module, and finally returns the registration result to the client. The card number is a number compiled according to a certain naming rule, and the ticket card parameter management module maintains a card number resource pool available for the system, distributes or timely recovers related card number resources, and achieves the purpose of recycling the card number resources. The user information module provides a user information updating function and a user logout function, when a user logs out, whether the user has order information which is not paid is required to be confirmed, the user applies for logical card number logout to the ticket card parameter management module after confirming that no abnormal order information exists, and the card number logout is released to a resource pool to ensure the cyclic use of card number resources. According to the attribute of the registered user and the related ticket business rule configuration, the user journey management module can actively and synchronously push the related user information to other related operation systems. Other operating systems can also actively query relevant user information.

In the flow of ticket checking and transaction uploading, as shown in fig. 7, the operation system sends a ticket checking request to the system, and the system performs validity check on the request. After the verification is passed, a ticket checking interface of the passenger transaction module is called, and the passenger transaction module inquires and acquires the latest user travel information from the user information module, so that the legality of the user passing brake is judged. And returning a ticket checking result after being judged by the urban rail transit ticket business rule. If the ticket checking is successful and the user successfully enters and exits the station, the operation system can send the transaction of the entering and exiting station to the transaction management module. The transaction management module updates the user travel information with the latest transaction information, thereby forming a closed loop of transaction data and user travel update. According to the attributes of the user and the transaction, the transaction information of the associated user can be synchronized to other related operation systems.

In the order matching process, as shown in fig. 8, the transaction management module matches all the transactions of the inbound and outbound and other business processes according to rules to form a complete fee deduction order, and synchronizes the associated order information to other related operation systems according to the user attribute and the transaction attribute. The order deduction fee can be initiated by interconnected automatic ticket selling and checking systems or initiated by each operation system according to the order attribution. The order management module provides the function of order inquiry and can inquire the detailed order information of a certain user/card number within a certain time range. The modules have certain requirements on the precision of the service transaction time, so that a uniform clock source is required to be used, namely, clock data is synchronized to a clock server.

The automatic ticket checking system provided by the application example can flexibly expand the access supporting multiple operation systems and the access of multiple riding medium modes, and can meet the requirements of each operation company on the respective shared data range and information safety.

It should be understood that, although the steps in the flowcharts of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed alternately or in alternation with other steps or at least some of the other steps or stages.

In one embodiment, as shown in fig. 9, there is provided an automatic ticket gate apparatus applied to a ticket gate system, including: a journey information acquisition module 901, a journey information detection module 902, a journey detection sending module 903 and a transaction information sharing module 904, wherein:

a trip information obtaining module 901, configured to obtain, in response to a ticket checking request sent by a first operating system, pre-stored user trip information corresponding to the ticket checking request; the first operation system is an operation system corresponding to a ticket checking gate for triggering a ticket checking request;

a journey information detection module 902, configured to perform validity detection on user journey information based on a preset ticketing rule;

the trip detection sending module 903 is configured to return a detection result to the first operation system if the detection result of the validity detection is that the detection is passed, so that the first operation system generates a gate opening instruction according to the detection result and returns ticket checking transaction information corresponding to the ticket checking request; the opening instruction is used for the first operation system to execute opening processing on the ticket checking gate;

the transaction information sharing module 904 is configured to receive the ticket checking transaction information, acquire a user attribute and a transaction attribute corresponding to the ticket checking transaction information, and push the ticket checking transaction information to a second operation system associated with the user attribute and the transaction attribute.

In one embodiment, the automatic ticket checking device further comprises: the travel information updating module is used for acquiring updated travel information corresponding to the ticket checking transaction information according to the ticket checking transaction information; and updating the user travel information corresponding to the ticket checking request by utilizing the updated travel information.

In one embodiment, the automatic ticket checking device further comprises: the order information processing module is used for generating and storing order information corresponding to the ticket checking transaction information based on a preset order generation rule; and is used for responding to the order inquiry request initiated by the order inquiry operation system and carrying out legality authentication processing on the order inquiry operation system; and if the legality authentication result of the order inquiry operation system is that the authentication is passed, acquiring order information corresponding to the order inquiry request, and returning the order information to the order inquiry operation system.

In one embodiment, the ticket checking request carries a user identifier; the itinerary information acquiring module 901 is further configured to acquire user itinerary information corresponding to the user identifier from an itinerary information base in which a plurality of user itinerary information are stored in advance, as the user itinerary information corresponding to the ticket checking request.

In one embodiment, the automatic ticket checking device further comprises: the user information processing module is used for responding to the user registration request and acquiring user information corresponding to the user registration request; and auditing the user information, acquiring a user identifier to be registered from the user identifier resource pool after the user information passes the auditing, and establishing a corresponding relation between the user identifier to be registered and the user information.

In one embodiment, the user information processing module is further configured to perform validity authentication processing on the user information query operation system in response to a user information query request initiated by the user information query operation system; if the legality authentication result of the user information inquiry operation system is that the authentication is passed, acquiring a user identifier to be inquired corresponding to the user information inquiry request; and acquiring user information corresponding to the user identifier to be inquired, and returning the user information to the user information inquiry operation system.

In an embodiment, the trip information obtaining module 901 is further configured to perform validity authentication processing on the first operation system; and if the legality authentication result of the first operation system is that the authentication is passed, acquiring user travel information corresponding to the ticket checking request.

For specific limitations of the automatic ticket checking device, reference may be made to the above limitations of the automatic ticket checking method, which are not described herein again. The modules in the automatic ticket checking device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a ticket checking system, the internal structure of which may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store user trip data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an automatic ticket checking method.

Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.

In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种停车位无人值守收费的后置管控方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!