Electronic bill processing method, server, ticket checking terminal, ticket buying equipment and storage medium

HK40138528APending Publication Date: 2026-10-09HANGZHOU TAOPIAOPIAO FILM & TELEVISION CULTURE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
HK42026127497
Authority / Receiving Office
HK · HK
Patent Type
Applications
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-10-09
Estimated Expiration
2046-01-07

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electronic bill processing method, a server, a ticket checking terminal, ticket buying equipment and a storage medium. The electronic bill processing method comprises the following steps: based on a ticket buying request of ticket buying equipment, collecting an equipment fingerprint of the ticket buying equipment; generating an electronic bill based on to-be-purchased ticket business information, the dynamic key of the electronic bill and the device fingerprint of the ticket purchasing device; and sending the electronic bill to the ticket buying equipment, so that the ticket buying equipment writes the electronic bill into a near field communication chip of the ticket buying equipment. According to the scheme, the offline availability, reliability and safety of electronic bill verification can be improved, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

(19) State Intellectual Property Office (12) Invention Patent Application (10) Application Publication Number (43) Application Publication Date (21) Application Number 202610024815.6 (22) Application Date 2026.01.08 (71) Applicant Hangzhou Taopiaopiao Technology Co., Ltd. Address 306, 3rd Floor, Building 1, No. 699, Wangshang Road, Binjiang District, Hangzhou City, Zhejiang Province, 310052 (72) Inventor Wang Dong (74) Patent Agency Beijing Hezhi Tongchuang Intellectual Property Agency Co., Ltd. 11545 Patent Attorney Li Jielan Shuduo (51) Int.Cl. G07B 11 / 00 (2006.01) G06Q 20 / 04 (2012.01) G06Q 20 / 38 (2012.01) H04W 4 / 80 (2018.01) H04L 9 / 08 (2006.01) (54) Invention Title: Electronic Ticket Processing Method, Server, Ticket Verification Terminal, Ticket Purchasing Device, and Storage Medium (57) Abstract: This application provides an electronic ticket processing method, server, ticket verification terminal, ticket purchasing device, and storage medium. The electronic ticket processing method includes: collecting the device fingerprint of the ticket purchasing device based on the ticket purchase request; generating an electronic ticket based on the ticket information to be purchased, the electronic ticket dynamic key, and the device fingerprint of the ticket purchasing device; and sending the electronic ticket to the ticket purchasing device so that the ticket purchasing device can write the electronic ticket into the short-range communication chip of the ticket purchasing device. This solution can improve the offline availability, reliability, and security of electronic ticket verification, which is beneficial to improving the user experience. Claims (3 pages), Description (19 pages), Drawings (4 pages), CN 121884471 A, 2026.04.17, CN 1 21 88 44 71 A. 1. An electronic ticket processing method, comprising: collecting the device fingerprint of a ticketing device based on a ticket purchase request; generating an electronic ticket based on the ticket information to be purchased, an electronic ticket dynamic key, and the device fingerprint of the ticketing device; and sending the electronic ticket to the ticketing device for the ticketing device to write the electronic ticket into its near-field communication (NFC) chip. 2. The method according to claim 1, wherein the method further comprises: obtaining the identification information of the NFC chip based on the ticket purchase request, and generating the electronic ticket dynamic key based on the identification information. 3. The method according to claim 1, wherein sending the electronic ticket to the ticketing device for the ticketing device to write the electronic ticket into the short-range communication chip of the ticketing device comprises: performing private key signing processing on the electronic ticket, and sending the signed electronic ticket to the ticketing device for the ticketing device to write the signed electronic ticket into the short-range communication chip of the ticketing device.4. The method according to any one of claims 1-3, wherein the method further comprises: storing the electronic ticket dynamic key of the electronic ticket in a key list, storing the device fingerprint in a first storage area, and storing the ticketing information in a second storage area; and, respectively marking the status of the electronic ticket dynamic key and the ticketing information. 5. The method according to claim 4, wherein the method further comprises: receiving an electronic ticket verification request from a ticket verification terminal, extracting the electronic ticket verification information to be verified from the electronic ticket verification request, wherein the electronic ticket verification information to be verified includes: ticketing information to be verified, electronic ticket dynamic key to be verified, and device fingerprint to be verified; verifying the verification information to be verified based on the extracted electronic ticket verification information and the data stored in the key list, the first storage area, and the second storage area, respectively, and returning the electronic ticket verification result to the ticket verification terminal. 6. The method according to claim 5, wherein the method further comprises: obtaining spatiotemporal feature information of the electronic ticket from the electronic ticket verification request; before verifying the information to be verified based on the extracted information to be verified of the electronic ticket, and the data stored in the key list, the first storage area, and the second storage area respectively, the method further comprises: verifying the ticketing time and ticketing location of the electronic ticket based on the spatiotemporal feature information; if the verification is successful, then performing the operation of verifying the information to be verified based on the extracted information to be verified of the electronic ticket, and the data stored in the key list, the first storage area, and the second storage area respectively. 7. The method according to claim 5, wherein verifying the information to be verified based on the extracted information to be verified of the electronic ticket, and the data stored in the key list, the first storage area, and the second storage area respectively, includes: performing a first comparison between the ticketing information to be verified and the ticketing information stored in the second storage area, and determining whether the ticketing information indicated by the ticketing information to be verified is in an available state; performing a second comparison between the dynamic key of the electronic ticket to be verified and the dynamic key stored in the key list, and determining whether the dynamic key of the electronic ticket to be verified is a valid key; and performing a third comparison between the device fingerprint to be verified and the device fingerprint stored in the first storage area, and determining whether the device fingerprint to be verified is the same as the device fingerprint corresponding to the ticketing device of the electronic ticket; if the results of the first comparison, the second comparison, and the third comparison are all yes, then the electronic ticket verification is determined to be successful.8. The method according to claim 7, wherein the method further comprises: if the result of the third comparison indicates that the device fingerprint to be verified is different from the device fingerprint corresponding to the ticketing device of the electronic ticket, then the verification fails, and the electronic ticket is marked as a suspicious transfer ticket. 9. The method according to claim 8, wherein the method further comprises: if the verification result indicates that the electronic ticket verification is successful, then a random string is generated, and the random string is sent to the ticketing device through the ticket verification terminal, so as to overwrite the electronic ticket dynamic key in the ticketing device with the random string. 10. An electronic ticket processing method, applied to a ticket verification terminal, the method comprising: establishing a short-range communication connection with the ticketing device; reading an electronic ticket verification data packet from the short-range communication chip of the ticketing device through the short-range communication connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, an electronic ticket dynamic key to be verified, and a device fingerprint to be verified; generating an electronic ticket verification request based on the information contained in the electronic ticket verification data packet, and sending the electronic ticket verification request to a server; receiving an electronic ticket verification result returned by the server based on the electronic ticket verification request. 11. An electronic ticket processing method, applied to a ticket purchasing device, the method comprising: receiving an electronic ticket returned by a server based on a ticket purchase request, wherein the electronic ticket includes: ticketing information, an electronic ticket dynamic key, and a device fingerprint of the ticket purchasing device; and storing the electronic ticket in an independent storage area of ​​a near-field communication (NFC) chip of the ticket purchasing device. 12. The method according to claim 11, further comprising: establishing a near-field communication connection with a ticket verification terminal, and providing an electronic ticket verification data packet from the NFC chip to the ticket verification terminal via the NFC connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, an electronic ticket dynamic key to be verified, and a device fingerprint to be verified. 13. The method according to claim 11, further comprising: receiving a random string through the ticket verification terminal to overwrite the electronic ticket dynamic key in the ticket purchasing device with the random string. 14. A server, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; the memory is used to store a computer program; the processor is used to execute the method as described in any one of claims 1-9 by running the computer program stored in the memory. 15. A ticket verification terminal, comprising: a second short-range communication chip and a processor; wherein the second short-range communication chip is used to establish a short-range communication connection with a ticket purchasing device; Claims 2 / 3 pages 3 CN121884471 A The processor is configured to read an electronic ticket verification data packet from the short-range communication chip of the ticketing device via the short-range communication connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, an electronic ticket dynamic key to be verified, and a device fingerprint to be verified; generate an electronic ticket verification request based on the information contained in the electronic ticket verification data packet, and send the electronic ticket verification request to the server; and receive an electronic ticket verification result returned by the server based on the electronic ticket verification request. 16. A ticketing device, comprising: a short-range communication chip and a processor; wherein, the processor is configured to receive an electronic ticket returned by the server based on a ticketing request, the electronic ticket including: ticketing information, an electronic ticket dynamic key, and a device fingerprint of the ticketing device; the short-range communication chip is configured to store the electronic ticket in an independent storage area. 17. A computer storage medium storing a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1-13. 18. A computer program product comprising a computer program that, when executed by a processor, implements the method as described in any one of claims 1-13. Claims 3 / 3 Page 4 CN 121884471 A Electronic Ticket Processing Method, Server, Ticket Verification Terminal, Ticket Purchasing Equipment and Storage Medium Technical Field

[0001] Embodiments of this application relate to the field of computer technology, and in particular to an electronic ticket processing method, server, ticket verification terminal, ticket purchasing equipment and storage medium. Background Art

[0002] Traditional electronic tickets rely on online verification, but in some usage scenarios (including but not limited to concerts, trains, etc.), network congestion or signal interruption problems are prone to occur, which can lead to delays or even failures in electronic ticket verification. In such cases, users usually need to repeatedly connect to the network to refresh the electronic ticket status. Therefore, the reliability of traditional electronic ticket verification methods is low and the user experience is poor, requiring some new technical solutions to at least partially improve such problems. Summary of the Invention

[0003] In view of this, embodiments of this application provide an electronic ticket processing solution to at least partially solve the above problems.

[0004] According to a first aspect of the embodiments of this application, an electronic ticket processing method is provided, comprising: collecting the device fingerprint of the ticket purchasing device based on a ticket purchase request; generating an electronic ticket based on the ticket information to be purchased, the electronic ticket dynamic key, and the device fingerprint of the ticket purchasing device; and sending the electronic ticket to the ticket purchasing device so that the ticket purchasing device can write the electronic ticket into the near-field communication chip of the ticket purchasing device.

[0005] According to a second aspect of the embodiments of this application, an electronic ticket processing method is provided, applied to a ticket verification terminal.The method includes: establishing a short-range communication connection with the ticketing device; reading an electronic ticket verification data packet from the short-range communication chip of the ticketing device through the short-range communication connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, an electronic ticket dynamic key to be verified, and a device fingerprint to be verified; generating an electronic ticket verification request based on the information contained in the electronic ticket verification data packet, and sending the electronic ticket verification request to the server; and receiving an electronic ticket verification result returned by the server based on the electronic ticket verification request.

[0006] According to a third aspect of the embodiments of this application, an electronic ticket processing method is provided, applied to a ticketing device, the method including: receiving an electronic ticket returned by the server based on a ticketing request, wherein the electronic ticket includes: ticketing information, an electronic ticket dynamic key, and a device fingerprint of the ticketing device; and storing the electronic ticket in an independent storage area of ​​the short-range communication chip of the ticketing device.

[0007] According to a fourth aspect of the embodiments of this application, a server is provided, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store a computer program; and the processor is used to execute the method as described in any one of the first aspects by running the computer program stored in the memory.

[0008] According to a fifth aspect of the embodiments of this application, a ticket verification terminal is provided, comprising: a second short-range communication chip and a processor; wherein the second short-range communication chip is used to establish a short-range communication connection with a ticket purchasing device; the processor is used to read an electronic ticket verification data packet from the short-range communication chip of the ticket purchasing device through the short-range communication connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, an electronic ticket dynamic key to be verified, and a device fingerprint to be verified, wherein the electronic ticket dynamic key to be verified is obtained based on the identification information of the short-range communication chip of the ticket purchasing device; based on the information contained in the electronic ticket verification data packet, an electronic ticket verification request is generated and the electronic ticket verification request is sent to a server; and the electronic ticket verification result returned by the server based on the electronic ticket verification request is received.

[0009] According to a sixth aspect of the embodiments of this application, a ticket purchasing device is provided, comprising: a near-field communication chip and a processor; wherein, the processor is configured to receive an electronic ticket returned by a server based on a ticket purchasing request, wherein the electronic ticket is an encrypted ticket, and the electronic ticket includes: ticketing information, an electronic ticket dynamic key, and the ticket purchasing device.Device fingerprint, wherein the electronic ticket dynamic key is obtained based on the identification information of the near-field communication chip of the ticketing device; the near-field communication chip is used to store the electronic ticket in an independent storage area.

[0010] According to a seventh aspect of the present application, a computer storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method as described in any one of the first, second, and third aspects.

[0011] According to an eighth aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method as described in any one of the first, second, and third aspects.

[0012] The electronic ticket processing scheme provided in the embodiments of the present application allows the server to collect the device fingerprint of the ticketing device based on the ticket purchase request of the ticketing device, and then generate an electronic ticket based on the ticket information to be purchased, the electronic ticket dynamic key, and the device fingerprint of the ticketing device, and then send the electronic ticket to the ticketing device so that the ticketing device can write the electronic ticket into the near-field communication chip of the ticketing device. Therefore, on the one hand, the electronic ticket obtained through the embodiments of this application is written into a near-field communication (NFC) chip. During subsequent electronic ticket verification, offline verification and identification can be achieved based on the NFC chip's communication capabilities. This avoids the problem of delays or even failures in electronic ticket verification caused by network congestion or signal interruptions between the ticketing device and the server. Users also do not need to repeatedly refresh the electronic ticket status during verification, thus improving both the reliability of electronic ticket verification and the user experience. On the other hand, since the technical solution of this application generates electronic tickets based on the ticketing information to be purchased, the dynamic key of the electronic ticket, and the device fingerprint of the ticketing device, the electronic ticket and the device fingerprint are well bound together. This reduces the risk of the electronic ticket data written into the NFC chip being copied or... The risk of tampering is reduced, which helps improve the data security of electronic tickets. For electronic ticket verification, this can significantly improve verification security. Furthermore, since the electronic tickets in the technical solution of this application can be generated based on a dynamic key and written into a near-field communication chip, a dynamic verification mechanism can be used for subsequent verification. By utilizing the non-repeatability of the dynamic key, security can be effectively improved. Compared to electronic ticket verification mechanisms based on static QR codes, this effectively enhances the dynamic anti-counterfeiting capability of electronic ticket verification and further reduces the risk of electronic tickets being screenshotted, disseminated, and resold. It has a better effect in preventing illegal resale (i.e., preventing scalping). Moreover, compared to other electronic ticket verification mechanisms such as those based on dynamic QR codes, it further avoids dependence on network and screen-on operations, which is beneficial for improving...High user experience. Therefore, the technical solution of this application provides an electronic ticket processing solution that balances offline availability and reliability, security, and has good dynamic anti-counterfeiting capabilities, effectively improving user experience. Brief Description of the Drawings

[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings. Specification 2 / 19 pages 6 CN 121884471 A

[0014] Figure 1 is a schematic diagram of an electronic ticket processing system applicable to the embodiments of this application.

[0015] Figure 2 is a flowchart of the steps of an electronic ticket processing method according to an embodiment of this application.

[0016] Figure 3 is a flowchart of the steps of another electronic ticket processing method according to an embodiment of this application.

[0017] Figure 4 is a flowchart of the steps of yet another electronic ticket processing method according to an embodiment of this application.

[0018] Figure 5 shows a schematic diagram of an example scenario of the electronic ticket processing solution of the embodiment of this application.

[0019] Figure 6 shows a schematic block diagram of an example server in an embodiment of this application.

[0020] Figure 7 shows a schematic block diagram of an example ticket verification terminal in an embodiment of this application.

[0021] Figure 8 shows a schematic block diagram of an example ticket purchasing device in an embodiment of this application. Detailed Description

[0022] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art should fall within the protection scope of the embodiments of this application.

[0023] The specific implementation of the embodiments of this application will be further described below with reference to the accompanying drawings.

[0024] Figure 1 shows an exemplary electronic ticket processing system applicable to the embodiments of this application. As shown in Figure 1, the electronic ticket processing system 100 may include a server 102, a ticket verification terminal 104, and a ticket purchasing device 106; the ticket purchasing device 106 may include a near-field communication chip 1062.

[0025] The server 102 can be any suitable device for storing information, data, programs, and / or any other suitable type of content, including but not limited to distributed storage system devices, server clusters, computing cloud server clusters, etc. In some alternative embodiments, the server 102 can perform any suitable function. Optionally, the server 102 can perform an electronic ticket processing method.

[0026] In some optional embodiments, when the server 102 executes the electronic ticket processing method of this application embodiment, it can first collect the device fingerprint of the ticketing device 106 based on the ticket purchase request of the ticketing device 106; then, it can generate an electronic ticket based on the ticket information to be purchased, the electronic ticket dynamic key, and the device fingerprint of the ticketing device 106; and then send the electronic ticket to the ticketing device 106 so that the ticketing device 106 can write the electronic ticket to the near-field communication chip 1062. Optionally, the server 102 can also obtain the identification information of the near-field communication chip 1062 based on the ticket purchase request, and generate the electronic ticket dynamic key based on the identification information.

[0027] Optionally, the server 102 can store the electronic ticket dynamic key of the electronic ticket in a key list, store the device fingerprint of the ticketing device 106 in a first storage area, store the ticket information in a second storage area, and mark the status of the electronic ticket dynamic key and the ticket information respectively.

[0028] Subsequently, in some optional embodiments, when the server 102 performs electronic ticket verification, it can receive an electronic ticket verification request from the ticket verification terminal 104, extract the electronic ticket verification information to be verified from the electronic ticket verification request, wherein the electronic ticket verification information to be verified includes: ticketing information to be verified, dynamic key of the electronic ticket to be verified, and device fingerprint to be verified; based on the extracted electronic ticket verification information to be verified, and the data stored in the key list, the first storage area and the second storage area respectively, the verification information to be verified is verified, and the electronic ticket verification result is returned to the ticket verification terminal 104.

[0029] The ticket verification terminal 104 in this embodiment can interact with the ticket purchasing device 106 to facilitate the electronic ticket verification operation. The ticket verification terminal 104 can be constructed in any structure, and no specific limitation is made in this embodiment. Specification 3 / 19 page 7 CN 121884471 A For example, the ticket verification terminal 104 may include another short-range communication chip (e.g., a second short-range communication chip 1042) to facilitate the establishment of a short-range communication connection with the short-range communication chip 1062 of the ticket purchasing device 106.

[0030] In some optional embodiments, the ticket verification terminal 104 may execute an electronic ticket processing method. As an optional example, when executing the electronic ticket processing method, the ticket verification terminal 104 may first establish a short-range communication connection with the ticket purchasing device 106; then, through the short-range communication connection, read the electronic ticket verification data packet from the short-range communication chip 1062 of the ticket purchasing device 106, wherein the electronic ticket verification data packet includes: ticketing information to be verified, electronic ticket dynamic key to be verified, and device fingerprint to be verified; furthermore, the ticket verification terminal 104 may, based on the information contained in the electronic ticket verification data packet, perform a short-range communication connection with the ticket purchasing device 106.The system generates an electronic ticket verification request and sends it to the server 102; then it receives the electronic ticket verification result returned by the server 102 based on the electronic ticket verification request.

[0031] The ticket purchasing device 106 in this embodiment may include any device suitable for displaying information and interacting with users (e.g., ticket purchasers, users of electronic tickets, etc.). Optionally, the ticket purchasing device 106 may be a user device capable of receiving user ticket purchasing operations and realizing electronic ticket purchasing. For example, in some embodiments, the ticket purchasing device 106 may include mobile devices (such as mobile phones, tablet computers, laptop computers, and / or any other suitable type of user device. The ticket purchasing device 106 includes a near-field communication chip 1062. The near-field communication chip 1062 may be a chip using any near-field communication protocol. For example, the near-field communication chip 1062 may be, but is not limited to, an NFC (Near Field Communication) chip or an RFID (Radio Frequency Identification) chip. For ease of explanation of the embodiments of this application, the near-field communication chip 1062 can be used as an NFC chip in this document.

[0032] In some optional embodiments, the ticket purchasing device 106 can execute an electronic ticket processing method. As an optional example, when executing the electronic ticket processing method, the ticket purchasing device 106 can first receive the electronic ticket returned by the server 102 based on the ticket purchase request, wherein the electronic ticket includes: ticketing information, electronic ticket dynamic key, and device fingerprint of the ticket purchasing device 106; and store the electronic ticket in the independent storage area of ​​the near-field communication chip 1062 of the ticket purchasing device 106.

[0033] Subsequently, in some optional embodiments, when performing electronic ticket verification, the ticket purchasing device 106 can interact with the ticket verification terminal 104. For example, the ticket purchasing device 106 can establish a short-range communication connection with the ticket verification terminal 104. The ticket purchasing device 106 can provide the electronic ticket verification data packet in the short-range communication chip 1062 to the ticket verification terminal 104 through the short-range communication connection, thereby enabling the ticket verification terminal 104 to: read the electronic ticket verification data packet from the short-range communication chip 1062 of the ticket purchasing device 106 through the short-range communication connection, wherein the electronic ticket verification data packet includes: ticket information to be verified, electronic ticket dynamic key to be verified, and device fingerprint to be verified; generate an electronic ticket verification request based on the information contained in the electronic ticket verification data packet; send the electronic ticket verification request to the server 102; and then receive the electronic ticket verification result returned by the server 102 based on the electronic ticket verification request.

[0034] Optionally, the ticket purchasing device 106 can be connected to the communication network 1082 through one or more communication links.Network 1082 can be linked to server 102 via one or more communication links. Optionally, ticket verification terminal 104 can be connected to communication network 1084 via one or more communication links, which communication network 1084 can be linked to server 102 via one or more communication links. The communication link can be any communication link suitable for transmitting data between ticketing device 106 and server 102, such as network link, dial-up link, wireless link, hardwired link, any other suitable communication link, or any suitable combination of such links.

[0035] In some embodiments, communication network 1082 and communication network 1084 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network can include any one or more of the following: the Internet, intranet, wide area network (WAN), local area network (LAN), wireless network, digital subscriber line (DSL) network, frame relay network, asynchronous transfer mode (ATM) network, virtual private network (VPN) and / or any other suitable communication network. Optionally, communication network 1082 and communication network 1084 can use different communication networks, or they can use the same communication network.

[0036] For the convenience of explaining the embodiments of this application, the above-mentioned parts will be described in detail in the embodiments of the electronic bill processing method below, and will not be repeated here.

[0037] Based on the above-described electronic bill processing system 100, the embodiments of this application provide some electronic bill processing schemes, which will be described below through multiple embodiments.

[0038] Figure 2 is a flowchart of the steps of an electronic bill processing method according to an embodiment of this application. According to a first aspect of the embodiments of this application, an electronic ticket processing method is provided. Optionally, the electronic ticket processing method can be used in a server 102. Referring to FIG2, the electronic ticket processing method includes steps S202, S204 and S206, specifically: S202: Based on the ticket purchase request of the ticket purchase device, collect the device fingerprint of the ticket purchase device.

[0039] The ticket purchase device 106 can be operated by the user to purchase electronic tickets, and can also be used by the user to verify tickets. Electronic tickets can be understood as concert tickets, train tickets, etc., and can be non-real-name electronic tickets or real-name electronic tickets, as long as they meet the requirements. For example, in some embodiments, the ticket purchase device 106 can display an interface for purchasing electronic tickets (such as...The interface may include, but is not limited to, application interfaces, mini-program interfaces, web interfaces, etc. The ticketing device 106 can receive the user's purchase operation for electronic tickets on the interface, generate a purchase request based on the purchase operation, and send the purchase request to the server 102.

[0040] The electronic ticket dynamic key is a key for single use and has high security. The specific method of obtaining the electronic ticket dynamic key is not specifically limited here, and it can be generated by any dynamic key generation algorithm. In this embodiment, by generating the electronic ticket dynamic key, the non-copyability of the key can be guaranteed, the security can be improved, and the one-time verification and use of the generated electronic ticket can be provided.

[0041] In some optional embodiments, the electronic ticket processing method in this embodiment further includes: obtaining the identification information of the near-field communication chip 1062 based on the purchase request, and generating the electronic ticket dynamic key based on the identification information of the near-field communication chip 1062.

[0042] In the above optional embodiments, the electronic ticket dynamic key can be a key generated based on the identification information of the near-field communication chip 1062 for single use and has high security.

[0043] After receiving a purchase request, the server 102 can obtain the identification information of the near-field communication chip 1062 of the ticketing device 106 to facilitate the subsequent generation of electronic tickets. This identification information can uniquely indicate the near-field communication chip 1062. In some optional embodiments, the identification information can be the unique ID of the near-field communication chip 1062. For example, if the near-field communication chip 1062 is an NFC chip, the SE (Security Element) serial number (also known as SEID) of the NFC chip can be obtained as its identification information. However, it is not limited to this; other information that can uniquely identify NFC can also be used as the identification information of the NFC chip.

[0044] Optionally, if the identification information of the near-field communication chip can be the SE serial number of the NFC chip, then the server 102 can generate an initial electronic ticket dynamic key (e.g., denoted as DK) based on the SE serial number.

[0045] It should be understood that in the above optional embodiments of this application, by obtaining the identification information of the near-field communication chip 1062 and generating the electronic ticket dynamic key based on the identification information, when generating the electronic ticket, it can be generated based on the ticket information to be purchased, the electronic ticket dynamic key, and the device fingerprint of the ticketing device 106. Since the electronic ticket dynamic key is generated based on the identification information of the near-field communication chip 1062 of the ticketing device 106, the electronic ticket is not only bound to the device fingerprint of the ticketing device 106, but also to the identification information of the near-field communication chip 1062. (Specification 5 / 19 pages 9 CN 121884471 A)The binding is so effective that the risk of electronic ticket data written to the near-field communication chip 1062 being copied or tampered with is better reduced, which is conducive to further improving the data security of electronic tickets and improving the verification security of electronic tickets.

[0046] S204: Generate an electronic ticket based on the ticket information to be purchased, the dynamic key of the electronic ticket, and the device fingerprint of the ticket purchasing device.

[0047] The device fingerprint of the ticket purchasing device 106 can identify the ticket purchasing device 106. The device fingerprint can be generated by collecting the software and hardware feature information of the ticket purchasing device 106 and combining them with a specific algorithm. It can highly identify or even uniquely identify the ticket purchasing device 106. For example, it can be the digital fingerprint or identification code of the ticket purchasing device 106.

[0048] In some optional embodiments, the device fingerprint of the ticket purchasing device 106 can be the unique ID of the ticket purchasing device 106 or generated as the device fingerprint of the ticket purchasing device 106. For example, one or more of the following data that can uniquely identify the ticketing device 106, including but not limited to UDID (Unique Device Identifier), IMEI (International Mobile Equipment Identity), and MEID (Mobile Equipment Identifier), can be used as or used to generate the device fingerprint of the ticketing device 106. Alternatively, other data can be used, without specific limitations.

[0049] In some alternative embodiments, the device fingerprint of the ticketing device 106 can also directly use the unique ID of a certain chip or module. For example, in some embodiments, the device fingerprint of the ticketing device 106 can use the unique ID of its near-field communication chip 1062. For example, taking the near-field communication chip 1062 as an NFC chip, the SE serial number of the NFC chip can be obtained as the device fingerprint of the ticketing device 106.

[0050] The ticketing information to be purchased can uniquely indicate a certain electronic ticket to be purchased. For example, the ticketing information can at least include the unique identifier of the electronic ticket. For example, the ticket ID that uniquely identifies the electronic ticket. Alternatively, in addition to the unique identifier, ticketing information may also include one or more combinations of information such as ticket name, order information, event and session information, and seat information.

[0051] Optionally, the server 102 may obtain the device fingerprint of the ticketing device 106 (for example, it can be understood as the SE serial number of the NFC chip of the ticketing device), and generate a data packet of the electronic ticket based on the ticketing information of the electronic ticket to be purchased for the ticketing request, the generated electronic ticket dynamic key, and the device fingerprint of the ticketing device 106.

[0052] For example, the data packet of the electronic ticket may include ticketing information to be purchased (such as ticket ID), electronic ticket dynamic key DK, and device fingerprint of the ticketing device (such as the SE serial number of the NFC chip of the ticketing device).

[0053] S206: Send the electronic ticket to the ticketing device so that the ticketing device can write the electronic ticket into the near-field communication chip of the ticketing device.

[0054] The server 102 can directly send the data packet of the electronic ticket to the ticketing device 106, or process the data packet of the electronic ticket before sending it to the ticketing device 106. Optionally, after receiving the generated data packet of the electronic ticket, the ticketing device 106 can write the data packet of the electronic ticket into a certain storage area of ​​the near-field communication chip 1062.

[0055] Based on this, the electronic ticket processing method in steps S202~S206 of the present application embodiment has the following advantages: Firstly, the electronic ticket obtained through the processing of the present application embodiment is written into the near-field communication chip 1062. During subsequent electronic ticket verification, offline verification and identification can be achieved based on the communication of the near-field communication chip 1062, thereby avoiding the problem of delay or even failure of electronic ticket verification caused by network congestion or signal interruption between the ticketing device and the server. Users do not need to repeatedly refresh the electronic ticket status during the electronic ticket verification process. Therefore, it is not only beneficial to improve the reliability of electronic ticket verification, but also beneficial to improve the user experience. Secondly, since the technical solution of the present application embodiment generates electronic tickets based on the ticket information to be purchased, the dynamic key of the electronic ticket, and the device fingerprint of the ticketing device 106, the specification page 6 / 19 10 CN 121884471 A The electronic ticket is well bound to the device fingerprint of the ticketing device 106, thus reducing the risk of the electronic ticket data written to the near-field communication chip 1062 being copied or tampered with, thereby improving the data security of the electronic ticket. For electronic ticket verification, this significantly enhances verification security. Furthermore, since the electronic ticket in this embodiment can be generated based on a dynamic key and written to the near-field communication chip 1062, a dynamic verification mechanism can be used for subsequent verification. By utilizing the non-repeatable nature of the dynamic key, security is effectively improved. Compared to electronic ticket verification mechanisms based on static QR codes, this significantly enhances the dynamic anti-counterfeiting capability of electronic ticket verification and further reduces the risk of electronic tickets being screenshotted, spread, and resold, effectively preventing illegal resale (i.e., anti-scalping). Moreover, compared to other electronic ticket verification mechanisms such as those based on dynamic QR codes, this also avoids reliance on network and screen-on operation, improving user experience. Therefore, the technical solution of this embodiment provides a solution that balances offline availability and reliability, security, and offers good performance.Dynamic anti-counterfeiting capabilities and an electronic ticket processing solution that can effectively improve user experience.

[0056] In some optional embodiments, step S206 above may include: performing private key signing processing on the electronic ticket, and sending the signed electronic ticket to the ticket purchasing device, so that the ticket purchasing device can write the signed electronic ticket into the short-range communication chip of the ticket purchasing device.

[0057] Private key signing processing of electronic tickets can be achieved by any private key signing algorithm, such as including but not limited to RSA signing algorithm, DSA signing algorithm, elliptic curve-based signing algorithm (such as EdDSA algorithm, ECDSA algorithm, etc.), hash-based signing algorithm, etc., as long as it meets the requirements.

[0058] It should be understood that in this embodiment, the server 102 performs private key signing on the generated electronic ticket, and the ticket purchasing device 106 writes the signed electronic ticket into the near-field communication chip 1062. On the one hand, this allows the ticket purchasing device 106 to perform offline verification and recognition of the electronic ticket without needing to connect to the network during the verification stage. This avoids the problem of delays or even failures in electronic ticket verification caused by network congestion or signal interruption between the ticket purchasing device and the server. Users also do not need to repeatedly connect to the network to refresh the electronic ticket status during the verification process. Therefore, this not only improves the reliability of electronic ticket verification but also enhances the user experience. On the other hand, because the private key signing process involves signing the entire electronic ticket (such as the electronic ticket data),... All data in the package is encrypted. Any minor modification to the electronic ticket will cause the signature verification to fail, thus greatly reducing the possibility of forging electronic tickets and the risk of electronic tickets being tampered with. On the other hand, since the server 102 has performed private key signing on the generated electronic ticket, in the subsequent electronic ticket verification stage, it can be accurately determined whether the electronic ticket was issued by the issuer holding the corresponding private key by verifying the signature, thus ensuring the legality of the electronic ticket's identity. Furthermore, the electronic ticket written to the ticket purchasing device 106 in this embodiment can improve the security of the electronic ticket through the coordinated use of private key signing and the electronic ticket dynamic key. This makes it impossible for malicious personnel to forge the electronic ticket after private key signing even if they guess or intercept the electronic ticket dynamic key. In addition, even if the private key signature is difficult to crack, the electronic ticket dynamic key can also prevent the reuse of the legally signed electronic ticket, thus significantly improving the security level of the electronic ticket.

[0059] In some optional embodiments, the ticket purchasing device 106 can store the electronic ticket in the independent storage area of ​​the near-field communication chip 1062. In this embodiment, the independent storage area of ​​the near-field communication chip 1062 can refer to a storage area in the near-field communication chip 1062 that is isolated from the operating system.

[0060] It should be understood that by storing electronic tickets in an independent storage area, interference with the operating system caused by writing and verifying electronic tickets can be avoided. This also allows the ticketing device 106 to perform offline verification and recognition of electronic tickets without needing to connect to the network, thus avoiding delays or even failures in electronic ticket verification caused by network congestion or signal interruptions between the ticketing device and the server. Users also do not need to repeatedly refresh the electronic ticket status during the verification process, which not only improves the reliability of electronic ticket verification but also enhances the user experience.

[0061] In some optional embodiments, the electronic ticket processing method in this application further includes: storing the electronic ticket dynamic key of the electronic ticket in a key list, storing the device fingerprint of the ticketing device in a first storage area, and storing the ticketing information in a second storage area; and marking the status of the electronic ticket dynamic key and the ticketing information respectively.

[0062] In this application embodiment, the server 102 can store the electronic ticket dynamic key of the electronic ticket in a key list and mark the status of the electronic ticket dynamic key in the key list. For example, for electronic tickets that have not been verified and used, the dynamic key of the electronic ticket can be marked with status information indicating that the dynamic key is a valid key, while for electronic tickets that have been verified and used, the dynamic key of the electronic ticket can be marked with status information indicating that the dynamic key is an invalid key.

[0063] It is understood that the server 102 stores the dynamic key of the electronic ticket to the key list for each generated electronic ticket, which can be used for subsequent electronic ticket verification. This can effectively avoid the situation where the electronic ticket is repeatedly verified and passed, reduce the risk of repeated use of electronic tickets, and improve the reliability and security of electronic ticket verification.

[0064] In this embodiment of the application, the server 102 can store the device fingerprint of the ticket purchasing device 106 in the first storage area. The first storage area can be a storage area in any storage unit capable of data storage, such as a memory or database.

[0065] It is understood that the server 102 stores the device fingerprint of the corresponding ticket purchasing device 106 in the first storage area for each generated electronic ticket, which can be used for subsequent electronic ticket verification to achieve accurate and reliable electronic ticket verification.

[0066] In this embodiment, the server 102 can store ticketing information in a second storage area and mark the status of the ticketing information in the second storage area. The second storage area can be any storage area in a storage unit capable of data storage, such as a memory or database. The second storage area and the first storage area can be different storage areas in the same storage unit, or they can be storage areas in different storage units. For example, it can be used for unverified use...The ticketing information of electronic tickets is marked with a status information indicating that the ticketing information is in an unused state, while the ticketing information of electronic tickets that have been verified and used is marked with a status information indicating that the ticketing information is in a used state. For example, electronic tickets with risks can also be marked with a status information indicating that the ticketing information is in a risky state.

[0067] It can be understood that the server 102 stores the ticketing information of each generated electronic ticket in the second storage area, which can be used for subsequent electronic ticket verification. This can effectively avoid the situation where electronic tickets are repeatedly verified and passed, reduce the risk of repeated use of electronic tickets, and improve the reliability and security of electronic ticket verification.

[0068] In some optional embodiments, during the electronic ticket verification stage, the electronic ticket processing method in this application embodiment may further include the following steps T202~T204: T202: Receive an electronic ticket verification request from the ticket verification terminal, and extract the electronic ticket verification information from the electronic ticket verification request, wherein the electronic ticket verification information includes: ticketing information to be verified, electronic ticket dynamic key to be verified, and device fingerprint to be verified.

[0069] In some embodiments, during electronic ticket verification, the user can bring their ticket purchasing device 106 close to the ticket verification terminal 104, and the ticket verification terminal 104 can establish a short-range communication connection with the ticket purchasing device 106. For example, if the short-range communication chip 1062 of the ticket purchasing device 106 is an NFC chip, then the ticket verification terminal 104 may include another short-range communication chip (e.g., a second short-range communication chip 1042) which is also an NFC chip, and then the ticket purchasing device 106 can establish an NFC connection with the ticket verification terminal 104.

[0070] Optionally, the ticket verification terminal 104 can then read the electronic ticket verification data packet from the short-range communication chip 1062 of the ticketing device 106 via a short-range communication connection. The electronic ticket verification data packet includes: ticketing information to be verified, a dynamic key for the electronic ticket to be verified, and a device fingerprint to be verified. The dynamic key for the electronic ticket to be verified is obtained based on the identification information of the short-range communication chip 1062 of the ticketing device 106. The ticket verification terminal 104 can then generate an electronic ticket verification request based on the information contained in the electronic ticket verification data packet and send the electronic ticket verification request to the server 102.

[0071] After receiving the electronic ticket verification request, the server 102 can extract the electronic ticket-related information to be verified from the electronic ticket verification request to facilitate electronic ticket verification.

[0072] T204: Based on the extracted electronic ticket information to be verified, and the key list, the first storage area, and the second...The data stored in the storage areas are used to verify the information to be verified, and the electronic ticket verification result is returned to the ticket verification terminal.

[0073] Optionally, the server 102 can verify the extracted electronic ticket dynamic key to be verified based on the electronic ticket dynamic key and its marked status stored in the key list; it can verify the extracted device fingerprint to be verified based on the device fingerprint stored in the first storage area; it can verify the extracted ticket information to be verified based on the ticketing information and its status stored in the second storage area. Optionally, when verifying the information to be verified, if the verification meets the predetermined conditions, the server 102 can return a verification result to the ticket verification terminal 104 to indicate that the electronic ticket verification has passed; and if the verification does not meet the preset conditions, the server 102 can return a verification result to the ticket verification terminal 104 to indicate that the electronic ticket verification has failed.

[0074] Based on this, the optional implementation of steps T202~T204 in the embodiments of this application extracts the electronic ticket verification information, including the ticketing information to be verified, the dynamic key of the electronic ticket to be verified, and the device fingerprint to be verified, from the electronic ticket verification request received by the ticket verification terminal 104. Then, based on the electronic ticket verification information and the data stored in the key list, the first storage area, and the second storage area respectively, the verification information is reasonably verified. This can accurately realize the verification of electronic tickets and improve the reliability and security of offline verification and identification of electronic tickets.

[0075] In some optional embodiments, after receiving the electronic ticket verification request from the ticket verification terminal 104, the server 102 can perform signature verification on the electronic ticket verification information extracted from the electronic ticket verification request to determine whether the private key signature of the electronic ticket is valid. This reduces the risk of forged or tampered electronic tickets being verified and improves the reliability of electronic ticket verification.

[0076] For example, in some optional embodiments, the electronic ticket information to be verified in step T204 can be verified by the following steps T2042~T2048: T2042: Perform a first comparison between the ticket information to be verified and the ticket information stored in the second storage area, and determine whether the ticket indicated by the ticket information to be verified is in an available state.

[0077] For example, in some embodiments, when the ticket is in an unused state and not in a risk state, it can be determined that the ticket is in an available state. Optionally, the "suspicious ticket transfer" state in the following embodiments can be a risk state.

[0078] Optionally, when performing the first comparison, it can be determined whether the ticket information to be verified exists in the ticket information stored in the second storage area. If it exists, it can be determined whether the state marked by the ticket information to be verified is available.If the ticket information to be verified is in an available state, the result of the first comparison is "yes", and the first comparison passes. Conversely, if the ticket information is not stored, or if the ticket information to be verified is not marked as available (e.g., marked as used and / or risky), the result of the first comparison is "no", and the first comparison fails.

[0079] It should be noted that in the above description of the first comparison, the first step of "determining whether the ticket information to be verified exists in the ticket information stored in the second storage area" and then "determining whether the ticket information to be verified is marked as available" is only an example. In actual applications, the execution order of "determining whether the ticket information to be verified exists in the ticket information stored in the second storage area" and "determining whether the ticket information to be verified is marked as available" can be changed according to actual needs, and can also be executed in any order or in parallel.

[0080] T2044: Perform a second comparison between the dynamic key of the electronic bill to be verified and the dynamic keys stored in the key list, and determine whether the dynamic key of the electronic bill to be verified is a valid key.

[0081] Optionally, when performing the second comparison, it can be determined whether the dynamic key of the electronic bill to be verified exists in the dynamic keys stored in the key list. If it exists, it can be determined whether the state marked by the dynamic key of the electronic bill to be verified is a valid key state. If it is a valid key state, the result of the second comparison can be determined to be "yes", and the second comparison passes; otherwise, if it does not exist, or if it is determined that the state marked by the dynamic key of the electronic bill to be verified is not a valid key state (for example, when it is marked as an invalid key), the result of the second comparison is determined to be "no", and the second comparison fails.

[0082] It should be noted that the above description of the second comparison, which first "determines whether the dynamic key to be verified exists in the dynamic keys stored in the key list" and then "determines whether the state marked by the dynamic key to be verified is a valid key state," is only an illustrative example. In actual applications, the execution order of "determining whether the dynamic key to be verified exists in the dynamic keys stored in the key list" and "determining whether the state marked by the dynamic key to be verified is a valid key state" can be changed according to actual needs, and can also be executed in any order or in parallel.

[0083] Alternatively, if the key list is a valid key list, then during the second comparison, it can be directly determined whether the dynamic key to be verified exists in the dynamic keys stored in the valid key list. If yes, the result of the second comparison can be determined to be "yes"; otherwise, the result of the second comparison can be determined to be "no."

[0084] T2046: Perform a third comparison between the device fingerprint to be verified and the device fingerprint stored in the first storage area, and determine whether the device fingerprint to be verified is the same as the device fingerprint corresponding to the electronic ticket purchasing device.

[0085] Optionally, when performing the third comparison, it can be determined whether the device fingerprint to be verified exists in the device fingerprint stored in the first storage area. If it exists, it can be determined whether the device fingerprint to be verified is the same as the device fingerprint corresponding to the electronic ticket purchasing device. If it is the same as the device fingerprint corresponding to the electronic ticket purchasing device, the result of the third comparison can be determined to be "yes", and the third comparison passes; otherwise, if it does not exist, or if it is determined that the device fingerprint to be verified is different from the device fingerprint corresponding to the electronic ticket purchasing device, the result of the third comparison is determined to be "no", and the third comparison fails.

[0086] An example is provided here for illustrative purposes. After user a purchases a ticket through device A, the server can store the dynamic key of the electronic ticket purchased through device A in the key list, store the device fingerprint of device A (assuming the SEID of the NCF chip can be used directly as the device fingerprint) in the first storage area, and store the ticketing information PW_A in the second storage area. Assuming that in an illegal resale scenario (i.e., a scalper scenario), user a transfers the electronic ticket from device A to user b's device B, and device B stores the electronic ticket in its near-field communication chip (such as an NFC chip), then during electronic ticket verification, the ticket verification terminal 104 extracts the verification information of the electronic ticket corresponding to device B. Since the ticket verification terminal 104 is interacting with the near-field communication chip (such as an NFC chip) of device B, the device fingerprint it can extract is also the device fingerprint of device B (i.e., the SEID of device B's NFC chip). Therefore, when the third comparison determines whether the fingerprint of the device to be verified is the same as the fingerprint of the electronic ticket purchasing device corresponding to the electronic ticket purchase device on page 10 / 19 of the specification (CN 121884471 A), it is inevitable that the extracted fingerprint of the device to be verified (i.e., the device fingerprint of device B) will not exist in the first storage area, or the fingerprint of the device to be verified will not be the same as the fingerprint of device A (i.e., the electronic ticket purchasing device) corresponding to the ticketing information PW_A stored on the server. Thus, the result of the third comparison will be "no", and the third comparison will fail. However, if there is no illegal resale, the ticket verification terminal 104 interacts with the near-field communication chip of device A, and the extracted fingerprint of the device to be verified is the fingerprint of device A. Therefore, the fingerprint of the device to be verified is the same as the fingerprint of the device corresponding to device A (i.e., the electronic ticket purchasing device). Thus, the result of the third comparison will be "yes", and the third comparison will pass.

[0087] It should be noted that in the above description of the third comparison, the first step is to "determine the device stored in the first storage area".The steps "whether the fingerprint exists in the device fingerprint to be verified" and "whether the fingerprint to be verified is the same as the device fingerprint corresponding to the electronic ticket purchasing device" are only illustrative examples. In actual applications, the execution order of "whether the fingerprint stored in the first storage area exists in the device fingerprint to be verified" and "whether the fingerprint to be verified is the same as the device fingerprint corresponding to the electronic ticket purchasing device" can be changed according to actual needs, and can be executed in any order or in parallel.

[0088] It should also be noted that the execution order of the above steps T2042, T2044, and T2046 in this application embodiment is not specifically limited. They can be executed in any order, or partially in order or in parallel, as long as the verification can be completed.

[0089] T2048: If the results of the first comparison, the second comparison, and the third comparison are all yes, then the electronic ticket verification is determined to be successful.

[0090] When the results of the first comparison, the second comparison, and the third comparison are all yes, it indicates that the ticket information to be verified indicates whether the ticket is in an available state, the dynamic key of the electronic ticket to be verified is a valid key, and the device fingerprint to be verified is the same as the device fingerprint corresponding to the ticket purchase device of the electronic ticket. Therefore, the information to be verified of the electronic ticket meets the relevant characteristics of an electronic ticket that has not been verified and used before, and thus it can be determined that the electronic ticket verification is successful.

[0091] Based on this, through the optional implementation of the above steps T2042~T2048, through the first comparison of the ticket information to be verified, the second comparison of the dynamic key of the electronic ticket to be verified, and the third comparison of the device fingerprint to be verified, it can be determined that the electronic ticket verification is successful when the results of the first comparison, the second comparison, and the third comparison are all yes. Through the triple comparison verification method, it can be ensured that the ticket is available (that is, the ticket is in an available state). Electronic tickets that have not been verified and used (i.e., the electronic ticket dynamic key is a valid key) and whose device fingerprint to be verified is the same as the device fingerprint corresponding to the ticket purchasing device can be verified, thereby ensuring the convenience, reliability and security of offline verification and identification of electronic tickets, and facilitating the prevention of illegal resale (i.e., anti-scalping).

[0092] In some optional embodiments, the electronic ticket processing method in this application embodiment further includes: if the result of the third comparison indicates that the device fingerprint to be verified is different from the device fingerprint corresponding to the ticket purchasing device of the electronic ticket, then the verification fails, and the electronic ticket is marked as a suspicious transfer ticket.

[0093] It should be understood that if the device fingerprint to be verified is different from the device fingerprint corresponding to the ticket purchasing device of the electronic ticket in the verification information of the electronic ticket, it means that the ticket purchasing device that performs the ticket verification operation with the ticket verification terminal is not the original ticket purchasing device of the electronic ticket being verified, that is, the electronic ticket may have passed through the original ticket purchasing device to the ticket purchasing device currently being verified.The ticket transfer process is usually highly related to scalping or non-compliant ticket resale.

[0094] Therefore, in this embodiment of the application, when the server 102 verifies the information to be verified of the electronic ticket, if the result of the third comparison indicates that the fingerprint of the device to be verified is different from the fingerprint of the device corresponding to the ticket purchase device of the electronic ticket (that is, the result of the third comparison is "no"), then the third comparison fails, the electronic ticket verification fails, and the electronic ticket can be rejected. The electronic ticket is marked as a suspicious transfer, which can realize the cross-device interception of scalping or non-compliant resale tickets, thereby effectively preventing illegal resale (i.e., anti-scalping) and risk control of non-compliant ticket resale, and also provides the issuer with the possibility of holding scalping or non-compliant ticket resale accountable.

[0095] Optionally, the aforementioned suspicious resale status can be considered as a risk status. Therefore, the server 102 can mark the ticketing information of the electronic tickets stored in the second storage area with a risk status marker indicating that the ticketing information is suspicious for resale.

[0096] In some optional embodiments, the electronic ticket processing method in this application embodiment further includes: if the verification result indicates that the electronic ticket verification is successful, a random string is generated and sent to the ticket purchasing device through the ticket verification terminal, so as to overwrite the dynamic key of the electronic ticket in the ticket purchasing device with the random string.

[0097] After the electronic ticket verification is successful, the server 102 can generate a random string using any random string generation algorithm and send it to the ticket verification terminal 104. The ticket verification terminal 104 can send it to the ticket purchasing device 106 based on the short-range communication connection with the ticket purchasing device 106. For example, taking the near-field communication chip 1062 of the ticketing device 106 as an NFC chip and the near-field communication connection as an NFC connection, the ticket verification terminal 104 can write a random string into the independent storage area of ​​the near-field communication chip 1062 of the ticketing device 106 via an NFC write command, so as to overwrite the dynamic key of the electronic ticket in the ticketing device 106 with the random string.

[0098] It should be understood that by generating a random string to overwrite the dynamic key of the electronic ticket in the ticketing device 106 in this embodiment, the situation of a single electronic ticket in the same ticketing device 106 being repeatedly verified can be avoided, reducing the risk of repeated use of electronic tickets and improving the reliability and security of electronic ticket verification.

[0099] Optionally, if the verification result indicates that the electronic ticket verification is successful, the server 102 can also mark the dynamic key of the electronic ticket in the key list as an invalid key. Thus, the situation of the electronic ticket being repeatedly verified can be further avoided, reducing the risk of repeated use of electronic tickets and improving the reliability and security of electronic ticket verification.

[0100] In some other embodiments, the electronic ticket processing method may include: if the verification result indicates that the electronic ticket verification is successful, then a clearing instruction is sent to the ticket purchasing device through the ticket verification terminal, so that the ticket purchasing device clears the electronic ticket dynamic key in the ticket purchasing device based on the clearing instruction. In this way, the electronic ticket can also be avoided from being repeatedly verified.

[0101] In some further optional embodiments, after the verification result indicates that the electronic ticket verification is successful, the electronic ticket dynamic key in the ticket purchasing device 106 may not be overwritten or cleared. Instead, the electronic ticket dynamic key of the electronic ticket in the key list of the server 102 may be marked as an invalid key or cleared, as long as the requirements are met.

[0102] Optionally, when overwriting or clearing data (such as the electronic ticket dynamic key) in the ticket purchasing device 106, the operating system of the ticket purchasing terminal may issue an instruction to clear or overwrite the corresponding data stored in the near-field communication chip 1062. Alternatively, other feasible methods may be used to achieve this, and there is no unique limitation here.

[0103] In some optional embodiments, the electronic ticket processing method in this application further includes: obtaining the spatiotemporal feature information of the electronic ticket from the electronic ticket verification request.

[0104] Optionally, the spatiotemporal feature information of the electronic ticket may include the ticketing time information and ticketing location information corresponding to the electronic ticket. For example, the ticketing time information may include at least one of the ticket usage time information and the verification time information; the ticketing location information may include at least one of the ticket usage location information and the verification location information. For example, taking a concert ticket as an example, the usage time information may be the performance time of the concert corresponding to the concert ticket, the usage location information may be the performance location of the concert corresponding to the concert ticket, the verification time information may be the verification time of the ticket (page 12 / 19 of the concert instruction manual, 16 CN 121884471 A), and the verification location information may be the verification location of the concert ticket. For example, taking a train ticket as an example, the usage time information can be the departure time and running time of the train corresponding to the ticket, the usage location information can be the route of the train corresponding to the ticket, the verification time information can be the verification time of the train ticket, and the verification location information can be the verification location of the train ticket. In some optional embodiments, the server 102 can extract the usage time information and / or usage location information of the ticket from the ticketing information carried in the electronic ticket verification request, and can extract the verification time information and / or verification location information of the ticket carried in the electronic ticket verification request and determined by the ticket verification terminal 104 during ticket verification.

[0105] In some optional embodiments, before verifying the information to be verified of the electronic ticket in step T204, the electronic ticket processing method further includes: verifying the ticketing time and ticketing location of the electronic ticket based on spatiotemporal feature information.Verification; if the verification is successful, then the verification operation is performed based on the extracted electronic ticket information to be verified, as well as the data stored in the key list, the first storage area, and the second storage area respectively.

[0106] For example, when verifying the ticketing time of an electronic ticket based on spatiotemporal feature information, if the ticketing time information of the electronic ticket meets the predetermined time conditions, the ticketing time verification is successful; otherwise, the verification is unsuccessful. For example, assuming that the ticketing time information includes usage time information and verification time information, if the usage time information meets the predetermined usage time and the verification time information meets the predetermined verification time, the ticketing time verification is successful; otherwise, the verification is unsuccessful.

[0107] As another example, when verifying the ticketing location of an electronic ticket based on spatiotemporal feature information, if the ticketing location information of the electronic ticket meets the preset location conditions, the ticketing location verification is successful; otherwise, the verification is unsuccessful. For example, assuming that the ticketing location information includes usage location information and verification location information, if the usage location information meets the predetermined usage location and the verification location information meets the predetermined verification location, the ticketing location verification is successful; otherwise, the verification is unsuccessful.

[0108] Optionally, after both the ticket time verification and ticket location verification are passed, step T204 above can be executed to continue verifying the information to be verified on the electronic ticket.

[0109] For ease of understanding, the verification of electronic concert tickets can be used as an example. For example, if the extracted spatiotemporal feature information of the electronic ticket (i.e., concert ticket) includes usage time information and verification time information, and the usage time information indicates that the concert performance time is 19:00~22:00, and the verification time information indicates that the verification time of the concert ticket is 17:30, assuming the preset usage time is 19:00~22:00 and the preset verification time is 17:00~22:00, then the usage time information matches the preset usage time, and the verification time information matches the preset verification time, so it can be determined that the ticket time verification is successful; if the usage time information indicates that the concert performance time is 14:00~17:00 and / or the verification time information indicates that the verification time of the concert ticket is 12:30, then the usage time information does not match the preset usage time and / or the verification time information does not match the preset verification time, so it can be determined that the ticket time verification is unsuccessful. For example, if the extracted spatiotemporal feature information of the electronic ticket includes usage location information and verification location information, and the usage location information indicates that the concert performance location is venue A, and the verification location information indicates that the concert verification location is venue A, assuming the preset usage location is venue A, and the preset verification location is venue A, then if the usage location information matches the preset usage location, and the verification location information matches the preset verification location, then the ticket location verification can be confirmed as successful. However, if the usage location information indicates that the concert performance location is venue B...If the verification location information indicates that the verification location of the concert ticket is Venue B, then the usage location information does not conform to the predetermined usage location and / or the verification location information does not conform to the predetermined verification location, and it can be determined that the ticketing location verification fails. When both the ticketing time verification and the ticketing location verification are successful, the server 102 can perform the operation in step T204 based on the extracted electronic ticket verification information, as well as the data stored in the key list, the first storage area, and the second storage area respectively, to continue to verify the electronic ticket for the concert ticket and return the electronic ticket verification result to the ticket verification terminal 104. It is understood that the time and location given above are only examples and are not intended to limit the embodiment of 17 CN 121884471 A on pages 13 / 19 of this application specification.

[0110] When the ticketing time verification and / or the ticketing location verification fail, it indicates that the electronic ticket being verified may be a problematic ticket or an incorrect ticket that does not meet the requirements for ticketing time and / or ticketing location. For example, taking concert tickets as an example, in some cases, users arrive at the concert venue too early to redeem their tickets or redeem them only after the concert has ended, resulting in the concert tickets not meeting the requirements. In other cases, users go to the wrong concert venue to redeem their tickets, resulting in the concert tickets not meeting the requirements.

[0111] It should be understood that the above implementation scheme of the embodiments of this application, by verifying the ticketing time and ticketing location of electronic tickets based on spatiotemporal feature information, and then performing the operation of verifying the information to be verified of electronic tickets in step T204 after the verification is passed, can achieve the filtering of problematic tickets or incorrect tickets that do not meet the requirements for ticketing time and / or ticketing location, avoiding the verification of the information to be verified for problematic tickets or incorrect tickets that do not meet the requirements for ticketing time and / or ticketing location, which is conducive to improving the efficiency and reliability of electronic ticket verification.

[0112] It is understood that the foregoing description of the electronic ticket processing method is only an exemplary description of some embodiments of this application and is not intended to limit the embodiments of this application.

[0113] Figure 3 is a flowchart of another electronic ticket processing method according to an embodiment of this application. According to a second aspect of the embodiments of this application, an electronic ticket processing method is provided. Optionally, the method can be applied to a ticket verification terminal 104. Referring to FIG3, the electronic ticket processing method may include the following steps S302, S304, S306 and S308, specifically: S302: Establish a short-range communication connection with the ticket purchasing device.

[0114] S304: Read the electronic ticket verification data packet from the short-range communication chip of the ticket purchasing device through the short-range communication connection.

[0115] In the embodiments of this application, the electronic ticket verification data packet includes: ticketing information to be verified, electronic ticket dynamic key to be verified, and device fingerprint to be verified.

[0116] S306: Based on the information contained in the electronic ticket verification data packet, generate an electronic ticket verification request and send the electronic ticket verification request to the server.

[0117] S308: Receive the electronic ticket verification result returned by the server based on the electronic ticket verification request.

[0118] Based on this, the electronic ticket processing method in steps S302 to S308 of the present application embodiment, on the one hand, the electronic ticket verification data packet is stored in the near-field communication chip 1062 of the ticket purchasing device 106. Then, during electronic ticket verification, the electronic ticket verification data packet can be read through the near-field communication connection between the ticket verification terminal 104 and the ticket purchasing device 106, and an electronic ticket verification request can be generated based on the information contained in the electronic ticket verification data packet, so as to send the electronic ticket verification request to the server 102 to realize offline verification and recognition. This avoids the problem of electronic ticket verification delay or even failure caused by network congestion or signal interruption between the ticket purchasing device and the server. The user does not need to repeatedly refresh the electronic ticket status during the electronic ticket verification process. Therefore, it is not only beneficial to improve the reliability of electronic ticket verification, but also beneficial to improve the efficiency of electronic ticket verification. High user experience; on the other hand, since the electronic ticket verification data packet includes the ticketing information to be verified, the dynamic key of the electronic ticket to be verified, and the device fingerprint to be verified, the server verifies the electronic ticket based on the electronic ticket verification request. Furthermore, the electronic ticket verification request is generated based on the information contained in the electronic ticket verification data packet, which can accurately verify the electronic ticket and improve the reliability and security of offline verification and recognition of electronic tickets. Moreover, since the dynamic key of the electronic ticket to be verified is included in the information of the electronic ticket verification data packet, a dynamic verification mechanism can be used for subsequent electronic ticket verification. By utilizing the non-repeatability of the dynamic key, security can be effectively improved. Compared with electronic ticket verification mechanisms based on static QR codes, this can effectively improve the security of electronic ticket verification. (Instructions 14 / 19) Page 18 CN 121884471 A The dynamic anti-counterfeiting capability of the certificate can further reduce the risk of electronic tickets being screenshotted and resold, and has a good effect in preventing illegal resale (i.e., preventing scalpers). Compared with other electronic ticket verification mechanisms such as dynamic QR codes, it can further avoid dependence on network and screen operation, which is conducive to improving user experience. Therefore, the technical solution of this application provides an electronic ticket processing solution that takes into account offline availability and reliability, security, and has good dynamic anti-counterfeiting capabilities, and can effectively improve user experience.

[0119] In some optional embodiments, the dynamic key of the electronic ticket to be verified is obtained based on the identification information of the near-field communication chip of the ticket purchasing device. Therefore, the reliability and security of offline verification and identification of electronic tickets can be further improved.

[0120] It should be understood that the relevant content of the electronic ticket processing method in the second aspect has been described in the aforementioned method embodiment of the first aspect. The relevant content and beneficial effects can be understood in conjunction with the content of the previous embodiments, and will not be repeated here.

[0121] Figure 4 is a flowchart of another electronic ticket processing method according to an embodiment of this application. According to the third aspect of the embodiment of this application, an electronic ticket processing method is provided. Optionally, the method can be applied to a ticket purchasing device 106. Referring to Figure 4, the electronic ticket processing method may include the following steps S402 and S404, specifically: S402: Receive the electronic ticket returned by the server based on the ticket purchase request.

[0122] In the embodiment of this application, the electronic ticket includes: ticketing information, electronic ticket dynamic key, and device fingerprint of the ticket purchasing device.

[0123] S404: Store the electronic ticket in the independent storage area of ​​the near-field communication chip of the ticket purchasing device.

[0124] Based on this, the electronic ticket processing method in steps S402-S404 of this application embodiment has two aspects. First, in this application embodiment, the ticket purchasing device 106 receives the electronic ticket returned by the server 102 based on the ticket purchase request and stores the electronic ticket in the independent storage area of ​​its near-field communication chip 1062. Therefore, in subsequent electronic ticket verification, offline verification and identification can be achieved based on the communication of the near-field communication chip, thereby avoiding the problem of electronic ticket verification delay or even failure caused by network congestion or signal interruption between the ticket purchasing device and the server. Users do not need to repeatedly refresh the electronic ticket status during the electronic ticket verification process. Therefore, it is not only beneficial to improve the reliability of electronic ticket verification, but also to improve the user experience. In addition, storing the electronic ticket in the independent storage area of ​​the near-field communication chip 1062 can also avoid interference to the operating system caused by electronic ticket writing and verification. Second, since the generated electronic ticket includes ticketing information, electronic ... The electronic ticket uses a dynamic key and the ticketing device's fingerprint to effectively bind the electronic ticket to the ticketing device 106. This reduces the risk of the electronic ticket data written to the near-field communication chip 1062 being copied or tampered with, thus improving the data security of the electronic ticket. For electronic ticket verification, this significantly enhances verification security. Furthermore, since the electronic ticket includes a dynamic key written to the near-field communication chip 1062, a dynamic verification mechanism can be used for subsequent verification. Utilizing the non-repeatable nature of the dynamic key effectively improves security. Compared to verification mechanisms based on static QR codes, this significantly enhances the dynamic anti-counterfeiting capabilities of electronic ticket verification and further reduces the risk of the electronic ticket being screenshotted, disseminated, and resold. It effectively prevents illegal resale (i.e., scalping) and is more effective than mechanisms based on dynamic QR codes.Other electronic ticket verification mechanisms can further avoid dependence on network and screen operation, which is conducive to improving user experience. It can be seen that the technical solution of this application provides an electronic ticket processing solution that takes into account offline availability and reliability, security, and has good dynamic anti-counterfeiting capabilities, which can effectively improve user experience.

[0125] Optionally, the electronic ticket can be an encrypted ticket. In some optional embodiments, the dynamic key of the electronic ticket is obtained based on the identification information of the near-field communication chip 1062 of the ticketing device 106. It should be understood that since the dynamic key of the electronic ticket is generated based on the identification information of the near-field communication chip 1062 of the ticketing device 106, the electronic ticket is not only bound to the device fingerprint of the ticketing device 106, but also to the identification information of the near-field communication chip 1062. Therefore, the risk of the electronic ticket data written to the near-field communication chip 1062 being copied or tampered with is better reduced, which is conducive to further improving the data security of the electronic ticket. For electronic ticket verification, it can better improve the verification security.

[0126] In some optional embodiments, the electronic ticket verification method further includes: establishing a short-range communication connection with the ticket verification terminal 104, and providing the ticket verification terminal 104 with an electronic ticket verification data packet from the short-range communication chip 1062 through the short-range communication connection. The electronic ticket verification data packet includes: ticketing information to be verified, a dynamic key for the electronic ticket to be verified, and a device fingerprint to be verified. This facilitates the ticket verification terminal 104 in obtaining the electronic ticket verification data packet, enabling reliable verification of the electronic ticket.

[0127] In some optional embodiments, the ticket verification terminal 104 receives a random string to overwrite the dynamic key for the electronic ticket in the ticketing device. It should be understood that overwriting the dynamic key for the electronic ticket in the ticketing device 106 with a random string in this embodiment of the application can prevent a single electronic ticket in the same ticketing device 106 from being verified multiple times, reducing the risk of repeated use of electronic tickets and improving the reliability and security of electronic ticket verification.

[0128] It should be understood that the relevant content of the electronic ticket processing method in the third aspect has been described in the aforementioned method embodiment of the first aspect. The relevant content and beneficial effects can be understood in conjunction with the content of the previous embodiments, and will not be repeated here.

[0129] Hereinafter, with reference to the scenario diagram shown in FIG5, the implementation process of the electronic ticket processing scheme of the present application embodiment will be described by way of example. When understanding this scenario example, it can be understood by referring to the scenario of concert ticket purchase and ticket verification.

[0130] Electronic ticket generation process: As shown in FIG5, the user can use the ticket purchase device 106 to purchase tickets on the concert ticket interface.When a user initiates a ticket purchase, the ticketing device 106 generates a purchase request based on the user's action and sends it to the server 102. The server 102 then generates a data packet containing the electronic ticket for the concert based on the purchase request from the ticketing device 106 and writes this data packet into the near-field communication (NFC) chip 1062 of the ticketing device 106. Figure 5 illustrates the NFC chip 1062 as an example. Optionally, the server 102 can obtain the identification information of the NFC chip 1062 from the purchase request from the ticketing device 106, collect the device fingerprint of the ticketing device 106, generate a dynamic key for the electronic ticket based on the identification information of the NFC chip 1062, and then generate an electronic ticket based on the ticket information to be purchased, the dynamic key for the electronic ticket, and the device fingerprint of the ticketing device 106. The server can then perform private key signing on the electronic ticket and send the signed electronic ticket to the ticketing device 106, which writes the electronic ticket into the independent storage area of ​​the NFC chip 1062. In addition, the server 102 can store the electronic ticket dynamic key in the key list, store the device fingerprint in the first storage area, and store the ticketing information in the second storage area, and mark the status of the electronic ticket dynamic key and the ticketing information respectively.

[0131] Electronic ticket verification process: As shown in Figure 5, when verifying the concert ticket, the ticket purchasing device 106 can be in an online or offline state. The user can bring the ticket purchasing device 106 close to the ticket verification terminal 104. The ticket verification terminal 104 can establish a short-range communication connection with the short-range communication chip 1062 of the ticket purchasing device 106 (in the example in Figure 5, it can be an NFC connection). Subsequently, the ticket verification terminal 104 can read the electronic ticket verification data packet from the near-field communication chip 1062 of the ticketing device 106 via NFC connection. This electronic ticket verification data packet includes: ticketing information to be verified, the dynamic key of the electronic ticket to be verified, and the device fingerprint to be verified. The dynamic key of the electronic ticket to be verified is obtained based on the identification information of the near-field communication chip 1062 of the ticketing device 106. Based on the information contained in the electronic ticket verification data packet, an electronic ticket verification request is generated and sent to the server 102. The server 102 can then receive the electronic ticket verification request and extract the electronic ticket's verification information from it. This verification information includes: ticketing information to be verified, the dynamic key of the electronic ticket to be verified, and the device fingerprint to be verified. Based on the extracted verification information and the key list stored in the first and second storage areas respectively...The server 102 verifies the stored data and returns the electronic ticket verification result to the ticket verification terminal 104. Optionally, the server 102 determines whether the electronic ticket verification is successful through a first comparison, a second comparison, and a third comparison. For example, if the results of the first comparison, the second comparison, and the third comparison are all positive, then the electronic ticket verification is successful. If the electronic ticket verification is successful, the server 102 can generate a random string and send it to the ticket verification terminal 104. The ticket verification terminal 104 writes the random string to the NFC chip of the ticketing device 106 via an NFC write command, thereby overwriting the electronic ticket dynamic key in the ticketing device 106 with the random string. Furthermore, the server 102 marks the electronic ticket dynamic key of this electronic ticket in the key list as an invalid key, thus completing the verification and cancellation of a single concert ticket. If the result of the third comparison indicates that the fingerprint of the device to be verified is different from the fingerprint of the device corresponding to the electronic ticket purchase device, the verification fails directly, and the server 102 marks the electronic ticket as suspicious for resale, so as to prevent illegal resale (i.e., anti-scalping) and the risk control effect of non-compliant ticket resale.

[0132] It should be understood that the content of Figure 5 above can also be understood with reference to the above text, and the example of Figure 5 above is only for ease of understanding and is not intended to limit any embodiment of this application.

[0133] According to the fourth aspect of the embodiment of this application, a server 102 is provided, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store a computer program; the processor is used to execute the electronic ticket processing method described in the first aspect by running the computer program stored in the memory.

[0134] Figure 6 shows a schematic block diagram of an example server in the embodiment of this application. This application embodiment does not limit the specific implementation of the server 102. As an example, referring to FIG6, the server 102 provided in this application embodiment may include: a processor 1002, a communication interface 1004, a memory 1006, and a communication bus 1008. Wherein: the processor 1002, the communication interface 1004, and the memory 1006 communicate with each other through the communication bus 1008.

[0135] The communication interface 1004 is used to communicate with other electronic devices or servers.

[0136] The processor 1002 is used to execute the computer program 1010, specifically, it can execute the relevant steps in the method embodiment of the first aspect described above.

[0137] Specifically, the computer program 1010 may include program code, which includes computer operation instructions.

[0138] The processor 1002 may be a CPU, a GPU (Graphics Processing Unit), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.

[0139] The memory 1006 is used to store the computer program 1010. The memory 1006 may include high-speed RAM memory and may also include non-volatile memory, such as at least one disk storage device.

[0140] The computer program 1010 can specifically be used to cause the processor 1002 to execute the methods in any of the embodiments of the first aspect described above.

[0141] The specific implementation of each step in the computer program 1010 can be found in the corresponding descriptions of the steps and units in any of the embodiments of the electronic ticket processing method in the first aspect described above, and will not be repeated here. Those skilled in the art can clearly understand from pages 17 / 19 of the specification, CN 121884471 A, that for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process description in the foregoing method embodiments, and will not be repeated here.

[0142] The server 102 in this application embodiment has been described in detail in the foregoing electronic ticket processing method embodiment, so its related content and beneficial effects can be understood by referring to the above method embodiments, and will not be repeated here.

[0143] According to the fifth aspect of the embodiment of this application, a ticket verification terminal 104 is provided. Referring to FIG7, the ticket verification terminal 104 may include: a second short-range communication chip 1042 and a processor 1044; wherein, the second short-range communication chip 1042 is used to establish a short-range communication connection with the ticket purchasing device 106; the processor 1044 is used to read an electronic ticket verification data packet from the short-range communication chip 1062 of the ticket purchasing device 106 through the short-range communication connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, an electronic ticket dynamic key to be verified, and a device fingerprint to be verified, wherein the electronic ticket dynamic key to be verified is obtained based on the identification information of the short-range communication chip 1062 of the ticket purchasing device 106; based on the information contained in the electronic ticket verification data packet, an electronic ticket verification request is generated and the electronic ticket verification request is sent to the server 102; and the electronic ticket verification result returned by the server 102 based on the electronic ticket verification request is received.

[0144] According to a sixth aspect of the embodiments of this application, a ticket purchasing device 106 is provided. Referring to FIG8, the ticket purchasing device 106 may include: a near-field communication chip 1062 and a processor 1064; wherein, the processor 1064 is used to receive an electronic ticket returned by the server 102 based on a ticket purchasing request, wherein the electronic ticket is an encrypted ticket, and the electronic ticket includes: ticketing information, an electronic ticket dynamic key, and a device fingerprint of the ticket purchasing device, wherein the electronic ticket dynamic key is obtained based on the identification information of the near-field communication chip 1062 of the ticket purchasing device 106; the near-field communication chip 1062 is used to store the electronic ticket in an independent storage area.

[0145] The server 102, the ticket verification terminal 104, and the ticket purchasing device 106 in the embodiments of this application have been described in detail in the previous embodiments, so their related content and beneficial effects can be understood with reference to the previous embodiments, and will not be repeated here.

[0146] According to a seventh aspect of the present application, the present application also provides a computer storage medium storing a computer program thereon, which, when executed by a processor, implements the electronic ticket processing method described in any one of the multiple method embodiments of the first, second, and third aspects described above. Optionally, the computer storage medium includes, but is not limited to, a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk, or a magneto-optical disk.

[0147] According to an eighth aspect of the present application, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the electronic ticket processing method described in any one of the multiple method embodiments of the first, second, and third aspects described above.

[0148] The computer storage medium / computer program product embodiments in the present application have been described in detail in the foregoing electronic ticket processing method embodiments, therefore their related content and beneficial effects can be understood by referring to the above method embodiments, and will not be repeated here.

[0149] Furthermore, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used for training the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties. The collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0150] It should be pointed out that, according to implementation needs, the various components / steps described in the embodiments of this application can be broken down into more...Multiple components / steps, or combinations of two or more components / steps or partial operations of components / steps into new components / steps, can be used to achieve the purpose of the embodiments of this application.

[0151] The methods described above according to the embodiments of this application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be stored in a local recording medium after being downloaded via a network, so that the methods described herein can be stored on such software processing on a recording medium using a general-purpose computer, a special processor or programmable or special hardware (such as an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA)). It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components (e.g., random access memory (RAM), read-only memory (ROM), flash memory, etc.) capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implement the methods described herein. Furthermore, when a general-purpose computer accesses code used to implement the methods shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for performing the methods shown herein.

[0152] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for a specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

[0153] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments". It should be noted that the concepts of "first," "second," etc., mentioned in the embodiments of this application are only used to distinguish different devices, modules, or units, and are not used to limit the order of functions performed by these devices, modules, or units or their interdependencies. It should be noted that the embodiments of this application...The terms "one" and "more" mentioned in the examples are illustrative rather than restrictive. Those skilled in the art should understand that, unless explicitly stated otherwise in the context, they should be understood as "one or more".

[0154] The above embodiments are only used to illustrate the embodiments of this application, and are not intended to limit the embodiments of this application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of this application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of this application, and the patent protection scope of the embodiments of this application should be defined by the claims. Instruction Manual 19 / 19 Page 23 CN 121884471 A Figure 1 Figure 2 Instruction Manual Drawings 1 / 4 Page 24 CN 121884471 A Figure 3 Figure 4 Instruction Manual Drawings 2 / 4 Page 25 CN 121884471 A Figure 5 Instruction Manual Drawings 3 / 4 Page 26 CN 121884471 A Figure 6 Figure 7 Figure 8 Instruction Manual Drawings 4 / 4 Page 27 CN 121884471 A Abstract The embodiment of the invention provides an electronic bill processing method, a server, a ticket checking terminal, ticket buying equipment, and a storage medium. The electronic bill processing method comprises the following steps: based on a ticket buying request of ticket buying equipment, collecting an equipment fingerprint of the ticket buying equipment; generating an electronic bill based on to-be-purchased ticket business information, the dynamic key of the electronic bill, and the device fingerprint of the ticket purchasing device; and sending the electronic bill to the ticketbuying equipment, so that the ticket buying equipment writes the electronic bill into a near field communication chip of the ticket buying equipment. According to the scheme, the offline availability, reliability and safety of electronic bill verification can be improved, and the user experience can be improved.

Claims

1. A method for processing electronic invoices, comprising: Based on the ticket purchase request from the ticket purchase device, collect the device fingerprint of the ticket purchase device; An electronic ticket is generated based on the ticket information to be purchased, the dynamic key of the electronic ticket, and the device fingerprint of the ticket purchasing device; The electronic ticket is sent to the ticket purchasing device so that the ticket purchasing device can write the electronic ticket into the short-range communication chip of the ticket purchasing device.

2. The method according to claim 1, wherein, The method further includes: Based on the ticket purchase request, the identification information of the near-field communication chip is obtained, and based on the identification information, the dynamic key of the electronic ticket is generated.

3. The method according to claim 1, wherein, The step of sending the electronic ticket to the ticket purchasing device, so that the ticket purchasing device can write the electronic ticket into the short-range communication chip of the ticket purchasing device, includes: The electronic ticket is signed with a private key, and the signed electronic ticket is sent to the ticket purchasing device so that the ticket purchasing device can write the signed electronic ticket into the short-range communication chip of the ticket purchasing device.

4. The method according to any one of claims 1-3, wherein, The method further includes: The electronic ticket dynamic key of the electronic ticket is stored in the key list, the device fingerprint is stored in the first storage area, and the ticketing information is stored in the second storage area; Furthermore, status markers are applied to the electronic ticket dynamic key and the ticketing information, respectively.

5. The method according to claim 4, wherein, The method further includes: Receive an electronic ticket verification request from a ticket verification terminal, and extract the electronic ticket verification information from the electronic ticket verification request. The electronic ticket verification information includes: ticketing information to be verified, electronic ticket dynamic key to be verified, and device fingerprint to be verified. Based on the extracted information to be verified of the electronic ticket, as well as the data stored in the key list, the first storage area, and the second storage area, the information to be verified is verified, and the electronic ticket verification result is returned to the ticket verification terminal.

6. The method according to claim 5, wherein, The method further includes: obtaining the spatiotemporal feature information of the electronic invoice from the electronic invoice verification request; Before verifying the information to be verified based on the extracted information to be verified from the electronic ticket, and the data stored in the key list, the first storage area, and the second storage area respectively, the method further includes: Based on the aforementioned spatiotemporal feature information, the ticketing time and ticketing location of the electronic ticket are verified. If the verification is successful, the operation of verifying the information to be verified based on the extracted electronic ticket information, the key list, the data stored in the first storage area and the second storage area respectively, is performed.

7. The method according to claim 5, wherein, The verification of the information to be verified based on the extracted electronic ticket information, and the data stored in the key list, the first storage area, and the second storage area, includes: The ticketing information to be verified is compared with the ticketing information stored in the second storage area to determine whether the ticket indicated by the ticketing information to be verified is in an available state. A second comparison is performed between the dynamic key of the electronic invoice to be verified and the dynamic keys stored in the key list, and it is determined whether the dynamic key of the electronic invoice to be verified is a valid key. Furthermore, the device fingerprint to be verified is compared with the device fingerprint stored in the first storage area in a third comparison, and it is determined whether the device fingerprint to be verified is the same as the device fingerprint corresponding to the ticket purchasing device of the electronic ticket. If the results of the first comparison, the second comparison, and the third comparison are all yes, then the electronic invoice verification is confirmed to be successful.

8. The method according to claim 7, wherein, The method further includes: If the result of the third comparison indicates that the device fingerprint to be verified is different from the device fingerprint corresponding to the ticket purchasing device of the electronic ticket, the verification fails, and the electronic ticket is marked as a suspicious transfer ticket.

9. The method according to claim 8, wherein, The method further includes: If the verification result indicates that the electronic ticket verification is successful, a random string is generated and sent to the ticket purchasing device through the ticket verification terminal, so as to overwrite the electronic ticket dynamic key in the ticket purchasing device with the random string.

10. An electronic ticket processing method, applied to a ticket verification terminal, the method comprising: Establish a short-range communication connection with the ticketing equipment; Through the short-range communication connection, an electronic ticket verification data packet is read from the short-range communication chip of the ticketing device. The electronic ticket verification data packet includes: ticketing information to be verified, a dynamic key for the electronic ticket to be verified, and a device fingerprint to be verified. Based on the information contained in the electronic invoice verification data packet, an electronic invoice verification request is generated and sent to the server. Receive the electronic invoice verification result returned by the server based on the electronic invoice verification request.

11. An electronic ticket processing method, applied to a ticket purchasing device, the method comprising: The receiving server returns an electronic ticket based on the ticket purchase request, wherein the electronic ticket includes: ticketing information, a dynamic key for the electronic ticket, and the device fingerprint of the ticket purchase device; The electronic ticket is stored in the independent storage area of ​​the short-range communication chip of the ticketing device.

12. The method according to claim 11, wherein, The method further includes: A short-range communication connection is established with the ticket verification terminal. Through the short-range communication connection, an electronic ticket verification data packet from the short-range communication chip is provided to the ticket verification terminal. The electronic ticket verification data packet includes: ticket information to be verified, a dynamic key for the electronic ticket to be verified, and a device fingerprint to be verified.

13. The method according to claim 11, wherein, The method further includes: A random string is received through the ticket verification terminal to overwrite the dynamic key of the electronic ticket in the ticket purchasing device.

14. A server, comprising: The processor, the communication interface, the memory, and the communication bus are provided, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus. The memory is used to store computer programs; The processor is configured to perform the method as described in any one of claims 1-9 by running the computer program stored in the memory.

15. A ticket verification terminal, comprising: The second short-range communication chip and processor; among which, The second short-range communication chip is used to establish a short-range communication connection with the ticketing device; The processor is configured to read an electronic ticket verification data packet from the short-range communication chip of the ticketing device via the short-range communication connection, wherein the electronic ticket verification data packet includes: ticketing information to be verified, a dynamic key for the electronic ticket to be verified, and a device fingerprint to be verified; generate an electronic ticket verification request based on the information contained in the electronic ticket verification data packet, and send the electronic ticket verification request to the server; and receive the electronic ticket verification result returned by the server based on the electronic ticket verification request.

16. A ticket purchasing device, comprising: Near-field communication chips and processors; among them, The processor is used to receive an electronic ticket returned by the server based on the ticket purchase request. The electronic ticket includes: ticketing information, a dynamic key for the electronic ticket, and the device fingerprint of the ticket purchase device. The near-field communication chip is used to store the electronic ticket in an independent storage area.

17. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of claims 1-13.

18. A computer program product comprising a computer program that, when executed by a processor, implements the method as described in any one of claims 1-13.