Search

CN-122022993-A - Transaction method, system, device, computer readable storage medium and electronic equipment

CN122022993ACN 122022993 ACN122022993 ACN 122022993ACN-122022993-A

Abstract

The embodiment of the application discloses a transaction method, a transaction system, a transaction device, a computer readable storage medium and electronic equipment, and relates to the technical field of data processing. The method comprises the steps of synchronizing disaster recovery data from an online transaction server under the condition that an online transaction link is normal, wherein the disaster recovery data comprises data of an order to be redeemed and information of a full-quantity object to be sold, which correspond to an offline service mechanism, under the condition that the online transaction link is abnormal, determining the offline object to be sold from the full-quantity object to be sold in response to receiving an offline transaction starting instruction, enabling the full-quantity object to be sold to further comprise the online recovery period object to be sold, enabling the offline object to be sold to be different from the online recovery period object to be sold, and conducting offline transaction processing based on the offline object to be sold and the order to be redeemed. Based on the scheme, the normal operation of the transaction in the offline service mechanism can be maintained through the offline transaction under the condition of abnormal online transaction links, and the use experience of a user is effectively improved.

Inventors

  • LU KUAN

Assignees

  • 广东阿里影业云智软件有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (15)

  1. 1. A transaction processing method, applied to an offline transaction server, where the offline transaction server is disposed in an offline service organization, the method comprising: Under the condition that an online transaction link is normal, disaster recovery data are synchronized from an online transaction server, wherein the disaster recovery data comprise data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to the offline service mechanism; Under the condition that an online transaction link is abnormal, determining an offline object to be sold from a full amount of objects to be sold in response to receiving an offline transaction starting instruction, wherein the full amount of objects to be sold further comprises an online recovery period object to be sold, the offline object to be sold and the online recovery period object to be sold are different objects, the online recovery period object to be sold is used for processing online transaction in the online recovery period, and the online recovery period is a period from starting of online transaction to recovery of online transaction after the online transaction link is recovered from abnormal to normal; and processing offline transaction based on the offline object to be sold and the order to be redeemed.
  2. 2. The method of claim 1, wherein the processing of offline transactions based on the offline object for sale and the redemption order comprises: The method comprises the steps of sending object data of the offline object to a terminal device to enable the terminal device to display the object data of the offline object to be sold to a user, responding to receiving an offline purchase transaction request of the offline object to be sold sent by the terminal device, processing the offline purchase transaction request to generate offline order data, or And determining the redemption state of the order to be redeemed corresponding to the offline order redemption request as redeemed and generating offline redeemed order data in response to successful redemption of the offline order redemption request.
  3. 3. The method according to claim 2, wherein the total amount of the objects for sale is a total amount of the notes for sale, the total amount of the notes for sale corresponds to a seat, the offline objects for sale is an offline notes for sale, the sending the object data of the offline objects for sale to a terminal device, so that the terminal device displays the object data of the offline objects for sale to a user, comprising: And sending the object data of the off-line bill to a terminal device, so that the terminal device generates an off-line seat selecting interface based on the object data of the off-line bill, and displays the off-line seat selecting interface to a user, wherein the off-line seat selecting interface is used for displaying a seat corresponding to the off-line bill.
  4. 4. The method of claim 3, wherein the online recovery period for which the object is a ticket for online recovery period, the offline ticket for which the seat is a first designated row of seats for the full volume ticket for which the seat is a second designated row of seats for the full volume ticket for which the seat is different from the first designated row.
  5. 5. The method according to any one of claims 2 to 4, wherein after the processing of offline transactions based on the offline object for sale and the redemption order, the method further comprises: And under the condition that the online transaction link is restored to be normal, in response to receiving an offline transaction ending instruction, transmitting offline transaction data generated by offline transaction to an online transaction server, wherein the offline transaction data comprises the offline order data and the offline redeemed order data.
  6. 6. The method of any one of claims 1to 4, wherein the offline transaction initiation instruction is sent in any one of the following cases: the monitoring server responds to detection of the abnormality of the online transaction link and sends the abnormality to the offline transaction server; An online transaction server sends to the offline transaction server in response to detecting the online transaction link anomaly; and the terminal equipment responds to the trigger of the administrator user and sends the trigger to the offline transaction server.
  7. 7. A transaction processing method, characterized by being applied to an online transaction server, the method comprising: Under the condition that an online transaction link is normal, disaster recovery data are synchronized to an offline transaction server, wherein the offline transaction server is arranged in an offline service mechanism, and the disaster recovery data comprise data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to the offline service mechanism; Under the condition that an online transaction link is abnormal and returns to normal, determining an online recovery period for sale object from a full amount of for sale objects, wherein the full amount of for sale objects further comprises an offline for sale object, the offline for sale object and the online recovery period for sale object are different objects, the offline for sale object and the order data for redemption are used for processing offline transaction by an offline transaction server, and the online recovery period is a period from starting of the online transaction to the return to normal of the online transaction after the online transaction link returns to normal from abnormal; and processing the online transaction in the online recovery period based on the online recovery period for the object to be sold.
  8. 8. The method of claim 7, wherein the full volume of items for sale is a full volume of notes for sale, the full volume of notes for sale corresponds to seats, the online recovery period of items for sale is an online recovery period of notes for sale, and the processing of the online transaction within the online recovery period based on the online recovery period of items for sale comprises: Sending the object data of the online recovery time period bill to a terminal device, so that the terminal device generates an online recovery time period seat selecting interface based on the object data of the online recovery time period bill, and displays the online recovery time period seat selecting interface to a user, wherein the online recovery time period seat selecting interface is used for displaying a seat corresponding to the online recovery time period bill; and responding to the online transaction request of the online recovery period for the object to be sold, which is sent by the terminal equipment, and processing the online transaction request, wherein the online transaction request is generated based on the online recovery period seat selection interface.
  9. 9. The method according to claim 7 or 8, further comprising: Updating transaction data stored locally by the online transaction server based on offline transaction data generated in response to receiving offline transactions sent by the offline transaction server, the offline transaction data including offline order data and offline redeemed order data; after the offline transaction data is received and the transaction data stored locally by the online transaction server is updated, determining that the online recovery period is finished; and processing the online transaction based on transaction data stored locally by the online transaction server in response to the online recovery period ending.
  10. 10. A transaction processing system, which is characterized in that the system comprises an online transaction server, an offline transaction server arranged in an offline service mechanism and a terminal device; The online transaction server is used for synchronizing disaster recovery data to the offline transaction server under the condition that an online transaction link is normal, wherein the disaster recovery data comprises data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to the offline service mechanism; under the condition that the online transaction link is abnormal and returns to normal, determining online recovery time period for sale objects from the total amount of for sale objects, and processing online transaction in the online recovery time period based on the online recovery time period for sale objects, wherein the online recovery time period is a time period from starting of the online transaction to the recovery of the online transaction after the online transaction link returns to normal from abnormal; The offline transaction server is used for synchronizing the disaster recovery data from the online transaction server under the condition that an online transaction link is normal, determining offline objects to be sold from the total objects to be sold in response to receiving an offline transaction starting instruction under the condition that the online transaction link is abnormal, and carrying out offline transaction processing based on the offline objects to be sold or the redemption orders, wherein the offline objects to be sold and the online recovery period objects to be sold are different objects; The terminal equipment is used for interacting with the online transaction server so as to enable the online transaction server to conduct online transaction processing; The terminal device is also used for interacting with the offline transaction server so that the offline transaction server can process offline transactions.
  11. 11. A transaction processing device, characterized in that it is disposed in an offline transaction server, said offline transaction server being disposed in an offline service institution, said device comprising: the disaster recovery data synchronization module is used for synchronizing disaster recovery data from the online transaction server under the condition that an online transaction link is normal, wherein the disaster recovery data comprises data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to the offline service mechanism; An off-line object-to-be-sold determining module, configured to determine, in response to receiving an off-line transaction initiation instruction in the event of an abnormal on-line transaction link, an off-line object-to-be-sold from a total number of objects to be-sold, the total number of objects to be-sold further including an on-line recovery period object to be-sold, the offline object to be sold and the online recovery period object to be sold are different objects, the online recovery period object to be sold is used for processing online transaction in the online recovery period, and the online recovery period is a period from starting of the online transaction to recovery of the online transaction after the online transaction link is recovered from abnormal to normal; and the offline transaction processing module is used for processing offline transaction based on the offline object to be sold and the order to be redeemed.
  12. 12. A transaction processing device, characterized in that it is provided to an online transaction server, said device comprising: The disaster recovery data issuing module is used for synchronizing disaster recovery data to an offline transaction server under the condition that an online transaction link is normal, wherein the offline transaction server is arranged in an offline service mechanism, and the disaster recovery data comprises data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to the offline service mechanism; The online transaction processing module is used for determining online recovery period for selling objects from a full amount of for selling objects under the condition that an online transaction link is abnormal and is recovered to be normal, the full amount of for selling objects further comprises offline for selling objects, the offline for selling objects and the online recovery period for selling objects are different objects, the offline for selling objects and the order data for redemption are used for processing offline transactions by an offline transaction server, and the online recovery period is a period from starting of online transactions to recovery of online transactions after the online transaction link is recovered to be normal from the abnormal condition; And the online transaction processing module is used for processing online transactions in the online recovery period based on the online recovery period for-sale objects.
  13. 13. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 9.
  14. 14. An electronic device, comprising: One or more processors, and A memory associated with the one or more processors for storing program instructions that, when read for execution by the one or more processors, perform the steps of the method of any of claims 1 to 9.
  15. 15. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.

Description

Transaction method, system, device, computer readable storage medium and electronic equipment Technical Field The present application relates to the field of data processing technologies, and in particular, to a transaction method, system, device, computer readable storage medium, and electronic apparatus. Background With the rapid development of mobile internet technology, users increasingly make purchases by way of online transactions. In some transaction scenarios, such as cinema ticket purchasing scenarios, when the online transaction system has faults, the transaction may not be performed normally. In this case, if the off-line transaction can be realized, the normal progress of the transaction can be effectively maintained. Therefore, how to implement offline transactions becomes an important technical problem. Disclosure of Invention The application provides a transaction method, a transaction system, a transaction device, a computer readable storage medium and electronic equipment. The application provides the following scheme: According to a first aspect, there is provided a transaction processing method comprising: under the condition that an online transaction link is normal, disaster recovery data are synchronized from an online transaction server, wherein the disaster recovery data comprise data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to an offline service mechanism; Under the condition that the online transaction link is abnormal, determining an offline object to be sold from the total objects to be sold in response to receiving an offline transaction starting instruction, wherein the total objects to be sold further comprise the online object to be sold in an online recovery period, the offline object to be sold and the online object to be sold in the online recovery period are different objects, the online object to be sold in the online recovery period is used for processing online transaction in the online recovery period, the online recovery period is a period from starting of the online transaction to recovering of the online transaction from abnormal recovery to normal after the online transaction link is recovered from abnormal recovery, and processing the offline transaction based on the offline object to be sold and the order to be redeemed. According to a second aspect, there is provided another transaction processing method comprising: Under the condition that an online transaction link is normal, disaster recovery data is synchronized to an offline transaction server, wherein the offline transaction server is arranged in an offline service mechanism, and the disaster recovery data comprises data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to the offline service mechanism; Under the condition that the online transaction link is abnormal and returns to normal, determining an online recovery period for the object to be sold from the total objects to be sold, wherein the total objects to be sold further comprise offline objects to be sold, the offline objects to be sold and the online recovery period for the object to be sold are different objects, the offline objects to be sold and the data of the order to be redeemed are used for processing offline transaction by an offline transaction server, and the online recovery period is a period from starting of the online transaction to the return of the online transaction to normal after the online transaction link returns to normal from abnormal; processing of online transactions within the online recovery period is performed based on the object for sale during the online recovery period. According to a third aspect, there is provided a transaction processing system comprising an online transaction server, an offline transaction server provided at an offline service facility, and a terminal device; the online transaction server is used for synchronizing disaster recovery data to the offline transaction server under the condition that an online transaction link is normal, wherein the disaster recovery data comprises data of an order to be redeemed and information of a full amount of objects to be sold, which correspond to an offline service mechanism; the online transaction server is also used for determining online recovery period for selling objects from the total amount of for selling objects under the condition that the online transaction link is recovered to be normal after abnormality, and processing online transaction in the online recovery period based on the online recovery period for selling objects; the off-line transaction server is used for synchronizing disaster recovery data from the on-line transaction server under the condition that the on-line transaction link is normal; the off-line transaction server is also used for determining off-line objects to be sold from the total objects to be sold in response to re