Ticket business safety access system and method based on terminal network self-adaption and communication channel matching
By introducing an intermediate server between the ticket purchasing terminal and the ticketing server to perform network adaptation and communication channel matching, the problems of ticketing system crash and insufficient security when facing large-scale requests are solved, and more efficient access security and protection are achieved.
Patent Information
- Application Number
- CN202511278893.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-09
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-09-09
Smart Images

Figure CN120768690A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ticket security access, and in particular to a ticket security access system and method based on terminal network adaptation and communication channel matching. Background Art
[0002] With the popularity of online ticket purchases, the demand for access from different clients to traditional ticketing servers has greatly increased. Even though many clients have already installed ticketing applications, there are still users who complete ticket inquiries or purchases through WeChat applets or web pages. At the same time, as the compatibility between smart devices and ticketing systems becomes increasingly higher, many operators can now use more smart devices as ticketing clients for ticket inquiry and purchase operations.
[0003] Currently, regardless of whether users use ticketing application software, web pages, or mini-programs to check or purchase tickets, the ticket purchasing client used by users directly accesses the ticketing server. Although this is conducive to quickly obtaining ticket query results or ticket purchase results, due to the tampering of a single client, if a large number of illegal requests attack the ticketing server in a short period of time, not only will the ticketing server crash instantly, causing delays or freezes, but the delay or freeze of the ticketing server will also make it impossible to feedback the query results and ticket purchase results to the client.
[0004] Refer to the patent application with application number CN202311304759.4, which provides an access-based anti-scalper ticket purchasing method, device, server and storage medium. When receiving a client's access request to the ticketing system, it performs permission verification on the client's access information, and after the permission verification is passed, generates a first encrypted string based on the access information and returns it to the client, so that the client can log in to the ticketing system, preventing scalpers from logging in; generates a second encrypted string based on the first encrypted string and the client's ticket purchase information and returns it to the client, and when receiving the decryption result based on the second encrypted string sent by the client within a preset time period, determines whether the client's ticket purchase operation is allowed according to the decryption result, thereby preventing scalpers from purchasing tickets.
[0005] However, although the above patent application uses multiple encryptions to determine whether the client is operating for a scalper, effectively preventing scalping behavior and improving the security of the ticketing system, since the client and the ticketing system are still directly connected, the security of the ticketing system needs to rely on the encryption algorithm. Once the encryption algorithm is cracked, the security problem of the ticketing system cannot be solved. Summary of the Invention
[0006] The purpose of the present invention is to provide a ticket security access system and method based on terminal network adaptation and communication channel matching. A first intermediate server is added between the ticket purchasing terminal and the ticket server. The legitimacy of the ticket purchasing terminal is verified by the first intermediate server, which can avoid the low security problem of direct connection between the ticket purchasing terminal and the ticket server, and does not need to rely too much on encryption algorithms, thereby improving the access security of the ticket server.
[0007] The present invention solves the technical problem and adopts the following technical solution: In one aspect, the present invention provides a ticket security access system based on terminal network adaptation and communication channel matching, comprising: The ticket purchasing terminal is configured to obtain the current network type information and terminal type information of the ticket purchasing terminal when displaying the ticket purchasing interface, generate a channel establishment instruction based on the terminal type information and the current network type information, and send the instruction to the first intermediate server; and used to send a query instruction or a ticket purchase instruction to the first intermediate server when it is obtained; The first intermediate server is configured to establish a communication channel corresponding to the terminal type information and the current network type information and an instruction processing unit after each communication channel upon receiving a channel establishment instruction; It is also used to match the communication channel when receiving a query instruction or ticket purchase instruction, send it to the instruction processing unit behind the communication channel through the matched communication channel, and process the query instruction or ticket purchase instruction through the instruction processing unit, and determine whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result; The ticketing server is used to receive the query instruction or ticket purchase instruction processed by the first intermediate server, generate ticket information in response to the query instruction or ticket purchase instruction, and forward it to the corresponding ticket purchase terminal through the first intermediate server or send it directly to the corresponding ticket purchase terminal.
[0008] As a further optimization, the ticket purchasing terminal includes a user's mobile phone, a user's computer, an automatic ticket vending machine and a manual ticket vending computer; The terminal type information of the ticket purchasing terminal is the unique identification information of the current ticket purchasing terminal; The current network type information of the ticket purchasing terminal refers to: If the ticket purchasing terminal is a user's mobile phone, the network type information includes wireless network and data traffic network, and the current network type information refers to: wireless data network or data traffic network; when the wireless data network and data traffic network are automatically switched, the network before the switching is selected as the current network type information; If the ticket purchasing terminal is a user's computer, the network type information includes wireless network and wired network, and the current network type information refers to: wireless network or wired network.
[0009] As a further optimization, when the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket vending computer, the system further includes a second intermediate server; The second intermediate server is set within a first specified distance range from the automatic ticket vending machine or the manual ticket vending computer, and the automatic ticket vending machine and the manual ticket vending computer are both connected to the second intermediate server via a wired network; When the automatic ticket vending machine or manual ticket vending computer displays the ticket purchase interface, the generated channel establishment instruction is first sent to the second intermediate server via the wired network, and then sent to the first intermediate server via the second intermediate server via the wired network or wireless network; When the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket vending computer, the current network type information includes: a wired network between the automatic ticket vending machine or manual ticket vending computer and the second intermediate server, and a wired network or wireless network between the second intermediate server and the first intermediate server.
[0010] As a further optimization, the ticket purchasing terminal generates a channel establishment instruction at a first preset time node, and obtains a query instruction or a ticket purchasing instruction at a second preset time node; The first preset time node is earlier than the second time node, and after the channel establishment instruction is generated, the channel establishment instruction is regenerated at a first specified time interval, and when the channel establishment instruction is regenerated, the query instruction or ticket purchase instruction obtained by the ticket purchasing terminal is cached in the current ticket purchasing terminal; When the first intermediate server re-establishes the communication channel corresponding to the terminal type information and the current network type information and the instruction processing unit after each communication channel, the ticket purchasing terminal sends the cached query instruction or ticket purchasing instruction to the first intermediate server.
[0011] As a further optimization, the first intermediate server includes a first receiving unit, a second receiving unit, a first cache unit, and a second cache unit; The first receiving unit is used to receive a channel establishment instruction and cache the channel establishment instruction in the first cache unit after the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information and the instruction processing unit after each communication channel; The second receiving unit is used to receive a query instruction or a ticket purchase instruction, and if the first intermediate server determines that the query instruction or the ticket purchase instruction does not match after performing communication channel matching, the query instruction or the ticket purchase instruction is cached in the first cache unit, and log information is generated by the first cache unit; If the query instruction or the ticket purchase instruction is determined to be matched, the query instruction or the ticket purchase instruction is sent to the instruction processing unit behind the matched communication channel, and the query instruction or the ticket purchase instruction is processed by the instruction processing unit. If the instruction processing unit determines to forward the processed query instruction or the ticket purchase instruction to the ticket service server according to a processing result, the query instruction or the ticket purchase instruction is cached to the second cache unit, otherwise, the query instruction or the ticket purchase instruction is cached to the first cache unit.
[0012] As further optimization, the query instruction or the ticket purchase instruction cached in the first cache unit and the generated log information are sequentially synchronized to the second intermediate server for storage according to the time of caching or generating; The query instruction or the ticket purchase instruction and the log information stored in the second intermediate server are set to be only readable and not modifiable.
[0013] As further optimization, the instruction processing unit behind each communication channel is a processor with an instruction processing function selected from the first intermediate server; When the first intermediate server receives a channel establishment instruction each time, the first intermediate server selects a different processor with an instruction processing function as the instruction processing unit behind the corresponding communication channel according to a processor selection rule.
[0014] As further optimization, the processor selection rule refers to: If there is only one processor in the first intermediate server, the processor is directly selected as the instruction processing unit; If there are multiple processors in the first intermediate server, the first intermediate server randomly selects a corresponding processor as the instruction processing unit according to the currently received channel establishment instruction. After the ticket purchase terminal re-generates the channel establishment instruction, the first intermediate server randomly selects a corresponding processor as the instruction processing unit again according to the currently received channel establishment instruction.
[0015] As further optimization, the processing of the query instruction or the ticket purchase instruction by the instruction processing unit and the determination of whether to forward the processed query instruction or the ticket purchase instruction to the ticket service server according to the processing result refer to: The terminal type information and the network type information of all ticket purchase terminals are stored in the first intermediate server; When the first intermediate server receives the query instruction or the ticket purchase instruction, it is determined whether the ticket purchase terminal type information and the network type information corresponding to the ticket purchase terminal where the query instruction or the ticket purchase instruction is located belong to the information already stored in the first intermediate server. If they belong to, it is determined whether the time of generating the channel establishment instruction is earlier than the time of obtaining the query instruction or the ticket purchase instruction before re-generating the channel establishment instruction. If it is earlier, the query instruction or the ticket purchase instruction is forwarded to the ticket service server; Otherwise, the query instruction or ticket purchase instruction is marked by the current instruction processing unit and forwarded to the second intermediate server.
[0016] On the other hand, the present invention also provides a ticket security access method based on terminal network adaptation and communication channel matching, which is applied to the ticket security access system based on terminal network adaptation and communication channel matching, and comprises the following steps: When displaying the ticket purchasing interface, the ticket purchasing terminal obtains the current network type information and terminal type information of the ticket purchasing terminal, generates a channel establishment instruction based on the terminal type information and the current network type information, and sends the instruction to the first intermediate server; When receiving the channel establishment instruction, the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information and an instruction processing unit after each communication channel; When the ticket purchasing terminal obtains the query instruction or the ticket purchasing instruction, it sends it to the first intermediate server; The first intermediate server matches the communication channel when receiving the query instruction or ticket purchase instruction, sends it to the instruction processing unit behind the communication channel through the matched communication channel, processes the query instruction or ticket purchase instruction through the instruction processing unit, and determines whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result; The ticket server receives the query instruction or ticket purchase instruction processed by the first intermediate server, generates ticket information in response to the query instruction or ticket purchase instruction, and forwards it to the corresponding ticket purchase terminal through the first intermediate server or sends it directly to the corresponding ticket purchase terminal.
[0017] The beneficial effects of the present invention are as follows: the present invention does not adopt the traditional method of directly connecting the ticket purchasing terminal and the ticketing server to complete ticket checking or purchasing, but instead adds a first intermediate server, and configures the ticket purchasing terminal, the first intermediate server and the ticketing server separately: First, for the ticket purchasing terminal, when the ticket purchasing interface is displayed, the current network type information and terminal type information of the ticket purchasing terminal are obtained, and a channel establishment instruction is generated based on the terminal type information and the current network type information, and sent to the first intermediate server. When the first intermediate server receives the channel establishment instruction, it establishes a communication channel corresponding to the terminal type information and the current network type information, as well as an instruction processing unit after each communication channel; secondly, the query instruction or ticket purchase instruction is obtained through the ticket terminal and sent to the first intermediate server. When the first intermediate server receives the query instruction or ticket purchase instruction, it matches the communication channel and sends it to the instruction processing unit after the communication channel through the matched communication channel. The query instruction or ticket purchase instruction is processed by the instruction processing unit, and it is determined whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result; finally, the ticket server receives the query instruction or ticket purchase instruction processed by the first intermediate server, generates ticket information in response to the query instruction or ticket purchase instruction, and forwards it to the corresponding ticket purchasing terminal through the first intermediate server or sends it directly to the corresponding ticket purchasing terminal.
[0018] Therefore, the present invention avoids the problem of over-reliance on encryption algorithms when traditional ticketing terminals are directly connected to ticket servers for ticket checking or purchasing. It not only ensures the access security of the ticketing server, but also avoids the high latency and lag problems caused by large batches of requests in a short period of time through the first intermediate server. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the structure of a ticket security access system based on terminal network adaptation and communication channel matching in Example 1 of the present invention; Figure 2 This is a flowchart of a ticket security access method based on terminal network adaptation and communication channel matching in embodiment 2 of the present invention. DETAILED DESCRIPTION
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0021] Example 1 This embodiment provides a ticket security access system based on terminal network adaptation and communication channel matching. Figure 1 , among which, the system mainly consists of the following parts: The ticket purchasing terminal is configured to obtain the current network type information and terminal type information of the ticket purchasing terminal when displaying the ticket purchasing interface, generate a channel establishment instruction based on the terminal type information and the current network type information, and send the instruction to the first intermediate server; and used to send a query instruction or a ticket purchase instruction to the first intermediate server when it is obtained; The first intermediate server is configured to establish a communication channel corresponding to the terminal type information and the current network type information and an instruction processing unit after each communication channel upon receiving a channel establishment instruction; It is also used to match the communication channel when receiving a query instruction or ticket purchase instruction, send it to the instruction processing unit behind the communication channel through the matched communication channel, and process the query instruction or ticket purchase instruction through the instruction processing unit, and determine whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result; The ticketing server is used to receive the query instruction or ticket purchase instruction processed by the first intermediate server, generate ticket information in response to the query instruction or ticket purchase instruction, and forward it to the corresponding ticket purchase terminal through the first intermediate server or send it directly to the corresponding ticket purchase terminal.
[0022] In this embodiment, although the ticket checking or purchasing method of directly connecting the traditional ticket purchasing terminal to the ticket server is not used, and it does not rely on the encryption algorithm, the ticket purchasing terminal and the ticket server still need to be configured. At the same time, since the first intermediate server is added in this embodiment, the verification operation of the ticket purchasing terminal needs to be completed through the first intermediate server, so the first intermediate server also needs to be configured.
[0023] In actual application, the ticket purchasing terminal can be a user's mobile phone, user's computer and other smart devices, or an automatic ticket vending machine or a manual ticket vending computer at a bus station or outlet. However, for different types of ticket purchasing terminals, due to the large number of types, and for most ticket purchasing terminals, users may use the installed ticket purchasing software to check or purchase tickets, while for ticket purchasing terminals such as user's mobile phone or user's computer, users may directly use WeChat applets or web pages to check or purchase tickets. Therefore, if the traditional ticket purchasing terminal is directly connected to the ticketing server, it can provide more convenient intrusion conditions for illegal intruders. At the same time, due to the different terminal types, The network used is generally a wired network or a wireless network. For special user mobile phones, they may not turn off the data traffic network while connecting to the wireless network. Although the wireless network is used for networking operations by default, when the signal quality is poor or the wireless network is disconnected, it will automatically switch to the data traffic network. Therefore, if you use the mobile phone directly to check or buy tickets at this time, the ticket checking instruction or ticket buying instruction may be lost. Therefore, in this embodiment, different types of ticket purchasing terminals and ticket purchasing terminals of different network types need to be configured in advance, so that the first intermediate server can complete the forwarding operation of the query instruction or ticket buying instruction in a relatively safe manner.
[0024] Therefore, in this embodiment, the ticket purchasing terminal may include a user's mobile phone, a user's computer, an automatic ticket vending machine, and a manual ticket vending computer, etc. Since different ticket purchasing terminals differ in type, and each ticket purchasing terminal has its own unique identification information to distinguish it from other ticket purchasing terminals, in this embodiment, the terminal type information of the ticket purchasing terminal may be the unique identification information of the current ticket purchasing terminal.
[0025] As for the network type, since different ticket purchasing terminals have different network types, and not just wired networks and wireless networks, it is necessary to define different network types so that the first intermediate server can subsequently complete the establishment of the communication channel and the instruction processing unit of the ticket purchasing terminal. Therefore, in this embodiment, the current network type information of the ticket purchasing terminal can refer to: If the ticket purchasing terminal is a user's mobile phone, the network type information includes wireless network and data traffic network, and the current network type information refers to: wireless data network or data traffic network; when the wireless data network and data traffic network are automatically switched, the network before the switching is selected as the current network type information; If the ticket purchasing terminal is a user's computer, the network type information includes wireless network and wired network, and the current network type information refers to: wireless network or wired network.
[0026] It should be noted that traditional automatic ticket vending machines or manual ticket computers are generally installed in passenger stations. Some offline outlets also have some manual ticket computers. On this basis, in order to ensure the efficiency of establishing the communication channel and the instruction processing unit, as well as the transmission efficiency of subsequent query instructions or ticket purchase instructions, and to further improve the security of the instructions entering the first intermediate server, in this embodiment, a second intermediate server needs to be added. Therefore, when the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket computer, the system also needs to include a second intermediate server. The second intermediate server is set within a first specified distance range from the automatic ticket vending machine or the manual ticket vending computer, and the automatic ticket vending machine and the manual ticket vending computer are both connected to the second intermediate server via a wired network; When the automatic ticket vending machine or manual ticket vending computer displays the ticket purchase interface, the generated channel establishment instruction is first sent to the second intermediate server via the wired network, and then sent to the first intermediate server via the second intermediate server via the wired network or wireless network; When the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket vending computer, the current network type information includes: a wired network between the automatic ticket vending machine or manual ticket vending computer and the second intermediate server, and a wired network or wireless network between the second intermediate server and the first intermediate server.
[0027] Here, the second intermediate server can not only improve the security of the first intermediate server receiving instructions, but also enable the channel establishment instructions of the ticket purchasing terminal to be sent to the first intermediate server through the wired network using the second intermediate server when the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket selling computer, thereby avoiding malicious tampering operations by "scalpers".
[0028] In actual application, when a user opens a ticket purchase application software or a ticket purchase interface on a web page, it generally takes a while before the user can check or purchase a ticket. Before recognizing the ticket check or purchase operation input by the user, the ticket purchase terminal will first display the ticket purchase interface. Therefore, before the user checks or purchases a ticket, the ticket purchase terminal can cooperate with the first intermediate server to complete the establishment of the communication channel and the instruction processing unit. In order to further improve the security of the first intermediate server in subsequently forwarding the query or ticket purchase instruction, the channel establishment instruction can be generated again at intervals. Therefore, in this embodiment, the ticket purchase terminal generates a channel establishment instruction at a first preset time node, and obtains the query instruction or ticket purchase instruction at a second preset time node; The first preset time node is earlier than the second time node, and after the channel establishment instruction is generated, the channel establishment instruction is regenerated at a first specified time interval, and when the channel establishment instruction is regenerated, the query instruction or ticket purchase instruction obtained by the ticket purchasing terminal is cached in the current ticket purchasing terminal; When the first intermediate server re-establishes the communication channel corresponding to the terminal type information and the current network type information and the instruction processing unit after each communication channel, the ticket purchasing terminal sends the cached query instruction or ticket purchasing instruction to the first intermediate server.
[0029] It should be noted that, since the first intermediate server in this embodiment needs to receive channel establishment instructions and query or ticket purchase instructions, in order to improve the processing efficiency of the first intermediate server and reduce the delay in the subsequent ticket server generating ticket information, in this embodiment, corresponding receiving units and cache units need to be established in the first intermediate server for these two types of instructions respectively. Therefore, in this embodiment, the first intermediate server may include a first receiving unit, a second receiving unit, a first cache unit, and a second cache unit; The first receiving unit is used to receive a channel establishment instruction and cache the channel establishment instruction in the first cache unit after the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information and the instruction processing unit after each communication channel; The second receiving unit is used to receive a query instruction or a ticket purchase instruction, and if the first intermediate server determines that the query instruction or the ticket purchase instruction does not match after performing communication channel matching, the query instruction or the ticket purchase instruction is cached in the first cache unit, and log information is generated by the first cache unit; If it is determined that the query instruction or ticket purchase instruction matches, it will be sent to the instruction processing unit behind the communication channel through the matching communication channel, and the query instruction or ticket purchase instruction will be processed by the instruction processing unit. If the instruction processing unit determines to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result, the query instruction or ticket purchase instruction will be cached in the second cache unit; otherwise, it will be cached in the first cache unit.
[0030] Here, since the first cache unit generates log information and channel establishment instructions, the operation and maintenance personnel can directly know the source type and source time of the illegal intruder through the first cache unit.
[0031] In order to trace the source of illegal intrusions in the entire system, this embodiment can also use a second intermediate server to complete the backup operation of the information stored in the first cache unit. Therefore, in this embodiment, the query instructions or ticket purchase instructions cached in the first cache unit and the generated log information are synchronized to the second intermediate server in sequence according to the time of caching or generation for storage; The query instructions or ticket purchase instructions and log information stored in the second intermediate server are set to be readable only and not modifiable.
[0032] During actual application, since this embodiment requires the use of the first intermediate server to establish corresponding communication channels and instruction processing units for different types of ticket purchasing terminals and ticket purchasing terminals of different network types, and all of these are completed in the first intermediate server, at this time, if an illegal tamperer invades the first intermediate server, if the communication channel and instruction processing unit of the first intermediate server are not updated, there will still be security risks in the subsequent ticket servers. Therefore, in order to improve the security of the ticket server, in this embodiment, the various processors in the first intermediate server can be used to complete the function of the instruction processing unit, and in different update rounds, the processor needs to follow the corresponding selection rules in sequence to ensure the security of the first intermediate server. Therefore, in this embodiment, the instruction processing unit after each communication channel is a processor with instruction processing function selected in the first intermediate server; each time the first intermediate server receives a channel establishment instruction, the first intermediate server selects a different processor with instruction processing function as the instruction processing unit after the corresponding communication channel according to the processor selection rule.
[0033] Here, the processor selection rule may refer to: If there is only one processor in the first intermediate server, the processor is directly selected as the instruction processing unit; If there are multiple processors in the first intermediate server, the first intermediate server randomly selects the corresponding processor as the instruction processing unit according to the currently received channel establishment instruction. After the ticket purchasing terminal regenerates the channel establishment instruction, the first intermediate server randomly selects the corresponding processor as the instruction processing unit again according to the currently received channel establishment instruction.
[0034] It should be noted that, although the relevant processor in the first intermediate server is used to complete the instruction processing function of the instruction processing unit in this embodiment, in order to avoid the security risks caused by the illegal intrusion of the first intermediate server as much as possible, it is necessary to further process the query instruction or ticket purchase instruction. Therefore, in this embodiment, the query instruction or ticket purchase instruction is processed by the instruction processing unit, and the determination of whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result means: Storing terminal type information and network type information of all ticket purchasing terminals in the first intermediate server; When the first intermediate server receives a query instruction or a ticket purchase instruction, it determines whether the ticket purchase terminal type information and network type information corresponding to the ticket purchase terminal where the query instruction or the ticket purchase instruction is located are stored in the first intermediate server. If so, before regenerating the channel establishment instruction, it determines whether the time of generating the current channel establishment instruction is earlier than the time of obtaining the query instruction or the ticket purchase instruction. If so, it forwards the query instruction or the ticket purchase instruction to the ticketing server. Otherwise, the query instruction or the ticket purchase instruction is marked by the current instruction processing unit and forwarded to the second intermediate server.
[0035] Embodiment 2 Based on the embodiment 1, the embodiment provides a ticket security access method based on terminal network self-adaptation and communication channel matching, and a flowchart thereof is shown in the following figure. Figure 2 The method can include the following steps: S1, when displaying a ticket purchase interface, the ticket purchase terminal acquires current network type information and terminal type information of the ticket purchase terminal, generates a channel establishment instruction based on the terminal type information and the current network type information, and sends the channel establishment instruction to the first intermediate server; S2, when receiving the channel establishment instruction, the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information and an instruction processing unit after each communication channel; S3, when acquiring a query instruction or a ticket purchase instruction, the ticket purchase terminal sends the query instruction or the ticket purchase instruction to the first intermediate server; S4, when receiving the query instruction or the ticket purchase instruction, the first intermediate server performs communication channel matching, sends the query instruction or the ticket purchase instruction to the instruction processing unit after the matched communication channel through the matched communication channel, processes the query instruction or the ticket purchase instruction through the instruction processing unit, and judges whether to forward the processed query instruction or the ticket purchase instruction to the ticket service server according to the processing result; S5, the ticket service server receives the query instruction or the ticket purchase instruction processed by the first intermediate server, generates ticket service information in response to the query instruction or the ticket purchase instruction, and forwards the ticket service information to the corresponding ticket purchase terminal through the first intermediate server or directly sends the ticket service information to the corresponding ticket purchase terminal.
[0036] According to the description of the embodiment 1, the application scenarios and implementation principles of the embodiment are consistent with those of the embodiment 1, and thus will not be described again.
[0037] The above only describes the preferred embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A ticket security access system based on terminal network adaptation and communication channel matching, characterized in that: include: The ticket purchasing terminal is configured to obtain the current network type information and terminal type information of the ticket purchasing terminal when displaying the ticket purchasing interface, generate a channel establishment instruction based on the terminal type information and the current network type information, and send the instruction to the first intermediate server; and used to send a query instruction or a ticket purchase instruction to the first intermediate server when it is obtained; The first intermediate server is configured to establish a communication channel corresponding to the terminal type information and the current network type information and an instruction processing unit after each communication channel upon receiving a channel establishment instruction; It is also used to match the communication channel when receiving a query instruction or ticket purchase instruction, send it to the instruction processing unit behind the communication channel through the matched communication channel, and process the query instruction or ticket purchase instruction through the instruction processing unit, and determine whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result; The ticketing server is used to receive the query instruction or ticket purchase instruction processed by the first intermediate server, generate ticket information in response to the query instruction or ticket purchase instruction, and forward it to the corresponding ticket purchase terminal through the first intermediate server or send it directly to the corresponding ticket purchase terminal.
2. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 1 is characterized in that: The ticket purchasing terminal includes a user's mobile phone, a user's computer, an automatic ticket vending machine and a manual ticket vending computer; The terminal type information of the ticket purchasing terminal is the unique identification information of the current ticket purchasing terminal; The current network type information of the ticket purchasing terminal refers to: If the ticket purchasing terminal is a user's mobile phone, the network type information includes wireless network and data traffic network, and the current network type information refers to: wireless data network or data traffic network; when the wireless data network and data traffic network are automatically switched, the network before the switching is selected as the current network type information; If the ticket purchasing terminal is a user's computer, the network type information includes wireless network and wired network, and the current network type information refers to: wireless network or wired network.
3. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 2 is characterized in that: When the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket vending computer, the system further comprises a second intermediate server; The second intermediate server is set within a first specified distance range from the automatic ticket vending machine or the manual ticket vending computer, and the automatic ticket vending machine and the manual ticket vending computer are both connected to the second intermediate server via a wired network; When the automatic ticket vending machine or manual ticket vending computer displays the ticket purchase interface, the generated channel establishment instruction is first sent to the second intermediate server via the wired network, and then sent to the first intermediate server via the second intermediate server via the wired network or wireless network; When the ticket purchasing terminal is an automatic ticket vending machine or a manual ticket vending computer, the current network type information includes: a wired network between the automatic ticket vending machine or manual ticket vending computer and the second intermediate server, and a wired network or wireless network between the second intermediate server and the first intermediate server.
4. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 1 is characterized in that: The ticket purchasing terminal generates a channel establishment instruction at a first preset time node, and obtains a query instruction or a ticket purchasing instruction at a second preset time node; The first preset time node is earlier than the second time node, and after the channel establishment instruction is generated, the channel establishment instruction is regenerated at a first specified time interval, and when the channel establishment instruction is regenerated, the query instruction or ticket purchase instruction obtained by the ticket purchasing terminal is cached in the current ticket purchasing terminal; When the first intermediate server re-establishes the communication channel corresponding to the terminal type information and the current network type information and the instruction processing unit after each communication channel, the ticket purchasing terminal sends the cached query instruction or ticket purchasing instruction to the first intermediate server.
5. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 1 is characterized in that: The first intermediate server includes a first receiving unit, a second receiving unit, a first cache unit and a second cache unit; The first receiving unit is used to receive a channel establishment instruction and cache the channel establishment instruction in the first cache unit after the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information and the instruction processing unit after each communication channel; The second receiving unit is used to receive a query instruction or a ticket purchase instruction, and if the first intermediate server determines that the query instruction or the ticket purchase instruction does not match after performing communication channel matching, the query instruction or the ticket purchase instruction is cached in the first cache unit, and log information is generated by the first cache unit; If it is determined that the query instruction or ticket purchase instruction matches, it will be sent to the instruction processing unit behind the communication channel through the matching communication channel, and the query instruction or ticket purchase instruction will be processed by the instruction processing unit. If the instruction processing unit determines to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result, the query instruction or ticket purchase instruction will be cached in the second cache unit; otherwise, it will be cached in the first cache unit.
6. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 5 is characterized in that: The query instructions or ticket purchase instructions cached in the first cache unit and the generated log information are synchronized to the second intermediate server in sequence according to the cache or generation time for storage; The query instructions or ticket purchase instructions and log information stored in the second intermediate server are set to be readable only and not modifiable.
7. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 1 is characterized in that: The instruction processing unit behind each communication channel is a processor with instruction processing function selected from the first intermediate server; Each time the first intermediate server receives a channel establishment instruction, the first intermediate server selects a different processor with instruction processing capabilities as the instruction processing unit behind the corresponding communication channel according to the processor selection rule.
8. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 7 is characterized in that: The processor selection rule is: If there is only one processor in the first intermediate server, the processor is directly selected as the instruction processing unit; If there are multiple processors in the first intermediate server, the first intermediate server randomly selects the corresponding processor as the instruction processing unit according to the currently received channel establishment instruction. After the ticket purchasing terminal regenerates the channel establishment instruction, the first intermediate server randomly selects the corresponding processor as the instruction processing unit again according to the currently received channel establishment instruction.
9. The ticket security access system based on terminal network adaptation and communication channel matching according to claim 1 or 7, characterized in that: The processing of the query instruction or ticket purchase instruction by the instruction processing unit and determining whether to forward the processed query instruction or ticket purchase instruction to the ticket server according to the processing result means: Storing terminal type information and network type information of all ticket purchasing terminals in the first intermediate server; When the first intermediate server receives a query instruction or a ticket purchase instruction, it determines whether the ticket purchase terminal type information and network type information corresponding to the ticket purchase terminal where the query instruction or the ticket purchase instruction is located are stored in the first intermediate server. If so, before regenerating the channel establishment instruction, it determines whether the time of generating the current channel establishment instruction is earlier than the time of obtaining the query instruction or the ticket purchase instruction. If so, it forwards the query instruction or the ticket purchase instruction to the ticketing server. Otherwise, the query instruction or ticket purchase instruction is marked by the current instruction processing unit and forwarded to the second intermediate server.
10. A ticket security access method based on terminal network adaptation and communication channel matching, applied to a ticket security access system based on terminal network adaptation and communication channel matching as claimed in any one of claims 1 to 9, characterized in that: The steps include: When displaying the ticket purchasing interface, the ticket purchasing terminal obtains the current network type information and terminal type information of the ticket purchasing terminal, generates a channel establishment instruction based on the terminal type information and the current network type information, and sends the instruction to the first intermediate server; When receiving the channel establishment instruction, the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information and an instruction processing unit after each communication channel; When the ticket purchasing terminal obtains the query instruction or the ticket purchasing instruction, it sends it to the first intermediate server; The first intermediate server matches the communication channel when receiving the query instruction or ticket purchase instruction, sends it to the instruction processing unit behind the communication channel through the matched communication channel, processes the query instruction or ticket purchase instruction through the instruction processing unit, and determines whether to forward the processed query instruction or ticket purchase instruction to the ticket server based on the processing result; The ticket server receives the query instruction or ticket purchase instruction processed by the first intermediate server, generates ticket information in response to the query instruction or ticket purchase instruction, and forwards it to the corresponding ticket purchase terminal through the first intermediate server or sends it directly to the corresponding ticket purchase terminal.
Citation Information
Patent Citations
Method and device for preventing cattle from buying tickets based on access, server and storage medium
CN117336061A
Data acquiring and displaying methods and devices
CN108287757A
Information exchange method and system based on preposition and postposition
CN117134983A
Automatic ticket selling anti-jamming system and method based on batch data requests
CN118301156A
HTTP proxy method and device based on dynamic certificate, equipment and medium
CN119996395A