[go: up one dir, main page]

CN116245639A - Method, device, equipment and medium for updating transaction state - Google Patents

Method, device, equipment and medium for updating transaction state Download PDF

Info

Publication number
CN116245639A
CN116245639A CN202211677053.8A CN202211677053A CN116245639A CN 116245639 A CN116245639 A CN 116245639A CN 202211677053 A CN202211677053 A CN 202211677053A CN 116245639 A CN116245639 A CN 116245639A
Authority
CN
China
Prior art keywords
transaction
real
code
instruction
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211677053.8A
Other languages
Chinese (zh)
Inventor
瞿真
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211677053.8A priority Critical patent/CN116245639A/en
Publication of CN116245639A publication Critical patent/CN116245639A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of data processing, in particular to a method, a device, equipment and a medium for updating a transaction state, which are used for solving the problem that two parties of business transaction transmission cannot achieve complete synchronization in the process of adding and deleting business scenes and taking effect. The method comprises the following steps: responding to an update transaction instruction sent by a third party platform, and acquiring transaction information of a transaction to be updated in the update transaction instruction from a service data packet of the third party platform; distributing transaction codes for each transaction to be updated, and determining the mapping relation between the transaction information and the transaction codes; and responding to the real-time transaction processing instruction sent by the third party platform, determining a transaction code corresponding to the real-time transaction based on the mapping relation, and processing the real-time transaction corresponding to the real-time transaction processing instruction in a transaction processing mode corresponding to the transaction code. The server in the application can support a new transaction scene under the condition of not stopping the application, and can reduce the business influence on the existing transaction scene.

Description

一种更新交易状态的方法、装置、设备及介质A method, device, equipment and medium for updating transaction status

技术领域technical field

本申请涉及数据处理技术领域,具体涉及一种更新交易状态的方法、装置、设备及介质。The present application relates to the technical field of data processing, and in particular to a method, device, equipment and medium for updating transaction status.

背景技术Background technique

目前,随着第三方支付过程中业务场景的多样化、复杂化、个性化,对于第三方支付平台新增或者删除业务场景的情况,目前银行需要通过上传更新程序的方法来达到打开或者关闭交易的目的。At present, with the diversification, complexity, and personalization of business scenarios in the third-party payment process, for the situation of adding or deleting business scenarios on the third-party payment platform, banks need to open or close transactions by uploading and updating programs. the goal of.

但是,对于第三方支付平台新增或者删除业务场景的情况,银行需配合同步打开、关闭本系统的业务场景开关,由于业务交易传输的双方在进行新增、删除业务场景并生效的过程中,无法做到完全同步,会出现业务交易异常或者正常业务交易中断。However, for the third-party payment platform to add or delete business scenarios, the bank needs to cooperate with the simultaneous opening and closing of the system’s business scenario switch. If complete synchronization cannot be achieved, business transactions will be abnormal or normal business transactions will be interrupted.

发明内容Contents of the invention

本申请实施例提供一种更新交易状态的方法、装置、设备及介质,用于解决业务交易传输的双方在进行新增、删除业务场景并生效的过程中,无法做到完全同步,导致业务交易异常或者正常业务交易中断的问题。The embodiment of the present application provides a method, device, device and medium for updating the transaction state, which is used to solve the problem that the two parties in the business transaction transmission cannot achieve complete synchronization during the process of adding and deleting business scenarios and taking effect, resulting in the failure of business transactions Exceptions or problems that interrupt normal business transactions.

第一方面,本申请提供一种更新交易状态的方法,应用于服务器,所述方法包括:In the first aspect, the present application provides a method for updating transaction status, which is applied to a server, and the method includes:

响应于第三方平台发送的更新交易指令,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息;In response to the update transaction instruction sent by the third-party platform, obtain the transaction information of the transaction to be updated in the update transaction instruction from the business data packet of the third-party platform;

为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Allocating a transaction code for each transaction to be updated, and determining the mapping relationship between the transaction information and the transaction code;

响应于第三方平台发送的实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。In response to the real-time transaction processing instruction sent by the third-party platform, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and perform the real-time transaction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code deal with.

本申请中服务器在交易场景发生更新时,可以提前操作,时间上较为灵活;第三方平台发送新交易场景或者现有交易场景,服务器在不停启应用的情况下,即可支持新交易场景,又可以减少对现有交易场景的业务影响。解决了以往打开关闭交易过程中因为停启应用产生交易异常甚至较长时间业务中断的问题,避免因正常业务受到影响产生的不必要损失和不良后果。In this application, when the transaction scene is updated, the server can operate in advance, and the time is more flexible; the third-party platform sends a new transaction scene or an existing transaction scene, and the server can support the new transaction scene without stopping the application. It can also reduce the business impact on existing transaction scenarios. It solves the problem of transaction abnormality or even long-term business interruption caused by the shutdown of the application in the process of opening and closing transactions in the past, and avoids unnecessary losses and adverse consequences caused by normal business being affected.

在一种可能的实施例中,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息,包括:In a possible embodiment, the transaction information of the transaction to be updated in the update transaction instruction is obtained from the service data package of the third-party platform, including:

解析所述业务数据包,通过所述待更新交易对应的数据包中一个或多个字段的数值确定交易信息。The business data packet is parsed, and the transaction information is determined through the value of one or more fields in the data packet corresponding to the transaction to be updated.

在一种可能的实施例中,所述交易处理方式通过下述方式确定,包括:In a possible embodiment, the transaction processing method is determined by the following methods, including:

基于预先设定的所述交易码与所述交易处理方式之间的绑定关系,查找所述交易码对应的交易处理方式。Based on the preset binding relationship between the transaction code and the transaction processing method, the transaction processing method corresponding to the transaction code is searched.

在一种可能的实施例中,所述交易码包括下列部分或全部:所述待更新交易的顺序编号、所述待更新交易的标识。In a possible embodiment, the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identifier of the transaction to be updated.

第二方面,本申请提供一种更新交易状态的方法,应用于第三方平台,所述方法包括:In the second aspect, the present application provides a method for updating transaction status, which is applied to a third-party platform, and the method includes:

向服务器发送更新交易指令以及带有所述更新交易指令中待更新交易的交易信息的业务数据包,以使所述服务器为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Send an update transaction instruction and a business data packet with transaction information of the transaction to be updated in the update transaction instruction to the server, so that the server assigns a transaction code for each transaction to be updated, and determines the transaction information and The mapping relationship between the transaction codes;

向所述服务器发送实时交易处理指令,使所述服务器基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。Send a real-time transaction processing instruction to the server, so that the server determines the transaction code corresponding to the real-time transaction based on the mapping relationship, and executes the real-time transaction processing instruction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code The transaction is processed.

在一种可能的实施例中,所述交易码包括下列部分或全部:所述待更新交易的顺序编号、所述待更新交易的标识。In a possible embodiment, the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identifier of the transaction to be updated.

第三方面,本申请提供一种更新交易状态的方法,包括:In a third aspect, this application provides a method for updating transaction status, including:

响应于更新交易指令,从所述更新交易指令对应的业务数据包中获取更新交易指令中待更新交易的交易信息;In response to the update transaction instruction, acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet corresponding to the update transaction instruction;

为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Allocating a transaction code for each transaction to be updated, and determining the mapping relationship between the transaction information and the transaction code;

响应于实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。In response to the real-time transaction processing instruction, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code.

第四方面,本申请提供一种更新交易状态的装置,所述装置包括:In a fourth aspect, the present application provides a device for updating transaction status, the device comprising:

获取模块,用于响应于第三方平台发送的更新交易指令,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息;An acquisition module, configured to acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet of the third-party platform in response to the update transaction instruction sent by the third-party platform;

分配模块,用于为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;An allocation module, configured to allocate a transaction code for each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code;

处理模块,用于响应于第三方平台发送的实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。A processing module, configured to respond to the real-time transaction processing instruction sent by the third-party platform, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code The corresponding real-time transactions are processed.

第五方面,本申请提供一种更新交易状态的装置,所述装置包括:In a fifth aspect, the present application provides a device for updating transaction status, the device comprising:

第一发送模块,用于向服务器发送更新交易指令以及带有所述更新交易指令中待更新交易的交易信息的业务数据包,以使所述服务器为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;The first sending module is configured to send an update transaction instruction and a service data packet with transaction information of a transaction to be updated in the update transaction instruction to the server, so that the server assigns a transaction code to each transaction to be updated, And determine the mapping relationship between the transaction information and the transaction code;

第二发送模块,用于向所述服务器发送实时交易处理指令,使所述服务器基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The second sending module is configured to send a real-time transaction processing instruction to the server, so that the server determines the transaction code corresponding to the real-time transaction based on the mapping relationship, and executes the transaction processing method corresponding to the transaction code. The real-time transaction corresponding to the real-time transaction processing instruction is processed.

第六方面,本申请提供一种更新交易状态的装置,所述装置包括:In a sixth aspect, the present application provides a device for updating transaction status, the device comprising:

获取交易信息模块,用于响应于更新交易指令,从所述更新交易指令对应的业务数据包中获取更新交易指令中待更新交易的交易信息;An acquisition transaction information module, configured to acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet corresponding to the update transaction instruction in response to the update transaction instruction;

分配交易码模块,用于为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Assigning a transaction code module, configured to assign a transaction code for each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code;

实时交易处理模块,用于响应于实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The real-time transaction processing module is configured to respond to the real-time transaction processing instruction, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction code corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code. The transaction is processed.

第七方面,本申请提供一种电子设备,包括:In a seventh aspect, the present application provides an electronic device, including:

存储器,用于存储程序指令;memory for storing program instructions;

处理器,用于调用所述存储器中存储的程序指令,按照获得的程序指令执行第一方面中任一项所述的方法包括的步骤或执行第二方面中任一项所述的方法包括的步骤,或执行第三方面中所述的方法包括的步骤。The processor is configured to call the program instructions stored in the memory, and execute the steps included in the method described in any one of the first aspects or execute the steps included in the method described in any one of the second aspect according to the obtained program instructions. steps, or perform the steps included in the method described in the third aspect.

第八方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被计算机执行时,使所述计算机执行第一方面中任一项所述的方法或执行第二方面中任一项所述的方法包括的步骤,或执行第三方面中所述的方法包括的步骤。In an eighth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes The method described in any one of the first aspects or performing the steps included in the method described in any one of the second aspect, or performing the steps included in the method described in the third aspect.

第九方面,本申请提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行第一方面中任一项所述的方法或执行第二方面中任一项所述的方法包括的步骤,或执行第三方面中所述的方法包括的步骤。In a ninth aspect, the present application provides a computer program product, the computer program product comprising: computer program code, when the computer program code is run on a computer, the computer is made to execute the method described in any one of the first aspect. The method either performs the steps included in the method described in any one of the second aspects, or performs the steps included in the method described in the third aspect.

附图说明Description of drawings

图1为本申请实施例提供的一种更新交易状态的原有方式示意图;FIG. 1 is a schematic diagram of an original method for updating transaction status provided by the embodiment of the present application;

图2为本申请实施例提供的一种更新交易状态的方法,应用于服务器的流程图;FIG. 2 is a flow chart of a method for updating transaction status provided by an embodiment of the present application, applied to a server;

图3为本申请实施例提供的一种更新交易状态的方法流程示意图;FIG. 3 is a schematic flowchart of a method for updating transaction status provided by an embodiment of the present application;

图4为本申请实施例提供的一种更新交易状态的方法,应用于第三方平台的流程图;FIG. 4 is a flow chart of a method for updating transaction status provided by an embodiment of the present application, applied to a third-party platform;

图5为本申请实施例提供的一种更新交易状态的方法整体流程图;FIG. 5 is an overall flowchart of a method for updating transaction status provided by the embodiment of the present application;

图6为本申请实施例提供的一种更新交易状态的装置的结构图;FIG. 6 is a structural diagram of a device for updating transaction status provided by an embodiment of the present application;

图7为本申请实施例提供的另一种更新交易状态的装置的结构图;FIG. 7 is a structural diagram of another device for updating transaction status provided by the embodiment of the present application;

图8为本申请实施例提供的另一种更新交易状态的装置的结构图;FIG. 8 is a structural diagram of another device for updating transaction status provided by the embodiment of the present application;

图9为本申请实施例提供的一种电子设备的结构图。FIG. 9 is a structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚明白,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以按不同于此处的顺序执行所示出或描述的步骤。In order to make the purpose, technical solutions and advantages of the application clearer, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application. In the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

本申请的说明书和权利要求书及上述附图中的术语“第一”和“第二”是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的保护。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请中的“多个”可以表示至少两个,例如可以是两个、三个或者更多个,本申请实施例不做限制。The terms "first" and "second" in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the term "comprises", as well as any variations thereof, is intended to cover non-exclusive protections. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses. "Multiple" in the present application may mean at least two, for example, two, three or more, which is not limited in this embodiment of the present application.

本申请技术方案中,对数据的采集、传播、使用等,均符合国家相关法律法规要求。In the technical solution of this application, the collection, dissemination, and use of data all comply with the requirements of relevant national laws and regulations.

在介绍本申请实施例所提供的一种更新交易状态的方法之前,为了便于理解,首先对下面对本申请实施例的技术背景进行详细介绍。Before introducing a method for updating transaction status provided by the embodiment of the present application, for ease of understanding, firstly, the technical background of the embodiment of the present application will be introduced in detail below.

参见图1为更新交易的原有方式,发送方即为本申请中第三方平台,接受方即为本申请中服务器,发送方向接受方发送现有交易的报文数据,然后发送方配合接收方停止服务以使接受方暂停服务,更换版本(即更新交易)以支持新交易;随后发送方和接受方同时停止服务,此时无法进行交易;待接受方更新完成后,接受方启动服务,通知发送方后,发送方启动服务;最后,发送方通过向接受方发送新老交易的报文数据,经接受方接收新老交易的报文数据,并对新老交易完成处理。See Figure 1 for the original method of updating transactions. The sender is the third-party platform in this application, and the receiver is the server in this application. The sender sends the message data of the existing transaction to the receiver, and then the sender cooperates with the receiver. Stop the service to make the receiver suspend the service, change the version (that is, update the transaction) to support the new transaction; then the sender and the receiver stop the service at the same time, and the transaction cannot be performed at this time; after the receiver is updated, the receiver starts the service and notifies After the sender, the sender starts the service; finally, the sender sends the message data of the old and new transactions to the receiver, receives the message data of the old and new transactions through the receiver, and completes the processing of the old and new transactions.

下面参见图2,本申请实施例提供一种更新交易状态的方法,应用于服务器,该方法包括:Referring to Fig. 2 below, the embodiment of the present application provides a method for updating the transaction state, which is applied to the server, and the method includes:

步骤201:响应于第三方平台发送的更新交易指令,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息。Step 201: Responding to the update transaction instruction sent by the third-party platform, obtain the transaction information of the transaction to be updated in the update transaction instruction from the service data package of the third-party platform.

具体来讲,随着第三方场景的多样化、复杂化、个性化,当第三方平台更新交易场景时,例如新增交易场景或删除特定的交易场景时,第三方平台向服务器发送更新交易指令。更新交易指令用于指示服务器第三方平台中存在更新的交易,需要服务器将更新的交易进行同步。Specifically, with the diversification, complexity, and personalization of third-party scenarios, when the third-party platform updates the transaction scenario, such as adding a transaction scenario or deleting a specific transaction scenario, the third-party platform sends an update transaction instruction to the server . The update transaction instruction is used to instruct the server that there is an updated transaction in the third-party platform, and the server needs to synchronize the updated transaction.

业务数据包包括待更新交易的交易信息,例如交易类型。The business data package includes the transaction information of the transaction to be updated, such as the transaction type.

作为一种可选的实施方式,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息,包括:解析所述业务数据包,通过所述待更新交易对应的数据包中一个或多个字段的数值确定交易信息。As an optional implementation manner, obtaining the transaction information of the transaction to be updated in the update transaction instruction from the business data package of the third-party platform includes: parsing the business data package, and passing the data corresponding to the transaction to be updated The values of one or more fields in the package determine the transaction information.

具体来讲,服务器接收到更新交易指令后,通过解析第三方平台发送的待更新交易对应的数据包中一个或多个字段的数值确定交易信息,可以通过一个字段的数值进行确定交易信息,也可以通过多个字段的数值进行确定交易信息。例如,第三方平台中发生更新的交易有三个,在第三方平台真正进行这三个交易之前,预先向服务器发送更新交易指令,服务器通过解析第三方平台发送的这三个交易的数据包,获取这三个交易对应的交易信息。Specifically, after receiving the update transaction instruction, the server determines the transaction information by analyzing the value of one or more fields in the data packet corresponding to the transaction to be updated sent by the third-party platform. The transaction information can be determined by the value of a field, or The transaction information can be determined through the values of multiple fields. For example, there are three updated transactions on the third-party platform. Before the third-party platform actually performs these three transactions, the update transaction instruction is sent to the server in advance. The server analyzes the data packets of the three transactions sent by the third-party platform to obtain The transaction information corresponding to these three transactions.

步骤202:为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系。Step 202: Assign a transaction code to each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code.

具体来讲,交易码用于为交易进行标号,本申请中服务器为待更新交易分配交易码不限于顺序编码。Specifically, the transaction code is used to label the transaction. In this application, the transaction code assigned by the server to the transaction to be updated is not limited to sequential coding.

作为一种可选的实施方式,交易码包括下列部分或全部:待更新交易的顺序编号、所述待更新交易的标识。As an optional implementation manner, the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identification of the transaction to be updated.

交易码可以作为交易的顺序编号也可以作为待更新交易的标识。The transaction code can be used as the sequence number of the transaction or as the identification of the transaction to be updated.

通过建立交易信息与交易码之间的映射关系,当已知交易信息便可通过该交易信息与交易码的映射关系确定该交易信息对应的交易码。By establishing the mapping relationship between the transaction information and the transaction code, when the transaction information is known, the transaction code corresponding to the transaction information can be determined through the mapping relationship between the transaction information and the transaction code.

本申请中,作为一种可选的实施方式,交易信息与交易码之间的映射关系按行存储于数据库中形成一数据库表。In this application, as an optional implementation manner, the mapping relationship between transaction information and transaction codes is stored in the database row by row to form a database table.

步骤203:响应于第三方平台发送的实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。Step 203: In response to the real-time transaction processing instruction sent by the third-party platform, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and use the transaction processing method corresponding to the transaction code to process the transaction code corresponding to the real-time transaction processing instruction. Real-time transactions are processed.

具体来讲,当服务器接收到待更新交易的交易信息,为每个待更新的交易分配好交易码,并建立了每个待更新交易与对应的交易码之间的映射关系之后,准备工作即完成,即第三方平台中更新的交易已经预先同步到服务器中。Specifically, when the server receives the transaction information of the transaction to be updated, assigns a transaction code to each transaction to be updated, and establishes the mapping relationship between each transaction to be updated and the corresponding transaction code, the preparation work is Completed, that is, the updated transaction in the third-party platform has been synchronized to the server in advance.

当第三方平台开始对待更新交易进行运行时,第三方平台向服务器发送实时交易处理指令,服务器接收到指令后,基于预先建立的交易与交易码的映射关系,确定第三方平台发送的实时交易对应的交易码。When the third-party platform starts to run the transaction to be updated, the third-party platform sends a real-time transaction processing instruction to the server. After receiving the instruction, the server determines the corresponding real-time transaction sent by the third-party platform based on the pre-established mapping relationship between the transaction and the transaction code. the transaction code.

交易处理方式是服务器预先针对不同交易设计的不同交易处理方式。Transaction processing methods are different transaction processing methods designed by the server in advance for different transactions.

作为一种可选的实施方式,交易处理方式通过下述方式确定,包括:基于预先设定的所述交易码与所述交易处理方式之间的绑定关系,查找所述交易码对应的交易处理方式。As an optional implementation, the transaction processing method is determined in the following manner, including: searching for the transaction corresponding to the transaction code based on the preset binding relationship between the transaction code and the transaction processing method processing method.

具体来讲,服务器预先设定交易码对应的交易处理方式,当服务器实际需要对交易进行处理时,首先依据映射关系确定该交易对应的交易码,再根据交易码与交易处理方式之间的绑定关系,确定该交易对应的交易处理方式。Specifically, the server pre-sets the transaction processing method corresponding to the transaction code. When the server actually needs to process the transaction, it first determines the transaction code corresponding to the transaction according to the mapping relationship, and then according to the binding between the transaction code and the transaction processing method Determine the relationship and determine the transaction processing method corresponding to the transaction.

为提高访问效率,应用启动时会读取步骤202中形成的数据库表,并将所有交易场景信息记录加载到内存中。应用在获取内部交易码时,直接访问内存,按第三方平台交易信息获取相应的应用内部交易码。应用具备刷新功能,当数据库表发生变更后,允许通过命令方式强制应用将数据库表重新加载到内存中。In order to improve access efficiency, when the application starts, it will read the database table formed in step 202, and load all transaction scene information records into the memory. When the application obtains the internal transaction code, it directly accesses the memory, and obtains the corresponding application internal transaction code according to the transaction information of the third-party platform. The application has a refresh function. When the database table is changed, it is allowed to force the application to reload the database table into the memory through commands.

参见图3,发送方即本申请中第三方平台,接受方即本申请中的服务器,发送方通过向接受方发送报文数据,使接受方接收现有交易;发送方打开新交易(实时交易)开关,接受方同时更新交易场景,应用刷新内存,不停启动应用,发送方打开新交易开关后开始向接受方发送新老交易的报文数据,接受方接受新老交易并进行处理。Referring to Figure 3, the sender is the third-party platform in this application, and the recipient is the server in this application. The sender sends message data to the recipient to make the recipient receive the existing transaction; the sender opens a new transaction (real-time transaction ) switch, the recipient updates the transaction scene at the same time, the application refreshes the memory, and starts the application continuously. After the sender turns on the new transaction switch, it starts to send the message data of the new and old transactions to the recipient, and the recipient accepts the old and new transactions and processes them.

本申请中服务器在交易场景发生更新时,可以提前操作,时间上较为灵活;第三方平台发送新交易场景或者现有交易场景,接收方在不停启应用的情况下,即可支持新交易场景,又可以减少对现有交易场景的业务影响。解决了以往打开关闭交易过程中因为停启应用产生交易异常甚至较长时间业务中断的问题,避免因正常业务受到影响产生的不必要损失和不良后果。In this application, when the transaction scene is updated, the server can operate in advance, and the time is more flexible; the third-party platform sends a new transaction scene or an existing transaction scene, and the receiver can support the new transaction scene without restarting the application , and can reduce the business impact on existing transaction scenarios. It solves the problem of transaction abnormality or even long-term business interruption caused by the shutdown of the application in the process of opening and closing transactions in the past, and avoids unnecessary losses and adverse consequences caused by normal business being affected.

基于同一发明构思,参见图4,本申请实施例提供一种更新交易状态的方法,应用于第三方平台,所述方法包括:Based on the same inventive concept, referring to Figure 4, the embodiment of the present application provides a method for updating the transaction status, which is applied to a third-party platform, and the method includes:

步骤401:向服务器发送更新交易指令以及带有所述更新交易指令中待更新交易的交易信息的业务数据包,以使所述服务器为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Step 401: Send an update transaction instruction and a business data packet with transaction information of the transaction to be updated in the update transaction instruction to the server, so that the server assigns a transaction code to each transaction to be updated, and determines the The mapping relationship between transaction information and the transaction code;

步骤402:向所述服务器发送实时交易处理指令,使所述服务器基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。Step 402: Send a real-time transaction processing instruction to the server, so that the server determines the transaction code corresponding to the real-time transaction based on the mapping relationship, and executes the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code The corresponding real-time transactions are processed.

具体来讲,第三方平台发送新交易场景或者现有交易场景,接收方在不停启应用的情况下,即可支持新交易场景,又可以减少对现有交易场景的业务影响。解决了以往打开关闭交易过程中因为停启应用产生交易异常甚至较长时间业务中断的问题,避免因正常业务受到影响产生的不必要损失和不良后果。Specifically, when a third-party platform sends a new transaction scenario or an existing transaction scenario, the receiver can support the new transaction scenario and reduce the business impact on the existing transaction scenario without restarting the application. It solves the problem of transaction abnormality or even long-term business interruption caused by the shutdown of the application in the process of opening and closing transactions in the past, and avoids unnecessary losses and adverse consequences caused by normal business being affected.

作为一种可选的实施方式,交易码包括下列部分或全部:所述待更新交易的顺序编号、所述待更新交易的标识。As an optional implementation manner, the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identifier of the transaction to be updated.

参见步骤202中相关描述,此处不再赘述。Refer to related descriptions in step 202, which will not be repeated here.

基于同一发明构思,参见图5,本申请实施例提供一种更新交易状态的方法,所述方法包括:Based on the same inventive concept, referring to Fig. 5, the embodiment of the present application provides a method for updating transaction status, the method comprising:

步骤501:响应于更新交易指令,从所述更新交易指令对应的业务数据包中获取更新交易指令中待更新交易的交易信息;Step 501: In response to the update transaction instruction, obtain the transaction information of the transaction to be updated in the update transaction instruction from the business data package corresponding to the update transaction instruction;

步骤502:为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Step 502: Assign a transaction code to each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code;

步骤503:响应于实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。Step 503: In response to the real-time transaction processing instruction, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code.

本申请中服务器在交易场景发生更新时,可以提前操作,时间上较为灵活;第三方平台发送新交易场景或者现有交易场景,接收方在不停启应用的情况下,即可支持新交易场景,又可以减少对现有交易场景的业务影响。解决了以往打开关闭交易过程中因为停启应用产生交易异常甚至较长时间业务中断的问题,避免因正常业务受到影响产生的不必要损失和不良后果。In this application, when the transaction scene is updated, the server can operate in advance, and the time is more flexible; the third-party platform sends a new transaction scene or an existing transaction scene, and the receiver can support the new transaction scene without restarting the application , and can reduce the business impact on existing transaction scenarios. It solves the problem of transaction abnormality or even long-term business interruption caused by the shutdown of the application in the process of opening and closing transactions in the past, and avoids unnecessary losses and adverse consequences caused by normal business being affected.

基于同一发明构思,本申请实施例提供一种更新交易状态的装置,请参照图6,该装置包括:Based on the same inventive concept, the embodiment of this application provides a device for updating transaction status, please refer to Figure 6, the device includes:

获取模块601,用于响应于第三方平台发送的更新交易指令,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息;The acquiring module 601 is configured to acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet of the third-party platform in response to the update transaction instruction sent by the third-party platform;

分配模块602,用于为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;An allocation module 602, configured to allocate a transaction code for each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code;

处理模块603,用于响应于第三方平台发送的实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The processing module 603 is configured to respond to the real-time transaction processing instruction sent by the third-party platform, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction through the transaction processing method corresponding to the transaction code The real-time transaction corresponding to the instruction is processed.

可选地,获取模块601具体用于:解析所述业务数据包,通过所述待更新交易对应的数据包中一个或多个字段的数值确定交易信息。Optionally, the obtaining module 601 is specifically configured to: parse the business data packet, and determine the transaction information through the value of one or more fields in the data packet corresponding to the transaction to be updated.

可选地,处理模块603具体用于:基于预先设定的所述交易码与所述交易处理方式之间的绑定关系,查找所述交易码对应的交易处理方式。Optionally, the processing module 603 is specifically configured to: search for the transaction processing method corresponding to the transaction code based on the preset binding relationship between the transaction code and the transaction processing method.

可选地,交易码包括下列部分或全部:所述待更新交易的顺序编号、所述待更新交易的标识。Optionally, the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identifier of the transaction to be updated.

基于同一发明构思,本申请实施例提供一种更新交易状态的装置,请参照图7,该装置包括:Based on the same inventive concept, the embodiment of this application provides a device for updating transaction status, please refer to Figure 7, the device includes:

第一发送模块701,用于向服务器发送更新交易指令以及带有所述更新交易指令中待更新交易的交易信息的业务数据包,以使所述服务器为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;The first sending module 701 is configured to send an update transaction instruction and a business data packet with transaction information of the transaction to be updated in the update transaction instruction to the server, so that the server assigns a transaction code to each transaction to be updated , and determine the mapping relationship between the transaction information and the transaction code;

第二发送模块702,用于向所述服务器发送实时交易处理指令,使所述服务器基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The second sending module 702 is configured to send a real-time transaction processing instruction to the server, so that the server determines the transaction code corresponding to the real-time transaction based on the mapping relationship, and executes the transaction processing method corresponding to the transaction code. The real-time transaction corresponding to the above-mentioned real-time transaction processing instruction is processed.

基于同一发明构思,本申请实施例提供一种更新交易状态的装置,请参照图8,该装置包括:Based on the same inventive concept, the embodiment of this application provides a device for updating transaction status, please refer to Figure 8, the device includes:

获取交易信息模块801,用于响应于更新交易指令,从所述更新交易指令对应的业务数据包中获取更新交易指令中待更新交易的交易信息;The acquiring transaction information module 801 is configured to, in response to the updating transaction instruction, acquire the transaction information of the transaction to be updated in the updating transaction instruction from the service data packet corresponding to the updating transaction instruction;

分配交易码模块802,用于为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Assigning a transaction code module 802, configured to assign a transaction code for each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code;

实时交易处理模块803,用于响应于实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The real-time transaction processing module 803 is configured to respond to the real-time transaction processing instruction, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the transaction code corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code. Real-time transactions are processed.

基于同一发明构思,本申请实施例提供一种电子设备,该设备可以实现前文论述的更新交易状态的设备的功能,请参照图9,该设备包括处理器901和存储器902,Based on the same inventive concept, the embodiment of the present application provides an electronic device, which can implement the function of the device for updating the transaction status discussed above. Please refer to FIG. 9 , the device includes a processor 901 and a memory 902,

存储器902用于存储指令;The memory 902 is used to store instructions;

处理器901用于执行存储器902存储的指令,当处理器901执行存储器存储的指令时,使得所述装置执行上述任一项所述的更新交易状态的方法。The processor 901 is configured to execute the instructions stored in the memory 902, and when the processor 901 executes the instructions stored in the memory, the device is made to execute the method for updating transaction status described in any one of the above.

基于同一发明构思,本申请实施例提供一种计算机可读存储介质,计算机程序产品包括:计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如前文论述任一的更新交易状态的方法。由于上述计算机可读存储介质解决问题的原理与更新交易状态的方法相似,因此上述计算机可读存储介质的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium. The computer program product includes: computer program code, when the computer program code is run on the computer, the computer executes any one of the above-mentioned updating transaction statuses. method. Since the problem-solving principle of the above-mentioned computer-readable storage medium is similar to the method for updating the transaction state, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repetition will not be repeated.

基于同一发明构思,本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行如前文论述任一的更新交易状态的方法。由于上述计算机程序产品解决问题的原理与更新交易状态的方法相似,因此上述计算机程序产品的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present application also provides a computer program product, the computer program product includes: computer program code, when the computer program code is run on the computer, the computer executes any update transaction as discussed above state method. Since the problem-solving principle of the above-mentioned computer program product is similar to the method for updating the transaction status, the implementation of the above-mentioned computer program product can refer to the implementation of the method, and the repetition will not be repeated.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列用户操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of user-operated steps to be performed on the computer or other programmable device to produce a computer-implemented process for execution on the computer or other programmable device The instructions provide steps for implementing the functions specified in the procedure or procedures of the flowchart and/or the block or blocks of the block diagram.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (13)

1.一种更新交易状态的方法,其特征在于,应用于服务器,所述方法包括:1. A method for updating transaction status, characterized in that it is applied to a server, and the method comprises: 响应于第三方平台发送的更新交易指令,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息;In response to the update transaction instruction sent by the third-party platform, obtain the transaction information of the transaction to be updated in the update transaction instruction from the business data packet of the third-party platform; 为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Allocating a transaction code for each transaction to be updated, and determining the mapping relationship between the transaction information and the transaction code; 响应于第三方平台发送的实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。In response to the real-time transaction processing instruction sent by the third-party platform, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and perform the real-time transaction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code deal with. 2.如权利要求1所述的方法,其特征在于,所述从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息,包括:2. The method according to claim 1, characterized in that said obtaining the transaction information of the transaction to be updated in the update transaction instruction from the business data package of the third-party platform comprises: 解析所述业务数据包,通过所述待更新交易对应的数据包中一个或多个字段的数值确定交易信息。The business data packet is parsed, and the transaction information is determined through the value of one or more fields in the data packet corresponding to the transaction to be updated. 3.如权利要求1所述的方法,其特征在于,所述交易处理方式通过下述方式确定,包括:3. The method according to claim 1, wherein the transaction processing method is determined by the following methods, including: 基于预先设定的所述交易码与所述交易处理方式之间的绑定关系,查找所述交易码对应的交易处理方式。Based on the preset binding relationship between the transaction code and the transaction processing method, the transaction processing method corresponding to the transaction code is searched. 4.如权利要求1所述的方法,其特征在于,所述交易码包括下列部分或全部:所述待更新交易的顺序编号、所述待更新交易的标识。4. The method according to claim 1, wherein the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identification of the transaction to be updated. 5.一种更新交易状态的方法,其特征在于,应用于第三方平台,所述方法包括:5. A method for updating transaction status, characterized in that it is applied to a third-party platform, and the method includes: 向服务器发送更新交易指令以及带有所述更新交易指令中待更新交易的交易信息的业务数据包,以使所述服务器为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Send an update transaction instruction and a business data packet with transaction information of the transaction to be updated in the update transaction instruction to the server, so that the server assigns a transaction code for each transaction to be updated, and determines the transaction information and The mapping relationship between the transaction codes; 向所述服务器发送实时交易处理指令,使所述服务器基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。Send a real-time transaction processing instruction to the server, so that the server determines the transaction code corresponding to the real-time transaction based on the mapping relationship, and executes the real-time transaction processing instruction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code The transaction is processed. 6.根据权利要求5所述的方法,其特征在于,所述交易码包括下列部分或全部:所述待更新交易的顺序编号、所述待更新交易的标识。6. The method according to claim 5, wherein the transaction code includes part or all of the following: the sequence number of the transaction to be updated, and the identification of the transaction to be updated. 7.一种更新交易状态的方法,其特征在于,包括:7. A method for updating transaction status, comprising: 响应于更新交易指令,从所述更新交易指令对应的业务数据包中获取更新交易指令中待更新交易的交易信息;In response to the update transaction instruction, acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet corresponding to the update transaction instruction; 为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Allocating a transaction code for each transaction to be updated, and determining the mapping relationship between the transaction information and the transaction code; 响应于实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。In response to the real-time transaction processing instruction, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code. 8.一种更新交易状态的装置,其特征在于,所述装置包括:8. A device for updating transaction status, characterized in that the device comprises: 获取模块,用于响应于第三方平台发送的更新交易指令,从所述第三方平台的业务数据包中获取更新交易指令中待更新交易的交易信息;An acquisition module, configured to acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet of the third-party platform in response to the update transaction instruction sent by the third-party platform; 分配模块,用于为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;An allocation module, configured to allocate a transaction code for each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code; 处理模块,用于响应于第三方平台发送的实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。A processing module, configured to respond to the real-time transaction processing instruction sent by the third-party platform, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code The corresponding real-time transactions are processed. 9.一种更新交易状态的装置,其特征在于,所述装置包括:9. A device for updating transaction status, characterized in that the device comprises: 第一发送模块,用于向服务器发送更新交易指令以及带有所述更新交易指令中待更新交易的交易信息的业务数据包,以使所述服务器为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;The first sending module is configured to send an update transaction instruction and a service data packet with transaction information of a transaction to be updated in the update transaction instruction to the server, so that the server assigns a transaction code to each transaction to be updated, And determine the mapping relationship between the transaction information and the transaction code; 第二发送模块,用于向所述服务器发送实时交易处理指令,使所述服务器基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The second sending module is configured to send a real-time transaction processing instruction to the server, so that the server determines the transaction code corresponding to the real-time transaction based on the mapping relationship, and executes the transaction processing method corresponding to the transaction code. The real-time transaction corresponding to the real-time transaction processing instruction is processed. 10.一种更新交易状态的装置,其特征在于,所述装置包括:10. A device for updating transaction status, characterized in that the device comprises: 获取交易信息模块,用于响应于更新交易指令,从所述更新交易指令对应的业务数据包中获取更新交易指令中待更新交易的交易信息;An acquisition transaction information module, configured to acquire the transaction information of the transaction to be updated in the update transaction instruction from the service data packet corresponding to the update transaction instruction in response to the update transaction instruction; 分配交易码模块,用于为每个所述待更新交易分配交易码,并确定所述交易信息与所述交易码之间的映射关系;Assigning a transaction code module, configured to assign a transaction code for each transaction to be updated, and determine the mapping relationship between the transaction information and the transaction code; 实时交易处理模块,用于响应于实时交易处理指令,基于所述映射关系确定所述实时交易对应的交易码,并通过所述交易码对应的交易处理方式对所述实时交易处理指令对应的实时交易进行处理。The real-time transaction processing module is configured to respond to the real-time transaction processing instruction, determine the transaction code corresponding to the real-time transaction based on the mapping relationship, and process the real-time transaction code corresponding to the real-time transaction processing instruction through the transaction processing method corresponding to the transaction code. The transaction is processed. 11.一种电子设备,其特征在于,包括:11. An electronic device, characterized in that it comprises: 存储器,用于存储程序指令;memory for storing program instructions; 处理器,用于调用所述存储器中存储的程序指令,按照获得的程序指令执行权利要求1-4中任一项所述的方法包括的步骤,或执行权利要求5或6所述的方法包括的步骤,或执行权利要求7所述的方法包括的步骤。The processor is used to call the program instructions stored in the memory, and execute the steps included in the method according to any one of claims 1-4 according to the obtained program instructions, or execute the methods included in claim 5 or 6. or performing the steps included in the method of claim 7. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被计算机执行时,使所述计算机执行如权利要求1-4中任一项所述的方法,或执行权利要求5或6所述的方法包括的步骤,或执行权利要求7所述的方法包括的步骤。12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the following: The method according to any one of claims 1-4, or performing the steps included in the method described in claim 5 or 6, or performing the steps included in the method described in claim 7. 13.一种计算机程序产品,其特征在于,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行上述如权利要求1-4中任一项所述的方法,或执行权利要求5或6所述的方法包括的步骤,或执行权利要求7所述的方法包括的步骤。13. A computer program product, characterized in that the computer program product comprises: computer program code, when the computer program code is run on a computer, the computer is made to execute the above-mentioned computer program according to any one of claims 1-4. the method described in claim 5 or 6, or perform the steps included in the method of claim 7.
CN202211677053.8A 2022-12-26 2022-12-26 Method, device, equipment and medium for updating transaction state Pending CN116245639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211677053.8A CN116245639A (en) 2022-12-26 2022-12-26 Method, device, equipment and medium for updating transaction state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211677053.8A CN116245639A (en) 2022-12-26 2022-12-26 Method, device, equipment and medium for updating transaction state

Publications (1)

Publication Number Publication Date
CN116245639A true CN116245639A (en) 2023-06-09

Family

ID=86634066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211677053.8A Pending CN116245639A (en) 2022-12-26 2022-12-26 Method, device, equipment and medium for updating transaction state

Country Status (1)

Country Link
CN (1) CN116245639A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094199A1 (en) * 2005-08-30 2007-04-26 International Business Machines Corporation System and method for automatically processing dynamic business rules in a content management system
US20090077135A1 (en) * 2007-09-14 2009-03-19 Oracle International Corporation Framework for handling business transactions
US20210312549A1 (en) * 2020-04-01 2021-10-07 Top Clan LLC Systems and Methods for Universal Custom Pairs Trading
CN114218284A (en) * 2021-12-21 2022-03-22 中国建设银行股份有限公司 Configurable flow data processing method, device and equipment
CN114237697A (en) * 2021-12-23 2022-03-25 中国建设银行股份有限公司 Service management component parameter configuration device and method
CN114943536A (en) * 2022-05-26 2022-08-26 中信建投证券股份有限公司 A transaction processing method and device
CN115269261A (en) * 2022-03-18 2022-11-01 中国建设银行股份有限公司 System switching method and device, electronic equipment and computer readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094199A1 (en) * 2005-08-30 2007-04-26 International Business Machines Corporation System and method for automatically processing dynamic business rules in a content management system
US20090077135A1 (en) * 2007-09-14 2009-03-19 Oracle International Corporation Framework for handling business transactions
US20210312549A1 (en) * 2020-04-01 2021-10-07 Top Clan LLC Systems and Methods for Universal Custom Pairs Trading
CN114218284A (en) * 2021-12-21 2022-03-22 中国建设银行股份有限公司 Configurable flow data processing method, device and equipment
CN114237697A (en) * 2021-12-23 2022-03-25 中国建设银行股份有限公司 Service management component parameter configuration device and method
CN115269261A (en) * 2022-03-18 2022-11-01 中国建设银行股份有限公司 System switching method and device, electronic equipment and computer readable medium
CN114943536A (en) * 2022-05-26 2022-08-26 中信建投证券股份有限公司 A transaction processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丰朋;: "一种插件式联机交易处理框架", 电脑知识与技术, no. 21, 25 July 2017 (2017-07-25) *

Similar Documents

Publication Publication Date Title
TWI737977B (en) Block chain-based transaction processing method and device, and electronic equipment
CN111880746A (en) Method and device for writing service data into block chain system
CN105677404A (en) Zookeeper-based configuration updating method and device
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN107729176A (en) The disaster recovery method and disaster tolerance system of a kind of profile management systems
CN111343241A (en) Graph data updating method, device and system
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN115834654A (en) Data efficient transmission method based on multiple mappings
CN111176715A (en) Information calling method and server
CN107193674A (en) The processing method and processing device of online PUSH message
CN107071007A (en) A kind of method, device and client for obtaining configuration resource
CN108616361A (en) A method and device for uniquely identifying equipment
CN114661523B (en) Data backup method, device, program product, medium and electronic device
CN116245639A (en) Method, device, equipment and medium for updating transaction state
CN115426356A (en) A Distributed Timed Task Lock Update Control Execution Method and Device
WO2016091068A1 (en) Method and device for executing special instruction
US12250189B1 (en) System, method, and computer program for an exactly once messaging protocol in a publish-subscribe messaging system
CN116127148B (en) A trusted data storage method, device, storage medium and electronic equipment
CN117764728B (en) A blockchain cross-contract calling method, device, equipment and storage medium
CN115604370B (en) Message processing method, device, equipment and storage medium
CN108021597B (en) Parallel counter, server and counting method
WO2025055184A1 (en) Data processing method, system and apparatus, and medium
CN113515387B (en) Data processing method and device and electronic device
CN116304079A (en) Timing-based profile data management method, apparatus, and readable storage medium
CN107547607B (en) Cluster migration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination