Ticket security access system and method based on terminal network adaptation and communication channel matching

By introducing an intermediate server into the ticketing system to enable terminal network adaptation and communication channel matching, the system's crash and security issues when faced with a large number of requests are resolved, achieving more efficient access security and protection.

CN120768690BActive Publication Date: 2025-11-18BEST TECH (GRP) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511278893.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-09
Publication Date
2025-11-18
Estimated Expiration
2045-09-09

Smart Images

  • Figure CN120768690B_ABST
    Figure CN120768690B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of ticket security access, and proposes a ticket security access system and method based on terminal network self-adaptation and communication channel matching. The main scheme is as follows: when a ticket purchasing terminal obtains a query instruction or a ticket purchasing instruction, the terminal sends the instruction to a first intermediate server; the first intermediate server performs communication channel matching when receiving the query instruction or the ticket purchasing instruction, sends the instruction to an instruction processing unit after the communication channel through the matched communication channel, processes the query instruction or the ticket purchasing instruction through the instruction processing unit, and judges whether to forward the processed query instruction or the ticket purchasing instruction to a ticket server according to a processing result; the ticket server receives the query instruction or the ticket purchasing instruction processed by the first intermediate server, generates ticket information in response to the query instruction or the ticket purchasing instruction, and forwards the ticket information to a corresponding ticket purchasing terminal through the first intermediate server or directly sends the ticket information to the corresponding ticket purchasing terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ticketing security access technology, and in particular to a ticketing security access system and method based on terminal network adaptation and communication channel matching. Background Technology

[0002] With the popularization of online ticketing, the demand for access from different clients to traditional ticketing servers has increased significantly. Even though many clients have ticketing applications installed, some users still use WeChat mini programs or web pages to complete ticket inquiries or purchases. At the same time, due to the increasing compatibility between smart devices and ticketing systems, many operators can now support more smart devices as ticketing clients for inquiries and purchases.

[0003] Currently, whether using ticketing apps, websites, or mini-programs to search for or purchase tickets, the user's ticketing client directly accesses the ticketing server. While this facilitates quick access to ticket search or purchase results, the ease with which a single client can be tampered with means that a large number of malicious requests attacking the ticketing server in a short period can cause the server to crash instantly, resulting in delays or lag. Furthermore, these delays or lags can prevent the server from relaying search and purchase results back to the client.

[0004] See patent application CN202311304759.4, which provides an access-based method, device, server, and storage medium for preventing scalping. When it receives a client's access request to the ticketing system, it verifies the client's access information for permissions. Upon successful verification, it generates a first encrypted string based on the access information and returns it to the client, enabling the client to log in to the ticketing system and preventing scalpers from logging in. It then generates a second encrypted string based on the first encrypted string and the client's ticket purchase information and returns it to the client. If it receives the decryption result based on the second encrypted string from the client within a preset time period, it determines whether to allow the client's ticket purchase operation based on the decryption result, thus preventing scalping.

[0005] However, although the aforementioned patent application effectively prevents scalping and improves the security of the ticketing system by using multiple encryption methods to determine whether the client is operating on behalf of a scalper, it still relies on the encryption algorithm for security because the client and the ticketing system still connect directly. If the encryption algorithm is cracked, the security problem of the ticketing system cannot be solved. Summary of the Invention

[0006] The purpose of this invention is to provide a ticketing secure access system and method based on terminal network adaptation and communication channel matching. A first intermediate server is added between the ticketing terminal and the ticketing server. The legitimacy of the ticketing terminal is verified by the first intermediate server, which can avoid the problem of low security when the ticketing terminal is directly connected to the ticketing server. Moreover, it can improve the access security of the ticketing server without relying too much on encryption algorithms.

[0007] The technical solution adopted by this invention to solve its technical problem is as follows:

[0008] On one hand, the present invention provides a ticketing security access system based on terminal network adaptation and communication channel matching, comprising:

[0009] The ticketing terminal is used to obtain the current network type information and terminal type information of the ticketing terminal when displaying the ticketing interface, and generate a channel establishment instruction based on the terminal type information and the current network type information, and send it to the first intermediate server;

[0010] And it is used to send query instructions or ticket purchase instructions to the first intermediate server when they are obtained;

[0011] The first intermediate server is used to establish 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, when a channel establishment instruction is received.

[0012] It is used to match communication channels when a query instruction or ticket purchase instruction is received, and send the instruction to the instruction processing unit after the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction and determines whether to forward the processed query instruction or ticket purchase instruction to the ticketing server based on the processing result.

[0013] The ticketing server is used to receive query or purchase instructions after they have been processed by the first intermediate server, generate ticketing information in response to the query or purchase instructions, and forward them to the corresponding ticketing terminal through the first intermediate server or send them directly to the corresponding ticketing terminal.

[0014] As a further optimization, the ticketing terminal includes user mobile phone, user computer, automatic ticket vending machine and manual ticket vending computer;

[0015] The terminal type information of the ticket purchase terminal is the unique identifier of the current ticket purchase terminal;

[0016] The current network type information of the ticket purchasing terminal refers to:

[0017] If the ticket purchase terminal is a user's mobile phone, the network type information includes wireless network and data traffic network. The current network type information refers to: wireless data network or data traffic network. When the wireless data network and data traffic network switch automatically, the network before the switch is selected as the current network type information.

[0018] If the ticket purchasing terminal is a user's computer, the network type information includes wireless network and wired network. The current network type information refers to either wireless network or wired network.

[0019] As a further optimization, when the ticket purchase terminal is an automatic ticket vending machine or a manual ticket vending computer, the system also includes a second intermediate server;

[0020] The second intermediate server is located within a first specified distance from the automatic ticket vending machine or the manual ticket vending computer, and both the automatic ticket vending machine and the manual ticket vending computer are connected to the second intermediate server via a wired network.

[0021] 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 through a wired network, and then sent to the first intermediate server through the second intermediate server via a wired network or wireless network.

[0022] When the ticket purchase 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 or wireless network between the second intermediate server and the first intermediate server.

[0023] As a further optimization, the ticket purchase terminal generates a channel establishment instruction at a first preset time node and obtains a query instruction or a ticket purchase instruction at a second preset time node.

[0024] 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 every first specified time interval. When the channel establishment instruction is regenerated, the query instruction or ticket purchase instruction obtained by the ticket purchase terminal is cached in the current ticket purchase terminal.

[0025] Once the first intermediate server re-establishes the communication channel corresponding to the terminal type information and the current network type information, as well as the instruction processing unit after passing through each communication channel, the ticket purchasing terminal then sends the cached query instruction or ticket purchase instruction to the first intermediate server.

[0026] 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;

[0027] The first receiving unit is used to receive the channel establishment instruction, and after the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information, and after the instruction processing unit after each communication channel, the channel establishment instruction is cached in the first cache unit.

[0028] The second receiving unit is used to receive query instructions or ticket purchase instructions. If the first intermediate server determines that the query instructions or ticket purchase instructions do not match after performing communication channel matching, the query instructions or ticket purchase instructions are cached in the first cache unit, and log information is generated through the first cache unit.

[0029] If the query instruction or ticket purchase instruction matches, it is sent to the instruction processing unit behind the communication channel through the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction. If the instruction processing unit determines that the processed query instruction or ticket purchase instruction should be forwarded to the ticketing server based on the processing result, the query instruction or ticket purchase instruction is cached in the second cache unit; otherwise, it is cached in the first cache unit.

[0030] As a further optimization, 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 for storage according to the caching or generation time.

[0031] The query instructions or ticket purchase instructions and log information stored in the second intermediate server are set to be read-only and cannot be modified.

[0032] As a further optimization, the instruction processing unit after each communication channel is a processor with instruction processing function selected from the first intermediate server;

[0033] Each time the first intermediate server receives a channel establishment instruction, it selects a different processor with instruction processing capabilities as the instruction processing unit for the corresponding communication channel according to the processor selection rules.

[0034] As a further optimization, the processor selection rule refers to:

[0035] If there is only one processor in the first intermediate server, then that processor is directly selected as the instruction processing unit.

[0036] 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 purchase 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.

[0037] As a further optimization, the step of processing the query instruction or ticket purchase instruction through the instruction processing unit and determining whether to forward the processed query instruction or ticket purchase instruction to the ticketing server based on the processing result means:

[0038] The terminal type and network type information of all ticket purchasing terminals are stored in the first intermediate server;

[0039] 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 ticket purchase instruction is located are already stored in the first intermediate server. If they are, 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 ticket purchase instruction. If it is earlier, the query instruction or ticket purchase instruction is forwarded to the ticketing server.

[0040] Otherwise, the current instruction processing unit marks the query instruction or ticket purchase instruction and forwards it to the second intermediate server.

[0041] On the other hand, the present invention also provides a ticketing security access method based on terminal network adaptation and communication channel matching applied to the aforementioned ticketing security access system based on terminal network adaptation and communication channel matching, comprising the following steps:

[0042] When the ticket purchase terminal displays the ticket purchase interface, it obtains the 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 it to the first intermediate server;

[0043] 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 passing through each communication channel.

[0044] When the ticketing terminal receives a query instruction or a ticket purchase instruction, it sends it to the first intermediate server;

[0045] When the first intermediate server receives a query instruction or ticket purchase instruction, it performs communication channel matching, sends the instruction 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 ticketing server based on the processing result.

[0046] The ticketing server receives the query or purchase instruction processed by the first intermediate server, generates ticketing information in response to the query or purchase instruction, and forwards it to the corresponding ticketing terminal through the first intermediate server or sends it directly to the corresponding ticketing terminal.

[0047] The beneficial effects of this invention are: This invention does not use the traditional method of directly connecting the ticketing terminal and the ticketing server to complete ticket inquiry or purchase, but instead adds a first intermediate server, and configures the ticketing terminal, the first intermediate server, and the ticketing server separately as follows:

[0048] First, for the ticketing terminal, when displaying the ticketing interface, the current network type information and terminal type information of the ticketing terminal are obtained. Based on the terminal type information and the current network type information, a channel establishment instruction is generated 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. Second, a query instruction or ticket purchase instruction is obtained through the ticketing terminal and sent to the first intermediate server. When the first intermediate server receives the query instruction or ticket purchase instruction, it performs communication channel matching and sends it to the instruction processing unit after the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction and determines whether to forward the processed query instruction or ticket purchase instruction to the ticketing server based on the processing result. Finally, the ticketing server receives the query instruction or ticket purchase instruction processed by the first intermediate server, generates ticketing information in response to the query instruction or ticket purchase instruction, and forwards it to the corresponding ticketing terminal through the first intermediate server or sends it directly to the corresponding ticketing terminal.

[0049] Therefore, this invention avoids the problem of relying too much on encryption algorithms when traditional ticketing terminals connect directly to ticketing servers to check or purchase tickets. It not only ensures the access security of the ticketing server, but also avoids the high latency and lag caused by a large number of requests in a short period of time through the first intermediate server. Attached Figure Description

[0050] Figure 1 This is a schematic diagram of the composition structure of the ticketing security access system based on terminal network adaptation and communication channel matching in Embodiment 1 of the present invention;

[0051] Figure 2 This is a flowchart of the ticketing security access method based on terminal network adaptation and communication channel matching in Embodiment 2 of the present invention. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0053] Example 1

[0054] This embodiment provides a ticketing security access system based on terminal network adaptation and communication channel matching. See the schematic diagram of its structure below. Figure 1 The system mainly consists of the following parts:

[0055] The ticketing terminal is used to obtain the current network type information and terminal type information of the ticketing terminal when displaying the ticketing interface, and generate a channel establishment instruction based on the terminal type information and the current network type information, and send it to the first intermediate server;

[0056] And it is used to send query instructions or ticket purchase instructions to the first intermediate server when they are obtained;

[0057] The first intermediate server is used to establish 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, when a channel establishment instruction is received.

[0058] It is used to match communication channels when a query instruction or ticket purchase instruction is received, and send the instruction to the instruction processing unit after the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction and determines whether to forward the processed query instruction or ticket purchase instruction to the ticketing server based on the processing result.

[0059] The ticketing server is used to receive query or purchase instructions after they have been processed by the first intermediate server, generate ticketing information in response to the query or purchase instructions, and forward them to the corresponding ticketing terminal through the first intermediate server or send them directly to the corresponding ticketing terminal.

[0060] In this embodiment, although the traditional method of directly connecting the ticket purchase terminal with the ticketing server for checking or purchasing tickets is not used, and encryption algorithms are not relied upon, the ticket purchase terminal and the ticketing server still need to be configured. At the same time, since a first intermediate server is added in this embodiment, the verification operation of the ticket purchase terminal needs to be completed through the first intermediate server. Therefore, the first intermediate server also needs to be configured.

[0061] In practical applications, ticket purchasing terminals can be user mobile phones, user computers, and other smart devices, or they can be automatic ticket vending machines or manual ticket vending computers at passenger stations or outlets. However, due to the variety of different types of ticket purchasing terminals, and the fact that for most terminals users may use installed ticket purchasing software to check or purchase tickets, while for mobile phones or computers users may directly use WeChat mini-programs or web pages to check or purchase tickets, directly connecting traditional ticket purchasing terminals to ticketing servers could provide more convenient intrusion conditions for malicious attackers. Furthermore, due to the different types of terminals... The networks used are generally wired or wireless networks. For certain user mobile phones, they may not turn off mobile data while connected to wireless network. Although wireless network is used for network operation by default, it will automatically switch to mobile data when the signal quality is poor or the wireless network is disconnected. Therefore, if you directly use the mobile phone to check or buy tickets, the ticket checking or buying instructions may be lost. Therefore, in this embodiment, it is necessary to configure different types of ticket purchasing terminals and ticket purchasing terminals with different network types in advance to facilitate the subsequent forwarding of query or purchase instructions by the first intermediate server.

[0062] Therefore, in this embodiment, the ticket purchasing terminal may include user mobile phones, user computers, automatic ticket vending machines, and manual ticket vending computers, etc. Since there are differences in categories between different ticket purchasing terminals, 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 can be the unique identification information of the current ticket purchasing terminal.

[0063] Regarding network type, since different ticket purchasing terminals use different network types, and not just wired and wireless networks, it is necessary to define the different network types so that the first intermediate server can subsequently establish the communication channel and command processing unit for the ticket purchasing terminal. Therefore, in this embodiment, the current network type information of the ticket purchasing terminal can refer to:

[0064] If the ticket purchase terminal is a user's mobile phone, the network type information includes wireless network and data traffic network. The current network type information refers to: wireless data network or data traffic network. When the wireless data network and data traffic network switch automatically, the network before the switch is selected as the current network type information.

[0065] If the ticket purchasing terminal is a user's computer, the network type information includes wireless network and wired network. The current network type information refers to either wireless network or wired network.

[0066] It should be noted that traditional automatic ticket vending machines or manual ticket vending computers are generally set up in passenger stations. Some offline outlets may also set up some manual ticket vending computers. On this basis, in order to ensure the efficiency of establishing communication channels and instruction processing units, as well as the transmission efficiency of subsequent query instructions or ticket purchase instructions, and to further improve the security of instructions entering the first intermediate server, a second intermediate server needs to be added in this embodiment. Therefore, when the ticket purchase terminal is an automatic ticket vending machine or a manual ticket vending computer, the system also needs to include a second intermediate server.

[0067] The second intermediate server is located within a first specified distance from the automatic ticket vending machine or the manual ticket vending computer, and both the automatic ticket vending machine and the manual ticket vending computer are connected to the second intermediate server via a wired network.

[0068] 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 through a wired network, and then sent to the first intermediate server through the second intermediate server via a wired network or wireless network.

[0069] When the ticket purchase 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 or wireless network between the second intermediate server and the first intermediate server.

[0070] Here, the second intermediate server not only enhances the security of the first intermediate server in receiving instructions, but also enables the establishment of the ticket purchase terminal channel to be sent to the first intermediate server via a wired network when the ticket purchase terminal is an automatic ticket vending machine or a manual ticket vending computer, thus preventing malicious tampering by scalpers.

[0071] In practical applications, since users usually need to wait a while before checking or purchasing tickets after opening the ticketing application software or webpage, the ticketing terminal will display the ticketing interface before recognizing the user's input. Therefore, before the user checks or purchases tickets, the ticketing terminal can cooperate with the first intermediate server to complete the establishment of the communication channel and instruction processing unit. In order to further improve the security of the first intermediate server in forwarding query or purchase instructions, the channel establishment instruction can be generated again at regular intervals. Therefore, in this embodiment, the ticketing terminal generates the channel establishment instruction at the first preset time node and obtains the query instruction or purchase instruction at the second preset time node.

[0072] 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 every first specified time interval. When the channel establishment instruction is regenerated, the query instruction or ticket purchase instruction obtained by the ticket purchase terminal is cached in the current ticket purchase terminal.

[0073] Once the first intermediate server re-establishes the communication channel corresponding to the terminal type information and the current network type information, as well as the instruction processing unit after passing through each communication channel, the ticket purchasing terminal then sends the cached query instruction or ticket purchase instruction to the first intermediate server.

[0074] 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 of the subsequent ticketing server in generating ticketing information, in this embodiment, corresponding receiving units and caching 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 caching unit, and a second caching unit.

[0075] The first receiving unit is used to receive the channel establishment instruction, and after the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information, and after the instruction processing unit after each communication channel, the channel establishment instruction is cached in the first cache unit.

[0076] The second receiving unit is used to receive query instructions or ticket purchase instructions. If the first intermediate server determines that the query instructions or ticket purchase instructions do not match after performing communication channel matching, the query instructions or ticket purchase instructions are cached in the first cache unit, and log information is generated through the first cache unit.

[0077] If the query instruction or ticket purchase instruction matches, it is sent to the instruction processing unit behind the communication channel through the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction. If the instruction processing unit determines that the processed query instruction or ticket purchase instruction should be forwarded to the ticketing server based on the processing result, the query instruction or ticket purchase instruction is cached in the second cache unit; otherwise, it is cached in the first cache unit.

[0078] Here, because the first cache unit generates log information and channel establishment instructions, the operation and maintenance personnel can directly know the source type and time of the illegal intruder through the first cache unit.

[0079] In order to enable the tracing of the source of unauthorized intrusions into 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 for storage in sequence according to the caching or generation time.

[0080] The query instructions or ticket purchase instructions and log information stored in the second intermediate server are set to be read-only and cannot be modified.

[0081] In practical applications, this embodiment requires the use of a first intermediate server to establish corresponding communication channels and instruction processing units for different types of ticketing terminals and ticketing terminals with different network types. All of this is done within the first intermediate server. If an unauthorized tamper intrudes into the first intermediate server, and the communication channels and instruction processing units are not updated, subsequent ticketing servers will still face security vulnerabilities. Therefore, to improve the security of the ticketing server, this embodiment utilizes various processors within the first intermediate server to perform the instruction processing unit function. In different update rounds, the processors need to follow corresponding selection rules 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 capabilities selected from the first intermediate server. Each time the first intermediate server receives a channel establishment instruction, it selects different processors with instruction processing capabilities as the corresponding instruction processing units after the communication channel according to the processor selection rules.

[0082] Here, the processor selection rule may refer to:

[0083] If there is only one processor in the first intermediate server, then that processor is directly selected as the instruction processing unit.

[0084] 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 purchase 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.

[0085] It should be noted that although the relevant processor in the first intermediate server is used in this embodiment to complete the instruction processing function of the instruction processing unit, in order to avoid security risks caused by unauthorized intrusion into 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 step of processing the query instruction or ticket purchase instruction through the instruction processing unit and determining whether to forward the processed query instruction or ticket purchase instruction to the ticketing server based on the processing result means:

[0086] The terminal type and network type information of all ticket purchasing terminals are stored in the first intermediate server;

[0087] 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 ticket purchase instruction is located are already stored in the first intermediate server. If they are, 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 ticket purchase instruction. If it is earlier, the query instruction or ticket purchase instruction is forwarded to the ticketing server.

[0088] Otherwise, the current instruction processing unit marks the query instruction or ticket purchase instruction and forwards it to the second intermediate server.

[0089] Example 2

[0090] Based on Example 1, this example provides a ticketing security access method based on terminal network adaptation and communication channel matching, the flowchart of which can be found in [link to flowchart]. Figure 2 The method may include the following steps:

[0091] S1. When the ticket purchase terminal displays the ticket purchase interface, it obtains the 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 it to the first intermediate server.

[0092] S2. 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 passing through each communication channel.

[0093] S3. When the ticket purchase terminal receives a query instruction or a ticket purchase instruction, it sends it to the first intermediate server.

[0094] S4. When the first intermediate server receives a query instruction or ticket purchase instruction, it performs communication channel matching, sends the instruction to the instruction processing unit after 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 ticketing server based on the processing result.

[0095] S5. The ticketing server receives the query instruction or ticket purchase instruction processed by the first intermediate server, generates ticketing 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.

[0096] As can be seen from the description of Embodiment 1, the application scenario and implementation principle of this embodiment are the same as those of Embodiment 1, so they will not be repeated here.

[0097] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A ticketing security access system based on terminal network adaptation and communication channel matching, characterized in that, include: The ticketing terminal is used to obtain the current network type information and terminal type information of the ticketing terminal when displaying the ticketing interface, and generate a channel establishment instruction based on the terminal type information and the current network type information, and send it to the first intermediate server; And it is used to send query instructions or ticket purchase instructions to the first intermediate server when they are obtained; The first intermediate server is used to establish 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, when a channel establishment instruction is received. It is used to match communication channels when a query instruction or ticket purchase instruction is received, and send the instruction to the instruction processing unit after the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction and determines whether to forward the processed query instruction or ticket purchase instruction to the ticketing server based on the processing result. When the ticket purchase terminal is an automatic ticket vending machine or a manual ticket vending computer, the system also includes a second intermediate server; The second intermediate server is located within a first specified distance from the automatic ticket vending machine or the manual ticket vending computer, and both the automatic ticket vending machine and the manual ticket vending computer are 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 through a wired network, and then sent to the first intermediate server through the second intermediate server via a wired network or wireless network. When the ticket purchase 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 or wireless network between the second intermediate server and the first intermediate server. The ticketing server is used to receive query or purchase instructions after they have been processed by the first intermediate server, generate ticketing information in response to the query or purchase instructions, and forward them to the corresponding ticketing terminal through the first intermediate server or send them directly to the corresponding ticketing terminal.

2. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 1, characterized in that, The ticket purchasing terminals include user mobile phones, user computers, automatic ticket vending machines, and manual ticket vending computers; The terminal type information of the ticket purchase terminal is the unique identifier of the current ticket purchase terminal; The current network type information of the ticket purchasing terminal refers to: If the ticket purchase terminal is a user's mobile phone, the network type information includes wireless network and data traffic network. The current network type information refers to: wireless data network or data traffic network. When the wireless data network and data traffic network switch automatically, the network before the switch 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. The current network type information refers to either wireless network or wired network.

3. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 1, characterized in that, The ticketing terminal generates a channel establishment instruction at a first preset time node and obtains a query instruction or a 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 every first specified time interval. When the channel establishment instruction is regenerated, the query instruction or ticket purchase instruction obtained by the ticket purchase terminal is cached in the current ticket purchase terminal. Once the first intermediate server re-establishes the communication channel corresponding to the terminal type information and the current network type information, as well as the instruction processing unit after passing through each communication channel, the ticket purchasing terminal then sends the cached query instruction or ticket purchase instruction to the first intermediate server.

4. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 1, characterized in that, The first intermediate server includes a first receiving unit, a second receiving unit, a first buffer unit, and a second buffer unit; The first receiving unit is used to receive the channel establishment instruction, and after the first intermediate server establishes a communication channel corresponding to the terminal type information and the current network type information, and after the instruction processing unit after each communication channel, the channel establishment instruction is cached in the first cache unit. The second receiving unit is used to receive query instructions or ticket purchase instructions. If the first intermediate server determines that the query instructions or ticket purchase instructions do not match after performing communication channel matching, the query instructions or ticket purchase instructions are cached in the first cache unit, and log information is generated through the first cache unit. If the query instruction or ticket purchase instruction matches, it is sent to the instruction processing unit behind the communication channel through the matching communication channel. The instruction processing unit processes the query instruction or ticket purchase instruction. If the instruction processing unit determines that the processed query instruction or ticket purchase instruction should be forwarded to the ticketing server based on the processing result, the query instruction or ticket purchase instruction is cached in the second cache unit; otherwise, it is cached in the first cache unit.

5. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 4, characterized in that, The query instructions or ticket purchase instructions cached in the first cache unit, as well as the generated log information, are sequentially synchronized to the second intermediate server for storage according to the caching or generation time. The query instructions or ticket purchase instructions and log information stored in the second intermediate server are set to be read-only and cannot be modified.

6. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 1, characterized in that, The instruction processing unit following 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, it selects a different processor with instruction processing capabilities as the instruction processing unit for the corresponding communication channel according to the processor selection rules.

7. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 6, characterized in that, The processor selection rule refers to: If there is only one processor in the first intermediate server, then that 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 purchase 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.

8. The ticketing security access system based on terminal network adaptation and communication channel matching according to claim 1 or 6, characterized in that, The process of processing query or ticket purchase instructions through the instruction processing unit, and determining whether to forward the processed query or ticket purchase instructions to the ticketing server based on the processing result, refers to: The terminal type and network type information of all ticket purchasing terminals are stored 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 ticket purchase instruction is located are already stored in the first intermediate server. If they are, 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 ticket purchase instruction. If it is earlier, the query instruction or ticket purchase instruction is forwarded to the ticketing server. Otherwise, the current instruction processing unit marks the query instruction or ticket purchase instruction and forwards it to the second intermediate server.

9. A ticketing security access method based on terminal network adaptation and communication channel matching, applied to the ticketing security access system based on terminal network adaptation and communication channel matching as described in any one of claims 1-8, characterized in that, Includes the following steps: When the ticket purchase terminal displays the ticket purchase interface, it obtains the 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 it 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 passing through each communication channel. When the ticketing terminal receives a query instruction or a ticket purchase instruction, it sends it to the first intermediate server; When the first intermediate server receives a query instruction or ticket purchase instruction, it performs communication channel matching, sends the instruction 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 ticketing server based on the processing result. The ticketing server receives the query or purchase instruction processed by the first intermediate server, generates ticketing information in response to the query or purchase instruction, and forwards it to the corresponding ticketing terminal through the first intermediate server or sends it directly to the corresponding ticketing terminal.

Citation Information

Patent Citations

  • Method and device for preventing cattle from buying tickets based on access, server and storage medium

    CN117336061A

  • 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