Movatterモバイル変換


[0]ホーム

URL:


CN110866755A - A method, device and medium for processing bill data - Google Patents

A method, device and medium for processing bill data
Download PDF

Info

Publication number
CN110866755A
CN110866755ACN201911137287.1ACN201911137287ACN110866755ACN 110866755 ACN110866755 ACN 110866755ACN 201911137287 ACN201911137287 ACN 201911137287ACN 110866755 ACN110866755 ACN 110866755A
Authority
CN
China
Prior art keywords
bill
platform
data
ticket
contract information
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.)
Granted
Application number
CN201911137287.1A
Other languages
Chinese (zh)
Other versions
CN110866755B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201911137287.1ApriorityCriticalpatent/CN110866755B/en
Publication of CN110866755ApublicationCriticalpatent/CN110866755A/en
Application grantedgrantedCritical
Publication of CN110866755BpublicationCriticalpatent/CN110866755B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例提出了一种对票据数据的处理方法、设备及介质。其中,方法应用于第一区块链节点设备,包括:接收票据平台发送的第一交易数据,第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;根据目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对票据平台标识进行校验;若校验通过,为摘要数据添加标记,并将标记、摘要数据和目标用户标识进行打包得到第二交易数据;对第二交易数据进行上链处理。基于本申请实施例提出的对票据数据的处理方法,可以在不需要第三方参与的情况下自动执行退改签理赔,提高了理赔效率,有利于提高票据平台的公信力。

Figure 201911137287

The embodiments of the present application provide a method, device and medium for processing bill data. Wherein, the method is applied to the first blockchain node device, and includes: receiving first transaction data sent by the ticket platform, where the first transaction data includes: ticket summary data of the purchased ticket, target contract information address information, ticket platform identifier and target User ID; find the bill contract information from the blockchain according to the target contract information address information, and verify the bill platform ID according to the found bill contract information; if the verification is passed, add a mark to the summary data, and mark The digest data and the target user identifier are packaged to obtain second transaction data; the second transaction data is processed on the chain. Based on the method for processing bill data proposed in the embodiment of the present application, the claim for refund and change can be automatically performed without the participation of a third party, which improves the efficiency of claim settlement and helps to improve the credibility of the bill platform.

Figure 201911137287

Description

Translated fromChinese
一种对票据数据的处理方法、设备及介质A method, device and medium for processing bill data

技术领域technical field

本申请涉及互联网技术领域,尤其涉及一种对票据数据的处理方法、设备及介质。The present application relates to the field of Internet technologies, and in particular, to a method, device and medium for processing bill data.

背景技术Background technique

随着互联网技术的不断发展,各种互联网平台购票平台的出现为用户的生活提供了极大的便利,用户通过购票平台即可在线购买各种类型的票据,从而省去了现场购买票数的烦恼。传统的购票平台的票据退改签理赔规则分为两种规则,一种是票据平台对外公布的信息数据,数据集中存储在票据平台自己的服务器中,另一种是通过第三方购票平台公布信息数据,这部分信息数据包括第三方平台对方公布的退改签理赔规则和票据平台官方的退改签理赔规则,并且存储在第三方平台自己的服务器中,数据的集中化存储,存在数据被篡改和丢失的风险,因此,降低票据平台的票据数据被篡改和丢失的风险是当前亟需解决的问题。With the continuous development of Internet technology, the emergence of various Internet platform ticketing platforms has provided great convenience for users' lives. Users can purchase various types of tickets online through the ticketing platform, thus eliminating the need for on-site ticket purchases. troubles. There are two types of rules for bill refund, change, and claim settlement of traditional ticketing platforms. One is the information data published by the billing platform, and the data is centrally stored in the billing platform's own server, and the other is through a third-party ticketing platform. Publishing information data, this part of the information data includes the cancellation and change claims rules announced by the third-party platform and the official cancellation and amendment claims rules of the bill platform, and is stored in the third-party platform's own server. Centralized storage of data, existing data Therefore, reducing the risk of tampering and loss of the bill data of the bill platform is an urgent problem to be solved at present.

发明内容SUMMARY OF THE INVENTION

本申请实施例提出了一种对票据数据的处理方法、设备及介质,可以在不需要第三方参与的情况下自动执行退改签理赔,提高了理赔效率,有利于提高票据平台的公信力。The embodiment of the present application proposes a method, device and medium for processing bill data, which can automatically perform refund and change claims settlement without the participation of a third party, improve the claim settlement efficiency, and help improve the credibility of the bill platform.

第一方面,本申请实施例提供了一种对票据数据的处理方法,其特征在于,所述方法应用于第一区块链节点设备,所述方法包括:In a first aspect, an embodiment of the present application provides a method for processing bill data, wherein the method is applied to a first blockchain node device, and the method includes:

接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;Receive the first transaction data sent by the bill platform, the first transaction data is generated after the target user purchases the bill on the bill platform, and the first transaction data includes: bill summary data of the purchased bill, target contract information address Information, ticket platform identification and target user identification;

根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验;Search the bill contract information from the blockchain according to the target contract information address information, and verify the bill platform identifier according to the found bill contract information;

若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态;If the verification is passed, add a mark to the summary data, and package the mark, the summary data and the target user identifier to obtain second transaction data, where the mark is used to indicate that the summary data is in a valid state ;

对所述第二交易数据进行上链处理。Perform on-chain processing on the second transaction data.

第二方面,本申请实施例提供了一种区块链节点设备,该设备具有实现第一方面的对票据数据的处理方法的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括:In a second aspect, an embodiment of the present application provides a blockchain node device, the device having the function of implementing the method for processing bill data of the first aspect. The functions can be implemented by hardware, or by executing corresponding software by hardware. Hardware or software includes:

接收单元,用于接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;a receiving unit, configured to receive first transaction data sent by the bill platform, the first transaction data is generated after the target user purchases the bill on the bill platform, and the first transaction data includes: bill summary data of the purchased bill , target contract information address information, ticket platform identification and target user identification;

处理单元,用于根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验;a processing unit, configured to search the bill contract information from the blockchain according to the target contract information address information, and verify the bill platform identifier according to the found bill contract information;

处理单元,还用于若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态;The processing unit is further configured to add a mark to the summary data if the verification is passed, and package the mark, the summary data and the target user identifier to obtain second transaction data, the mark is used to indicate the The summary data is in a valid state;

处理单元,还用于对所述第二交易数据进行上链处理。The processing unit is further configured to perform on-chain processing on the second transaction data.

第三方面,本申请实施例提供了一种区块链节点设备,该设备包括存储器、处理器,存储器存储一组程序代码,处理器调用存储器中存储的程序代码,用于执行第一方面所涉及到的操作。In a third aspect, an embodiment of the present application provides a blockchain node device, the device includes a memory and a processor, the memory stores a set of program codes, and the processor calls the program codes stored in the memory for executing the first aspect. operations involved.

第四方面,本申请实施例提供了一种计算机可读存储介质,用于储存为区块链节点设备所用的计算机程序指令,其包含用于执行上述第一方面所涉及的程序。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by a blockchain node device, which includes a program for executing the above-mentioned first aspect.

采用本申请实施例,第一区块链节点设备首选接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识,然后根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验,若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态,最后对所述第二交易数据进行上链处理。基于区块链将票据平台的交易数据去中心化多节点备份数据,降低了交易数据被篡改和丢失的风险,同时将票据平台的退改签理赔规则通过智能合约的方式存储在区块链上,可以在不需要第三方参与的情况下自动执行退改签理赔,提高了理赔效率,有利于对用户权益进行有效保障,同时提高票据平台的公信力。Using the embodiment of the present application, the first blockchain node device preferably receives the first transaction data sent by the ticket platform, the first transaction data is generated after the target user purchases the ticket on the ticket platform, and the first transaction data Including: bill summary data of the purchased bill, target contract information address information, bill platform identification and target user identification, and then search for bill contract information from the blockchain according to the target contract information address information, and according to the found bill contract information The information verifies the ticket platform identification, and if the verification passes, adds a mark to the summary data, and packs the mark, the summary data and the target user identification to obtain second transaction data. The flag is used to indicate that the summary data is in a valid state, and finally the second transaction data is processed on the chain. Based on the blockchain, the transaction data of the bill platform is decentralized and backed up by multiple nodes, which reduces the risk of transaction data being tampered with and lost. At the same time, the bill platform's refund, modification, and claim settlement rules are stored on the blockchain through smart contracts. , which can automatically execute refund and change claims without the participation of a third party, which improves the efficiency of claims settlement, helps to effectively protect the rights and interests of users, and at the same time improves the credibility of the bill platform.

附图说明Description of drawings

为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.

图1是本申请实施例提供的一种区块链的结构示意图;FIG. 1 is a schematic structural diagram of a blockchain provided by an embodiment of the present application;

图2是本申请实施例提供的一种对票据数据的处理方法的交互流程示意图;2 is a schematic diagram of an interaction flow of a method for processing bill data provided by an embodiment of the present application;

图3是本申请实施例提供的一种对票据数据的处理方法的流程示意图;3 is a schematic flowchart of a method for processing bill data provided by an embodiment of the present application;

图4是本申请实施例提供的另一种对票据数据的处理方法的流程示意图;4 is a schematic flowchart of another method for processing bill data provided by an embodiment of the present application;

图5是本申请实施例提供的一种区块链节点设备的结构示意图;FIG. 5 is a schematic structural diagram of a blockchain node device provided by an embodiment of the present application;

图6是本申请实施例提供的另一种区块链节点设备的结构示意图。FIG. 6 is a schematic structural diagram of another blockchain node device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面结合本申请实施例中的附图对本申请实施例进行描述。The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.

票据平台包括各种类型的票数购买平台,可以是票据的官方购买平台,或者是第三方票据购买平台,票据包括交通票据,例如航空公司机票、火车票、汽车票、船票等,还包括餐饮票据,景点门票,商品票据等等,此处不作任何限定。传统的票据退改签规则包括票据官方平台发布的退改签规则和票据第三方平台发布的退改签规则,但是票据购买信息和退改签规则都存储在票据官方平台或者第三方平台自己的服务器中,存在数据被篡改或丢失的风险,一旦数据被篡改或者丢失,对用户权益会造成极大的影响,并且数据的不公开透明,在用户和票据平台发生纠纷时,解决纠纷时间长,难度大。本申请基于区块链技术提供一种去中心化的多节电设备本分信息数据的方法,为降低数据被篡改或丢失的风险,将票据平台的退改签理赔规则通过智能合约的方式存储在区块链上,可以在不需要第三方参与的情况下自动执行退改理赔,极大的提高了理赔效率。Ticket platforms include various types of ticket purchase platforms, which can be official ticket purchase platforms or third-party ticket purchase platforms. Tickets include transportation tickets, such as airline tickets, train tickets, bus tickets, ferry tickets, etc., as well as catering Tickets, attraction tickets, commodity tickets, etc., are not limited here. The traditional bill cancellation and modification rules include the cancellation and modification rules issued by the official bill platform and the cancellation and modification rules issued by the third-party platform for bills, but the bill purchase information and the rules for cancellation and modification are stored in the official bill platform or the third-party platform itself. In the server, there is a risk of data being tampered with or lost. Once the data is tampered with or lost, it will have a great impact on the rights and interests of users, and the data is not open and transparent. High difficulty. This application provides a method for decentralizing the information and data of multi-power-saving equipment based on blockchain technology. In order to reduce the risk of data being tampered with or lost, the bill platform's return, alteration, and claim settlement rules are stored in a smart contract. On the blockchain, refunds and changes can be automatically performed without the need for third-party participation, which greatly improves the efficiency of claims.

本申请提供一种基于区块链的对票据数据的处理方法,旨在解决传统的将票据数据存储在票据平台自己的服务器中导致的数据篡改或丢失风险,以及解决退改签理赔处理复杂,效率低以及纠纷处理困难的问题。票据平台包括票据购买官方平台和票据购买第三方平台,票据平台在接入区块链后,将票据购买信息、票据平台的退改签理赔规则以智能合约的方式部署在区块链上,用户在购买票据的时候,可以通过票据平台提供的应用、网页等服务入口来实现票据购买、改签和理赔服务,票据平台的服务器和区块链中的第一区块链节电设备建立通信连接,并将票据购买信息、购买、改签和理赔数据通过交易的方式上传的区块链中进行存储,方便后续对用户权益给予保障,并且在用户和票据平台产生纠纷时,可以从区块链中获取到有效数据作为证据。This application provides a blockchain-based processing method for bill data, which aims to solve the risk of data tampering or loss caused by traditionally storing bill data in the bill platform's own server, as well as to solve the complex processing of refund and modification claims. Inefficiency and difficulty in resolving disputes. The bill platform includes the official platform for bill purchase and the third-party platform for bill purchase. After the bill platform is connected to the blockchain, the bill purchase information and the bill platform's refund, change and claim settlement rules are deployed on the blockchain in the form of smart contracts. When purchasing bills, bill purchase, rebooking and claim settlement services can be realized through the application, web page and other service portals provided by the bill platform. The server of the bill platform establishes a communication connection with the first blockchain power-saving device in the blockchain. , and store the bill purchase information, purchase, change and claim data in the blockchain uploaded through transactions, which is convenient for subsequent protection of user rights and interests. Obtain valid data as evidence.

本申请实施例将区块链技术引入票据平台的退改签理赔的数据存储,提出一种对票据数据的处理方法,方法应用于第一区块链节点设备。该对票据数据的处理方法具体是:接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验;若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态;对所述第二交易数据进行上链处理。The embodiments of the present application introduce blockchain technology into the data storage of refund, change, and claim settlement of the bill platform, and propose a method for processing bill data, which is applied to the first blockchain node device. The method for processing bill data is specifically: receiving first transaction data sent by the bill platform, the first transaction data is generated after the target user purchases the bill on the bill platform, and the first transaction data includes: purchased The bill summary data, target contract information address information, bill platform identification and target user identification of the bill; according to the target contract information address information, the bill contract information is searched from the blockchain, and the bill contract information is searched according to the found bill contract information. The platform identification is verified; if the verification is passed, add a mark to the abstract data, and package the mark, the abstract data and the target user identification to obtain second transaction data, and the mark is used to indicate the The summary data is in a valid state; the second transaction data is processed on the chain.

区块链(Block Chain)是一种按照时间顺序将数据区块以顺序相连的方式组合成的一种链式数据结构,并以密码学方式保证数据不可篡改和不可伪造的分布式账本。多个独立的分布式节点(即第一区块链节点设备)保存相同的记录。区块链技术实现了去中心化,成为了可信的数字资产存储、转移和交易的基石。Blockchain (Block Chain) is a chain data structure that combines data blocks in a sequential manner according to time sequence, and cryptographically ensures that the data cannot be tampered with and cannot be forged as a distributed ledger. Multiple independent distributed nodes (ie, first blockchain node devices) keep the same records. Blockchain technology achieves decentralization and becomes the cornerstone of trusted digital asset storage, transfer and transaction.

以图1所示的区块链的结构示意图为例,每当有新的数据需要写入区块链,这些数据会汇总到一个区块(block)中,添加在已有区块链的末端,通过共识算法保证每个节点新添加的区块是完全相同的。每个区块内记录了平台协议数据和/或活动公告数据,同时包含了前一个区块的哈希(hash)值,所有区块就是通过这种方式保存前一个区块中的hash值,按顺序相连,组成了区块链。区块链中下一个区块的区块头中会存储前一个区块的哈希值,当前一个区块中的交易数据发生变化时,本区块的哈希值也会随之改变,因此通过上传至区块链网络中的交易数据难以被篡改,在区块链上进行客户端与票据平台的交易实现了交易过程的公开透明,提高了交易数据的可靠性。Taking the schematic diagram of the blockchain shown in Figure 1 as an example, whenever new data needs to be written into the blockchain, the data will be aggregated into a block and added at the end of the existing blockchain , through the consensus algorithm to ensure that the newly added blocks of each node are exactly the same. Each block records platform protocol data and/or activity announcement data, and also includes the hash value of the previous block. All blocks save the hash value of the previous block in this way. They are connected in sequence to form a blockchain. The hash value of the previous block will be stored in the block header of the next block in the blockchain. When the transaction data in the previous block changes, the hash value of this block will also change accordingly. The transaction data uploaded to the blockchain network is difficult to be tampered with. The transaction between the client and the bill platform on the blockchain realizes the openness and transparency of the transaction process and improves the reliability of the transaction data.

为了更好的理解本申请实施例公开的一种对票据数据的处理方法及相关设备,下面首先对本申请实施例适用的区块链系统进行描述。In order to better understand a method for processing bill data and related equipment disclosed in the embodiments of the present application, the following first describes the blockchain system applicable to the embodiments of the present application.

请参见图2,图2是本申请实施例公开的一种对票据数据的处理方法的交互流程示意图。如图2所示,S201目标用户通过客户端登录票据平台的账号后,即可在票据平台上购买票据,在购买完成后得到目标用户的购票信息,购票信息包括票据平台标识和目标用户标识。S202票据平台根据购票信息生成票据摘要数据。S203并向第一区块链节点设备发送第一交易数据,可见,第一交易数据是目标用户在票据平台购买票据后才生成的,并且第一交易数据包括目标用户所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识,票据摘要数据为票据平台对票据平台标识和目标用户标识进行哈希算法后得到的摘要哈希,目标合约信息地址信息用于指示票据平台在区块链上存储的退改期理赔规则的存储地址,票据平台标识用于指示目标用户购买票据的平台,目标用户标识用户指示目标用户的购买账号。S204第一区块链节点设备在接收到第一交易数据后,先根据目标合约信息地址信息查找区块链中存储有票据平台退改签理赔规则的票据合约信息,并校验票据平台是否可以对该票据合约信息进行更改,若是,则为票据摘要数据添加标记,并将添加标记后的票据摘要数据和目标用户标识进行打包得到第二交易数据。S205将第二交易数据存储在区块链中,S206然后向票据平台反馈用户的购买结果,此时票据摘要数据表现为有效状态,表明用户已经成功完成票据购买。Please refer to FIG. 2 , which is a schematic diagram of an interaction flow of a method for processing bill data disclosed in an embodiment of the present application. As shown in Figure 2, in S201, after the target user logs in to the account of the ticket platform through the client, he can purchase tickets on the ticket platform, and after the purchase is completed, the ticket purchase information of the target user is obtained. The ticket information includes the ticket platform identifier and the target user. logo. S202 the bill platform generates bill summary data according to the ticket purchase information. S203 and send the first transaction data to the first blockchain node device. It can be seen that the first transaction data is generated after the target user purchases the ticket on the ticket platform, and the first transaction data includes the ticket summary data of the ticket purchased by the target user. , target contract information address information, bill platform identification and target user identification, bill summary data is the abstract hash obtained by the bill platform after hashing the bill platform identification and target user identification, and the target contract information address information is used to indicate the bill platform The storage address of the refund and change period claim settlement rules stored on the blockchain, the ticket platform identifier is used to instruct the target user to purchase the ticket, and the target user identifier user indicates the purchase account of the target user. S204 After receiving the first transaction data, the first block chain node device first searches the block chain for the bill contract information that stores the bill platform's refund, change and claim settlement rules according to the target contract information address information, and verifies whether the bill platform can Modify the bill contract information, and if so, add a mark to the bill summary data, and package the marked bill summary data and the target user identifier to obtain second transaction data. S205 stores the second transaction data in the blockchain, and S206 then feeds back the user's purchase result to the ticket platform. At this time, the ticket summary data is in a valid state, indicating that the user has successfully completed the ticket purchase.

在一种实现方式中,第一区块链节点设备可以是区块链网络中的任意一个区块链节点设备,第一区块链节点设备也可以是与票据平台关联的服务器距离最近的区块链节点设备,第一区块链节点设备还可以是与票据平台关联的服务器通信质量最好的区块链节点设备,本申请在此不作限定。In an implementation manner, the first blockchain node device may be any blockchain node device in the blockchain network, and the first blockchain node device may also be the area closest to the server associated with the ticket platform. The blockchain node device, the first blockchain node device may also be the blockchain node device with the best communication quality with the server associated with the ticket platform, which is not limited in this application.

在一种实现方式中,第一区块链节点设备是区块链网络中的其他共识节点设备根据共识算法选举得到的,其中,共识算法包括但不限于工作量证明(Proof of Work,PoW)算法、权益证明(Proof of Stake,PoS)算法、授权权益证明(Delegated Proof of Stake,DPoS)算法、实用拜占庭容错(Practical Byzantine Fault Tolerance,PBFT)算法等。其中,第一区块链节点设备203还可以通过共识算法周期性选举得到,不同周期选举得到的第一区块链节点设备203可以相同,也可以不相同。In an implementation manner, the first blockchain node device is elected by other consensus node devices in the blockchain network according to a consensus algorithm, wherein the consensus algorithm includes but is not limited to Proof of Work (PoW) Algorithms, Proof of Stake (PoS) algorithms, Delegated Proof of Stake (DPoS) algorithms, Practical Byzantine Fault Tolerance (PBFT) algorithms, etc. Wherein, the first blockchain node device 203 can also be obtained by periodic election through a consensus algorithm, and the first blockchain node device 203 obtained through election in different cycles may be the same or different.

其中,本申请实施例提供的对票据数据的处理方法可以应用到以下任一场景:基于智能合约的交通票据退改签理赔,基于智能合约的餐饮票据退改签理赔,基于智能合约的商品票据退改签理赔、基于智能合约的景点门票退改签理赔等场景。The method for processing bill data provided in the embodiment of the present application can be applied to any of the following scenarios: claim settlement based on smart contract for refund and change of transportation bills, settlement for refund and change of dining bills based on smart contracts, and settlement of bills for commodities based on smart contracts Scenarios such as refund and change claims, and scenic spot ticket refund and change claims based on smart contracts.

可以理解的是,本申请实施例描述的对票据数据的处理系统是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It can be understood that the processing system for bill data described in the embodiments of the present application is for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. Personnel know that, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

基于图2的对票据数据的处理系统的架构示意图,请参见图3,图3是本申请实施例提供的一种对票据数据的处理方法的流程示意图,该方法中的票据平台可以为票据官方售卖平台和票据第三方售卖平台等,该方法包括但不限于如下步骤S301~S304:Based on the schematic diagram of the architecture of the system for processing bill data in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a method for processing bill data provided by an embodiment of the present application. The bill platform in the method may be a bill official A sales platform and a third-party ticket sales platform, etc., the method includes but is not limited to the following steps S301-S304:

S301、第一区块链节点设备接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识。S301. A first blockchain node device receives first transaction data sent by a ticket platform, where the first transaction data is generated by a target user after purchasing a ticket on the ticket platform, and the first transaction data includes: the purchased ticket The bill summary data, target contract information address information, bill platform identification and target user identification.

具体实现中,目标用户通过票据购买应用购买票据后,票据平台会根据票据购票信息生成票据摘要数据,购买信息包括票据平台标识和目标用户标识,摘要数据可以是购买信息进行哈希算法后的摘要哈希,服务平台可以通过交易的形式将摘要数据上传到区块链上,从而实现将用户的票据购买完成等相关信息上链存储,具体可以是有票据平台向第一区块链节点设备发送第一交易数据,其中,第一交易数据包括摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识。In the specific implementation, after the target user purchases the ticket through the ticket purchase application, the ticket platform will generate the ticket summary data according to the ticket purchase information. The purchase information includes the ticket platform ID and the target user ID. The summary data can be the purchase information after hash algorithm. Digest hash, the service platform can upload the digest data to the blockchain in the form of transaction, so as to realize the on-chain storage of the user's bill purchase completion and other related information, specifically, the bill platform can send the first blockchain node device Send first transaction data, wherein the first transaction data includes summary data, target contract information address information, bill platform identifier and target user identifier.

在一种实现方式中,所述方法还包括:接收所述票据平台发送的退改签理赔登记请求,所述退改签理赔登记请求包括第三交易数据,所述第三交易数据包括票据平台标识和第一退改签理赔规则;对所述第三交易数据进行校验,并在校验通过后根据所述票据平台标识确定所述票据平台的第一退改签理赔规则是否已经上传到所述区块链;若否,生成目标合约信息地址信息,并根据所述目标合约信息地址信息将票据合约信息写入到所述区块链的第一缓存,所述票据合约信息包括所述第三交易数据;将所述第三交易数据发送给区块链网络中的其他共识区块链节点设备;当所述区块链共识通过时,将所述第一缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。在用户购买票据之前,第一区块链节点设备接收票据平台发送的退改签登记请求,主要是为了将票据平台的退改签理赔规则进行上链储存。In an implementation manner, the method further includes: receiving a request for registration of claims for cancellation and amendment sent by the bill platform, where the registration request for cancellation and amendment claims includes third transaction data, and the third transaction data includes the bill platform Identification and the first refund and change claims rules; verify the third transaction data, and after the verification is passed, determine whether the first refund and change claims rules of the ticket platform have been uploaded to the ticket platform after the verification is passed. the blockchain; if not, generate target contract information address information, and write the bill contract information into the first cache of the blockchain according to the target contract information address information, and the bill contract information includes the third transaction data; send the third transaction data to other consensus blockchain node devices in the blockchain network; when the blockchain consensus is passed, write the first cache to the area In the consensus ledger of the block chain, the target contract information address information is sent to the bill platform. Before the user purchases the bill, the first blockchain node device receives the registration request for cancellation and change from the bill platform, mainly for the purpose of storing the bill platform's cancellation and change claims rules on the chain.

具体实现中,第三交易数据包括票据平台标识和第一退改签理赔规则,在第三交易数据校验通过之后,可以根据票据平台标识确定票据平台是否已经将第一退改签理赔规则上链存储,若是,则不用再上链,若否,则生成目标合约信息地址信息,并暂时将票据合约信息写入待区块链的第一缓存中,此时将第三交易数据发送给区块链中的其他共识区块链节点设备,当共识通过后,则可以直接将第一缓存,即票据合约信息写入到区块链的共识账本中,从而完成了对第一退改签理赔规则的上链存储,并且通过目标合约信息地址信息可以查找到第一退改签理赔规则。In the specific implementation, the third transaction data includes the bill platform identifier and the first refund and change claim settlement rules. After the third transaction data is verified, it can be determined whether the bill platform has set the first refund and change claim settlement rules according to the bill platform identification. Chain storage, if it is, then there is no need to go to the chain. If not, it will generate the target contract information address information, and temporarily write the bill contract information into the first cache of the blockchain, and then send the third transaction data to the district. For other consensus blockchain node devices in the blockchain, when the consensus is passed, the first cache, that is, the bill contract information, can be directly written into the consensus ledger of the blockchain, thus completing the settlement of the first refund and change The rules are stored on the chain, and the first refund and change claim settlement rules can be found through the target contract information address information.

在一种实现方式中,述方法还包括:接收所述票据平台发送的退改签理赔更新请求,所述退改签理赔更新请求第四交易数据,所述第四交易数据包括票据平台标识、第二退改签理赔规则和所述目标合约信息地址信息;对所述第四交易数据进行校验,并在校验通过后根据所述目标合约信息地址信息确定所述区块链中是否已经存储有第一退改签理赔规则;若是,根据所述票据平台标识确定是否可以对所述第一退改签理赔规则进行更新;若是,将所述第二退改签理赔规则写入到第二缓存,同时将所述第一退改签理赔规则标记为失效并添加修改记录;将所述第四交易数据发送给区块链网络中的其他共识区块链节点设备;当所述区块链共识通过时,将所述第二缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。在用户购买票据之前,第一区块链节点设备还可能会接收到票据平台发送的退改签理赔更新请求,当票据平台对已经上链的第一退改签理赔规则要进行修改时,则可以向第一区块链节点设备发送包括第四交易数据的退改签更新请求,第四交易数据包括票据平台标识、第二退改签理赔规则和所述目标合约信息地址信息。In an implementation manner, the method further includes: receiving an update request for revoking and amending a claim settlement sent by the bill platform, and the fourth transaction data of the request for updating a claim for cancelling and changing a bill, where the fourth transaction data includes the bill platform identifier, The second cancellation and change claims settlement rules and the target contract information address information; the fourth transaction data is verified, and after the verification is passed, it is determined whether the blockchain has been Stores the first cancellation and amendment claim settlement rule; if so, determine whether the first cancellation and amendment claim settlement rule can be updated according to the ticket platform identifier; if so, write the second cancellation and amendment claim settlement rule into the No. Second cache, at the same time mark the first cancellation and change claim settlement rules as invalid and add modification records; send the fourth transaction data to other consensus blockchain node devices in the blockchain network; when the block When the chain consensus is passed, the second cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform. Before the user purchases the bill, the first blockchain node device may also receive the request for renewal of the cancellation and change claims sent by the bill platform. An update request including fourth transaction data can be sent to the first blockchain node device, where the fourth transaction data includes the ticket platform identifier, the second refund and change claim settlement rules, and the target contract information address information.

具体实现中,在对第四校验数据校验通过后,根据目标合约信息地址信息确定区块链中是否已经存储有第一退改签理赔规则,如果不是则不需要做任何处理,如果是,则可以将第二退改签理赔规则写入到第二缓存,并且将第四交易数据发送给区块链中的其他共识节点设备,达成共识后即可将第二缓存写入到共识账本中,并将目标合约信息地址信息发送给票据平台,此时,区块链中票据合约信息地址存储的第二退改票理赔规则是有效的,第一退改签理赔规则是无效的,但是仍然存储在区块链中,可以查看到修改记录,从而有利于后续数据恢复时可以直接将第二退改签理赔规则更换为第一退改票理赔规则。In the specific implementation, after the verification of the fourth verification data is passed, it is determined whether the first cancellation and change claim settlement rules have been stored in the blockchain according to the target contract information address information. If not, no processing is required. , then you can write the second cancellation, change, and claim settlement rules to the second cache, and send the fourth transaction data to other consensus node devices in the blockchain. After reaching a consensus, the second cache can be written to the consensus ledger , and send the target contract information address information to the bill platform. At this time, the second refund and change claim settlement rule stored in the bill contract information address in the blockchain is valid, and the first refund and change claim settlement rule is invalid, but It is still stored in the blockchain, and the modification records can be viewed, which is beneficial to the subsequent data recovery. The second refund and change claim settlement rule can be directly replaced with the first refund and change claim settlement rule.

S302、第一区块链节点设备根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验。S302: The first blockchain node device searches for bill contract information from the blockchain according to the target contract information address information, and verifies the bill platform identifier according to the found bill contract information.

在一种实现方式中,所述根据查找到的票据合约信息对所述票据平台标识进行校验,包括:查找所述票据合约信息中是否存在所述票据平台标识;若是,确定所述票据平台对所述票据合约信息具有修改权限。第一区块链节点设备根据第一交易数据中的目标合约信息地址信息,从区块链中查找票据平台预先上链存储的票据合约信息,从而,根据票据合约信息对票据平台标识进行校验,通过校验可以确定票据平台是否有对票据合约信息的修改权限,具体可以是查找票据合约信息中是否存在票据平台标识,如果存在,则表明票据平台有权限对票据合约信息进行修改。In an implementation manner, the verifying the ticket platform identifier according to the found ticket contract information includes: finding whether the ticket platform identifier exists in the ticket contract information; if so, determining the ticket platform It has the right to modify the bill contract information. The first block chain node device searches the block chain for the bill contract information stored in advance on the bill platform according to the target contract information address information in the first transaction data, so as to verify the bill platform identifier according to the bill contract information , through verification, it can be determined whether the bill platform has the right to modify the bill contract information. Specifically, it can be checked whether there is a bill platform identifier in the bill contract information. If it exists, it means that the bill platform has the authority to modify the bill contract information.

S303、若校验通过,第一区块链节点设备为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态。S303. If the verification is passed, the first blockchain node device adds a mark to the summary data, and packages the mark, the summary data and the target user identifier to obtain second transaction data, and the mark uses to indicate that the digest data is in a valid state.

具体实现中,在校验通过后,第一区块链节点设备为摘要数添加标记,添加标记后的摘要数据为有效状态,可以表明目标用户已经购票成功,且目标用户所购买的票据是有效的,将摘要数据和目标用户标识进行打包得到第二交易数据。In the specific implementation, after the verification is passed, the first blockchain node device adds a mark to the summary number, and the marked summary data is in a valid state, which can indicate that the target user has successfully purchased the ticket, and the ticket purchased by the target user is Effectively, the summary data and the target user identifier are packaged to obtain the second transaction data.

S304、第一区块链节点设备对所述第二交易数据进行上链处理。S304. The first blockchain node device performs on-chain processing on the second transaction data.

在一种实现方式中,所述方法还包括:接收所述票据平台发送的票据变更请求,所述票据变更请求包括第五交易数据,所述第五交易数据包括目标用户向所述票据平台提交的票据购买时的第一票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;若校验通过根据所述目标用户标识查找所述票据摘要数据;在检测到所述第一票据摘要数据和所述票据摘要数据匹配时,确定所述票据变更请求是否符合所述第二退改签理赔规则;若是,将所述票据摘要数据标记为变更状态,并对所述第五交易数据进行上链处理。用户在购票成功后,可能会存在想退票或者改签的情况,此时用户可以通过客户端向票据平台发送票据变更请求,票据平台将票据变更请求发送给第一区块链节点设备,同时票据变更请求中携带有第五交易数据,第一区块链节点设备根据第五交易数据可对有目标用户发起的票据变更请求进行处理,并告知用户处理结果。In an implementation manner, the method further includes: receiving a ticket change request sent by the ticket platform, where the ticket change request includes fifth transaction data, and the fifth transaction data includes the submission of the target user to the ticket platform The first bill summary data, the target contract information address information, the bill platform identification, and the target user identification when the bill is purchased; the bill contract information is searched according to the target contract information address information, and according to the The ticket contract information verifies the ticket platform identifier; if the verification passes, the ticket abstract data is searched according to the target user identifier; when it is detected that the first ticket abstract data and the ticket abstract data match, determine Whether the bill change request complies with the second refund and change claim settlement rule; if so, mark the bill summary data as a changed state, and perform upload processing on the fifth transaction data. After successful ticket purchase, the user may want to refund or change the ticket. At this time, the user can send a ticket change request to the ticket platform through the client, and the ticket platform sends the ticket change request to the first blockchain node device, and at the same time The ticket change request carries fifth transaction data, and the first blockchain node device can process the ticket change request initiated by the target user according to the fifth transaction data, and inform the user of the processing result.

具体实现中,第五交易数据包括目标用户向票据平台提交的票据购买时的第一票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识,根据目标合约信息地址信息可以在区块链共识账本中查找到票据合约信息,在进步根据票据平台标识确定票据平台是否有对票据合约信息的修改权限,若果有,则根据目标用户标识从票据合约信息中查找到票据摘要数据,这时候只需要验证用户提交的第一票据摘要数据是否和区块链中存储的票据摘要数据匹配,如果匹配,表明目标用户提交的第一票据摘要数据是准确的,目标用户没有私自进行修改,从而只需要进一步验证票据变更请求是否符合票据合约信息中的第二退改签理赔规则,如果符合则将摘要数据标记为变更状态,并将第五交易数据存储到区块链中。In a specific implementation, the fifth transaction data includes the first bill summary data submitted by the target user to the bill platform when purchasing the bill, the address information of the target contract information, the bill platform identification, and the target user identification. According to the target contract information The address information can be found in the blockchain consensus ledger to find the bill contract information. In the process of progress, it is determined whether the bill platform has the right to modify the bill contract information according to the bill platform ID. If so, it is searched from the bill contract information according to the target user ID. To the bill summary data, it is only necessary to verify whether the first bill summary data submitted by the user matches the bill summary data stored in the blockchain. If it matches, it indicates that the first bill summary data submitted by the target user is accurate and the target user There is no private modification, so it is only necessary to further verify whether the bill change request complies with the second cancellation and change claim settlement rules in the bill contract information. If so, the summary data will be marked as the change state, and the fifth transaction data will be stored in the blockchain. middle.

具体实现中,所述方法还包括:接收所述票据平台发送的第二票据摘要数据,所述第二票据摘要数据为所述票据平台根据所述票据平台标识和所述目标用户标识生成的摘要数据;确定所述第二票据摘要数据和所述第一票据摘要数据是否匹配。票据平台在接收到用户提交的包括第五交易数据的票据变更请求时,会对第五交易数据中的第一票据摘要进行验证,票据平台根据预设的哈希算法,对票据平台标识和目标用户标记进行哈希计算后得到第二票据摘要数据,此时,票据平台将第二票据摘要数据发送给第一区块链节点设备,第一区块链节点设备检测目标用户提交的第一票据摘要数据和目标用户提交的第二票据摘要数据是否匹配,如果匹配,则校验通过,可以认为永不提交的第一票据摘要数据是有效的。In a specific implementation, the method further includes: receiving second bill summary data sent by the bill platform, where the second bill summary data is a summary generated by the bill platform according to the bill platform identifier and the target user identifier data; determining whether the second bill digest data and the first bill digest data match. When receiving the ticket change request including the fifth transaction data submitted by the user, the ticket platform will verify the first ticket digest in the fifth transaction data, and the ticket platform will identify and target the ticket platform according to the preset hash algorithm. After the user mark performs hash calculation, the second bill summary data is obtained. At this time, the bill platform sends the second bill summary data to the first blockchain node device, and the first blockchain node device detects the first bill submitted by the target user. Whether the summary data matches the second bill summary data submitted by the target user, if they match, the verification is passed, and it can be considered that the first bill summary data that will never be submitted is valid.

在一种实现方式中,所述方法还包括:接收所述票据平台发送的票据理赔请求,所述理赔请求包括第六交易数据,所述第六交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;若校验通过根据所述目标用户标识查找所述票据摘要数据;在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据理赔请求是否符合所述第二退改签理赔规则;若是,将所述票据摘要数据标记为理赔状态,对所述第六交易数据进行上链处理。当目标用户向票据平台发起理赔请求时,票据平台向第一区块链节点设备发送用户提交的理赔请求,理赔请求包括第六交易数据,从而第一区块链节点设备可以根据第六交易数据处理目标用户发起的理赔请求。In an implementation manner, the method further includes: receiving a bill claim settlement request sent by the bill platform, where the claim settlement request includes sixth transaction data, and the sixth transaction data includes the data submitted by the target user to the bill platform. The second bill summary data, the target contract information address information, the bill platform identification, and the target user identification when bills are purchased; the bill contract information is searched according to the target contract information address information, and according to the bill The contract information verifies the ticket platform identifier; if the verification is successful, the ticket abstract data is searched according to the target user identifier; when it is detected that the second ticket abstract data matches the ticket abstract data, it is determined that the Whether the bill claim settlement request complies with the second refund and change claim settlement rule; if so, mark the bill summary data as a claim settlement state, and perform upload processing on the sixth transaction data. When the target user initiates a claim settlement request to the bill platform, the bill platform sends the claim settlement request submitted by the user to the first blockchain node device, and the claim settlement request includes the sixth transaction data, so that the first blockchain node device can according to the sixth transaction data Handle claims requests initiated by target users.

具体实现中,第六交易数据包括目标用户向票据平台提交的票据购买时的第二票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识,第一区块链节点设备根据目标合约地址信息从区块链中查找票据合约信息,并根据票据平台标识确定票据平台是否有对票据合约信息的修改权限,如果有,则根据目标用户标识从票据合约信息中查找票据摘要数据,从而,将用户提交的第二票据摘要数据和预先上链存储的票据摘要数据进行匹配,在匹配成功后验证票据理赔请求是否符合第二退改签理赔规则,如果符合,则将第六交易数据存储到区块链,并将票据摘要数据标记为理赔状态。In the specific implementation, the sixth transaction data includes the second bill summary data, the target contract information address information, the bill platform identification and the target user identification submitted by the target user to the bill platform when the bill is purchased, and the first blockchain node device according to the target contract The address information searches the bill contract information from the blockchain, and determines whether the bill platform has the right to modify the bill contract information according to the bill platform ID, and if so, searches the bill summary data from the bill contract information according to the target user ID. Match the second bill summary data submitted by the user with the bill summary data stored on the chain in advance. After the matching is successful, verify whether the bill claim request conforms to the second refund and change claim settlement rules. If so, store the sixth transaction data in the blockchain and mark bill summary data as claim status.

在一种实现方式中,所述方法还包括:接收所述票据平台发送的第七交易数据,所述第七交易数据包括目标用户向所述票据平台提交的票据购买时的第一票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识和财务理赔数据;根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;若校验通过根据所述目标用户标识查找所述票据摘要数据;在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据摘要数据是否被标记为理赔状态;若是,将所述票据摘要数据标记为理赔完成状态,对所述第七交易数据进行上链处理。在理赔完成后,第一区块链节点设备会接收到票据平台发送的第七交易数据,并根据第七交易数据对目标用户进行理赔。In an implementation manner, the method further includes: receiving seventh transaction data sent by the bill platform, where the seventh transaction data includes first bill summary data submitted by the target user to the bill platform when purchasing the bill , the address information of the target contract information, the ticket platform identifier, the target user identifier and the financial claims data; look up the ticket contract information according to the address information of the target contract information, and analyze the ticket contract information according to the ticket contract information. The ticket platform identifier is verified; if the verification is passed, the ticket abstract data is searched according to the target user identifier; when it is detected that the second ticket abstract data and the ticket abstract data match, determine whether the ticket abstract data is is marked as a claim settlement state; if so, the bill summary data is marked as a claim settlement completed state, and the seventh transaction data is processed on the chain. After the claim settlement is completed, the first blockchain node device will receive the seventh transaction data sent by the bill platform, and make claims for the target user according to the seventh transaction data.

具体实现中,第七交易数据包括目标用户向票据平台提交的票据购买时的第二票据摘要数据、目标合约信息地址信息、票据平台标识、目标用户标识和财务理赔数据,第一区块链节点设备首先根据目标合约信息地址信息查找到票据合约信息,然后根据票据平台标识确定票据平台是否可以对票据合约信息进行修改,如果可以,根据目标用户标识查找到票据摘要数据,在检测到目标用户提交的第二票据摘要数据和票据摘要数据匹配时,确定票据摘要数据是否已经被标记为理赔状态,如果是,则将摘要数据标记为理赔完成状态,从而将第七交易数据存储到区块链中。In the specific implementation, the seventh transaction data includes the second bill summary data, target contract information address information, bill platform identification, target user identification and financial claims data submitted by the target user to the bill platform when the bill is purchased, and the first blockchain node The device first finds the bill contract information according to the address information of the target contract information, and then determines whether the bill platform can modify the bill contract information according to the bill platform ID. If so, it finds the bill summary data according to the target user ID. When the second bill summary data matches the bill summary data, determine whether the bill summary data has been marked as a claim settlement state, and if so, mark the summary data as a claim settlement completed state, thereby storing the seventh transaction data in the blockchain .

本申请实施例提出了一种对票据数据的处理方法,该方法应用于第一区块链节点设备,第一区块链节点设备首选接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识,然后根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验,若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态,最后对所述第二交易数据进行上链处理。基于区块链将票据平台的交易数据去中心化多节点备份数据,降低了交易数据被篡改和丢失的风险,同时将票据平台的退改签理赔规则通过智能合约的方式存储在区块链上,可以在不需要第三方参与的情况下自动执行退改签理赔,提高了理赔效率,有利于对用户权益进行有效保障,同时提高票据平台的公信力。An embodiment of the present application proposes a method for processing bill data. The method is applied to a first blockchain node device. The first blockchain node device preferably receives the first transaction data sent by the bill platform. The first transaction The data is generated after the target user purchases the bill on the bill platform, and the first transaction data includes: bill summary data of the purchased bill, target contract information address information, bill platform identification and target user identification, and then according to the target The contract information address information searches the bill contract information from the blockchain, and verifies the bill platform identifier according to the found bill contract information. , the digest data and the target user identifier are packaged to obtain second transaction data, the mark is used to indicate that the digest data is in a valid state, and finally the second transaction data is processed on the chain. Based on the blockchain, the transaction data of the bill platform is decentralized and backed up by multiple nodes, which reduces the risk of transaction data being tampered with and lost. At the same time, the bill platform's refund, modification, and claim settlement rules are stored on the blockchain through smart contracts. , which can automatically execute refund and change claims without the participation of a third party, which improves the efficiency of claims settlement, helps to effectively protect the rights and interests of users, and at the same time improves the credibility of the bill platform.

请参见图4,图4是本申请实施例提供的另一种对票据数据的处理方法的流程示意图。该方法应用于第一区块链节点设备,该方法包括但不限于如下步骤S401~S405:Please refer to FIG. 4 , which is a schematic flowchart of another method for processing bill data provided by an embodiment of the present application. The method is applied to the first blockchain node device, and the method includes but is not limited to the following steps S401 to S405:

S401、第一区块链节点设备接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识。S401. A first blockchain node device receives first transaction data sent by a ticket platform, where the first transaction data is generated by a target user after purchasing a ticket on the ticket platform, and the first transaction data includes: the purchased ticket The bill summary data, target contract information address information, bill platform identification and target user identification.

S402、第一区块链节点设备根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验。S402: The first blockchain node device searches for bill contract information from the blockchain according to the target contract information address information, and verifies the bill platform identifier according to the found bill contract information.

S403、第一区块链节点设备若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态。S403. If the verification is passed, the first blockchain node device adds a mark to the summary data, and packs the mark, the summary data and the target user identifier to obtain second transaction data, and the mark uses to indicate that the digest data is in a valid state.

S404、第一区块链节点设备将所述第二交易数据发送给区块链网络中的其他共识区块链节点设备,以使所述其他共识区块链节点设备对所述第二交易数据进行区块链共识。S404. The first blockchain node device sends the second transaction data to other consensus blockchain node devices in the blockchain network, so that the other consensus blockchain node devices can understand the second transaction data Conduct blockchain consensus.

本申请实施例中的步骤S401~S404具体可参见上述实施例中步骤S301~S304的执行过程,本发明实施例不再赘述。For details of steps S401 to S404 in this embodiment of the present application, reference may be made to the execution process of steps S301 to S304 in the foregoing embodiment, which is not repeated in this embodiment of the present invention.

S405、当所述区块链共识通过时,第一区块链节点设备将所述第二交易数据存到所述区块链的共识账本中。S405. When the blockchain consensus is passed, the first blockchain node device stores the second transaction data in the consensus ledger of the blockchain.

具体实现中,第一区块链节点设备将第二交易数据发送给区块链网络的其他共识区块链节点设备,在其他区块链节点设备对第二交易数据达成共识后,第一区块链节点设备再将第二交易数据上传到区块链的共识账本中,同时,向票据平台反馈通知消息,通知消息主要用于告知目标用户以成功购买票据,用户的票据购买是有效的。In the specific implementation, the first blockchain node device sends the second transaction data to other consensus blockchain node devices in the blockchain network. After other blockchain node devices reach a consensus on the second transaction data, the first block The block chain node device uploads the second transaction data to the consensus ledger of the block chain, and at the same time, feeds back a notification message to the ticket platform. The notification message is mainly used to inform the target user to successfully purchase the ticket, and the user's ticket purchase is valid.

在一种实施方式中,第一区块链节点设备在接收到第一交易数据后,还会对第一交易数据进行校验,具体包括:检测所述票据平台标识所指示的票据平台是否存在;若是,检测所述目标用户标识所指示的用户账号是否存在,且所述用户账号的交易信用分值是否大于预设阈值;若是,则通过校验。在票据平台真实存在,且目标用户的用户账号真实存在,且目标用户交易信用分值高的情况下,认为第一交易数据是有效的,如果目标用户为票据平台的黑名单用户,或者低信用用户,则可以认为第一交易数据是无效的。其中,第一区块链节点设备可以是票据平台的某个服务器或者某个服务器集群,并且接入了区块链。In one embodiment, after receiving the first transaction data, the first blockchain node device will also verify the first transaction data, which specifically includes: detecting whether the ticket platform indicated by the ticket platform identifier exists ; if so, detect whether the user account indicated by the target user identifier exists, and whether the transaction credit score of the user account is greater than the preset threshold; if so, pass the verification. In the case that the bill platform really exists, the user account of the target user actually exists, and the target user's transaction credit score is high, the first transaction data is considered to be valid. If the target user is a blacklisted user of the bill platform, or has low credit user, the first transaction data may be considered invalid. The first blockchain node device may be a certain server or a certain server cluster of the ticket platform, and is connected to the blockchain.

本申请实施例提出了一种对票据数据的处理方法,该方法应用于第一区块链节点设备,第一区块链节点设备首选接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识,然后根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验,若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态,最后对所述第二交易数据进行上链处理。基于区块链将票据平台的交易数据去中心化多节点备份数据,降低了交易数据被篡改和丢失的风险,同时将票据平台的退改签理赔规则通过智能合约的方式存储在区块链上,可以在不需要第三方参与的情况下自动执行退改签理赔,提高了理赔效率,有利于对用户权益进行有效保障,同时提高票据平台的公信力。An embodiment of the present application proposes a method for processing bill data. The method is applied to a first blockchain node device. The first blockchain node device preferably receives the first transaction data sent by the bill platform. The first transaction The data is generated after the target user purchases the bill on the bill platform, and the first transaction data includes: bill summary data of the purchased bill, target contract information address information, bill platform identification and target user identification, and then according to the target The contract information address information searches the bill contract information from the blockchain, and verifies the bill platform identifier according to the found bill contract information. , the digest data and the target user identifier are packaged to obtain second transaction data, the mark is used to indicate that the digest data is in a valid state, and finally the second transaction data is processed on the chain. Based on the blockchain, the transaction data of the bill platform is decentralized and backed up by multiple nodes, which reduces the risk of transaction data being tampered with and lost. At the same time, the bill platform's refund, modification, and claim settlement rules are stored on the blockchain through smart contracts. , which can automatically execute refund and change claims without the participation of a third party, which improves the efficiency of claims settlement, helps to effectively protect the rights and interests of users, and at the same time improves the credibility of the bill platform.

为了更清楚的理解本发明实施例提供的一种对票据数据的处理方法,对应用在航班退改签理赔场景下的对票据数据的处理方法进行详细描述。该对票据数据的处理方法可以包括:航空公司将退改签理赔规则上链存证流程、航空公司对已上链的退改签理赔规则修改流程、机票购买上链流程、机票退票上链流程、机票改签上链流程和机票理赔流程。For a clearer understanding of the method for processing bill data provided by the embodiment of the present invention, the method for processing bill data applied in the scenario of flight cancellation, change and claim settlement is described in detail. The method for processing the bill data may include: the airline's process of uploading the refund and change claim settlement rules on the chain, the airline's modification process of the online refund and change claim settlement rules, the air ticket purchase process, and the air ticket refund process. , the air ticket rebooking process and the air ticket claim settlement process.

航空公司将退改签理赔规则上链存证流程如下:The airline will upload the refund and change claim rules on the chain and the deposit process is as follows:

航空公司需要将航班退改签理赔规则以智能合约形式通过交易方式部署到区块链上,内容包括:航空公司标识、该航空公司定制的航班退改签理赔规则、区块链收到上述交易后,验证交易的合法性,校验通过后在执行过程中,通过交易内的航空公司标识检查是否部署过航班退改签理赔合约,如果有,返回执行失败结果;如果没有,为合约生成地址信息以及将航班退改签理赔合约写入区块链缓存,并在区块链网络中的其他区块链节电设备达成共识后,将写入区块链缓存的合约写入账本并返回合约部署结果,如果成功,结果将包含合约地址信息。Airlines need to deploy flight refund and change claims rules to the blockchain in the form of smart contracts through transactions, including the airline logo, the airline's customized flight refund and change claims rules, and the blockchain receives the above transactions. Then, verify the legitimacy of the transaction. After the verification is passed, during the execution process, check through the airline logo in the transaction to see whether the flight refund and change claim settlement contract has been deployed. If so, return the execution failure result; if not, generate an address for the contract. information and write the flight cancellation, rebooking and claim settlement contract into the blockchain cache, and after other blockchain power-saving devices in the blockchain network reach a consensus, write the contract written into the blockchain cache into the ledger and return the contract The deployment result, if successful, the result will contain the contract address information.

航空公司对已上链的退改签理赔规则修改流程如下:The airline's revision process for the cancellation and change claims rules that have been posted on the chain is as follows:

航空公司将新的航班退改签理赔规则以智能合约形式通过交易方式部署到区块链上,内容包括航空公司标识,新的航班退改签理赔规则,老版本合约地址信息,区块链收到交易后,验证交易的合法性,校验通过后调用虚拟机执行交易,在执行过程中,通过上述老版本地址信息查询是否有航班合约部署,如果没有,返回失败结果;检查交易内航空公司标识是否有权限修改老版本航班合约,如果没有,返回失败结果;校验通过后,则将新的航班合约写入区块链缓存,同时将老版本航班合约标记为失效,并记录修改操作,将上述执行结果进行区块链共识,达成共识后,将上述缓存结果写入账本,将最终结果返回给航空公司。The airline will deploy the new flight refund and change claims rules to the blockchain in the form of smart contracts through transactions, including the airline logo, the new flight refund and change claims rules, the old version of the contract address information, and blockchain receipts. After the transaction arrives, verify the legitimacy of the transaction, and call the virtual machine to execute the transaction after the verification is passed. During the execution process, check whether there is a flight contract deployment through the above address information of the old version. If not, return a failure result; check the airlines in the transaction Identifies whether there is permission to modify the old version of the flight contract. If not, it will return a failure result; after the verification is passed, the new flight contract will be written into the blockchain cache, and the old version of the flight contract will be marked as invalid, and the modification operation will be recorded. The above execution results are subject to blockchain consensus. After reaching a consensus, the above cached results are written into the ledger, and the final results are returned to the airline.

机票购买上链流程如下:The process of buying and uploading air tickets is as follows:

用户购买机票后,购买机票信息将会上链,用户通过APP入口购买机票成功后,服务平台会生成含有航空公司和用户数字签名的机票信息,服务平台将会将机票信息数据摘要数据通过交易形式发送到区块链上,交易内容主要包括机票摘要数据,上述部署的航班合约地址信息,航空公司标识,用户标识等,区块链收到交易数据后,校验交易合法性,即同时校验航空公司和用户的数字签名,校验通过后调用虚拟机执行购票交易,在执行过程中,通过交易内航班合约地址信息查找合约,如果没有找到,返回执行失败结果;如果找到,接着判断航空公司标识是否有权限修改该合约,如果没有,返回执行失败结果;若校验都通过,标记上述机票摘要数据为有效状态,同时基于用户标识为关键字,机票摘要数据以及状态为值,写入合约内,将上述结果进行区块链共识,达成共识后将结果写入账本,将最终结果返回给用户和航空公司,后续用户可以通过摘要数据在区块链上查询机票状态。After the user purchases the ticket, the ticket purchase information will be uploaded to the chain. After the user purchases the ticket through the APP portal successfully, the service platform will generate the ticket information containing the digital signature of the airline and the user, and the service platform will transfer the summary data of the ticket information through the transaction form. Sent to the blockchain, the transaction content mainly includes air ticket summary data, the above deployed flight contract address information, airline identification, user identification, etc. After the blockchain receives the transaction data, it verifies the legality of the transaction, that is, at the same time. The digital signature of the airline and the user, after the verification is passed, the virtual machine is called to execute the ticket purchase transaction. During the execution process, the contract is searched through the flight contract address information in the transaction. If not found, the execution failure result is returned; if found, then the airline is judged Whether the company ID has permission to modify the contract, if not, return the execution failure result; if the verification is passed, mark the above air ticket summary data as valid, and write the user ID as the keyword, the air ticket summary data and the state as the value. In the contract, the above results are subject to blockchain consensus. After reaching a consensus, the results are written into the ledger, and the final results are returned to the user and the airline. Subsequent users can query the ticket status on the blockchain through the summary data.

机票退票上链流程如下:The process of ticket refund on-chain is as follows:

用户购买机票后,可以通过上述APP入口进行退改签理赔,以退票为例,用户在进行退票申请时,提供上述机票摘要数据、机票信息,用户标识,航空公司服务器受到退票申请后,对机票信息提取摘要数据,然后通过交易方式发送到区块链上,交易内容包括用户提供的摘要数据,航空公司对机票信息提取的摘要数据,用户标识,航空公司标识,上述部署的航班合约地址信息等,区块链收到交易后,校验交易的合法性,校验通过后调用虚拟机执行退票交易,执行过程中,首先比较用户输入的机票摘要数据是否和航空公司生成的机票摘要数据一样,如果不一样,返回执行失败结果;通过交易内航班合约地址信息查找合约,如果没有找到,返回执行失败结果;如果找到,接着判断航空公司标识是否有权限修改该合约,如果没有,返回执行失败结果;然后通过用户标识查询该用户机票信息,如果没有找到,返回执行失败;然后查找是否匹配用户输入的摘要数据的,如果没有,返回执行失败;最后检查退票行为是否符合航班合约规则,如果不符合,返回执行失败。上述校验都通过后,将机票摘要状态标记为已退票,同时记录退票操作,将上述结果进行区块链共识,达成共识后,将结果写入账本,将结果返回给用户和航空公司。After the user purchases the ticket, he or she can make a refund or change claim through the above-mentioned APP portal. Taking refund as an example, the user provides the above-mentioned ticket summary data, ticket information, and user ID when applying for a refund. The summary data is extracted from the information, and then sent to the blockchain through transaction. The transaction content includes the summary data provided by the user, the summary data extracted from the airline ticket information, the user ID, the airline ID, and the above-mentioned deployed flight contract address information, etc. , After the blockchain receives the transaction, it verifies the legitimacy of the transaction. After the verification is passed, the virtual machine is called to execute the refund transaction. During the execution process, it first compares whether the air ticket summary data input by the user is the same as the air ticket summary data generated by the airline. If it is different, return the execution failure result; search the contract through the flight contract address information in the transaction, if not found, return the execution failure result; if found, then judge whether the airline ID has permission to modify the contract, if not, return the execution failure result ; Then query the user's ticket information through the user ID, if not found, return execution failure; then check whether it matches the summary data entered by the user, if not, return execution failure; finally check whether the refund behavior complies with the flight contract rules, if not. , returns execution failure. After the above verifications are passed, the summary status of the ticket is marked as refunded, and the refund operation is recorded at the same time, and the above results are subject to blockchain consensus. After reaching a consensus, the results are written into the ledger and returned to the user and the airline.

机票改签上链流程如下:The procedure for changing the ticket on the chain is as follows:

用户需要改签机票的情况下,用户在进行改签申请时,提供购买的机票摘要数据,用户标识以及新的机票信息,航空公司服务器受到改签申请后,通过交易方式发送到区块链上,交易内容包括用户提供的摘要数据,航空公司对新机票信息提取的摘要数据,用户标识,航空公司标识,上述部署的航班合约地址信息等,区块链收到交易后,校验交易的合法性,校验通过后调用虚拟机执行改签交易,执行过程中,首先比较用户输入的机票摘要数据是否和航空公司生成的机票摘要数据一样,如果一样,返回执行失败结果;通过交易内航班合约地址信息查找合约,如果没有找到,返回执行失败结果;如果找到,接着判断航空公司标识是否有权限修改该合约,如果没有,返回执行失败结果;然后通过用户标识查询该用户机票信息,如果没有找到,返回执行失败;然后查找是否匹配用户输入的摘要数据的,如果没有,返回执行失败;最后检查改票行为是否符合航班合约规则,如果不符合,返回执行失败。上述校验都通过后,将原机票摘要数据标记为已改签状态,写入新的机票摘要数据,同时记录改签操作,将上述结果进行区块链共识,达成共识后,将结果写入账本,将结果返回给用户和航空公司,用户可以通过新的机票摘要数据在区块链上验证机票。When the user needs to change the ticket, the user provides the purchased ticket summary data, the user ID and the new ticket information when the user applies for the change. After the airline server receives the change application, it is sent to the blockchain by transaction. , the transaction content includes the summary data provided by the user, the summary data extracted by the airline for the new ticket information, the user ID, the airline ID, the flight contract address information deployed above, etc. After the blockchain receives the transaction, it verifies the legality of the transaction. After the verification is passed, the virtual machine is called to execute the rebooking transaction. During the execution process, it is first to compare whether the air ticket summary data input by the user is the same as the air ticket summary data generated by the airline. If they are the same, the execution failure result is returned; through the flight contract in the transaction Address information to find the contract, if not found, return the execution failure result; if found, then judge whether the airline ID has permission to modify the contract, if not, return the execution failure result; then query the user's ticket information through the user ID, if not found , return execution failure; then check whether it matches the summary data entered by the user, if not, return execution failure; finally check whether the ticket change behavior conforms to the flight contract rules, if not, return execution failure. After the above verifications are passed, mark the original air ticket summary data as changed, write the new air ticket summary data, record the change operation at the same time, carry out the blockchain consensus on the above results, and write the results after reaching a consensus. The ledger, which returns the results to the user and the airline, and the user can verify the ticket on the blockchain with the new ticket summary data.

机票理赔流程如下:The air ticket claim process is as follows:

因某些原因,用户可以基于航班规则进行理赔发热情况下,用户进行理赔时,提供机票摘要数据,用户标识,航空公司服务器收到理赔申请后,通过交易方式发送到区块链上,交易内容包括用户提供的摘要数据,用户标识,航空公司标识,上述部署的航班合约地址信息等,区块链收到交易后,校验交易的合法性,校验通过后调用虚拟机执行理赔交易,执行过程中,通过交易内航班合约地址信息查找合约,如果没有找到,返回执行失败结果;如果找到,接着判断航空公司标识是否有权限修改该合约,如果没有,返回执行失败结果;然后通过用户标识查询该用户机票信息,如果没有找到,返回执行失败;然后查找是否匹配用户输入的摘要数据的,如果没有,返回执行失败;最后检查理赔行为是否符合航班合约规则,如果不符合,返回执行失败。上述校验都通过后,按照理赔规则生成理赔结果,同时将机票摘要数据标记为理赔过程中状态,记录理赔操作,将上述结果进行区块链共识,达成共识后,将结果写入账本,航空服务器收到理赔结果后,通知航空公司财务系统进行理赔行为,待财务系统完成理赔后,通过交易修改区块链上机票摘要数据的状态,交易内容包括用户提供的摘要数据,财务理赔数据,用户标识,航空公司标识,上述部署的航班合约地址信息等,区块链收到交易后,校验交易的合法性,校验通过后调用虚拟机执行交易,执行过程中,通过交易内航班合约地址信息查找合约,如果没有找到,返回执行失败结果;如果找到,接着判断航空公司标识是否有权限修改该合约,如果没有,返回执行失败结果;然后通过用户标识查询该用户机票信息,如果没有找到,返回执行失败;然后查找是否匹配用户输入的摘要数据的,如果没有,返回执行失败;检查机票摘要数据状态是否为理赔过程中,如果不是,返回执行失败结果;上述校验都通过后,将机票摘要数据标记为理赔完成状态,记录财务理赔数据操作,将上述结果进行区块链共识,达成共识后,将结果写入账本,将理赔结果返回给用户和航空公司。For some reasons, users can make claims based on flight rules. In the case of fever, when users make claims, they provide air ticket summary data and user ID. After the airline server receives the claim application, it will be sent to the blockchain by transaction. The transaction content Including the summary data provided by the user, the user ID, the airline ID, the above-mentioned deployed flight contract address information, etc. After the blockchain receives the transaction, it verifies the legality of the transaction. After the verification is passed, the virtual machine is called to execute the claim settlement transaction. During the process, the contract is searched through the flight contract address information in the transaction. If it is not found, the execution failure result is returned; if it is found, it is judged whether the airline ID has permission to modify the contract. If not, the execution failure result is returned; then the user ID is used to query If the user's ticket information is not found, return execution failure; then check whether it matches the summary data entered by the user, if not, return execution failure; finally check whether the claim settlement behavior complies with the flight contract rules, if not, return execution failure. After all the above verifications are passed, the claim settlement result will be generated according to the claim settlement rules. At the same time, the air ticket summary data will be marked as the status of the claim settlement process, the claim settlement operation will be recorded, and the above results will be subject to blockchain consensus. After receiving the claim result, the server notifies the airline's financial system to settle the claim. After the financial system completes the claim, it modifies the status of the air ticket summary data on the blockchain through the transaction. The transaction content includes the summary data provided by the user, the financial claim data, the user Identification, airline identification, the above-mentioned deployed flight contract address information, etc. After the blockchain receives the transaction, it verifies the legality of the transaction, and after the verification is passed, the virtual machine is called to execute the transaction. During the execution process, the flight contract address in the transaction is passed. Information search contract, if not found, return the execution failure result; if found, then judge whether the airline ID has permission to modify the contract, if not, return the execution failure result; then query the user's ticket information through the user ID, if not found, Return execution failure; then check whether it matches the summary data entered by the user, if not, return execution failure; check whether the status of the air ticket summary data is in the process of claim settlement, if not, return execution failure result; The summary data is marked as the claim completion status, the financial claims data operations are recorded, and the above results are consensus on the blockchain. After reaching a consensus, the results are written into the ledger, and the claims results are returned to the user and the airline.

请参见图5,图5是本申请实施例提供的一种区块链节点设备的结构示意图,该区块链节点设备用于执行图2~图4对应的方法实施例中第一区块链节点设备所执行的步骤,该区块链节点设备包括:一个或多个处理器501;一个或多个输入设备502,一个或多个输出设备503和存储器504。上述处理器501、输入设备502、输出设备503和存储器504通过总线505连接。存储器502用于存储计算机程序,所述计算机程序包括程序指令,处理器501、输入设备502、输出设备503用于执行存储器504存储的程序指令,执行以下操作:Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a blockchain node device provided by an embodiment of the present application. The blockchain node device is used to execute the first blockchain in the method embodiments corresponding to FIGS. 2 to 4 . Steps performed by a node device, the blockchain node device includes: one ormore processors 501 ; one ormore input devices 502 , one ormore output devices 503 andmemory 504 . The above-mentionedprocessor 501 ,input device 502 ,output device 503 andmemory 504 are connected through abus 505 . Thememory 502 is used to store a computer program, and the computer program includes program instructions, and theprocessor 501, theinput device 502, and theoutput device 503 are used to execute the program instructions stored in thememory 504, and perform the following operations:

输入设备502接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;Theinput device 502 receives the first transaction data sent by the ticket platform, the first transaction data is generated after the target user purchases the ticket on the ticket platform, and the first transaction data includes: ticket summary data of the purchased ticket, target Contract information address information, ticket platform identification and target user identification;

处理器501根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验;Theprocessor 501 searches the bill contract information from the blockchain according to the target contract information address information, and verifies the bill platform identifier according to the found bill contract information;

处理器501若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态;If the verification is passed, theprocessor 501 adds a mark to the summary data, and packages the mark, the summary data and the target user identifier to obtain second transaction data, and the mark is used to indicate the summary data. is a valid state;

处理器501对所述第二交易数据进行上链处理。Theprocessor 501 performs on-chain processing on the second transaction data.

在一种实现方式中,处理器501,还包括:In one implementation, theprocessor 501 further includes:

接收所述票据平台发送的退改签理赔登记请求,所述退改签理赔登记请求包括第三交易数据,所述第三交易数据包括票据平台标识和第一退改签理赔规则;receiving a cancellation and change claim registration request sent by the bill platform, the cancellation and amendment claim registration request includes third transaction data, and the third transaction data includes the bill platform identifier and the first cancellation and change claim rules;

对所述第三交易数据进行校验,并在校验通过后根据所述票据平台标识确定所述票据平台的第一退改签理赔规则是否已经上传到所述区块链;Verifying the third transaction data, and after the verification is passed, determining whether the first cancellation, change and claim settlement rule of the ticket platform has been uploaded to the blockchain according to the ticket platform identifier;

若否,生成目标合约信息地址信息,并根据所述目标合约信息地址信息将票据合约信息写入到所述区块链的第一缓存,所述票据合约信息包括所述第三交易数据;If not, generate target contract information address information, and write bill contract information into the first cache of the blockchain according to the target contract information address information, and the bill contract information includes the third transaction data;

将所述第三交易数据发送给区块链网络中的其他共识区块链节点设备;sending the third transaction data to other consensus blockchain node devices in the blockchain network;

当所述区块链共识通过时,将所述第一缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。When the blockchain consensus is passed, the first cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform.

在一种实现方式中,处理器501,还包括:In one implementation, theprocessor 501 further includes:

接收所述票据平台发送的退改签理赔更新请求,所述退改签理赔更新请求第四交易数据,所述第四交易数据包括票据平台标识、第二退改签理赔规则和所述目标合约信息地址信息;Receive a cancellation and change claim settlement update request sent by the bill platform, the fourth transaction data of the cancellation and amendment claim settlement update request, and the fourth transaction data includes the bill platform identifier, the second cancellation and amendment claim settlement rules and the target contract information address information;

对所述第四交易数据进行校验,并在校验通过后根据所述目标合约信息地址信息确定所述区块链中是否已经存储有第一退改签理赔规则;Verifying the fourth transaction data, and after the verification is passed, it is determined whether the first refund and change claim settlement rules have been stored in the blockchain according to the address information of the target contract information;

若是,根据所述票据平台标识确定是否可以对所述第一退改签理赔规则进行更新;If so, determine whether the first cancellation or change claim settlement rule can be updated according to the ticket platform identifier;

若是,将所述第二退改签理赔规则写入到第二缓存,同时将所述第一退改签理赔规则标记为失效并添加修改记录;If so, write the second cancellation/change claim settlement rule into the second cache, and at the same time mark the first cancellation/change claim settlement rule as invalid and add a modification record;

将所述第四交易数据发送给区块链网络中的其他共识区块链节点设备;sending the fourth transaction data to other consensus blockchain node devices in the blockchain network;

当所述区块链共识通过时,将所述第二缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。When the blockchain consensus is passed, the second cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform.

在一种实现方式中,处理器501,还包括:In one implementation, theprocessor 501 further includes:

接收所述票据平台发送的票据变更请求,所述票据变更请求包括第五交易数据,所述第五交易数据包括目标用户向所述票据平台提交的票据购买时的第一票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;Receive a bill change request sent by the bill platform, where the bill change request includes fifth transaction data, and the fifth transaction data includes the first bill summary data submitted by the target user to the bill platform when purchasing the bill, the Target contract information address information, the ticket platform identifier, and the target user identifier;

根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;

若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;

在检测到所述第一票据摘要数据和所述票据摘要数据匹配时,确定所述票据变更请求是否符合所述第二退改签理赔规则;When it is detected that the first bill summary data matches the bill summary data, determining whether the bill change request conforms to the second cancellation and change claim settlement rule;

若是,将所述票据摘要数据标记为变更状态,并对所述第五交易数据进行上链处理。If so, mark the bill summary data as a changed state, and perform upload processing on the fifth transaction data.

在一种实现方式中,处理器501,还包括:In one implementation, theprocessor 501 further includes:

接收所述票据平台发送的第二票据摘要数据,所述第二票据摘要数据为所述票据平台根据所述票据平台标识和所述目标用户标识生成的摘要数据;receiving second bill summary data sent by the bill platform, where the second bill summary data is the summary data generated by the bill platform according to the bill platform identifier and the target user identifier;

确定所述第二票据摘要数据和所述第一票据摘要数据是否匹配。It is determined whether the second bill digest data and the first bill digest data match.

在一种实现方式中,处理器501,还包括:In one implementation, theprocessor 501 further includes:

接收所述票据平台发送的票据理赔请求,所述理赔请求包括第六交易数据,所述第六交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;Receive a bill claim settlement request sent by the bill platform, the claim settlement request includes sixth transaction data, and the sixth transaction data includes the second bill summary data submitted by the target user to the bill platform when the bill is purchased, the target Contract information address information, the ticket platform identifier, and the target user identifier;

根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;

若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;

在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据理赔请求是否符合所述第二退改签理赔规则;When it is detected that the second bill summary data matches the bill summary data, determining whether the bill claim settlement request complies with the second cancellation and change claim settlement rule;

若是,将所述票据摘要数据标记为理赔状态,对所述第六交易数据进行上链处理。If so, the bill summary data is marked as a claim settlement state, and the sixth transaction data is processed on the chain.

在一种实现方式中,处理器501,还包括:In one implementation, theprocessor 501 further includes:

接收所述票据平台发送的第七交易数据,所述第七交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识和财务理赔数据;Receive seventh transaction data sent by the bill platform, where the seventh transaction data includes the second bill summary data submitted by the target user to the bill platform when purchasing the bill, the target contract information address information, the bill platform identification, said target user identification and financial claims data;

根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;

若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;

在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据摘要数据是否被标记为理赔状态;When detecting that the second bill summary data matches the bill summary data, determining whether the bill summary data is marked as a claim status;

若是,将所述票据摘要数据标记为理赔完成状态,对所述第七交易数据进行上链处理。If so, the bill summary data is marked as a claim settlement completed state, and the seventh transaction data is processed on the chain.

在一种实现方式中,处理器501在根据查找到的票据合约信息对所述票据平台标识进行校验时,包括:In an implementation manner, when theprocessor 501 verifies the ticket platform identifier according to the found ticket contract information, it includes:

查找所述票据合约信息中是否存在所述票据平台标识;Find out whether the ticket platform identifier exists in the ticket contract information;

若是,确定所述票据平台对所述票据合约信息具有修改权限。If so, it is determined that the ticket platform has the right to modify the ticket contract information.

请参见图6,图6是本申请实施例提供的一种区块链节点设备的结构示意图,该区块链节点设备用于执行图2~图4对应的方法实施例中第一区块链节点设备所执行的步骤,该区块链节点设备可包括:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of a blockchain node device provided by an embodiment of the present application. The blockchain node device is used to execute the first blockchain in the method embodiments corresponding to FIGS. 2 to 4 . The steps performed by the node device, the blockchain node device may include:

接收单元601,用于接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;The receivingunit 601 is configured to receive the first transaction data sent by the ticket platform, the first transaction data is generated after the target user purchases the ticket on the ticket platform, and the first transaction data includes: the ticket summary of the purchased ticket data, target contract information address information, ticket platform identification and target user identification;

处理单元602,用于根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验;Aprocessing unit 602, configured to search the bill contract information from the blockchain according to the target contract information address information, and verify the bill platform identifier according to the found bill contract information;

处理单元602,还用于若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态;Theprocessing unit 602 is further configured to add a mark to the summary data if the verification is passed, and package the mark, the summary data and the target user identifier to obtain second transaction data, where the mark is used to indicate the summary data is in a valid state;

处理单元602,还用于对所述第二交易数据进行上链处理。Theprocessing unit 602 is further configured to perform uplink processing on the second transaction data.

在一种实现方式中,所述处理单元602,还包括:In an implementation manner, theprocessing unit 602 further includes:

接收所述票据平台发送的退改签理赔登记请求,所述退改签理赔登记请求包括第三交易数据,所述第三交易数据包括票据平台标识和第一退改签理赔规则;receiving a cancellation and change claim registration request sent by the bill platform, the cancellation and amendment claim registration request includes third transaction data, and the third transaction data includes the bill platform identifier and the first cancellation and change claim rules;

对所述第三交易数据进行校验,并在校验通过后根据所述票据平台标识确定所述票据平台的第一退改签理赔规则是否已经上传到所述区块链;Verifying the third transaction data, and after the verification is passed, determining whether the first cancellation, change and claim settlement rule of the ticket platform has been uploaded to the blockchain according to the ticket platform identifier;

若否,生成目标合约信息地址信息,并根据所述目标合约信息地址信息将票据合约信息写入到所述区块链的第一缓存,所述票据合约信息包括所述第三交易数据;If not, generate target contract information address information, and write bill contract information into the first cache of the blockchain according to the target contract information address information, and the bill contract information includes the third transaction data;

将所述第三交易数据发送给区块链网络中的其他共识区块链节点设备;sending the third transaction data to other consensus blockchain node devices in the blockchain network;

当所述区块链共识通过时,将所述第一缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。When the blockchain consensus is passed, the first cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform.

在一种实现方式中,所述处理单元602,还包括:In an implementation manner, theprocessing unit 602 further includes:

接收所述票据平台发送的退改签理赔更新请求,所述退改签理赔更新请求第四交易数据,所述第四交易数据包括票据平台标识、第二退改签理赔规则和所述目标合约信息地址信息;Receive a cancellation and change claim settlement update request sent by the bill platform, the fourth transaction data of the cancellation and amendment claim settlement update request, and the fourth transaction data includes the bill platform identifier, the second cancellation and amendment claim settlement rules and the target contract information address information;

对所述第四交易数据进行校验,并在校验通过后根据所述目标合约信息地址信息确定所述区块链中是否已经存储有第一退改签理赔规则;Verifying the fourth transaction data, and after the verification is passed, determining whether the first refund and change claim settlement rules have been stored in the blockchain according to the target contract information address information;

若是,根据所述票据平台标识确定是否可以对所述第一退改签理赔规则进行更新;If so, determine whether the first cancellation or change claim settlement rule can be updated according to the ticket platform identifier;

若是,将所述第二退改签理赔规则写入到第二缓存,同时将所述第一退改签理赔规则标记为失效并添加修改记录;If so, write the second cancellation/change claim settlement rule into the second cache, and at the same time mark the first cancellation/change claim settlement rule as invalid and add a modification record;

将所述第四交易数据发送给区块链网络中的其他共识区块链节点设备;sending the fourth transaction data to other consensus blockchain node devices in the blockchain network;

当所述区块链共识通过时,将所述第二缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。When the blockchain consensus is passed, the second cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform.

在一种实现方式中,所述处理单元602,还包括:In an implementation manner, theprocessing unit 602 further includes:

接收所述票据平台发送的票据变更请求,所述票据变更请求包括第五交易数据,所述第五交易数据包括目标用户向所述票据平台提交的票据购买时的第一票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;Receive a bill change request sent by the bill platform, where the bill change request includes fifth transaction data, and the fifth transaction data includes the first bill summary data submitted by the target user to the bill platform when purchasing the bill, the Target contract information address information, the ticket platform identifier, and the target user identifier;

根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;

若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;

在检测到所述第一票据摘要数据和所述票据摘要数据匹配时,确定所述票据变更请求是否符合所述第二退改签理赔规则;When it is detected that the first bill summary data matches the bill summary data, determining whether the bill change request conforms to the second cancellation and change claim settlement rule;

若是,将所述票据摘要数据标记为变更状态,并对所述第五交易数据进行上链处理。If so, mark the bill summary data as a changed state, and perform upload processing on the fifth transaction data.

在一种实现方式中,所述处理单元602,还包括:In an implementation manner, theprocessing unit 602 further includes:

接收所述票据平台发送的第二票据摘要数据,所述第二票据摘要数据为所述票据平台根据所述票据平台标识和所述目标用户标识生成的摘要数据;receiving second bill summary data sent by the bill platform, where the second bill summary data is the summary data generated by the bill platform according to the bill platform identifier and the target user identifier;

确定所述第二票据摘要数据和所述第一票据摘要数据是否匹配。It is determined whether the second bill digest data and the first bill digest data match.

在一种实现方式中,所述处理单元602,还包括:In an implementation manner, theprocessing unit 602 further includes:

接收所述票据平台发送的票据理赔请求,所述理赔请求包括第六交易数据,所述第六交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;Receive a bill claim settlement request sent by the bill platform, the claim settlement request includes sixth transaction data, and the sixth transaction data includes the second bill summary data submitted by the target user to the bill platform when the bill is purchased, the target Contract information address information, the ticket platform identifier, and the target user identifier;

根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;

若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;

在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据理赔请求是否符合所述第二退改签理赔规则;When it is detected that the second bill summary data matches the bill summary data, determining whether the bill claim settlement request complies with the second cancellation and change claim settlement rule;

若是,将所述票据摘要数据标记为理赔状态,对所述第六交易数据进行上链处理。If so, the bill summary data is marked as a claim settlement state, and the sixth transaction data is processed on the chain.

在一种实现方式中,所述处理单元602,还包括:In an implementation manner, theprocessing unit 602 further includes:

接收所述票据平台发送的第七交易数据,所述第七交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识和财务理赔数据;Receive seventh transaction data sent by the bill platform, where the seventh transaction data includes the second bill summary data submitted by the target user to the bill platform when purchasing the bill, the target contract information address information, the bill platform identification, said target user identification and financial claims data;

根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;

若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;

在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据摘要数据是否被标记为理赔状态;When detecting that the second bill summary data matches the bill summary data, determining whether the bill summary data is marked as a claim status;

若是,将所述票据摘要数据标记为理赔完成状态,对所述第七交易数据进行上链处理。If so, the bill summary data is marked as a claim settlement completed state, and the seventh transaction data is processed on the chain.

在一种实现方式中,所述处理单元602在根据查找到的票据合约信息对所述票据平台标识进行校验时,还包括:In an implementation manner, when theprocessing unit 602 verifies the ticket platform identifier according to the found ticket contract information, it further includes:

查找所述票据合约信息中是否存在所述票据平台标识;Find out whether the ticket platform identifier exists in the ticket contract information;

若是,确定所述票据平台对所述票据合约信息具有修改权限。If so, it is determined that the ticket platform has the right to modify the ticket contract information.

本申请实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,可执行上述实施例中所执行的步骤。The embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the foregoing embodiments can be executed steps performed in .

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

以上所揭露的仅为本申请的部分实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本申请权利要求所作的等同变化,仍属于发明所涵盖的范围。The above disclosure is only a part of the embodiments of the present application, of course, the scope of the rights of the present application cannot be limited by this. Those of ordinary skill in the art can understand that all or part of the procedures for realizing the above-mentioned embodiments are implemented according to the claims of the present application. The equivalent changes of the invention still belong to the scope covered by the invention.

Claims (10)

Translated fromChinese
1.一种对票据数据的处理方法,其特征在于,所述方法应用于第一区块链节点设备,所述方法包括:1. A method for processing bill data, wherein the method is applied to a first blockchain node device, and the method comprises:接收票据平台发送的第一交易数据,所述第一交易数据是目标用户在所述票据平台购买票据后生成的,所述第一交易数据包括:所购买票据的票据摘要数据、目标合约信息地址信息、票据平台标识和目标用户标识;Receive the first transaction data sent by the bill platform, the first transaction data is generated after the target user purchases the bill on the bill platform, and the first transaction data includes: bill summary data of the purchased bill, target contract information address Information, ticket platform identification and target user identification;根据所述目标合约信息地址信息从区块链中查找票据合约信息,并根据查找到的票据合约信息对所述票据平台标识进行校验;Search the bill contract information from the blockchain according to the target contract information address information, and verify the bill platform identifier according to the found bill contract information;若校验通过,为所述摘要数据添加标记,并将所述标记、所述摘要数据和所述目标用户标识进行打包得到第二交易数据,所述标记用于指示所述摘要数据为有效状态;If the verification is passed, add a mark to the summary data, and package the mark, the summary data and the target user identifier to obtain second transaction data, where the mark is used to indicate that the summary data is in a valid state ;对所述第二交易数据进行上链处理。Perform on-chain processing on the second transaction data.2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises:接收所述票据平台发送的退改签理赔登记请求,所述退改签理赔登记请求包括第三交易数据,所述第三交易数据包括票据平台标识和第一退改签理赔规则;receiving a cancellation and change claim registration request sent by the bill platform, the cancellation and amendment claim registration request includes third transaction data, and the third transaction data includes the bill platform identifier and the first cancellation and change claim rules;对所述第三交易数据进行校验,并在校验通过后根据所述票据平台标识确定所述票据平台的第一退改签理赔规则是否已经上传到所述区块链;Verifying the third transaction data, and after the verification is passed, determining whether the first cancellation, change and claim settlement rule of the ticket platform has been uploaded to the blockchain according to the ticket platform identifier;若否,生成目标合约信息地址信息,并根据所述目标合约信息地址信息将票据合约信息写入到所述区块链的第一缓存,所述票据合约信息包括所述第三交易数据;If not, generate target contract information address information, and write bill contract information into the first cache of the blockchain according to the target contract information address information, and the bill contract information includes the third transaction data;将所述第三交易数据发送给区块链网络中的其他共识区块链节点设备;sending the third transaction data to other consensus blockchain node devices in the blockchain network;当所述区块链共识通过时,将所述第一缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。When the blockchain consensus is passed, the first cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform.3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises:接收所述票据平台发送的退改签理赔更新请求,所述退改签理赔更新请求第四交易数据,所述第四交易数据包括票据平台标识、第二退改签理赔规则和所述目标合约信息地址信息;Receive a cancellation and change claim settlement update request sent by the bill platform, the fourth transaction data of the cancellation and amendment claim settlement update request, and the fourth transaction data includes the bill platform identifier, the second cancellation and amendment claim settlement rules and the target contract information address information;对所述第四交易数据进行校验,并在校验通过后根据所述目标合约信息地址信息确定所述区块链中是否已经存储有第一退改签理赔规则;Verifying the fourth transaction data, and after the verification is passed, it is determined whether the first refund and change claim settlement rules have been stored in the blockchain according to the address information of the target contract information;若是,根据所述票据平台标识确定是否可以对所述第一退改签理赔规则进行更新;If so, determine whether the first cancellation or change claim settlement rule can be updated according to the ticket platform identifier;若是,将所述第二退改签理赔规则写入到第二缓存,同时将所述第一退改签理赔规则标记为失效并添加修改记录;If so, write the second cancellation/change claim settlement rule into the second cache, and at the same time mark the first cancellation/change claim settlement rule as invalid and add a modification record;将所述第四交易数据发送给区块链网络中的其他共识区块链节点设备;sending the fourth transaction data to other consensus blockchain node devices in the blockchain network;当所述区块链共识通过时,将所述第二缓存写入到所述区块链的共识账本中,并将所述目标合约信息地址信息发送给所述票据平台。When the blockchain consensus is passed, the second cache is written into the consensus ledger of the blockchain, and the target contract information address information is sent to the ticket platform.4.根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1-3, wherein the method further comprises:接收所述票据平台发送的票据变更请求,所述票据变更请求包括第五交易数据,所述第五交易数据包括目标用户向所述票据平台提交的票据购买时的第一票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;Receive a bill change request sent by the bill platform, where the bill change request includes fifth transaction data, and the fifth transaction data includes the first bill summary data submitted by the target user to the bill platform when purchasing the bill, the Target contract information address information, the ticket platform identifier, and the target user identifier;根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;在检测到所述第一票据摘要数据和所述票据摘要数据匹配时,确定所述票据变更请求是否符合所述第二退改签理赔规则;When it is detected that the first bill summary data matches the bill summary data, determining whether the bill change request conforms to the second cancellation and change claim settlement rule;若是,将所述票据摘要数据标记为变更状态,并对所述第五交易数据进行上链处理。If so, mark the bill summary data as a changed state, and perform upload processing on the fifth transaction data.5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises:接收所述票据平台发送的第二票据摘要数据,所述第二票据摘要数据为所述票据平台根据所述票据平台标识和所述目标用户标识生成的摘要数据;receiving second bill summary data sent by the bill platform, where the second bill summary data is the summary data generated by the bill platform according to the bill platform identifier and the target user identifier;确定所述第二票据摘要数据和所述第一票据摘要数据是否匹配。It is determined whether the second bill digest data and the first bill digest data match.6.根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1-3, wherein the method further comprises:接收所述票据平台发送的票据理赔请求,所述理赔请求包括第六交易数据,所述第六交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识;Receive a bill claim settlement request sent by the bill platform, the claim settlement request includes sixth transaction data, and the sixth transaction data includes the second bill summary data submitted by the target user to the bill platform when the bill is purchased, the target Contract information address information, the ticket platform identifier, and the target user identifier;根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据理赔请求是否符合所述第二退改签理赔规则;When it is detected that the second bill summary data matches the bill summary data, determining whether the bill claim settlement request complies with the second cancellation and change claim settlement rule;若是,将所述票据摘要数据标记为理赔状态,对所述第六交易数据进行上链处理。If so, the bill summary data is marked as a claim settlement state, and the sixth transaction data is processed on the chain.7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, wherein the method further comprises:接收所述票据平台发送的第七交易数据,所述第七交易数据包括目标用户向所述票据平台提交的票据购买时的第二票据摘要数据、所述目标合约信息地址信息、所述票据平台标识、所述目标用户标识和财务理赔数据;Receive seventh transaction data sent by the bill platform, where the seventh transaction data includes the second bill summary data submitted by the target user to the bill platform when purchasing the bill, the target contract information address information, the bill platform identification, said target user identification and financial claims data;根据所述目标合约信息地址信息查找所述票据合约信息,并根据所述票据合约信息对所述票据平台标识进行校验;Find the bill contract information according to the target contract information address information, and verify the bill platform identifier according to the bill contract information;若校验通过根据所述目标用户标识查找所述票据摘要数据;If the verification is passed, the bill summary data is searched according to the target user identifier;在检测到所述第二票据摘要数据和所述票据摘要数据匹配时,确定所述票据摘要数据是否被标记为理赔状态;When detecting that the second bill summary data matches the bill summary data, determining whether the bill summary data is marked as a claim status;若是,将所述票据摘要数据标记为理赔完成状态,对所述第七交易数据进行上链处理。If so, the bill summary data is marked as a claim settlement completed state, and the seventh transaction data is processed on the chain.8.根据权利要求1所述的方法,其特征在于,所述根据查找到的票据合约信息对所述票据平台标识进行校验,包括:8. The method according to claim 1, wherein the verification of the ticket platform identifier according to the found ticket contract information comprises:查找所述票据合约信息中是否存在所述票据平台标识;Find out whether the ticket platform identifier exists in the ticket contract information;若是,确定所述票据平台对所述票据合约信息具有修改权限。If so, it is determined that the ticket platform has the right to modify the ticket contract information.9.一种服务器,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-8任一项所述的对票据数据的处理方法。9. A server, characterized by comprising a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected to each other, wherein the memory is used to store a computer program, the The computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method for processing ticket data according to any one of claims 1-8.10.一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序指令,所述计算机程序指令适于由处理器加载并执行如权利要求1-8任一项所述的对票据数据的处理方法。10. A computer storage medium, characterized in that the computer storage medium stores computer program instructions, the computer program instructions are adapted to be loaded by a processor and execute the paired ticket according to any one of claims 1-8 data processing method.
CN201911137287.1A2019-11-192019-11-19 A method, device and medium for processing bill dataActiveCN110866755B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911137287.1ACN110866755B (en)2019-11-192019-11-19 A method, device and medium for processing bill data

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911137287.1ACN110866755B (en)2019-11-192019-11-19 A method, device and medium for processing bill data

Publications (2)

Publication NumberPublication Date
CN110866755Atrue CN110866755A (en)2020-03-06
CN110866755B CN110866755B (en)2024-11-08

Family

ID=69655453

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911137287.1AActiveCN110866755B (en)2019-11-192019-11-19 A method, device and medium for processing bill data

Country Status (1)

CountryLink
CN (1)CN110866755B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111445257A (en)*2020-03-272020-07-24北京瑞卓喜投科技发展有限公司Block chain-based evidence-based transaction verification method and device, memory and computer
CN111507815A (en)*2020-04-202020-08-07腾讯科技(深圳)有限公司Block chain based information acquisition method, device, equipment and storage medium
CN112149077A (en)*2020-10-122020-12-29杭州云链趣链数字科技有限公司Supply chain billing method, system and computer equipment based on block chain technology
CN112163917A (en)*2020-09-282021-01-01财付通支付科技有限公司Bill processing method, device, medium and electronic equipment based on block chain
CN113672750A (en)*2021-08-122021-11-19支付宝(杭州)信息技术有限公司Data processing method and device based on block chain
CN113672988A (en)*2020-05-142021-11-19腾讯科技(深圳)有限公司Block chain-based information management method, system, medium, and electronic device
CN114298720A (en)*2021-12-272022-04-08中国民航信息网络股份有限公司 A cross-airline passenger protection method and related equipment
CN114519440A (en)*2022-01-042022-05-20中国铁道科学研究院集团有限公司Passenger ticket data processing method, device, equipment and storage medium
CN115796903A (en)*2023-02-072023-03-14中国民航信息网络股份有限公司Air ticket processing method, device and platform based on block chain

Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106952094A (en)*2017-03-102017-07-14腾讯科技(深圳)有限公司 Electronic bill management method and device
CN109242674A (en)*2018-06-282019-01-18平安科技(深圳)有限公司Delayed flight compensation method and system, server and computer readable storage medium
CN109325812A (en)*2018-08-242019-02-12深圳市智税链科技有限公司 Data processing method, device, storage medium and device for electronic bills
CN109493236A (en)*2018-09-302019-03-19深圳市元征科技股份有限公司Aviation based on block chain technology is delayed dangerous processing method, device and equipment
CN109614438A (en)*2018-10-242019-04-12阿里巴巴集团控股有限公司A kind of Claims Resolution method and apparatus based on block chain
CN109685674A (en)*2018-12-212019-04-26众安信息技术服务有限公司Order based on block chain leads to cardization, compensation, the method, apparatus of inquiry and storage medium
CN109767222A (en)*2019-01-212019-05-17中国联合网络通信集团有限公司 Blockchain-based flight delay insurance insurance method and system
US20190228409A1 (en)*2017-09-132019-07-25Vijay MadisettiTransaction Pools Using Smart Contracts and Blockchains
CN110060112A (en)*2018-12-132019-07-26阿里巴巴集团控股有限公司Invoice creation method and device, electronic equipment based on block chain
CN110175842A (en)*2019-03-272019-08-27阿里巴巴集团控股有限公司Transfer account method, system, calculating equipment and storage medium based on block chain
US20190303867A1 (en)*2018-03-282019-10-03Vinod NairBlockchain based crowdsourcing medical billing for medical insurance claims processing
CN110400194A (en)*2019-06-172019-11-01北京三快在线科技有限公司Order processing method, apparatus, electronic equipment and storage medium
CN110458677A (en)*2019-07-312019-11-15阿里巴巴集团控股有限公司Bill based on block chain checks and writes off method and device, electronic equipment, storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106952094A (en)*2017-03-102017-07-14腾讯科技(深圳)有限公司 Electronic bill management method and device
US20190228409A1 (en)*2017-09-132019-07-25Vijay MadisettiTransaction Pools Using Smart Contracts and Blockchains
US20190303867A1 (en)*2018-03-282019-10-03Vinod NairBlockchain based crowdsourcing medical billing for medical insurance claims processing
CN109242674A (en)*2018-06-282019-01-18平安科技(深圳)有限公司Delayed flight compensation method and system, server and computer readable storage medium
CN109325812A (en)*2018-08-242019-02-12深圳市智税链科技有限公司 Data processing method, device, storage medium and device for electronic bills
CN109493236A (en)*2018-09-302019-03-19深圳市元征科技股份有限公司Aviation based on block chain technology is delayed dangerous processing method, device and equipment
CN109614438A (en)*2018-10-242019-04-12阿里巴巴集团控股有限公司A kind of Claims Resolution method and apparatus based on block chain
CN110060112A (en)*2018-12-132019-07-26阿里巴巴集团控股有限公司Invoice creation method and device, electronic equipment based on block chain
CN109685674A (en)*2018-12-212019-04-26众安信息技术服务有限公司Order based on block chain leads to cardization, compensation, the method, apparatus of inquiry and storage medium
CN109767222A (en)*2019-01-212019-05-17中国联合网络通信集团有限公司 Blockchain-based flight delay insurance insurance method and system
CN110175842A (en)*2019-03-272019-08-27阿里巴巴集团控股有限公司Transfer account method, system, calculating equipment and storage medium based on block chain
CN110400194A (en)*2019-06-172019-11-01北京三快在线科技有限公司Order processing method, apparatus, electronic equipment and storage medium
CN110458677A (en)*2019-07-312019-11-15阿里巴巴集团控股有限公司Bill based on block chain checks and writes off method and device, electronic equipment, storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111445257A (en)*2020-03-272020-07-24北京瑞卓喜投科技发展有限公司Block chain-based evidence-based transaction verification method and device, memory and computer
CN111507815A (en)*2020-04-202020-08-07腾讯科技(深圳)有限公司Block chain based information acquisition method, device, equipment and storage medium
CN113672988A (en)*2020-05-142021-11-19腾讯科技(深圳)有限公司Block chain-based information management method, system, medium, and electronic device
CN113672988B (en)*2020-05-142023-11-10腾讯科技(深圳)有限公司Information management method, system, medium and electronic equipment based on block chain
CN112163917A (en)*2020-09-282021-01-01财付通支付科技有限公司Bill processing method, device, medium and electronic equipment based on block chain
CN112163917B (en)*2020-09-282024-06-07财付通支付科技有限公司Bill processing method and device based on blockchain, medium and electronic equipment
CN112149077A (en)*2020-10-122020-12-29杭州云链趣链数字科技有限公司Supply chain billing method, system and computer equipment based on block chain technology
CN113672750A (en)*2021-08-122021-11-19支付宝(杭州)信息技术有限公司Data processing method and device based on block chain
CN114298720A (en)*2021-12-272022-04-08中国民航信息网络股份有限公司 A cross-airline passenger protection method and related equipment
CN114519440A (en)*2022-01-042022-05-20中国铁道科学研究院集团有限公司Passenger ticket data processing method, device, equipment and storage medium
CN114519440B (en)*2022-01-042025-09-05中国铁道科学研究院集团有限公司 A data processing method, device, equipment and storage medium for passenger tickets
CN115796903A (en)*2023-02-072023-03-14中国民航信息网络股份有限公司Air ticket processing method, device and platform based on block chain
CN115796903B (en)*2023-02-072023-12-26中国民航信息网络股份有限公司Air ticket processing method, device and platform based on blockchain

Also Published As

Publication numberPublication date
CN110866755B (en)2024-11-08

Similar Documents

PublicationPublication DateTitle
CN110866755B (en) A method, device and medium for processing bill data
KR102277998B1 (en) Electronic bill management method, apparatus and recording medium
JP7504344B2 (en) Transaction Security on Distributed Ledger-Based MaaS Platforms
JP7319961B2 (en) Computer-implemented systems and methods related to binary blockchains forming a pair of coupled blockchains
CN108810006A (en)resource access method, device, equipment and storage medium
CN110889762B (en)Data processing method, device and medium
KR20200012705A (en)Apparatus for managing group of nodes which comprises transaction of dual signature based on group key on blockchain network and computing apparatus
KR101780634B1 (en)Method and server for issueing and distributing stocks, and transfering the ownership of the stocks by using virtul money
CN111314172B (en)Block chain-based data processing method, device, equipment and storage medium
KR101798119B1 (en)Method and server for registering stockholder's list, recording transfer of stock ownership and verifying the registered stockholder's list file
CN110599275A (en)Data processing method and device based on block chain network and storage medium
CN111416709B (en)Voting method, device, equipment and storage medium based on block chain system
CN110084600B (en)Processing and verifying method, device, equipment and medium for resolution transaction request
CN111488626B (en) Blockchain-based data processing method, device, equipment and medium
CN109508564A (en)A kind of digital asset storage system and method based on block chain
CN117916735A (en)Security element, method for registering a token and token reference register
CN110852648A (en) A data processing method, device and computer storage medium
CN111260475A (en) A data processing method, block chain node device and storage medium
WO2019067533A1 (en)System and methods for resolving data discrepancies in a distributed system with blockchain controls
KR101829731B1 (en)Method and server for registering stockholder's list and recording transfer of stock ownership
CN110941840A (en)Data processing method, system and terminal
CN114549011A (en)Method and device for binding bank card
CN114119243A (en)Pool financing management method, device, medium and electronic equipment based on block chain
CN113220475A (en)Transaction data processing method and device, computer equipment and storage medium
CN111932326A (en)Data processing method based on block chain network and related equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
REGReference to a national code

Ref country code:HK

Ref legal event code:DE

Ref document number:40021152

Country of ref document:HK

SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TG01Patent term adjustment
TG01Patent term adjustment

[8]ページ先頭

©2009-2025 Movatter.jp