Transaction method, system and device, computer readable storage medium and electronic equipment
By utilizing offline transaction servers to synchronize disaster recovery data and perform offline transaction processing when the online transaction link is abnormal, and controlling object independence, the problem of transaction interruption caused by online transaction system failure is solved, and the stability of offline transactions and user experience are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG ALI PICTURES YUNZHI SOFTWARE CO LTD
- Filing Date
- 2024-11-11
- Publication Date
- 2026-05-12
AI Technical Summary
When the online trading system malfunctions, transactions cannot proceed normally, affecting the trading services provided by offline service providers and resulting in a poor user experience.
When the online transaction link is abnormal, disaster recovery data is synchronized through the offline transaction server to identify offline sellable objects and orders to be fulfilled, and offline transaction processing is carried out; when the online transaction is restored, the independence of offline and online transaction objects is controlled to avoid duplicate transactions.
In the event of an abnormal online transaction process, offline transactions can continue normally, improving user experience, preventing duplicate transactions, and ensuring transaction stability and independence.
Smart Images

Figure CN122022993A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a transaction method, system, apparatus, computer-readable storage medium, and electronic device. Background Technology
[0002] With the rapid development of mobile internet technology, users are increasingly shopping through online transactions.
[0003] In some transaction scenarios, such as movie ticket purchases, malfunctions in the online transaction system may prevent transactions from proceeding normally. In such cases, offline transactions can effectively maintain the normal operation of the transaction process. Therefore, how to implement offline transactions has become an important technical issue. Summary of the Invention
[0004] This application provides a transaction method, system, apparatus, computer-readable storage medium, and electronic device.
[0005] This application provides the following solution:
[0006] According to the first aspect, a transaction processing method is provided, including:
[0007] Under normal online transaction conditions, disaster recovery data is synchronized from the online transaction server. The disaster recovery data includes data on pending orders corresponding to offline service institutions and information on all available sales objects.
[0008] In the event of an online transaction link anomaly, in response to receiving an offline transaction initiation command, offline pending transactions are identified from the full pool of pending transactions. The full pool of pending transactions also includes pending transactions during the online recovery period. Offline pending transactions and pending transactions during the online recovery period are different objects. Pending transactions during the online recovery period are used for processing online transactions within the online recovery period. The online recovery period is the time from the initiation of online transactions to the restoration of normal online transaction status after the online transaction link recovers from an anomaly. Offline transaction processing is performed based on offline pending transactions and pending orders.
[0009] According to the second aspect, another transaction processing method is provided, including:
[0010] Under normal online transaction conditions, disaster recovery data is synchronized to the offline transaction server. The offline transaction server is set up at the offline service institution. The disaster recovery data includes the data of the pending orders and the information of all the objects to be sold at the offline service institution.
[0011] In the event that the online transaction link is abnormal and then recovers, the online recovery period is determined from the full list of available items. The full list of available items also includes offline available items. Offline available items are different from the online recovery period available items. Offline available items and pending order data are used by the offline transaction server to process offline transactions. The online recovery period is the time from the start of online transactions to the recovery of online transactions after the online transaction link is restored from abnormal to normal.
[0012] Based on the items available for sale during the online recovery period, online transactions during the online recovery period will be processed.
[0013] According to the third aspect, a transaction processing system is provided, which includes an online transaction server, an offline transaction server set up in an offline service institution, and terminal equipment;
[0014] The online transaction server is used to synchronize disaster recovery data to the offline transaction server when the online transaction link is normal. The disaster recovery data includes data on pending orders and information on all available items for sale for the offline service institutions.
[0015] The online transaction server is also used for: in the event that the online transaction link is abnormal and then recovers, determining the available items for sale during the online recovery period from the full pool of available items, and processing online transactions within the online recovery period based on the available items for sale during the online recovery period; the online recovery period is the time from the start of online transactions to the recovery of online transactions after the online transaction link recovers from the abnormality.
[0016] Offline trading servers are used to synchronize disaster recovery data from online trading servers when the online trading link is normal.
[0017] The offline transaction server is also used for: in the event of an abnormal online transaction link, in response to receiving an offline transaction initiation command, determining offline sellable objects from the full pool of sellable objects, and processing offline transactions based on offline sellable objects or orders to be fulfilled. The offline sellable objects are different from the sellable objects during the online recovery period.
[0018] The terminal device is used to interact with the online trading server to enable the online trading server to process online transactions. The terminal device is also used to interact with the offline trading server to enable the offline trading server to process offline transactions.
[0019] According to the fourth aspect, a transaction processing apparatus is provided, comprising:
[0020] The disaster recovery data synchronization module is used to synchronize disaster recovery data from the online transaction server when the online transaction link is normal. The disaster recovery data includes data on pending orders corresponding to offline service institutions and information on all pending sale objects.
[0021] The offline pending sale object determination module is used to determine offline pending sale objects from the full pending sale objects in response to receiving an offline transaction start command when the online transaction link is abnormal. The full pending sale objects also include pending sale objects during the online recovery period. Offline pending sale objects and pending sale objects during the online recovery period are different objects. Pending sale objects during the online recovery period are used for processing online transactions during the online recovery period. The online recovery period is the period from the start of online transaction to the online transaction recovery period after the online transaction link is restored to normal.
[0022] The offline transaction processing module is used to process offline transactions based on offline objects for sale and orders to be fulfilled.
[0023] According to the fifth aspect, another transaction processing apparatus is provided, including:
[0024] The disaster recovery data distribution module is used to synchronize disaster recovery data to the offline transaction server when the online transaction link is normal. The offline transaction server is set up at the offline service institution. The disaster recovery data includes the data of the pending orders and the information of all the objects to be sold corresponding to the offline service institution.
[0025] The recovery phase processing module is used to determine the objects to be sold during the online recovery period from the full set of objects to be sold when the online transaction link is abnormal and then returns to normal. The full set of objects to be sold also includes offline objects to be sold. The offline objects to be sold are different from the objects to be sold during the online recovery period. The offline objects to be sold and the pending order data are used by the offline transaction server to process offline transactions. The online recovery period is the period from the start of online transactions to the recovery of online transactions after the online transaction link is restored to normal.
[0026] The online transaction processing module is used to process online transactions during the online recovery period based on the objects available for sale during the online recovery period.
[0027] According to a sixth aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the transaction processing method in the first or second aspect described above.
[0028] According to the seventh aspect, an electronic device is provided, comprising:
[0029] One or more processors; and
[0030] A memory associated with one or more processors, the memory being used to store program instructions that, when read and executed by one or more processors, perform the steps of the transaction processing method described in the first or second aspect above.
[0031] According to the eighth aspect, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the transaction processing method in the first or second aspect described above.
[0032] According to the specific embodiments provided in this application, the following technical effects are disclosed:
[0033] In this application, the offline transaction server synchronizes disaster recovery data from the online transaction server and initiates offline transactions when online transactions cannot proceed normally. Based on the full list of items for sale in the disaster recovery data, it determines the offline items for sale in the offline transaction, and then processes offline transactions based on these offline items and the pending order data in the disaster recovery data. Based on this solution, even when the online transaction chain is abnormal, it is possible to provide services such as selling objects (e.g., goods) and fulfilling orders in an offline environment. By enabling offline transactions to maintain the normal operation of transactions in offline service institutions, it effectively improves the user experience.
[0034] In addition, to address the issue of duplicate transactions that may occur between offline and online transactions, this application controls the offline objects for sale and the objects for sale during the online recovery period to be different objects. This ensures that the objects sold in offline transactions are independent of the objects sold in online transactions during the online recovery period, thus avoiding the problem of duplicate transactions between offline and online transactions.
[0035] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a system architecture diagram applicable to the embodiments of this application;
[0038] Figure 2 This is a flowchart of a transaction processing method provided in an embodiment of this application;
[0039] Figure 3 and Figure 4 This is a schematic diagram of the offline seat selection interface provided in an embodiment of this application;
[0040] Figure 5 and Figure 6 This is a schematic diagram of the online seat selection interface for the online recovery period provided in an embodiment of this application;
[0041] Figure 7 This is a schematic diagram of the online seat selection interface provided in an embodiment of this application;
[0042] Figure 8 This is a flowchart of another transaction processing method provided in the embodiments of this application;
[0043] Figure 9 This is a schematic diagram of the overall structure of a ticket purchase and transaction system provided in an embodiment of this application;
[0044] Figure 10 This is a detailed structural diagram of a ticket purchase transaction system provided in an embodiment of this application;
[0045] Figure 11 This is a framework diagram of the POS local transaction function in the ticket purchase transaction system provided in the embodiments of this application;
[0046] Figure 12 This is a data flow diagram of the ticket purchase transaction system provided in the embodiments of this application;
[0047] Figure 13 This is a schematic block diagram of a transaction processing apparatus provided in an embodiment of this application.
[0048] Figure 14 This is a schematic block diagram of another transaction processing apparatus provided in the embodiments of this application.
[0049] Figure 15 A schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions of 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 this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0051] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0052] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0053] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0054] Currently, users are increasingly shopping through online transactions. Taking movie ticket purchases as an example, users can buy tickets online through various online channels.
[0055] In practical use, anomalies in the online transaction process often prevent transactions from proceeding normally. For example, in offline service providers such as cinemas, a malfunction in the online transaction system can prevent online ticket purchases and the redemption of already purchased tickets. This can cause cinemas and other service providers to be unable to offer ticket purchase and redemption services offline, severely impacting the user experience.
[0056] In view of this, this application provides a new approach. To facilitate understanding of this application, the system architecture on which this application is based is first described. For example... Figure 1 The diagram illustrates a trading system applicable to embodiments of this application. The trading system includes an online trading server, an offline trading server, and terminal devices, and may also include a relay server.
[0057] The terminal device is used to interact with the user to initiate online or offline transaction requests. The terminal device may include, but is not limited to, POS (Point of Sale Terminal), mobile phones, tablets, and smart wearable devices. Smart wearable devices may include smartwatches, smart glasses, smart bracelets, VR (Virtual Reality) devices, AR (Augmented Reality) devices, mixed reality devices (i.e., devices that support both virtual and augmented reality), and so on. In this embodiment, the user device typically has information display functionality, such as a display screen. In addition, it may also have operation command input functionality, such as inputting operation commands via touchscreen, keyboard, or voice.
[0058] Offline servers, online servers, and relay servers can all be implemented using independent servers, server clusters, or cloud servers. Cloud servers, also known as cloud computing servers or cloud hosts, are a hosting product within the cloud computing service system, designed to address the shortcomings of traditional physical hosts and Virtual Private Servers (VPS) services, such as high management difficulty and weak service scalability.
[0059] Offline servers and terminal devices are typically located in offline service establishments such as cinemas. They can connect to the terminal devices via local area networks (LANs) to process offline transactions. Online servers, on the other hand, can connect to the terminal devices via wide area networks (WANs) or local area networks (LANs) to process online transactions.
[0060] A relay server is used to enable data and command exchange between offline and online servers.
[0061] It should be understood that Figure 1 The number of online trading servers, offline trading servers, and terminal devices shown is merely illustrative. Depending on implementation needs, any number of online trading servers, offline trading servers, and terminal devices can be included.
[0062] Figure 2 A flowchart of a transaction processing method provided in this application embodiment, the method can be... Figure 1 The offline trading server in the system shown executes the transaction. For example... Figure 2 As shown, the method may include the following steps:
[0063] Step S210: If the online transaction link is normal, synchronize disaster recovery data from the online transaction server. The disaster recovery data includes data on pending orders corresponding to offline service institutions and information on all pending sale objects.
[0064] Step S220: In the event of an abnormal online transaction link, in response to receiving an offline transaction initiation instruction, offline sellable objects are determined from the full pool of sellable objects. The full pool of sellable objects also includes sellable objects for the online recovery period. Offline sellable objects and sellable objects for the online recovery period are different objects. Sellable objects for the online recovery period are used for processing online transactions during the online recovery period. The online recovery period is the time from the initiation of online transactions to the restoration of online transactions after the online transaction link recovers from an abnormality.
[0065] Step S230: Process offline transactions based on offline objects for sale and orders to be fulfilled.
[0066] As can be seen from the above process, in this application, the offline transaction server synchronizes disaster recovery data from the online transaction server and initiates offline transactions when online transactions cannot proceed normally. Based on the full list of items for sale in the disaster recovery data, it determines the offline items for sale in the offline transaction, and then processes the offline transactions based on these offline items and the pending order data in the disaster recovery data. Based on this solution, services such as purchasing goods and fulfilling orders can be provided offline even when the online transaction link is abnormal. By enabling offline transactions to maintain the normal operation of transactions in offline service institutions, the user experience is effectively improved.
[0067] In addition, to address the issue of duplicate transactions that may occur between offline and online transactions, this application controls the offline objects for sale and the objects for sale during the online recovery period to be different objects. This ensures that the objects sold in offline transactions are independent of the objects sold in online transactions during the online recovery period, thus avoiding the problem of duplicate transactions between offline and online transactions.
[0068] The following describes in detail each step of the above process and the effects that can be further produced, with reference to the embodiments.
[0069] First, the above step S210, namely "synchronizing disaster recovery data from the online transaction server when the online transaction link is normal," will be described in detail with reference to the embodiments.
[0070] The transaction system involved in this application can consist of an online transaction server and an offline transaction server. The online transaction server is used for processing online transactions. When the online transaction server malfunctions or other situations prevent online transactions from operating normally, the offline transaction server can be activated to process offline transactions and maintain the operation of the transaction system. The offline transaction server can be set up in offline service institutions, such as cinemas.
[0071] An online transaction chain may involve multiple service systems. When a service system in the transaction chain fails, it will cause the transaction chain to be abnormal. When all the service systems in the transaction chain are normal, the transaction chain is normal.
[0072] When the online transaction link is normal, the online transaction server can process online transactions normally. The online transaction server can generate disaster recovery data in real time, which is used for disaster recovery processing in the event of an abnormal online transaction link.
[0073] Specifically, disaster recovery data can include data on pending orders from offline service providers and information on all available products for sale.
[0074] The data on pending orders is used to process the fulfillment of these orders. Taking a cinema transaction scenario as an example, pending orders can be for purchased movie tickets, goods, etc., which users can redeem at the cinema.
[0075] The online trading server's full order data includes the fulfillment status of each order, categorized as fulfilled or unfulfilled. Orders awaiting fulfillment are those with an unfulfilled status.
[0076] The information on all items available for sale refers to the information on all goods available for sale in the transaction system. Taking the cinema transaction scenario as an example, the information on all items available for sale includes all movie tickets, food, and other goods available for sale.
[0077] Online trading servers can send disaster recovery data to offline servers in real time, enabling offline servers to conduct offline transactions in the event of an online trading link failure.
[0078] The following describes in detail step S220, namely, "in the event of an abnormal online transaction link, in response to receiving an offline transaction initiation instruction, determining offline objects for sale from the full pool of objects for sale", with reference to the embodiments.
[0079] In the event of an online transaction link failure, the offline transaction server can initiate an offline transaction upon receiving an offline transaction initiation command. When initiating an offline transaction, the offline transaction server needs to determine the offline saleable objects from the total pool of available saleable objects. Offline saleable objects are those objects that are available for sale in the offline transaction.
[0080] After online transactions are initiated, they undergo an online recovery period. This period refers to the time between the start of the online transaction and its restoration to normal operation after the online transaction chain recovers from an anomaly. During this recovery period, offline transaction data generated by offline transactions is synchronized to the online system to update the transaction data stored locally on the online server. The synchronization of offline transaction data to the online system is completed at the end of the recovery period.
[0081] During the online transaction recovery period, the offline transaction data generated by offline transactions has not been fully synchronized. This makes it impossible for the online transaction server to accurately know the status of the products sold in offline transactions. If all the items for sale are directly used as the products sold in online transactions, it may result in the items that have been sold in offline transactions being sold repeatedly in online transactions.
[0082] In this application, by designating offline objects for sale and objects for sale during the online recovery period as different objects, the objects sold in offline transactions and the objects sold in online transactions during the online recovery period are independent of each other, thus avoiding the problem of duplicate transactions of objects in offline and online transactions.
[0083] After the online transaction recovery period ends, that is, after the online transaction server has updated the transaction data stored locally on the online server using the offline transaction data generated by the offline transactions, online transactions will resume normally and can be processed based on the transaction data stored locally on the online server.
[0084] In the transaction system provided in this application, offline transactions do not require calling multiple service systems. They can be achieved through the collaboration between the offline transaction server and the online transaction server. Therefore, the problem of excessively long offline transaction call chains can be avoided, the possibility of offline transaction failures can be reduced, and the stability of offline transactions can be guaranteed.
[0085] The following describes step S230, namely "processing offline transactions based on offline objects for sale and orders to be fulfilled," in detail with reference to the embodiments.
[0086] After identifying offline items for sale, the offline transaction server can treat these items as salable goods in offline transactions and process them for offline purchase. Simultaneously, it can process offline order fulfillment transactions based on pending order data.
[0087] As an example, an offline transaction server can interact with a user's terminal device. The user can select the offline item they want to buy through the terminal device. The terminal device can respond to the user's purchase operation by generating an offline purchase transaction request and sending the offline transaction request to the offline transaction server, which can then process the offline transaction request.
[0088] As another example, the offline transaction server can interact with the user's terminal device. The user can select the order they want to cash out through the terminal device. The terminal device can respond to the user's order cashing operation by generating an offline order cashing request and sending the offline order cashing request to the offline transaction server. The offline transaction server can then process the offline order cashing request.
[0089] As one feasible approach, offline transaction processing based on offline objects for sale and pending orders includes:
[0090] Send the object data of offline items for sale to the terminal device so that the terminal device can display the object data of offline items for sale to the user;
[0091] In response to receiving an offline purchase transaction request for an offline item for sale from a terminal device, the offline purchase transaction request is processed to generate offline order data; or,
[0092] In response to receiving an offline order fulfillment request from a terminal device, the offline order fulfillment request is processed.
[0093] In response to the successful fulfillment of the fulfillment process, the fulfillment status of the order to be fulfilled corresponding to the offline order fulfillment request is determined to be fulfilled, and offline fulfilled order data is generated.
[0094] Among them, the object data of offline objects for sale can be understood as the basic data of offline objects for sale, which is used to display offline objects for sale on terminal devices.
[0095] After the terminal device displays offline items for sale to the user, the user can select the offline items for sale that they want to purchase. The terminal device can respond to the user's purchase operation by generating an offline purchase transaction request and sending the offline purchase transaction request to the offline transaction server. The offline transaction server can process the offline purchase transaction request to generate offline order data.
[0096] As an example, a user can initiate an offline purchase request for movie tickets. The offline transaction server can process the offline purchase request to generate offline order data for the movie tickets purchased by the user.
[0097] Users can also initiate offline order fulfillment requests through their terminal devices. After receiving the offline order fulfillment request, the offline server can process it and obtain the fulfillment result.
[0098] Specifically, when the offline server is processing the fulfillment, it can determine whether the order targeted by the offline order fulfillment request is an order to be fulfilled. If it is, the fulfillment result is successful; if it is not, the fulfillment result is unsuccessful.
[0099] When the fulfillment process is successful, the offline transaction server can determine the fulfillment status of the order to be fulfilled corresponding to the offline order fulfillment request as fulfilled and generate offline fulfilled order data.
[0100] As one feasible approach, the total number of items for sale refers to all tickets for sale, each corresponding to a seat. The offline items for sale refer to offline tickets for sale. The object data of the offline items for sale is sent to the terminal device, enabling the terminal device to display this data to the user. This data includes:
[0101] The object data of offline tickets for sale is sent to the terminal device, so that the terminal device can generate an offline seat selection interface based on the object data of the offline tickets for sale and display the offline seat selection interface to the user. The offline seat selection interface is used to display the seats corresponding to the offline tickets for sale.
[0102] The solution provided in this application can be applied to cinema ticket purchase transactions. In this scenario, the object can include tickets. Accordingly, the "full supply of tickets for sale" refers to all tickets available for sale, the "offline supply of tickets for sale" refers to tickets available for sale offline, and the "online recovery period supply of tickets for sale" refers to tickets available for sale during the online recovery period. Each full supply of tickets for sale corresponds to a seat, and users can purchase tickets by selecting seats on the seat selection interface.
[0103] When a terminal device conducts an offline transaction, it can generate and display an offline seat selection interface to the user. This interface can display the seats corresponding to the offline tickets for sale, and the user can select a seat from the seats corresponding to the offline tickets for sale.
[0104] As one feasible approach, the objects for sale during the online recovery period are the bills for sale during the online recovery period, the seats corresponding to the offline bills for sale are the seats in the first designated row among the seats corresponding to all bills for sale, and the seats corresponding to the bills for sale during the online recovery period are the seats in the second designated row among the seats corresponding to all bills for sale, where the first designated row is different from the second designated row.
[0105] Among them, offline pending tickets correspond to seats in the first designated line, and online pending tickets correspond to seats in the second designated line. By setting the first designated line and the second designated line to be different lines, offline pending tickets can be made to be different from online pending tickets.
[0106] As an example, the first specified row can be an even number of rows, and the second specified row can be an odd number of rows.
[0107] As an example, Figure 3 , Figure 4 This is a schematic diagram of the offline seat selection interface.
[0108] like Figure 3 As shown, the total number of seats includes a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2, f1, and f2. Among them, c3, c4, and e2 are sold seats and cannot be resold during offline transactions. These seats are unavailable for sale in the offline seat selection interface.
[0109] In this example, the first designated row is the even-numbered row, namely the seats b1, b2, b3, b4 in the second row, the seats d1, d2, d3, d4 in the fourth row, and f1, f2 in the sixth row. These are all seats corresponding to offline tickets for sale, and these seats are selectable in the offline seat selection interface.
[0110] Seats a1, a2, a3, and a4 in the first row, seats c1 and c2 in the third row, and seat e1 in the fifth row are all seats that cannot be selected in offline transactions. These seats are in an unselectable state in the offline seat selection interface.
[0111] like Figure 4 As shown, the user selected seats b3 and b4 based on the offline seat selection interface. Seats b3 and b4 are the seats corresponding to the tickets sold in the offline transaction.
[0112] As an example, Figure 5 , Figure 6 This is a schematic diagram of the online seat selection interface during the online recovery period.
[0113] In this example, the seat selection interface for online ticket purchase during the online recovery period can be referred to as the online recovery period seat selection interface.
[0114] like Figure 5 As shown, the second designated row is an odd-numbered row, namely, seats a1, a2, a3, and a4 in the first row, seats c1 and c2 in the third row, and seat e1 in the fifth row are all seats corresponding to tickets available for sale during the online recovery period. These seats are selectable in the online recovery period seat selection interface.
[0115] The seats b1, b2, b3, b4 in the second row, d1, d2, d3, d4 in the fourth row, and f1 and f2 in the sixth row are all seats that cannot be selected in the online seat selection interface during the recovery period.
[0116] like Figure 6 As shown, the user selected seat e1 based on the online recovery period seat selection interface. Seat e1 is the seat corresponding to the ticket sold in the online transaction during the online recovery period.
[0117] As an example, Figure 7 This is a schematic diagram of the online seat selection interface.
[0118] After the online recovery period ends, the status of all seats can be updated based on the tickets sold in offline exchanges and those sold in online transactions. Figure 7 The online seat selection interface shown.
[0119] like Figure 7 As shown, b3, b4, c3, c4, e1, and e2 are seats corresponding to sold tickets. These sold tickets cannot be resold, and their corresponding seats are unselectable in the online seat selection interface. The remaining seats correspond to all available tickets, and these seats are selectable in the online seat selection interface.
[0120] As an feasible approach, after processing offline transactions based on offline objects for sale and orders to be fulfilled, the above method also includes:
[0121] Once the online transaction link returns to normal, in response to receiving the offline transaction termination instruction, the offline transaction data generated by the offline transaction will be sent to the online transaction server. The offline transaction data includes offline order data and offline fulfilled order data.
[0122] The offline transaction termination command can be sent when the online transaction starts, thus terminating the offline transaction immediately after the online transaction begins. After terminating the offline transaction, the offline transaction server can send the offline transaction data generated by the offline transaction to the online transaction server. The online transaction server will then use the offline transaction data to update the transaction data stored locally on the online server.
[0123] As an example, an offline trading termination instruction can be sent by the online trading server, which can send the offline trading termination instruction to the offline trading server when starting online trading.
[0124] As another example, an offline transaction termination command can be sent by a monitoring server, which can be used to monitor the status of the online transaction chain. When the monitoring server detects that the online transaction chain has recovered from an anomaly, it can send an offline transaction termination command to the offline transaction server.
[0125] As another example, the offline transaction termination instruction can also be sent by the terminal device. That is, when an online transaction is started, the terminal device switches the transaction link to the online server and can send an offline transaction termination instruction to the offline transaction server.
[0126] As one possible approach, an offline transaction initiation command is sent in any of the following circumstances:
[0127] The monitoring server responds to the detection of an anomaly in the online transaction link by sending a message to the offline transaction server;
[0128] The online trading server responds to the detection of an anomaly in the online trading link by sending a message to the offline trading server;
[0129] The terminal device sends a message to the offline transaction server in response to a trigger from the administrator user.
[0130] The monitoring server can be independent of both the online and offline trading servers, and is used to monitor the status of the online trading link. When the monitoring server detects an anomaly in the online trading link, it can send an offline trading initiation command to the offline trading server to start offline trading.
[0131] Offline trading can also be initiated by the online trading server. When the online trading server detects an abnormality in the online trading link, it sends an offline trading termination instruction to the offline trading server to initiate offline trading.
[0132] Offline trading can also be initiated manually by an administrator. For example, a control can be provided to initiate offline trading, which an administrator can click when online trading fails to proceed normally, thereby triggering the offline trading initiation command.
[0133] Figure 8 A flowchart illustrating another transaction processing method provided in this application embodiment, which can be generated by... Figure 1 The online trading server in the system shown executes the commands. For example... Figure 8 As shown, the method may include the following steps:
[0134] Step S810: If the online transaction link is normal, synchronize disaster recovery data to the offline transaction server. The offline transaction server is set up at the offline service institution. The disaster recovery data includes the data of the pending orders and the information of all the objects to be sold corresponding to the offline service institution.
[0135] Step S820: In the event that the online transaction link is abnormal and then recovers, determine the objects to be sold during the online recovery period from the full set of objects to be sold. The full set of objects to be sold also includes offline objects to be sold. The offline objects to be sold are different from the objects to be sold during the online recovery period. The offline objects to be sold and the order data to be fulfilled are used by the offline transaction server to process offline transactions. The online recovery period is the period from the start of online transactions to the recovery of online transactions after the online transaction link is restored from the abnormality.
[0136] Step S830: Based on the items available for sale during the online recovery period, process the online transactions during the online recovery period.
[0137] As can be seen from the above process, in this application, when the online transaction link is abnormal and then restored to normal, the objects to be sold during the online recovery period are determined from the full number of objects to be sold, and online transactions are processed based on the objects to be sold during the online recovery period. By controlling the objects to be sold offline and the objects to be sold during the online recovery period to be different objects, the objects sold in the offline exchange and the objects sold in the online exchange during the online recovery period are independent of each other, which can avoid the problem of objects being traded repeatedly in offline and online transactions.
[0138] The following describes in detail each step of the above process and the effects that can be further produced, with reference to the embodiments.
[0139] First, the above step S801, namely "synchronizing disaster recovery data to the offline transaction server when the online transaction link is normal," will be described in detail with reference to the embodiments.
[0140] The transaction system described in this application can consist of an online transaction server and an offline transaction server. The online transaction server processes online transactions. When the online transaction server malfunctions or other issues prevent online transactions from functioning properly, the offline transaction server can be activated to process offline transactions and maintain the operation of the transaction system. The offline transaction server can be located in offline service institutions, such as cinemas.
[0141] An online transaction chain may involve multiple service systems. When a service system in the transaction chain fails, it will cause the transaction chain to be abnormal. When all the service systems in the transaction chain are normal, the transaction chain is normal.
[0142] When the online transaction link is normal, the online transaction server can process online transactions normally. The online transaction server can generate disaster recovery data in real time, which is used for disaster recovery processing in the event of an abnormal online transaction link.
[0143] Specifically, disaster recovery data can include data on pending orders from offline service providers and information on all available products for sale.
[0144] The data on pending orders is used to process the fulfillment of these orders. Taking a cinema transaction scenario as an example, pending orders can be for purchased movie tickets, goods, etc., which users can fulfill offline at the cinema.
[0145] The online trading server's full order data includes the fulfillment status of each order, categorized as fulfilled or unfulfilled. Orders awaiting fulfillment are those with an unfulfilled status.
[0146] The information on all items available for sale refers to the information on all goods available for sale in the transaction system. Taking the cinema transaction scenario as an example, the information on all items available for sale includes all movie tickets, food, and other goods available for sale.
[0147] Online trading servers can send disaster recovery data to offline servers in real time, enabling offline servers to conduct offline transactions in the event of an online trading link failure.
[0148] The following describes in detail step S220, namely, "in the case of an online transaction link that has recovered from an abnormality, determine the objects available for sale during the online recovery period from the full number of objects available for sale," with reference to the embodiments.
[0149] In the event of an online transaction link failure, the offline transaction server can initiate an offline transaction upon receiving an offline transaction initiation command. When initiating an offline transaction, the offline transaction server needs to determine the offline saleable objects from the total pool of available saleable objects. Offline saleable objects are those objects that are available for sale in the offline transaction.
[0150] After online transactions are initiated, they undergo an online recovery period. This period refers to the time between the start of the online transaction and its restoration to normal operation after the online transaction chain recovers from an anomaly. During this recovery period, offline transaction data generated by offline transactions is synchronized to the online system to update the transaction data stored locally on the online server. The synchronization of offline transaction data to the online system is completed at the end of the recovery period.
[0151] During the online transaction recovery period, the offline transaction data generated by offline transactions has not been fully synchronized. This makes it impossible for the online transaction server to accurately know the status of the products sold in offline transactions. If all the items for sale are directly used as the products sold in online transactions, it may result in the items that have been sold in offline transactions being sold repeatedly in online transactions.
[0152] In this application, by designating offline objects for sale and objects for sale during the online recovery period as different objects, the objects sold in offline transactions and the objects sold in online transactions during the online recovery period are independent of each other, thus avoiding the problem of duplicate transactions of objects in offline and online transactions.
[0153] After the online transaction recovery period ends, that is, after the online transaction server has updated the transaction data stored locally on the online server using the offline transaction data generated by the offline transactions, online transactions will resume normally and can be processed based on the transaction data stored locally on the online server.
[0154] The following describes in detail step S230, namely "processing online transactions during the online recovery period based on the objects to be sold during the online recovery period," with reference to the embodiments.
[0155] Once the online transaction server identifies the items available for sale during the online recovery period, it can process these items as salable items in the online transaction process during that period.
[0156] As an example, an online transaction server can interact with a user's terminal device. The user can select the online recovery period of the item they want to purchase through the terminal device. The terminal device can generate an online transaction request in response to the user's purchase operation and send the online transaction request to the online transaction server, which can then process the online transaction request.
[0157] As one feasible approach, the total number of available tickets for sale refers to all available tickets for sale, and each available ticket for sale corresponds to a seat. The available tickets for sale during the online recovery period refer to the tickets available for sale during the online recovery period. Based on these available tickets for sale during the online recovery period, online transactions during the online recovery period are processed, including:
[0158] The object data of tickets available for sale during the online recovery period is sent to the terminal device, so that the terminal device can generate an online recovery period seat selection interface based on the object data of tickets available for sale during the online recovery period and display the online recovery period seat selection interface to the user. The online recovery period seat selection interface is used to display the seats corresponding to the tickets available for sale during the online recovery period.
[0159] In response to receiving an online transaction request from a terminal device for an object available for sale during the online recovery period, the system processes the online transaction request, which is generated based on the seat selection interface during the online recovery period.
[0160] Among them, the object data of the online recovery period can be understood as the basic data of the online recovery period, which is used to display the online recovery period of the online recovery period on the terminal device.
[0161] After the terminal device displays the available items for sale during the online recovery period to the user, the user can select the available items for sale during the online recovery period that they want to purchase. The terminal device can generate an online transaction request in response to the user's purchase operation and send the online transaction request to the online transaction server, which can then process the online transaction request.
[0162] The solution provided in this application can be applied to cinema ticket purchase transactions. In this scenario, the object can include tickets. Accordingly, the "full quantity available for sale" object refers to all tickets available for sale, the "offline available for sale" object refers to offline tickets available for sale, and the "online recovery period available for sale" object refers to tickets available for sale during the online recovery period. Each full quantity available for sale ticket corresponds to a seat, and users can purchase tickets by selecting seats on the seat selection interface.
[0163] When a terminal device conducts online transactions during the online recovery period, it can generate and display an online recovery period seat selection interface to the user. This interface can display the seats corresponding to the tickets available for sale during the online recovery period, and the user can select a seat from the seats corresponding to the tickets available for sale during the online recovery period.
[0164] It is understood that the solution provided in this application embodiment can also be applied to transactions of objects other than tickets in cinemas, such as food and beverages.
[0165] As one possible approach, the above methods also include:
[0166] In response to receiving offline transaction data generated by offline transactions from the offline transaction server, the transaction data stored locally on the online transaction server is updated based on the offline transaction data. The offline transaction data includes offline order data and offline fulfilled order data.
[0167] Once the offline transaction data has been received and the transaction data stored locally on the online transaction server has been updated, the online recovery period is considered to have ended.
[0168] In response to the end of the online recovery period, online transactions are processed based on the transaction data stored locally on the online transaction server.
[0169] The offline trading server can respond to receiving an offline trading termination command, terminate the offline trading, and send the offline trading data generated by the offline trading to the online trading server.
[0170] In this embodiment of the application, offline transaction data includes offline order data and offline fulfilled order data. The offline order data is obtained by the offline server processing offline purchase transaction requests.
[0171] Offline fulfilled order data is generated when the offline server processes offline order fulfillment requests, obtains the fulfillment result, and the fulfillment is successful.
[0172] After receiving the offline transaction data, the online server updates the locally stored transaction data using the offline data. Once the locally stored transaction data is updated, the online recovery period can be considered over. At this point, online transactions resume normal operation, and further online transaction processing can be performed based on the transaction data stored locally on the online transaction server.
[0173] As an example, Figure 9 This is a schematic diagram of the overall structure of a ticket purchase and transaction system provided in an embodiment of this application.
[0174] like Figure 9 As shown, users can make purchases through various channels. These channels can include third-party platforms, mini-programs, points of sale (POS), and independent software vendors (ISVs).
[0175] Users can initiate online or offline transactions through ticketing channels. Online transactions can be processed by cloud support services (equivalent to online servers), while offline transactions can be processed by local services (equivalent to offline servers).
[0176] Cloud-based support services may include transaction domains, as well as other support domains.
[0177] As an example, Figure 10 This is a detailed structural diagram of a ticket purchase and transaction system provided in an embodiment of this application.
[0178] The ticketing transaction system includes a cloud service system (i.e., online transaction server), a local system (i.e., offline transaction server), a data relay system (i.e., relay server), and on-site terminals (i.e., terminal equipment).
[0179] Users can purchase tickets through online sales channels, ISV's mini-program, and on-site terminals.
[0180] The on-site terminal can be implemented by a POS terminal, specifically including processing in disaster recovery scenarios and processing in non-disaster recovery scenarios.
[0181] Disaster recovery scenarios refer to situations where cloud service systems cannot operate normally due to faults or other reasons, and offline servers are activated to conduct offline transactions. In disaster recovery scenarios, the local system can be invoked to complete the transaction processing.
[0182] Non-disaster recovery scenarios refer to situations where online servers are operating normally and online transactions are taking place. In non-disaster recovery scenarios, cloud service systems can be invoked to complete transaction processing.
[0183] The cloud service system includes the following modules:
[0184] The transaction management module is used to manage and control online transactions.
[0185] Online channel services are used to manage transactions for services offered through online channels, including movie ticket transactions and merchandise transactions.
[0186] Front desk services are used to manage transactions that occur at the cinema's front desk, including ticket transactions and concession sales.
[0187] The front desk service is also used for fulfillment, specifically including providing functions such as ticket checking and collection, and merchandise redemption.
[0188] The trading domain includes functional modules for both new and existing transactions. New transactions include modules for locking orders, canceling orders, placing orders, checking orders, and synchronizing upstream data. The upstream data synchronization module is used to synchronize transaction data generated offline to historical transaction data in the cloud.
[0189] The payment module is used to implement order payment functionality.
[0190] The ticketing domain is used to provide functions related to film scheduling and pricing.
[0191] The product listings section is used to provide information on products for sale and sales.
[0192] The local system includes the following modules:
[0193] The transaction management module is used to manage and control offline transactions.
[0194] IoT (Internet of Things) communication is used to establish communication connections between the local system and field terminals.
[0195] The service agreement module is used to manage the content related to the service agreement.
[0196] Offline transaction capabilities include the ability to trade movie tickets and merchandise. Movie ticket transactions include seat reservation, order placement, and order tracking. Merchandise transactions include order placement and order tracking.
[0197] The data exchange module is used for data uplink and downlink. Data uplink refers to uploading transaction data generated from offline transactions to the cloud. Data downlink refers to retrieving disaster recovery data from the cloud, such as object data and order data for movie tickets, merchandise, etc.
[0198] The local database stores upstream data and local transaction data. Downstream data refers to object data and order data for items such as movie tickets and merchandise distributed from the cloud. Local transaction data refers to transaction data generated from offline transactions.
[0199] A data relay cloud system can be understood as an independent cloud service or as part of a cloud-based service system. It's used for data interaction with the local system. Specifically, this includes data downlink and data uplink. Data downlink refers to retrieving object data and order data (such as movie tickets and merchandise) from the cloud and pushing it to the local system. Data uplink refers to retrieving transaction data generated from offline transactions from the local system and pushing it to the cloud service system.
[0200] As an example, Figure 11 This is a framework diagram of the POS local transaction function in the ticket purchase transaction system provided in this application embodiment.
[0201] Among them, POS is a terminal deployed on-site in the cinema, used to work with the offline server to realize offline transaction functions.
[0202] Cinema management is used to manage cinema information, cinema service configuration, and cinema scheduling.
[0203] Transaction management and control refers to the management and control of offline transactions. This includes edge transaction control, cloud transaction control, and data monitoring.
[0204] Edge transaction control includes local service authorization, which grants authorization for the cinema's local transaction functions, and POS authorization, which grants authorization for the POS terminal.
[0205] Cloud-based transaction control includes transaction restrictions and transaction recovery. Transaction restrictions refer to the ability to switch from online to offline trading locally. Transaction recovery refers to the ability to switch from offline to online trading locally.
[0206] Data monitoring refers to monitoring local order data and data returned from the cloud.
[0207] The cloud-edge collaboration module involves device management and command management. Device management specifically includes managing device information and device operations. Command management specifically includes command issuance and command querying.
[0208] As an example, Figure 12 This is a data flow diagram of the ticket purchase transaction system provided in the embodiments of this application.
[0209] Users can interact with the cloud service system through the POS terminal to conduct online transactions. Specifically, users can use the POS terminal to check showtime information, then select seats and place ticket orders.
[0210] The cloud service system sends transaction data to the data relay system. The data relay system then filters the transaction data to obtain disaster recovery data.
[0211] The data relay system sends disaster recovery data to the offline service (i.e., the offline transaction server) in the cinema environment. Users can place orders offline through the offline POS system, which sends offline transaction requests. The offline service processes these requests and generates offline transaction data. This offline transaction data can then be stored in a database.
[0212] When online transactions resume, the offline service will send offline transaction data back to the data terminal system. The data transfer system can then store the offline transaction data in a database. The returned offline transaction data will also be synchronized to the cloud service system.
[0213] The methods described in this application can be applied to transaction scenarios of various offline service institutions, including but not limited to cinemas and other service institutions.
[0214] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0215] According to another embodiment, a transaction processing apparatus is provided. Figure 13 A schematic block diagram of the transaction processing apparatus according to one embodiment is shown, the apparatus being disposed in Figure 1 The offline trading server in the architecture shown. Figure 13 As shown, the transaction processing device 1300 includes: a disaster recovery data synchronization module 1310, an offline unsold object determination module 1320, and an offline transaction processing module 1330. The main functions of each component module are as follows:
[0216] The disaster recovery data synchronization module 1310 is used to synchronize disaster recovery data from the online transaction server when the online transaction link is normal. The disaster recovery data includes data on pending orders corresponding to offline service institutions and information on all pending sale objects.
[0217] The offline saleable object determination module 1320 is used to determine offline saleable objects from the full set of saleable objects in response to receiving an offline transaction start command when the online transaction link is abnormal. The full set of saleable objects also includes saleable objects for the online recovery period. The offline saleable objects and the saleable objects for the online recovery period are different objects. The saleable objects for the online recovery period are used for processing online transactions during the online recovery period. The online recovery period is the period from the start of online transaction to the recovery of online transaction after the online transaction link is restored from the abnormality.
[0218] The offline transaction processing module 1330 is used to process offline transactions based on offline objects for sale and orders to be fulfilled.
[0219] As one possible approach, the offline transaction processing module 1330 is specifically used for:
[0220] Send the object data of offline items for sale to the terminal device so that the terminal device can display the object data of offline items for sale to the user; in response to receiving an offline purchase transaction request for offline items for sale from the terminal device, process the offline purchase transaction request to generate offline order data; or,
[0221] In response to receiving an offline order fulfillment request from a terminal device, the offline order fulfillment request is processed.
[0222] In response to the successful fulfillment of the fulfillment process, the fulfillment status of the order to be fulfilled corresponding to the offline order fulfillment request is determined to be fulfilled, and offline fulfilled order data is generated.
[0223] As one feasible approach, the total number of items for sale refers to all tickets for sale, and each ticket for sale corresponds to a seat. The offline items for sale refer to offline tickets for sale. When the offline transaction processing module 1330 sends the object data of the offline items for sale to the terminal device so that the terminal device can display the object data of the offline items for sale to the user, it is specifically used for:
[0224] The object data of offline tickets for sale is sent to the terminal device, so that the terminal device can generate an offline seat selection interface based on the object data of the offline tickets for sale and display the offline seat selection interface to the user. The offline seat selection interface is used to display the seats corresponding to the offline tickets for sale.
[0225] As one feasible approach, the objects for sale during the online recovery period are the bills for sale during the online recovery period, the seats corresponding to the offline bills for sale are the seats in the first designated row among the seats corresponding to all bills for sale, and the seats corresponding to the bills for sale during the online recovery period are the seats in the second designated row among the seats corresponding to all bills for sale, where the first designated row is different from the second designated row.
[0226] As one possible implementation, the above-mentioned device further includes:
[0227] The offline transaction data sending module (not shown in the figure) is used to send the offline transaction data generated by the offline transaction to the online transaction server in response to receiving the offline transaction termination instruction after the online transaction link is restored to normal after the offline transaction processing based on offline objects for sale and orders to be fulfilled. The offline transaction data includes offline order data and offline fulfilled order data.
[0228] As one possible approach, an offline transaction initiation command is sent in any of the following circumstances:
[0229] The monitoring server responds to the detection of an anomaly in the online transaction link by sending a message to the offline transaction server;
[0230] The online trading server responds to the detection of an anomaly in the online trading link by sending a message to the offline trading server;
[0231] The terminal device sends a message to the offline transaction server in response to a trigger from the administrator user.
[0232] According to another embodiment, a different transaction processing apparatus is provided. Figure 4 A schematic block diagram of the transaction processing apparatus according to one embodiment is shown, the apparatus being disposed in Figure 1 The online trading server in the architecture shown. For example... Figure 14 As shown, the transaction processing unit 1400 includes: a disaster recovery data distribution module 1410, a recovery phase processing module 1420, and an online transaction processing module 1430. The main functions of each module are as follows:
[0233] The disaster recovery data distribution module 1410 is used to synchronize disaster recovery data to the offline transaction server when the online transaction link is normal. The offline transaction server is set up at the offline service institution. The disaster recovery data includes the data of the pending orders and the information of all the objects to be sold corresponding to the offline service institution.
[0234] The recovery phase processing module 1420 is used to determine the objects to be sold during the online recovery period from the full set of objects to be sold when the online transaction link is abnormal and then recovers. The full set of objects to be sold also includes offline objects to be sold. The offline objects to be sold are different from the objects to be sold during the online recovery period. The offline objects to be sold and the order data to be fulfilled are used by the offline transaction server to process offline transactions. The online recovery period is the period from the start of online transactions to the recovery of online transactions after the online transaction link is restored from the abnormality.
[0235] The online transaction processing module 1430 is used to process online transactions during the online recovery period based on the objects to be sold during the online recovery period.
[0236] As one feasible approach, the "full volume of unsold items" refers to all unsold tickets, each with a corresponding seat. During the online recovery period, the "unsold items" refer to the unsold tickets during that period. The online transaction processing module 1430 is specifically used for:
[0237] The object data of tickets available for sale during the online recovery period is sent to the terminal device, so that the terminal device can generate an online recovery period seat selection interface based on the object data of tickets available for sale during the online recovery period and display the online recovery period seat selection interface to the user. The online recovery period seat selection interface is used to display the seats corresponding to the tickets available for sale during the online recovery period.
[0238] In response to receiving an online transaction request from a terminal device for an object available for sale during the online recovery period, the system processes the online transaction request, which is generated based on the seat selection interface during the online recovery period.
[0239] As one possible implementation, the above-mentioned apparatus further includes a transaction data update module (not shown in the figure), which is used for:
[0240] In response to receiving offline transaction data generated by offline transactions from the offline transaction server, the transaction data stored locally on the online transaction server is updated based on the offline transaction data. The offline transaction data includes offline order data and offline fulfilled order data.
[0241] Once the offline transaction data has been received and the transaction data stored locally on the online transaction server has been updated, the online recovery period is considered to have ended.
[0242] In response to the end of the online recovery period, online transactions are processed based on the transaction data stored locally on the online transaction server.
[0243] According to another embodiment, a transaction processing system is provided. The system includes an online transaction server, an offline transaction server located at an offline service institution, and terminal devices.
[0244] The online transaction server is used to synchronize disaster recovery data to the offline transaction server when the online transaction link is normal. The disaster recovery data includes data on pending orders and information on all available items for sale for the offline service institutions.
[0245] The online transaction server is also used for: in the event that the online transaction link is abnormal and then recovers, determining the available items for sale during the online recovery period from the full pool of available items, and processing online transactions within the online recovery period based on the available items for sale during the online recovery period; the online recovery period is the time from the start of online transactions to the recovery of online transactions after the online transaction link recovers from the abnormality.
[0246] Offline trading servers are used to synchronize disaster recovery data from online trading servers when the online trading link is normal.
[0247] The offline transaction server is also used for: in the event of an abnormal online transaction link, in response to receiving an offline transaction initiation command, determining offline sellable objects from the full pool of sellable objects, and processing offline transactions based on offline sellable objects or pending orders. The offline sellable objects are different from the sellable objects during the online recovery period.
[0248] The terminal device is used to interact with the online trading server to enable the online trading server to process online transactions. The terminal device is also used to interact with the offline trading server to enable the offline trading server to process offline transactions.
[0249] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0250] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0251] In addition, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of any of the methods in the foregoing method embodiments.
[0252] And an electronic device, comprising:
[0253] One or more processors; and
[0254] A memory associated with one or more processors, the memory being used to store program instructions that, when read and executed by one or more processors, perform the steps of any of the methods in the foregoing method embodiments.
[0255] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the methods in the foregoing method embodiments.
[0256] in, Figure 15 An exemplary architecture of an electronic device is shown, which may include a processor 1510, a video display adapter 1511, a disk drive 1512, an input / output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520 can communicate with each other via a communication bus 1530.
[0257] The processor 1510 can be implemented using a general-purpose CPU, microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits to execute relevant programs and implement the technical solution provided in this application.
[0258] The memory 1520 can be implemented in the form of ROM (Read-Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1520 can store the operating system 1521 for controlling the operation of the electronic device 1500, and the basic input / output system (BIOS) 1522 for controlling the low-level operations of the electronic device 1500. Additionally, it can store a web browser 1523, a data storage management system 1524, and a transaction processing device 1525, etc. The aforementioned transaction processing device 1525 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when the technical solution provided in this application is implemented through software or firmware, the relevant program code is stored in the memory 1520 and is called and executed by the processor 1510.
[0259] Input / output interface 1513 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0260] Network interface 1514 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0261] Bus 1530 includes a pathway for transmitting information between various components of the device, such as processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520.
[0262] It should be noted that although the above-described device only shows the processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, memory 1520, bus 1530, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.
[0263] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer program product. This computer program product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0264] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A transaction processing method, characterized in that, Applied to an offline trading server, wherein the offline trading server is located in an offline service institution, the method includes: Under normal online transaction conditions, disaster recovery data is synchronized from the online transaction server. The disaster recovery data includes data on pending orders and information on all available sales objects corresponding to the offline service institutions. In the event of an abnormal online transaction link, in response to receiving an offline transaction initiation command, offline sellable objects are determined from the full pool of sellable objects. The full pool of sellable objects also includes sellable objects for the online recovery period. The offline sellable objects and the sellable objects for the online recovery period are different objects. The sellable objects for the online recovery period are used for processing online transactions during the online recovery period. The online recovery period is the time from the initiation of online transactions to the restoration of normal online transactions after the online transaction link recovers from an abnormality. Offline transaction processing is performed based on the offline objects for sale and the orders to be fulfilled.
2. The method according to claim 1, characterized in that, The process of conducting offline transactions based on the offline objects for sale and the orders to be fulfilled includes: The object data of the offline items for sale is sent to the terminal device, so that the terminal device can display the object data of the offline items for sale to the user; in response to receiving an offline purchase transaction request for the offline items for sale sent by the terminal device, the offline purchase transaction request is processed to generate offline order data; or... In response to receiving an offline order fulfillment request sent by a terminal device, the offline order fulfillment request is processed; in response to the result of the fulfillment processing being successful, the fulfillment status of the order to be fulfilled corresponding to the offline order fulfillment request is determined to be fulfilled, and offline fulfilled order data is generated.
3. The method according to claim 2, characterized in that, The total number of items available for sale refers to all tickets available for sale, and each ticket corresponds to a seat. The offline items available for sale refer to offline tickets available for sale. The step of sending the object data of the offline items available for sale to the terminal device, so that the terminal device can display the object data of the offline items available for sale to the user, includes: The object data of the offline tickets for sale is sent to the terminal device, so that the terminal device generates an offline seat selection interface based on the object data of the offline tickets for sale, and displays the offline seat selection interface to the user. The offline seat selection interface is used to display the seats corresponding to the offline tickets for sale.
4. The method according to claim 3, characterized in that, The online recovery period's pending sale objects are the tickets pending sale during the online recovery period. The seats corresponding to the offline pending sale tickets are the seats in the first designated row among the seats corresponding to the full number of pending sale tickets. The seats corresponding to the online recovery period's pending sale tickets are the seats in the second designated row among the seats corresponding to the full number of pending sale tickets. The first designated row is different from the second designated row.
5. The method according to any one of claims 2 to 4, characterized in that, After the offline transaction processing based on the offline objects for sale and the orders to be fulfilled, the method further includes: When the online transaction link is restored to normal, in response to receiving the offline transaction termination instruction, the offline transaction data generated by the offline transaction is sent to the online transaction server. The offline transaction data includes the offline order data and the offline fulfilled order data.
6. The method according to any one of claims 1 to 4, characterized in that, The offline transaction initiation instruction is sent under any of the following circumstances: The monitoring server, in response to detecting an anomaly in the online transaction link, sends a message to the offline transaction server; The online trading server sends a message to the offline trading server in response to detecting an anomaly in the online trading link; The terminal device sends a message to the offline transaction server in response to a trigger from the administrator user.
7. A transaction processing method, characterized in that, Applied to an online trading server, the method includes: Under normal online transaction conditions, disaster recovery data is synchronized to the offline transaction server, which is located at an offline service institution. The disaster recovery data includes data on pending orders and information on all available sales objects corresponding to the offline service institution. In the event that the online transaction link is abnormal and then recovers, the online recovery period is determined from the full list of available items. The full list of available items also includes offline available items. The offline available items are different from the online recovery period available items. The offline available items and the pending order data are used by the offline transaction server to process offline transactions. The online recovery period is the time from the start of online transactions to the recovery of online transactions after the online transaction link recovers from the abnormality. Based on the items available for sale during the online recovery period, online transactions within the online recovery period are processed.
8. The method according to claim 7, characterized in that, The total number of items available for sale refers to all available tickets, and each available ticket corresponds to a seat. The items available for sale during the online recovery period refer to tickets available for sale during the online recovery period. The process of processing online transactions during the online recovery period based on the items available for sale during the online recovery period includes: The object data of the tickets available for sale during the online recovery period is sent to the terminal device, so that the terminal device generates an online recovery period seat selection interface based on the object data of the tickets available for sale during the online recovery period, and displays the online recovery period seat selection interface to the user. The online recovery period seat selection interface is used to display the seats corresponding to the tickets available for sale during the online recovery period. In response to receiving an online transaction request from the terminal device for the available seats during the online recovery period, the system processes the online transaction request, which is generated based on the online recovery period seat selection interface.
9. The method according to claim 7 or 8, characterized in that, Also includes: In response to receiving offline transaction data generated by offline transactions sent by the offline transaction server, the transaction data stored locally on the online transaction server is updated based on the offline transaction data, wherein the offline transaction data includes offline order data and offline fulfilled order data; Once the offline transaction data has been received and the transaction data stored locally on the online transaction server has been updated, the online recovery period is determined to have ended. In response to the end of the online recovery period, online transaction processing is performed based on the transaction data stored locally on the online transaction server.
10. A transaction processing system, characterized in that, The system includes an online transaction server, an offline transaction server located at offline service institutions, and terminal equipment; The online transaction server is used to: synchronize disaster recovery data to the offline transaction server when the online transaction link is normal. The disaster recovery data includes data on pending orders and information on all available sales objects corresponding to the offline service institutions. If the online transaction link is abnormal and then returns to normal, the online transaction objects for the online recovery period are determined from the full number of objects for sale, and the online transactions during the online recovery period are processed based on the objects for sale during the online recovery period; The online recovery period is the time from the start of online transactions to the point where online transactions are restored to normal after the online transaction link recovers from an anomaly. The offline transaction server is used to synchronize the disaster recovery data from the online transaction server when the online transaction link is normal. In the event of an abnormal online transaction link, in response to receiving an offline transaction initiation command, offline sellable objects are determined from the full pool of sellable objects, and offline transaction processing is performed based on the offline sellable objects or the orders to be fulfilled. The offline sellable objects are different from the sellable objects during the online recovery period. The terminal device is used to: interact with the online trading server so that the online trading server can process online transactions; The terminal device is also used to: interact with the offline transaction server to enable the offline transaction server to process offline transactions.
11. A transaction processing apparatus, characterized in that, The device is configured to be located on an offline trading server, which is located in an offline service institution. The device includes: The disaster recovery data synchronization module is used to synchronize disaster recovery data from the online transaction server when the online transaction link is normal. The disaster recovery data includes data on pending orders and information on all pending sales objects corresponding to the offline service institutions. The offline pending sale object determination module is used to determine offline pending sale objects from the full pending sale objects in response to receiving an offline transaction start command when the online transaction link is abnormal. The full pending sale objects also include pending sale objects during the online recovery period. The offline pending sale objects and the pending sale objects during the online recovery period are different objects. The pending sale objects during the online recovery period are used for processing online transactions during the online recovery period. The online recovery period is the period from the start of online transaction to the online transaction recovery after the online transaction link recovers from the abnormality. The offline transaction processing module is used to process offline transactions based on the offline objects for sale and the orders to be fulfilled.
12. A transaction processing apparatus, characterized in that, The device, configured on an online transaction server, includes: The disaster recovery data distribution module is used to synchronize disaster recovery data to the offline transaction server when the online transaction link is normal. The offline transaction server is set up at the offline service institution. The disaster recovery data includes the data of the pending orders and the information of all the objects to be sold corresponding to the offline service institution. The recovery phase processing module is used to determine the online recovery period's sellable objects from the full pool of sellable objects when the online transaction link is abnormal and then returns to normal. The full pool of sellable objects also includes offline sellable objects, which are different from the sellable objects in the online recovery period. The offline sellable objects and the pending order data are used by the offline transaction server to process offline transactions. The online recovery period is the time from the start of online transactions to the restoration of online transactions after the online transaction link recovers from the abnormality. The online transaction processing module is used to process online transactions within the online recovery period based on the objects available for sale during the online recovery period.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1 to 9.
14. An electronic device, characterized in that, include: One or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method according to any one of claims 1 to 9.
15. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 9.