Electronic ticket information processing method, device and electronic equipment
By establishing a connection with the user terminal and sending electronic ticket verification information, it solves the problems of low electronic ticket checking efficiency and the impact of network disconnection, realizes fast and stable ticket checking operations, and improves the ticket checking experience.
Patent Information
- Application Number
- CN202010760827.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-07-31
AI Technical Summary
The existing electronic ticket checking system has low ticket checking efficiency in large-scale events, cannot complete the ticket checking operation quickly, and cannot be used when the network is disconnected, affecting the user experience.
By establishing a connection with the user terminal, querying and sending the verification information of the electronic ticket, the ticket checking terminal can quickly verify in the local area network environment, reducing dependence on Internet requests, and improving the timeliness and stability of ticket checking.
The ticket checking speed has been improved, the average ticket checking time has been shortened from 2 seconds per ticket to 1 second per ticket, and it can still be used normally even when the network is disconnected, improving the efficiency and convenience of ticket checking.
Smart Images

Figure CN114067447B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of ticket information processing, and more specifically, to an electronic ticket information processing method, an electronic ticket information processing device and an electronic device. Background Art
[0002] With the development of electronic ticketing systems, more and more activities adopt the form of online ticketing, and electronic tickets are used to replace physical tickets as the credentials for people to check in and enter.
[0003] When using an electronic ticket to enter a venue, the ticket checking device needs to verify the authenticity and status of the electronic ticket, such as whether it is valid, and may need to display the necessary information for the user using the electronic ticket to participate in the event, such as the seat location, etc. In addition, in large-scale events, there are certain requirements for the efficiency of electronic ticket checking, that is, it needs to meet the needs of fast ticket checking.
[0004] Therefore, it is desirable to provide a solution for improving the speed and convenience of checking electronic tickets. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide an electronic ticket information processing method, an electronic ticket information processing device and an electronic device, which send electronic ticket verification information to a user terminal by establishing a connection with the user terminal, so that the ticket checking terminal can use the local area network connection to perform a fast and convenient ticket checking operation with the electronic ticket verification information.
[0006] According to one aspect of the present application, there is provided an electronic ticket information processing method, comprising: obtaining electronic ticket verification information from a comprehensive ticketing information database; establishing a connection with a user terminal; querying user information and electronic ticket verification information corresponding to the user terminal; and sending the electronic ticket verification information to the user terminal, wherein the electronic ticket verification information is used to be displayed on the user terminal for verification by a ticket checking terminal using a local area network connection with the user terminal.
[0007] In the above-mentioned electronic ticket information processing method, establishing a connection with a user terminal includes: accessing the user terminal based on the terminal identifier of the user terminal and allocating a message queue server entity to the user terminal; parsing, authenticating and certifying the terminal identifier by the message queue server entity; and, in response to successful authentication, establishing a connection with the user terminal and maintaining the connection.
[0008] In the above-mentioned electronic ticket information processing method, querying the user information corresponding to the user terminal and the verification information of the electronic ticket includes: publishing the connection information to the message queue; obtaining the connection information and reading the terminal identifier, and querying the user information based on the correspondence between the terminal identifier and the user information; querying the verification information of the electronic ticket corresponding to the user information based on the user information; and, publishing the verification information of the electronic ticket to the message queue.
[0009] In the above-mentioned electronic ticket information processing method, querying the user information corresponding to the user terminal and the verification information of the electronic ticket further includes: generating the information code of the electronic ticket based on the verification information of the electronic ticket, the information code further including the status information of the electronic ticket; and encapsulating the terminal identifier, the user information and the information code of the electronic ticket into a message and publishing it to the message queue.
[0010] In the above-mentioned electronic ticket information processing method, the status information of the electronic ticket includes information about the invalid status or refund status of the electronic ticket; the information about the invalid status or refund status of the electronic ticket is used for verification by the ticket checking terminal to determine the invalid status or refund status of the electronic ticket; or, the information about the invalid status or refund status of the electronic ticket is used to prevent the user terminal from displaying the electronic ticket information.
[0011] In the above-mentioned electronic ticket information processing method, the status information of the electronic ticket is refreshed at predetermined time intervals; and publishing the verification information of the electronic ticket to the message queue includes: updating the information code of the electronic ticket based on the refreshed status information of the electronic ticket; and publishing the updated electronic ticket information code to the message queue.
[0012] In the above-mentioned electronic ticket information processing method, the information of the connection is obtained and the terminal identifier is read, and the user information is queried based on the correspondence between the terminal identifier and the user information, including: storing the obtained connection information in a connection information cache; querying the connection information cache at a predetermined time interval to obtain information on multiple connections that are currently established and read multiple terminal identifiers; and, querying user information of multiple users based on the multiple terminal identifiers.
[0013] In the above-mentioned electronic ticket information processing method, sending the verification information of the electronic ticket to the user terminal includes: the message queue server entity that subscribes to the status of the message queue obtains the verification information of the electronic ticket from the message queue; and, sending the verification information of the electronic ticket to the user terminal through the connection between the user terminal and the user terminal.
[0014] According to another aspect of the present application, an electronic ticket information processing device is provided, comprising: an information acquisition unit for obtaining verification information of the electronic ticket from a comprehensive ticketing information database; a connection establishment unit for establishing a connection with a user terminal; an information query unit for querying user information and verification information of the electronic ticket corresponding to the user terminal; and an information push unit for sending the verification information of the electronic ticket to the user terminal, wherein the verification information of the electronic ticket is used to be displayed on the user terminal for verification by the ticket checking terminal using a local area network connection with the user terminal.
[0015] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the electronic ticket information processing method as described above.
[0016] According to another aspect of the present application, a computer-readable medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the electronic ticket information processing method as described above.
[0017] The electronic ticket information processing method, electronic ticket information processing device and electronic device provided in the present application establish a connection with the user terminal to send electronic ticket verification information to the user terminal, so that the ticket checking terminal can use the local area network connection to perform fast and convenient ticket checking operations with the electronic ticket information. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0019] Figure 1 The figure shows a schematic diagram of the overall service process of the existing electronic movie ticket checking.
[0020] Figure 2 A schematic diagram illustrating an application scenario of the electronic ticket information processing method according to an embodiment of the present application is illustrated.
[0021] Figure 3 The figure illustrates a flow chart of an electronic ticket information processing method according to an embodiment of the present application.
[0022] Figure 4 A schematic diagram illustrating an application example of the electronic ticket information processing method according to an embodiment of the present application is illustrated.
[0023] Figure 5 A schematic diagram of the system architecture of an application example of the electronic ticket information processing method according to an embodiment of the present application is illustrated.
[0024] Figure 6 The figure illustrates a block diagram of an electronic ticket information processing device according to an embodiment of the present application.
[0025] Figure 7 A block diagram of an electronic device according to an embodiment of the present application is illustrated. DETAILED DESCRIPTION
[0026] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0027] Application Overview
[0028] Figure 1 The figure shows a schematic diagram of the overall service process of the existing electronic movie ticket checking.
[0029] like Figure 1 As shown, when the user arrives at the cinema with the electronic movie ticket information code, the ticket is checked by showing the electronic movie ticket information code. When checking the ticket, the ticket checking terminal 110 of the cinema needs to initiate a request to the ticketing system 120, and the ticketing system 120 then initiates a request to the ticketing comprehensive information library 130. Here, the ticketing system 120 is a software platform for managing the ticket checking data of the cinema (that is, the verification information of the movie ticket), such as a ticketing platform for the audience to purchase and refund tickets, which sends the ticket verification information to the ticket checking terminal 110 of the cinema. The ticketing comprehensive information library 130 refers to a comprehensive database including information on movie tickets (paper tickets or electronic movie tickets), and it manages the information and provides docking with each ticketing system, and the ticketing comprehensive information library 130 sends the verification information of the movie ticket to the ticketing system 120. In addition, the ticket checking terminal 110 of the cinema refers to the terminal equipment and software system for checking the movie ticket (paper ticket or electronic movie ticket) in the cinema.
[0030] Therefore, during the ticket checking process, at least two Internet-based requests, such as http / https requests, are required. As an important connection point between the ticketing comprehensive information database and the ticket checking terminal, the ticketing system must ensure smooth service and high enough ticket checking performance, such as meeting the needs of fast inspection in theaters. In addition, when checking in for admission, it is necessary to check the authenticity and status of the electronic ticket. In addition, the ticket checking terminal may also need to display necessary information (for example, the film title / theater hall, etc.).
[0031] If you want to increase the speed of ticket checking, you can temporarily turn off the check of movie ticket status, which can reduce one Internet-based request (that is, the request from the ticketing system to the ticketing comprehensive information database). However, the accuracy of the electronic ticket cannot be guaranteed, and in the case of a new film being released / a new theater being added, the theater name and the film name cannot be obtained, causing inconvenience to users.
[0032] In addition, even if the service efficiency of the ticketing system is guaranteed, there may be problems with the performance and stability of the comprehensive ticketing information database, which makes it impossible to guarantee the efficiency and convenience of ticket checking.
[0033] In order to solve the above technical problems, the basic idea of the present application is to establish a connection with a user terminal, query and obtain the user information and electronic ticket verification information corresponding to the user terminal, and directly send the electronic ticket verification information to the user terminal through the established connection. In this way, the user can perform ticket verification based on the LAN by displaying the electronic ticket verification information on the user terminal.
[0034] Specifically, the electronic ticket information processing method, electronic ticket information processing device and electronic device provided in the present application first obtain the verification information of the electronic ticket from the ticket comprehensive information database, then establish a connection with the user terminal, and then query the user information and the verification information of the electronic ticket corresponding to the user terminal, and finally send the verification information of the electronic ticket to the user terminal. The verification information of the electronic ticket is used to be displayed on the user terminal so that the ticket checking terminal can use the local area network connection with the user terminal for verification.
[0035] In this way, the electronic ticket information processing method, electronic ticket information processing device and electronic device provided by the present application are based on the ticket checking scheme using a local area network to replace at least two Internet-based requests, thereby not relying on the interface performance of the network and the ticketing comprehensive information database.
[0036] Furthermore, the electronic ticket information processing method, electronic ticket information processing device and electronic device provided by the present application only require a connection between the user terminal and the ticket checking terminal once in a local area network environment, and the timeliness can be improved by at least 1 times. For example, the estimated ticket checking time is increased from the original average of 2 seconds per ticket to 1 second per ticket, and the uncertainty of the Internet network can be avoided. In the event of a network outage, it will not affect the user's use of electronic tickets for ticket checking and entry, and the stability has been changed from being unavailable when the network is disconnected to being available when the network is disconnected.
[0037] Those skilled in the art will appreciate that the electronic ticket information processing method, electronic ticket information processing device and electronic device provided in the present application can be used in a variety of activities that require ticket inspection for entry, including movies, performances, conferences, transportation, etc.
[0038] Below, the exemplary electronic ticket information processing method according to the embodiment of the present application will be further explained with reference to the accompanying drawings.
[0039] Application Scenario
[0040] Figure 2 A schematic diagram illustrating an application scenario of the electronic ticket information processing method according to an embodiment of the present application is illustrated.
[0041] like Figure 2 As shown, the electronic ticket information processing method according to the embodiment of the present application is applied to a ticketing system, such as a cloud server S of the ticketing system, which establishes and maintains a connection with a terminal device of a user U, such as a smart phone T. In addition, the cloud server S can obtain the verification information of the electronic ticket from a comprehensive ticketing information library, such as a data center D common to various ticketing systems.
[0042] Through the connection, the cloud server S can obtain the device ID of the terminal device of user U, and obtain the corresponding user information based on the device ID query, such as the user's account name, etc., and query the verification information of the electronic ticket of the user from the verification information of the electronic ticket obtained from the data center D.
[0043] Then, the cloud server S sends the verification information of the electronic ticket to the user's terminal device, so that the user can use the terminal device to show the verification information of the electronic ticket to the ticket checking terminal, for example, through the camera C to the computer N, so that the computer N can check the ticket based on the local area network.
[0044] Below, the specific details of each step of the electronic ticket information processing method according to the embodiment of the present application will be further described.
[0045] Exemplary Methods
[0046] Figure 3 The figure illustrates a flow chart of an electronic ticket information processing method according to an embodiment of the present application.
[0047] like Figure 3 As shown, the electronic ticket information processing method according to the embodiment of the present application includes the following steps.
[0048] S210, obtaining verification information of the electronic ticket from the ticketing comprehensive information base. Here, the ticketing comprehensive information base may be a large data center storing detailed information of electronic tickets corresponding to various activities, such as the data center common to various ticketing systems as described above.
[0049] Furthermore, the detailed information of the electronic ticket includes various information of the activity corresponding to the electronic ticket, such as the name, time, and location of the activity, and the detailed information of the electronic ticket may also include information related to the purchase of the electronic ticket, such as the price of the electronic ticket, the time of purchase, etc.
[0050] Taking movie tickets as an example, if the electronic ticket is an electronic movie ticket, the detailed information of the electronic movie ticket may include the name of the cinema, the name of the theater, the name of the film, the show code, the show start time, the movie ticket code, the movie ticket amount, the operation type and the operation time. Among them, at least the theater name, the film name and the operation type of the electronic movie ticket need to be obtained by the ticketing system from the ticketing comprehensive information library.
[0051] S220, establishing a connection with the user terminal. That is, with the authorization of the user, based on the terminal ID of the user terminal, the ticketing system can establish a persistent connection with the user terminal and maintain the persistent connection.
[0052] Since the ticketing system needs to establish and maintain connections with multiple user terminals, in an embodiment of the present application, multiple connections with multiple user terminals are maintained through a message queue.
[0053] Specifically, in the embodiment of the present application, the user terminal is accessed based on the terminal ID of the user terminal through the gateway, and a message queue server entity is allocated to the user terminal. Moreover, when accessing the user terminal, it is necessary to further ensure that the number of user terminals connected to each message queue server entity is balanced, and the same user terminal is connected to the same message queue server entity each time.
[0054] In an embodiment of the present application, a message queue server entity group may be included to include multiple message queue server entities, each of which is a component for a long connection with a user terminal and may be responsible for protocol parsing, session maintenance, authentication, publishing and subscription, etc.
[0055] That is, in the electronic ticket information processing method according to the embodiment of the present application, establishing a connection with the user terminal includes: accessing the user terminal based on the terminal identifier of the user terminal and allocating a message queue server entity to the user terminal; the message queue server entity resolves, authenticates and authenticates the terminal identifier; and, in response to successful authentication, establishes a connection with the user terminal and maintains the connection.
[0056] S230, querying the user information corresponding to the user terminal and the verification information of the electronic ticket. Similarly, in the embodiment of the present application, since the ticketing system needs to establish connections with multiple user terminals and may need to update the verification message of the electronic ticket multiple times, the query of the user information and the verification information of the electronic ticket is also performed through the message queue.
[0057] Therefore, in the embodiment of the present application, the role of the message queue is to serve as a hub for internal message transmission, decouple the storage and retrieval mechanism of the message queue server entity and the verification information of the electronic ticket, and perform peak-shaving and valley-filling of traffic. Here, the retrieval mechanism of the verification information of the electronic ticket is to obtain the device ID from the connection, query the user information corresponding to the device ID, such as the identity information of the user's login account, such as the account ID, and further query the verification information of the electronic ticket through the account ID, and publish it to the message queue.
[0058] That is, in the electronic ticket information processing method according to the embodiment of the present application, querying the user information corresponding to the user terminal and the verification information of the electronic ticket includes: publishing the connection information to the message queue; obtaining the connection information and reading the terminal identifier, and querying the user information based on the correspondence between the terminal identifier and the user information; querying the verification information of the electronic ticket corresponding to the user information based on the user information; and, publishing the verification information of the electronic ticket to the message queue.
[0059] As mentioned above, the verification information of the electronic ticket includes information related to the activity corresponding to the electronic ticket and information related to the operation of the electronic ticket itself. In order to facilitate the verification of this information by the ticket checking terminal, an electronic ticket information code in a specific format can be generated.
[0060] For example, for an electronic movie ticket, the information code of the electronic ticket may be a QR code of the electronic movie ticket, or the information code of the electronic ticket may be other forms of information code composed of multiple bytes, and it may be encrypted by a specific algorithm.
[0061] That is, in the electronic ticket information processing method according to the embodiment of the present application, querying the user information corresponding to the user terminal and the verification information of the electronic ticket further includes: generating an information code of the electronic ticket based on the verification information of the electronic ticket, the information code further including the status information of the electronic ticket; and encapsulating the terminal identifier, the user information and the information code of the electronic ticket into a message and publishing it to the message queue.
[0062] As described above, when checking tickets, the ticket checking terminal needs to verify the status of the electronic ticket in addition to verifying the authenticity of the electronic ticket, such as the valid / invalid status of the electronic ticket or the valid / refund status of the electronic ticket. Therefore, in an embodiment of the present application, the status information of the electronic ticket includes information about the invalid status or refund status of the electronic ticket.
[0063] Through the information of the invalid state or refund state of the electronic ticket, the ticket checking terminal can verify the invalid / refund state of the electronic ticket, thereby preventing users holding electronic tickets in invalid / refund state from entering. In a specific implementation, the information of the invalid state or refund state of the electronic ticket can be used by the ticket checking terminal to verify and determine the invalid state or refund state of the electronic ticket, thereby preventing the corresponding user from entering. Alternatively, the information of the invalid state or refund state of the electronic ticket is used to prevent the user terminal from displaying the electronic ticket information, so that the ticket checking terminal cannot pass the verification, so that the corresponding user can be prevented from entering.
[0064] In addition, since the status of the electronic ticket may change, for example, it becomes invalid due to expiration, becomes a refund state due to a refund operation, etc., the ticketing system needs to regularly refresh the status information of the electronic ticket. That is, in the embodiment of the present application, the status information of the electronic ticket is refreshed at a predetermined time interval.
[0065] In addition, the refresh status of the electronic ticket also needs to be updated and published to the message queue in a timely manner.
[0066] That is, in the electronic ticket information processing method according to the embodiment of the present application, publishing the verification information of the electronic ticket to the message queue includes: updating the information code of the electronic ticket based on the refresh status information of the electronic ticket; and publishing the updated electronic ticket information code to the message queue.
[0067] In addition, in the embodiment of the present application, a task scheduling mechanism may be included. Specifically, with the authorization of the user, the connection information may be cached, and the task scheduling may be actively scheduled at intervals to query the device ID that currently has a long connection from the connection information cache, query the user's account ID, and then query the verification information of the electronic ticket under the account ID. And, for example, the device ID, account ID and electronic ticket information code may be bound in a message packet and published to a message queue. This is to ensure that the update of the detailed information of the electronic ticket corresponding to the device ID with a long connection can be pushed to the user's terminal device, and the update of the detailed information of the electronic ticket corresponding to the account ID associated with the device ID can be pushed to the user's terminal device. Of course, those skilled in the art will understand that if the server is under great pressure, only the data of the electronic ticket in the refund state may be pushed to reduce the amount of data.
[0068] Therefore, in the electronic ticket information processing method according to the embodiment of the present application, the information of the connection is obtained and the terminal identifier is read, and the user information is queried based on the correspondence between the terminal identifier and the user information, including: storing the obtained connection information in a connection information cache; querying the connection information cache at predetermined time intervals to obtain information on multiple connections that are currently established and read multiple terminal identifiers; and, querying user information of multiple users based on the multiple terminal identifiers.
[0069] S240, sending the verification information of the electronic ticket to the user terminal, wherein the verification information of the electronic ticket is used to be displayed on the user terminal so as to be verified by the ticket checking terminal using a local area network connection with the user terminal.
[0070] Specifically, the message queue can be subscribed by the message queue server entity to obtain the verification information of the electronic ticket and push it to the user's terminal device. In addition, after receiving the verification information of the electronic ticket, the user's terminal device can verify whether the device ID and account ID in the received information are consistent, and then update the information code of the electronic ticket, such as the status of the QR code. In addition to the necessary decryption and authenticity verification of the information code of the electronic ticket, the ticket checking device also needs to verify the status of the electronic ticket on the information code.
[0071] That is, in the electronic ticket information processing method according to the embodiment of the present application, sending the verification information of the electronic ticket to the user terminal includes: the message queue server entity that subscribes to the status of the message queue obtains the verification information of the electronic ticket from the message queue; and, sending the verification information of the electronic ticket to the user terminal through the connection between the user terminal and the user terminal.
[0072] In this way, since ticket checking only relies on the verification information of the electronic ticket obtained by the user's terminal device from the ticketing system, such as the information code of the electronic ticket, the ticket checking terminal can complete the ticket checking in a local area network environment, such as the local area network environment of a cinema, thereby improving the efficiency of ticket checking. In addition, since the verification information of the electronic ticket has been uniformly supplemented according to the specifications of the electronic ticket information code, the user will not miss the information of the electronic ticket that needs to be understood, thereby improving the convenience of the user.
[0073] When checking tickets, the user's terminal device can establish a connection with the ticketing system by installing the ticketing system's application, such as APP / H5 application, to obtain the true status of the electronic ticket in real time, solving the problem that the ticket checking terminal cannot read the status of the movie ticket. At the same time, the connection can be achieved in real time, and the user's terminal device has the advantage of low power consumption.
[0074] Application Examples
[0075] Figure 4A schematic diagram illustrating an application example of the electronic ticket information processing method according to an embodiment of the present application is illustrated.
[0076] like Figure 4 As shown, in the ticket checking scheme of the electronic movie ticket, the ticketing system 320 first obtains the verification information of the electronic movie ticket from the ticketing comprehensive information library 330, that is, the necessary information required to verify the electronic movie ticket, including the name of the theater and the name of the film. Then, in the ticket checking link, the movie ticket status interface of the ticketing comprehensive information library is no longer queried, and the information code of the electronic movie ticket containing the verification information of the electronic movie ticket and the latest status of the movie ticket is sent to the user's mobile phone through the ticket purchasing program on the user's mobile phone and the service end communication of the ticketing system. In this way, the user can complete the ticket checking in the local area network of the cinema through the information code of the initial electronic movie ticket. That is, the ticket checking terminal 310 of the cinema completes the verification through the local area network connection with the cinema proxy server 340. Therefore, for the verification information and status of the movie ticket, the check is changed from relying on the network link to using the two-dimensional code refresh control of the electronic movie ticket. Here, those skilled in the art can understand that the data can be updated regularly between the cinema proxy server 340 and the ticketing system 320.
[0077] Figure 5 The figure shows a schematic diagram of the system architecture of an application example of the electronic ticket information processing method according to an embodiment of the present application. Figure 5 As shown, the system architecture of the application example of the electronic ticket information processing method according to the embodiment of the present application includes a gateway, a message queue server entity group, a message queue and a movie ticket inspection monitoring module.
[0078] Specifically, the user's mobile phone carries the mobile phone ID and is linked to the gateway of the ticketing system. The gateway is responsible for assigning mobile phone A to one of the message queue server entities in the message queue server entity group, and as mentioned above, the gateway includes a load balancer and a session retainer for load balancing and session retention. The message queue server entity performs message parsing, authentication and verification on the information carried by mobile phone A. After the authentication is passed, a session is established, that is, the long connection is successfully established, and the message queue server entity publishes this session information to the message queue.
[0079] The movie ticket inspection status monitoring module is always in the state of subscribing to the message queue. The movie ticket inspection status monitoring module includes a session information processor, which obtains a new session from the queue, reads the device ID therein, obtains the saved mapping relationship between the device ID and the user login account ID, and stores it in the session information cache, and hands over the subsequent tasks to the order movie ticket status processor. The order movie ticket status processor queries the order and movie ticket status according to the user account ID, and binds the device ID, user account ID, movie ticket QR code and status in a message package and publishes it to the message queue. The message queue server entity is always in the state of subscribing to the message queue, and after receiving the movie ticket status update message, it pushes it to the user device.
[0080] In addition, the task scheduler module actively schedules the order ticket status processor at intervals, queries the device and user account ID that currently has a long connection from the session information cache, and then queries the status of the spot-checked movie tickets under the user account ID, and binds the device ID, user account ID, movie ticket QR code and status in a message package and publishes it to the message queue. The message queue is subscribed to the order ticket status information by the message queue server entity and pushed to the user's device.
[0081] Exemplary Devices
[0082] Figure 6 The figure illustrates a block diagram of an electronic ticket processing device according to an embodiment of the present application.
[0083] like Figure 6 As shown, the electronic ticket information processing device 400 according to the embodiment of the present application includes: an information acquisition unit 410, used to obtain the verification information of the electronic ticket from the ticket comprehensive information library; a connection establishment unit 420, used to establish a connection with a user terminal; an information query unit 430, used to query the user information and the verification information of the electronic ticket corresponding to the user terminal; and an information push unit 440, used to send the verification information of the electronic ticket to the user terminal, and the verification information of the electronic ticket is used to be displayed on the user terminal so as to be verified by the ticket checking terminal using the local area network connection with the user terminal.
[0084] In one example, in the above-mentioned electronic ticket information processing device 400, the connection establishment unit 420 is used to: access the user terminal based on the terminal identifier of the user terminal and allocate a message queue server entity to the user terminal; the message queue server entity parses, authenticates and authenticates the terminal identifier; and, in response to successful authentication, establishes a connection with the user terminal and maintains the connection.
[0085] In one example, in the above-mentioned electronic ticket information processing device 400, the information query unit 430 is used to: publish the connection information to the message queue; obtain the connection information and read the terminal identifier, and query the user information based on the correspondence between the terminal identifier and the user information; query the verification information of the electronic ticket corresponding to the user information based on the user information; and publish the verification information of the electronic ticket to the message queue.
[0086] In one example, in the above-mentioned electronic ticket information processing device 400, the information query unit 430 is further used to: generate an information code of the electronic ticket based on the verification information of the electronic ticket, and the information code further includes the status information of the electronic ticket; and encapsulate the terminal identifier, the user information and the information code of the electronic ticket into a message and publish it to the message queue.
[0087] In one example, in the above-mentioned electronic ticket information processing device 400, the status information of the electronic ticket includes information about the invalid status or refund status of the electronic ticket.
[0088] In one example, in the above-mentioned electronic ticket information processing device 400, the information on the invalid status or refund status of the electronic ticket is used for verification by the ticket checking terminal to determine the invalid status or refund status of the electronic ticket; or, the information on the invalid status or refund status of the electronic ticket is used to prevent the user terminal from displaying the electronic ticket information.
[0089] In one example, in the electronic ticket information processing apparatus 400, the status information of the electronic ticket is refreshed at predetermined time intervals.
[0090] In one example, in the above-mentioned electronic ticket information processing device 400, the information query unit 430 publishes the verification information of the electronic ticket to the message queue, including: updating the information code of the electronic ticket based on the refresh status information of the electronic ticket; and publishing the updated electronic ticket information code to the message queue.
[0091] In one example, in the above-mentioned electronic ticket information processing device 400, the information query unit 430 obtains the information of the connection and reads the terminal identifier, and the user information is queried based on the correspondence between the terminal identifier and the user information, including: storing the obtained connection information in a connection information cache; querying the connection information cache at a predetermined time interval to obtain information on multiple connections that are currently established and read multiple terminal identifiers; and, querying user information of multiple users based on the multiple terminal identifiers.
[0092] In one example, in the above-mentioned electronic ticket information processing device 400, the information push unit 440 is used to: obtain the verification information of the electronic ticket from the message queue by the message queue server entity that subscribes to the status of the message queue; and send the verification information of the electronic ticket to the user terminal through the connection between the user terminal.
[0093] Here, those skilled in the art will appreciate that the specific functions and operations of the various units and modules in the electronic ticket information processing device 400 have been described in detail above. Figures 1 to 6 The electronic ticket information processing method has been described in detail, and therefore, its repeated description will be omitted.
[0094] As described above, the electronic ticket information processing device 400 according to the embodiment of the present application can be implemented in various terminal devices, such as a server of a ticketing system. In one example, the electronic ticket information processing device 400 according to the embodiment of the present application can be integrated into the terminal device as a software module and / or a hardware module. For example, it can be a software module in the operating system of the terminal device, or it can be an application developed for the terminal device; of course, the electronic ticket information processing device 400 can also be one of the many hardware modules of the terminal device.
[0095] Alternatively, in another example, the electronic ticket information processing apparatus 400 and the terminal device may also be separate devices, and they may be connected to the device via a wired and / or wireless network, and transmit interactive information in accordance with an agreed data format.
[0096] Exemplary Electronic Devices
[0097] Below, reference Figure 7 To describe an electronic device according to an embodiment of the present application.
[0098] Figure 7 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0099] like Figure 7 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .
[0100] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0101] The memory 12 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the electronic ticket information processing method of each embodiment of the present application described above and / or other desired functions. Various contents such as verification information of the electronic ticket, user information, etc. may also be stored in the computer-readable storage medium.
[0102] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0103] The input device 13 may include, for example, a keyboard, a mouse, etc.
[0104] The output device 14 can output various information to the outside, including the information code of the electronic ticket, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0105] Of course, to simplify, Figure 7 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.
[0106] Exemplary computer program products and computer-readable storage media
[0107] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the electronic ticket information processing method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0108] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the first user computing device, partially on the first user computing device, as an independent software package, partially on the first user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0109] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the electronic ticket information processing method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0110] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0111] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0112] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0113] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0114] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0115] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. An electronic ticket information processing method, comprising: Obtaining verification information of the electronic ticket from the ticketing comprehensive information database; accessing the user terminal based on a terminal identifier of the user terminal and allocating a message queue server entity to the user terminal; The message queue server entity parses, authenticates and authenticates the terminal identifier; as well as, In response to successful authentication, a connection with the user terminal is established and maintained; and the same user terminal is connected to the same message queue server entity each time; Querying user information corresponding to the user terminal and verification information of the electronic ticket; as well as sending verification information of the electronic ticket to the user terminal, the verification information of the electronic ticket being used to be displayed on the user terminal for verification by the ticket checking terminal using a local area network connection with the user terminal; Wherein, querying the user information corresponding to the user terminal and the verification information of the electronic ticket includes: Publishing information of the connection to a message queue; Obtaining the connection information and reading the terminal identifier, and querying the user information based on the correspondence between the terminal identifier and the user information; Querying verification information of the electronic ticket corresponding to the user information based on the user information; and Publishing the verification information of the electronic ticket to a message queue; generating an information code of the electronic ticket based on the verification information of the electronic ticket, the information code further including status information of the electronic ticket; and Encapsulating the terminal identifier, the user information and the information code of the electronic ticket into a message and publishing it to a message queue; Wherein, the status information of the electronic ticket is refreshed at a predetermined time interval; The method further includes updating the information code of the electronic ticket based on the refreshed status information of the electronic ticket.
2. The electronic ticket information processing method according to claim 1, wherein: The status information of the electronic ticket includes information on the invalid status or refund status of the electronic ticket; The information of the invalid state or refund state of the electronic ticket is used for verification by the ticket checking terminal to determine the invalid state or refund state of the electronic ticket; or The information of the invalid status or refund status of the electronic ticket is used to prevent the user terminal from displaying the electronic ticket information.
3. The electronic ticket information processing method according to claim 2, Publishing the verification information of the electronic ticket to a message queue includes: The updated electronic ticket information code is published to the message queue.
4. The electronic ticket information processing method according to claim 1, wherein: Obtaining the connection information and reading the terminal identifier, and querying the user information based on the correspondence between the terminal identifier and the user information includes: The obtained connection information is stored in the connection information cache; querying the connection information cache at predetermined time intervals to obtain information about a plurality of currently established connections and read a plurality of terminal identifiers; and User information of multiple users is queried based on the multiple terminal identifiers.
5. The electronic ticket information processing method according to claim 1, wherein: Sending the verification information of the electronic ticket to the user terminal comprises: The message queue server entity subscribing to the status of the message queue obtains the verification information of the electronic ticket from the message queue; and The verification information of the electronic ticket is sent to the user terminal through the connection between the user terminal and the user terminal.
6. An electronic ticket information processing device, comprising: An information acquisition unit, used to obtain verification information of the electronic ticket from the ticketing comprehensive information database; A connection establishing unit, configured to access the user terminal based on a terminal identifier of the user terminal and allocate a message queue server entity to the user terminal; the message queue server entity parses, authenticates and authenticates the terminal identifier; and, in response to successful authentication, establishing a connection with the user terminal and maintaining the connection; and the same user terminal is connected to the same message queue server entity each time; An information query unit, used to query the user information corresponding to the user terminal and the verification information of the electronic ticket; and an information push unit for sending verification information of the electronic ticket to the user terminal, the verification information of the electronic ticket being used for display on the user terminal for verification by the ticket checking terminal using a local area network connection with the user terminal; Wherein, the information query unit is specifically used for: Publishing information of the connection to a message queue; Obtaining the connection information and reading the terminal identifier, and querying the user information based on the correspondence between the terminal identifier and the user information; Querying verification information of the electronic ticket corresponding to the user information based on the user information; and Publishing the verification information of the electronic ticket to a message queue; generating an information code of the electronic ticket based on the verification information of the electronic ticket, the information code further including status information of the electronic ticket; and Encapsulating the terminal identifier, the user information and the information code of the electronic ticket into a message and publishing it to a message queue; Wherein, the status information of the electronic ticket is refreshed at a predetermined time interval; the information query unit is also used to update the information code of the electronic ticket based on the refreshed status information of the electronic ticket.
7. An electronic device comprising: processor; as well as A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the electronic ticket information processing method as described in any one of claims 1-5.
Citation Information
Patent Citations
Image code-based electronic ticket checking method and system
CN105574629A
Hbase connection dynamic keeping method and device, storage medium and system
CN111245887A
