bill management method based on block chain network and related equipment

文档序号:1578091 发布日期:2020-01-31 浏览:29次 中文

阅读说明:本技术 一种基于区块链网络的票据管理方法及相关设备 (bill management method based on block chain network and related equipment ) 是由 蔡弋戈 秦青 张建俊 王宗友 郑罗海 蓝虎 张懿方 郭鹏 洪晓雯 戴传兵 于 2019-10-14 设计创作,主要内容包括:本发明实施例提供了一种基于区块链网络的票据管理方法及相关设备,其中方法包括:开票服务器接收售票系统服务器提交的开票请求,开票请求携带有目标景区的购票订单信息,开票服务器基于开票请求向税局服务器发送开票数据,使得税局服务器在对开票数据校验通过后,向开票服务器发送允许开票的通知消息,并通过区块链网络将包括目标景区的标识的开票数据写入区块链中,开票服务器在接收到允许开票的通知消息时根据开票数据生成包含目标景区的标识的电子发票,完成开票,从而可以通过区块链技术开具景区冠名类发票,大大降低了开具此类发票的成本,且提升了开票效率,此外,发票写入区块链还可以提高电子发票的安全性,有效防止票据伪造。(The embodiment of the invention provides bill management methods based on a block chain network and related equipment, wherein the method comprises the steps that a billing server receives a billing request submitted by a ticketing system server, the billing request carries billing order information of a target scenic spot, the billing server sends billing data to a tax office server based on the billing request, so that the tax office server sends a notification message of allowing billing to the billing server after the billing data is checked to be passed, the billing data comprising an identifier of the target scenic spot is written into a block chain through the block chain network, the billing server generates an electronic invoice comprising the identifier of the target scenic spot according to the billing data when receiving the notification message of allowing billing, and billing is completed, so that a scenic spot top name type invoice can be issued through the block chain technology, the cost of issuing such invoice is greatly reduced, the billing efficiency is improved, and the invoice is written into the block chain, the security of the electronic invoice can be improved, and the bill is effectively prevented from being forged.)

1, bill management method based on block chain network, characterized in that, the method includes:

the billing server receives a billing request submitted by a ticketing system server, wherein the billing request carries the information of a purchase order in a target scenic spot;

the billing server sends billing data to a tax office server based on the billing request, so that the tax office server sends a notification message for allowing billing to the billing server after the billing data is verified, and writes the billing data into a block chain through the block chain network, wherein the billing data comprises an identifier of the target scenic spot;

and when receiving the notification message allowing billing, the billing server generates an electronic invoice according to the billing data, wherein the electronic invoice comprises the identification of the target scenic spot.

2. The method of claim 1, wherein the billing server sends billing data to a tax office server based on the billing request, comprising:

the billing server generates billing data according to the identification of the target scenic spot and the billing order information;

and the billing server sends the billing data to a tax office server.

3. The method according to claim 1 or 2, wherein the billing server, after generating an electronic invoice from the billing data upon receiving the notification message of allowing billing, further comprises:

and the billing server sends the electronic invoice to a user terminal so that the user terminal collects the electronic invoice into a target application program.

4. The method according to claim 1, wherein the billing request is submitted to the billing server by the ticketing system server upon detection of a billing confirmation operation of the user terminal for the purchase order of the target scenic spot.

5, A bill management method based on block chain network, wherein the block chain network includes a plurality of nodes, the method includes:

the method comprises the steps that a tax office server receives invoicing data sent by an invoicing server, wherein the invoicing data is generated by the invoicing server based on an invoicing request submitted by a ticketing system server, and the invoicing request carries booking information of a target scenic spot;

the tax bureau server verifies the invoicing data, and sends the invoicing data to the nodes in the block chain network after the invoicing data passes the verification, so that the nodes in the block chain network write the invoicing data into the block chain after the invoicing data passes the consensus verification, wherein the invoicing data comprises the identification of the target scenic spot;

and after the billing data is verified, the tax bureau server sends a notification message allowing billing to the billing server so that the billing server generates an electronic invoice according to the billing data, wherein the electronic invoice comprises the identification of the target scenic spot.

6. The method as claimed in claim 5, wherein the tax office server, after checking the billing data, sends a notification message allowing billing to the billing server, the method further comprising:

the tax bureau server receives a scenic spot identification query request sent by a query terminal aiming at the electronic invoice to be verified;

the tax bureau server responds to the scenic spot identification query request, and acquires the identification of the scenic spot corresponding to the electronic invoice to be verified from a node in the block chain network;

and the tax bureau server sends the identification of the scenic spot corresponding to the electronic invoice to be verified to the inquiry terminal.

A bill management apparatus of the kind 7, , comprising:

the system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving a billing request submitted by a ticketing system server, and the billing request carries the ticket purchasing order information of a target scenic spot;

the sending module is used for sending the billing data to a tax office server based on the billing request so as to enable the tax office server to send a notification message of allowing billing to the bill management device after the billing data passes the verification, and write the billing data into a block chain through the block chain network, wherein the billing data comprises the identification of the target scenic spot;

and the generating module is used for generating an electronic invoice according to the invoicing data when the notification message allowing invoicing is received, wherein the electronic invoice comprises the identification of the target scenic spot.

The ticket management apparatus of claim , applied to a blockchain network comprising a plurality of nodes, the apparatus comprising:

the system comprises a receiving module, a billing server and a billing system server, wherein the receiving module is used for receiving billing data sent by the billing server, the billing data is generated by the billing server based on a billing request submitted by the ticketing system server, and the billing request carries the information of a booking order of a target scenic spot;

the checking module is used for checking the invoicing data;

the sending module is used for sending the billing data to the nodes in the block chain network after the billing data passes the verification, so that the nodes in the block chain network write the billing data into the block chain after the common identification verification of the billing data passes, wherein the billing data comprises the identification of the target scenic spot;

the sending module is further configured to send a notification message allowing billing to the billing server after the billing data is verified, so that the billing server generates an electronic invoice according to the billing data, where the electronic invoice includes the identifier of the target scenic spot.

A server of the type 9, , comprising a processor, a network interface and a storage device, the processor, the network interface and the storage device being connected to each other, wherein the network interface is controlled by the processor for transceiving data, the storage device is used for storing a computer program, the computer program comprising program instructions, the processor is configured to invoke the program instructions for executing the method for managing tickets based on blockchain networks according to any of claims 1 to 4 or the method for managing tickets based on blockchain networks according to claim 5 or 6.

10, computer storage media, wherein the computer storage media stores program instructions, when executed, for implementing the method of any of claims 1-4 or 5 or 6.

Technical Field

The invention relates to the technical field of computers, in particular to an bill management method based on a block chain network and related equipment.

Background

At present, the scenic spot crown name invoice issuing mode is also a traditional paper invoicing mode, a tax administration administrative department is required to distribute number sections, each scenic spot receives the number sections, applies for printing numbers, is printed by a special printing company, is mailed to scenic spots and is issued by the scenic spots, and therefore the scenic spot crown name invoice issuing mode is high in cost, complex in operation steps and low in efficiency.

Disclosure of Invention

The embodiment of the invention provides bill management methods based on a block chain network and related equipment, which can greatly reduce the cost of issuing scenic spot crown name invoices, improve the issuing efficiency, improve the safety of electronic invoices and effectively prevent bill counterfeiting.

, an embodiment of the present invention provides a method for bill management based on a blockchain network, the method including:

the billing server receives a billing request submitted by a ticketing system server, wherein the billing request carries the information of a purchase order in a target scenic spot;

the billing server sends billing data to a tax office server based on the billing request, so that the tax office server sends a notification message for allowing billing to the billing server after the billing data is verified, and writes the billing data into a block chain through the block chain network, wherein the billing data comprises an identifier of the target scenic spot;

and when receiving the notification message allowing billing, the billing server generates an electronic invoice according to the billing data, wherein the electronic invoice comprises the identification of the target scenic spot.

In a second aspect, an embodiment of the present invention provides a method for ticket management based on a blockchain network, where the blockchain network includes a plurality of nodes, and the method includes:

the method comprises the steps that a tax office server receives invoicing data sent by an invoicing server, wherein the invoicing data is generated by the invoicing server based on an invoicing request submitted by a ticketing system server, and the invoicing request carries booking information of a target scenic spot;

the tax bureau server verifies the invoicing data, and sends the invoicing data to the nodes in the block chain network after the invoicing data passes the verification, so that the nodes in the block chain network write the invoicing data into the block chain after the invoicing data passes the consensus verification, wherein the invoicing data comprises the identification of the target scenic spot;

and after the billing data is verified, the tax bureau server sends a notification message allowing billing to the billing server so that the billing server generates an electronic invoice according to the billing data, wherein the electronic invoice comprises the identification of the target scenic spot.

In a third aspect, an embodiment of the present invention provides kinds of ticket management apparatuses, including:

the system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving a billing request submitted by a ticketing system server, and the billing request carries the ticket purchasing order information of a target scenic spot;

the sending module is used for sending the billing data to a tax office server based on the billing request so as to enable the tax office server to send a notification message of allowing billing to the bill management device after the billing data passes the verification, and write the billing data into a block chain through the block chain network, wherein the billing data comprises the identification of the target scenic spot;

and the generating module is used for generating an electronic invoice according to the invoicing data when the notification message allowing invoicing is received, wherein the electronic invoice comprises the identification of the target scenic spot.

In a fourth aspect, an embodiment of the present invention provides kinds of ticket management apparatuses, which are applied to a blockchain network, where the blockchain network includes a plurality of nodes, and the apparatus includes:

the system comprises a receiving module, a billing server and a billing system server, wherein the receiving module is used for receiving billing data sent by the billing server, the billing data is generated by the billing server based on a billing request submitted by the ticketing system server, and the billing request carries the information of a booking order of a target scenic spot;

the checking module is used for checking the invoicing data;

the sending module is used for sending the billing data to the nodes in the block chain network after the billing data passes the verification, so that the nodes in the block chain network write the billing data into the block chain after the common identification verification of the billing data passes, wherein the billing data comprises the identification of the target scenic spot;

the sending module is further configured to send a notification message allowing billing to the billing server after the billing data is verified, so that the billing server generates an electronic invoice according to the billing data, where the electronic invoice includes the identifier of the target scenic spot.

In a fifth aspect, an embodiment of the present invention provides servers, where the server includes a processor, a network interface, and a storage device, where the processor, the network interface, and the storage device are connected to each other, where the network interface is controlled by the processor to send and receive data, and the storage device is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method for bill management based on a blockchain network according to the or the second aspect.

In a sixth aspect, an embodiment of the present invention provides computer storage media, where the computer storage media stores program instructions, and the program instructions, when executed, are used to implement the method for block chain network based ticket management according to the or the second aspect.

In the embodiment of the invention, the billing server can receive a billing request submitted by a ticketing system server, the billing request carries the billing order information of a target scenic spot, the billing server sends billing data to the tax office server based on the billing request, so that the tax office server sends a notification message of allowing billing to the billing server after the billing data is checked to be passed, and writes the billing data comprising the identification of the target scenic spot into the block chain through the block chain network, the billing server generates an electronic invoice comprising the identification of the target scenic spot according to the billing data when receiving the notification message of allowing billing, thereby completing billing, and can write the scenic spot crown-name invoices through the block chain technology, thereby greatly reducing the cost of billing such invoices, improving the billing efficiency, and in addition, the writing of the invoice into the block chain can also improve the safety of the electronic invoice, effectively preventing the bill from being forged.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

FIG. 1a is a schematic diagram of an architecture of ticket management systems provided by an embodiment of the present invention;

FIG. 1b is a schematic structural diagram of block chains provided in the embodiment of the present invention;

FIG. 1c is a schematic diagram of processes for generating new blocks according to an embodiment of the present invention;

fig. 2 is a schematic flowchart of bill management methods based on a blockchain network according to an embodiment of the present invention;

fig. 3a is a schematic view of a ticket purchasing interface of scenic spots provided by the embodiment of the invention;

fig. 3b is a schematic diagram of another scenic spot ticket purchasing interface provided by the embodiment of the invention;

FIG. 3c is a schematic diagram of a ticket purchasing interface for scenic spots according to an embodiment of the present invention;

fig. 4 is a schematic flowchart of another bill management methods based on a blockchain network according to an embodiment of the present invention;

fig. 5 is a schematic flowchart of a method for managing tickets based on a blockchain network of types according to an embodiment of the present invention;

FIG. 6 is a schematic structural diagram of bill management devices provided by an embodiment of the invention;

FIG. 7 is a schematic structural diagram of another bill management devices provided by an embodiment of the present invention;

fig. 8 is a schematic structural diagram of servers provided in the embodiment of the present invention;

fig. 9 is a schematic structural diagram of another kinds of servers according to the embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.

Aiming at the problems of high cost, low efficiency and the like when the scenic spot crown name invoices are made at present, the embodiment of the invention provides bill management methods based on a block chain network, which can make scenic spot crown name invoices through a block chain technology, greatly reduce the cost of making the invoices, improve the invoicing efficiency, and improve the safety of electronic invoices by writing the invoices into the block chain, thereby effectively preventing bill counterfeiting.

Referring to fig. 1a, it is a schematic diagram of an architecture of ticket management systems provided in an embodiment of the present invention, the ticket management system includes a block chain network 10, a user terminal 102, a ticketing system server 103, an invoicing server 104, and a tax bureau server 105, where:

the blockchain network 10 is a network for performing data sharing between nodes, and the blockchain network may include a plurality of nodes 101, each node 101 may receive input information during normal operation, and maintain shared data (i.e., blockchain) in the blockchain network based on the received input information, in order To ensure information intercommunication in the blockchain network, each node may have information connection, any two nodes may implement Peer-To-Peer (Peer To Peer, P2P) communication, and specifically, may perform P2P communication through a wired communication link or a wireless communication link, for example, when any node in the blockchain network receives the input information, other nodes acquire the input information according To a consensus algorithm, and store the input information as data in the shared data, so that the data stored in all nodes in the blockchain network are .

The user terminal 102 may be a device held by a consumer, a tourist, etc., the ticketing system server 103 is configured to provide services such as purchasing a scenic spot ticket, making a scenic spot top-name invoice, etc., the billing server 104 may be a device corresponding to a billing facilitator, which may include, for example, a third-party billing agent, etc., and is configured to provide a billing service to the ticketing system server 103 and provide a made electronic invoice to the user terminal 102, and the tax office server 105 is configured to maintain and manage a ticket such as an electronic invoice, and the tax office server 105 may access the blockchain network 10 and may communicate with the node 101 in the blockchain network 10, for example, send ticket information to the node 101 to write in the blockchain, where the user terminal 102 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a vehicle-mounted smart terminal, etc., and the embodiment of the present invention is not limited.

It should be noted that the number of nodes shown in fig. 1a is only illustrative, and any number of nodes may be deployed according to actual needs.

Each node in the blockchain network has a node identifier corresponding thereto, and each node in the blockchain network may store node identifiers of other nodes in the blockchain network, so that a generated block is subsequently broadcast to other nodes in the blockchain network according to the node identifiers of the other nodes.

Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
... ...
Node N 119.123.789.258

The block chain is composed of a plurality of blocks, referring to fig. 1b, the block chain is composed of a plurality of blocks, a starting block comprises a block head and a block main body, an input information characteristic value, a version number, a timestamp and a difficulty value are stored in the block head, input information is stored in the block main body, the lower block of the starting block takes the starting block as a parent block, the lower block also comprises the block head and the block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value, the version number, the timestamp and the difficulty value of the parent block, and the like, so that the block data stored in each block in the block chain is related to the block data stored in the parent block, and the safety of the input information in the block is guaranteed.

When each block in the block chain is generated, referring to fig. 1c, when a node where the block chain is located receives input information, the input information is verified, after the verification is completed, the input information is stored in a memory pool, and a hash tree used for recording the input information is updated; and then, updating the updating time stamp to the time of receiving the input information, and obtaining the current block by utilizing a Byzantine fault-tolerant technology BFT-RAFT algorithm. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the block chain network where the newly generated blocks are located according to the node identifications of the other nodes in the block chain network, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.

In , the billing server 104 receives a billing request submitted by the ticketing system server 103, the billing request carries the information of a purchase order in a target scenic spot, the billing server 1014 sends billing data to the tax office server 105 based on the billing request, the tax office server 105 sends a notification message of allowing billing to the billing server 104 after the billing data is verified, and writes the billing data including an identifier of the target scenic spot into a block chain through the block chain network 10, the billing server 104 generates an electronic invoice including the identifier of the target scenic spot according to the billing data when receiving the notification message of allowing billing, and completes billing, so as to bill a crown name invoice in the scenic spot through the block chain technology, thereby greatly reducing the cost of making such invoice and improving the billing efficiency.

In , the billing server 104 may send the electronic invoice to the user terminal 102 after generating the electronic invoice from the billing data, and the user terminal 102 collects the electronic invoice into the target application, the electronic invoice including the identification of the target scenic spot.

The implementation details of the technical scheme of the embodiment of the invention are explained in detail as follows:

please refer to fig. 2, which is a flowchart illustrating an bill management methods based on the blockchain network provided by the bill management system shown in fig. 1a according to an embodiment of the present invention, where the bill management method based on the blockchain network according to the embodiment of the present invention is mainly described from the billing server side, and the bill management method based on the blockchain network includes the following steps:

201. the billing server receives a billing request submitted by the ticketing system server, wherein the billing request carries the information of the purchase order of the target scenic spot.

The ticket order information may include information such as number of tickets, unit price, total price, etc.

Specifically, the user may issue an invoicing confirmation operation through a scenic spot ticketing order management interface provided by the ticketing system server on the user terminal, and the ticketing system server submits an invoicing request to the invoicing server after detecting the invoicing confirmation operation of the user terminal for a target scenic spot ticketing order in the scenic spot ticketing order management interface, that is, after purchasing tickets of the target scenic spot, the user may request to invoice for the target scenic spot ticketing order through the scenic spot ticketing order management interface provided by the ticketing system server.

In , in some possible embodiments, the user may be allowed to select an invoice with a scenic spot crown name in the ticketing link, as shown in fig. 3a, an option of issuing a block chain electronic crown name ticket may be provided in an interface of scenic spot ticketing, the default may be set to issue, and of course, the user may click to enter a setting page and select not to issue the invoice temporarily, as shown in fig. 3b, and in addition, an introduction function for the block chain electronic crown name ticket may be provided, and by clicking a question mark icon on the right side of the block chain electronic crown name ticket, an introduction for the block chain electronic crown name ticket may be popped up, as shown in fig. 3 c.

202. The billing server sends billing data to a tax office server based on the billing request, so that the tax office server sends a notification message of allowing billing to the billing server after the billing data is verified, and writes the billing data into a block chain through the block chain network, wherein the billing data comprises the identification of the target scenic spot.

Specifically, after receiving the billing request, the billing server can generate billing data based on the billing request, and send the billing data to the tax office server for verification, and the tax office server can verify the billing qualification and the billing order information of the target scenic spot, and if the target scenic spot has the billing qualification and the billing order information is true and error-free, the billing data is verified to be passed, and a notification message allowing billing can be sent to the billing server, and the billing data is sent to the block chain network, so that the block chain network writes the billing data including the position information during billing into the block chain.

203. And when receiving the notification message allowing billing, the billing server generates an electronic invoice according to the billing data, wherein the electronic invoice comprises the identification of the target scenic spot.

Specifically, the billing server may generate an electronic invoice, i.e., a block chain electronic crown ticket, according to the billing data when receiving the notification message allowing billing sent by the tax office server.

In the embodiment of the invention, the billing server can receive a billing request submitted by a ticketing system server, the billing request carries the billing order information of a target scenic spot, the billing server sends billing data to the tax office server based on the billing request, so that the tax office server sends a notification message of allowing billing to the billing server after the billing data is checked to be passed, and writes the billing data comprising the identification of the target scenic spot into the block chain through the block chain network, the billing server generates an electronic invoice comprising the identification of the target scenic spot according to the billing data when receiving the notification message of allowing billing, thereby completing billing, and can write the scenic spot crown-name invoices through the block chain technology, thereby greatly reducing the cost of billing such invoices, improving the billing efficiency, and in addition, the writing of the invoice into the block chain can also improve the safety of the electronic invoice, effectively preventing the bill from being forged.

In , after receiving the billing request from the ticketing system server, the billing server may obtain the ticketing order information of the target scenic spot carried in the billing request and obtain the identifier of the target scenic spot, and then generate billing data for billing according to the identifier of the target scenic spot and the ticketing order information.

In , after the billing server generates the electronic invoice according to the billing data, the electronic invoice can be sent to the user terminal, where the electronic invoice includes an identifier of the target scenic spot, and the user terminal can collect the electronic invoice into a target application (e.g. applet or APP), so as to facilitate the keeping of the invoice , and the identifier of the target scenic spot can also be displayed in the electronic invoice.

Please refer to fig. 4, which is a flowchart illustrating another bill management methods based on the blockchain network provided by the bill management system shown in fig. 1a according to an embodiment of the present invention, where the bill management method based on the blockchain network according to the embodiment of the present invention is mainly described from the side of the tax bureau server , the blockchain network includes a plurality of nodes, and the bill management method based on the blockchain network includes the following steps:

401. the tax bureau server receives invoicing data sent by the invoicing server, the invoicing data is generated by the invoicing server based on the invoicing request after receiving the invoicing request submitted by the ticketing system server, and the invoicing request carries the information of the booking order of the target scenic spot.

402. And the tax bureau server verifies the invoicing data, and sends the invoicing data to the nodes in the block chain network after the invoicing data is verified, so that the nodes in the block chain network write the invoicing data into the block chain after the invoicing data is verified, wherein the invoicing data comprises the identification of the target scenic spot.

Specifically, after receiving the billing data sent by the billing server, the tax office server can query the billing qualification of the target scenic spot according to the identification of the target scenic spot and verify the billing order information, if the target scenic spot has the billing qualification and the billing order information is true and error-free, the tax office server confirms that the checking of the billing data is passed, and after the checking of the billing data is passed, the billing data is linked.

The billing data comprises the billing order information and the identification of the target scenic spot, and the specific implementation mode of chaining the billing data by the tax bureau server can be as follows: the tax office server may obtain an abstract (e.g., a hash value) of the ticket-buying order information of the target scenic spot, and send the abstract of the ticket-buying order information of the target scenic spot and an identifier of the target scenic spot as to-be-uplink data to a node in the blockchain network, where the node in the blockchain network writes the to-be-uplink data including the identifier of the target scenic spot into the blockchain after passing the common identification verification of the to-be-uplink data.

403. And after the billing data is verified, the tax bureau server sends a notification message allowing billing to the billing server so that the billing server generates an electronic invoice according to the billing data, wherein the electronic invoice comprises the identification of the target scenic spot.

Specifically, after the checking of the invoicing data by the tax bureau server is passed, a notification message allowing invoicing is sent to the invoicing server, so that the invoicing server generates an electronic invoice according to the invoicing data, wherein the electronic invoice comprises an identifier of a target scenic spot, and the invoicing server can automatically issue a scenic spot crown name invoice after the checking of the invoicing data by the tax bureau server is passed.

In the embodiment of the invention, the tax bureau server receives the invoicing data sent by the invoicing server, the invoicing data comprises the invoicing order information and the identification of the target scenic spot, after the checking of the billing data is passed, the billing data is sent to the nodes in the block chain network, after the common identification verification of the billing data is passed, the billing data including the identification of the target scenic spot is written into the block chain by the nodes in the block chain network, the tax bureau server can also send the notice message of allowing invoicing to the invoicing server after the invoicing data is checked to be passed, so that the invoicing server generates an electronic invoice according to the invoicing data to finish invoicing, thereby making scenic spot crown name invoices through the blockchain technology, greatly reducing the cost of making the invoices, moreover, the billing efficiency is improved, and in addition, the security of the electronic invoice can be improved by writing the invoice into the block chain, so that the bill counterfeiting is effectively prevented.

In , when checking an issued blockchain electronic crown ticket, the identifier of the scenic spot corresponding to the electronic issued ticket can be queried from the node of the blockchain network and compared with the identifier of the scenic spot displayed in the electronic invoice provided by the user to confirm whether is satisfied, and if is satisfied, the identifier of the scenic spot displayed by the electronic invoice is confirmed not to be tampered, so that the ticket can be checked by using the characteristic that data in the blockchain cannot be tampered, and step ensures the accuracy when checking the ticket.

Specifically, when the electronic invoice to be verified is verified, a reimbursement unit (for example, an enterprise) can query the corresponding identification of the scenic spot through a tax office server by using a query terminal, and specifically, the method can include that the tax office server receives a scenic spot identification query request sent by the query terminal for the electronic invoice to be verified, responds to the scenic spot identification query request, and can acquire the identification of the scenic spot corresponding to the electronic invoice to be verified from any nodes in a block chain network and then return the identification of the scenic spot corresponding to the electronic invoice to be verified to the query terminal.

In possible embodiments, the query terminal may also communicate with any nodes of the block chain network, and directly query the identifier of the scenic spot corresponding to the electronic invoice to be verified from the node without going through a tax bureau server, which is not limited in the embodiments of the present invention.

Please refer to fig. 5, which is a flowchart illustrating an embodiment of a method for managing tickets based on a blockchain network of types provided by a ticket management system shown in fig. 1a, where the method for managing tickets based on a blockchain network of the embodiment of the present invention is mainly described from multiple sides, such as a user terminal, a ticketing system server, a billing server, a tax bureau server, and nodes of the blockchain network, where the blockchain network includes multiple nodes, and the method for managing tickets based on a blockchain network includes the following steps:

501. the user terminal submits the operation of making a bill and confirming the order of buying the ticket for the target scenic spot to the ticketing system server.

502. And the ticketing system server submits a billing request to a billing server, wherein the billing request carries the ticket purchasing order information of the target scenic spot.

503. And the billing server generates billing data according to the identification of the target scenic spot and the billing order information.

504. And the billing server sends the billing data to a tax office server.

505. And the tax bureau server verifies the invoicing data.

506. And after the tax office server passes the verification of the invoicing data, sending the invoicing data to a node in the block chain network.

507. And after the node in the block chain network passes the consensus verification of the invoicing data, writing the invoicing data into the block chain.

508. And after the tax bureau server passes the verification of the invoicing data, sending a notification message of allowing invoicing to the invoicing server.

509. And the billing server generates an electronic invoice according to the billing data.

510. And the billing server sends the electronic invoice to the user terminal, wherein the electronic invoice comprises the identification of the target scenic spot.

511. And the user terminal collects the electronic invoice into a target application program.

The specific implementation of steps 501 to 511 can be referred to in the foregoing embodiments, and will not be described herein.

It should be noted that the sequence of steps 506 and 507 and steps 508 to 511 is not limited, and steps 508 to 511 may be executed first, and of course, steps 506 and 507 and steps 508 to 511 may also be executed synchronously.

Referring to fig. 6, it is a schematic structural diagram of bill management devices according to an embodiment of the present invention, where the bill management device according to an embodiment of the present invention includes:

a receiving module 601, configured to receive a billing request submitted by a ticketing system server, where the billing request carries ticket purchasing order information of a target scenic spot;

a sending module 602, configured to send invoicing data to a tax office server based on the invoicing request, so that the tax office server sends a notification message allowing invoicing to the ticket management apparatus after the invoicing data passes verification, and writes the invoicing data into a block chain through the block chain network, where the invoicing data includes an identifier of the target scenic spot;

a generating module 603, configured to generate an electronic invoice according to the invoicing data when the notification message allowing invoicing is received, where the electronic invoice includes the identifier of the target scenic spot.

Optionally, the sending module 602 is specifically configured to:

generating billing data according to the identification of the target scenic spot and the ticket purchasing order information;

and sending the billing data to a tax office server.

Optionally, the sending module 602 is further configured to send the electronic invoice to a user terminal, so that the user terminal collects the electronic invoice in a target application.

Optionally, the billing request is specifically submitted by the ticketing system server to the billing server after detecting a billing confirmation operation of the user terminal for the purchase order of the target scenic spot.

It should be noted that the functions of each functional module of the bill management apparatus according to the embodiment of the present invention can be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process of the bill management apparatus may refer to the related description of the foregoing method embodiment, which is not described herein again.

Please refer to fig. 7, which is a schematic structural diagram of another ticket management apparatuses according to an embodiment of the present invention, the ticket management apparatus according to the embodiment of the present invention is applied to a blockchain network, the blockchain network includes a plurality of nodes, and the apparatus includes:

a receiving module 701, configured to receive billing data sent by a billing server, where the billing data is generated by the billing server based on a billing request submitted by a ticketing system server after receiving the billing request, and the billing request carries information of a purchase order in a target scenic spot;

a checking module 702, configured to check the invoicing data;

a sending module 703, configured to send the invoicing data to a node in the blockchain network after the invoicing data is verified, so that the node in the blockchain network writes the invoicing data into a blockchain after the node in the blockchain network passes the consensus verification on the invoicing data, where the invoicing data includes an identifier of the target scenic spot;

the sending module 703 is further configured to send a notification message allowing billing to the billing server after the billing data is verified, so that the billing server generates an electronic invoice according to the billing data, where the electronic invoice includes the identifier of the target scenic spot.

Optionally, the apparatus further includes an obtaining module 704, where:

the receiving module 701 is further configured to receive a scenic spot identifier query request sent by a query terminal for an electronic invoice to be verified;

the obtaining module 704 is configured to respond to the scenic spot identifier query request, and obtain, from a node in the block chain network, an identifier of a scenic spot corresponding to the electronic invoice to be verified;

the sending module 703 is further configured to send, to the query terminal, an identifier of a scenic spot corresponding to the electronic invoice to be verified.

It should be noted that the functions of each functional module of the bill management apparatus according to the embodiment of the present invention can be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process of the bill management apparatus may refer to the related description of the foregoing method embodiment, which is not described herein again.

Please refer to fig. 8, which is a schematic structural diagram of servers according to an embodiment of the present invention, the server according to the embodiment of the present invention corresponds to the billing server described above, and includes a power supply module and the like, and includes a processor 801, a storage device 802, and a network interface 803, where data can be exchanged among the processor 801, the storage device 802, and the network interface 803.

The storage device 802 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage device 802 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), or the like; the storage means 802 may also comprise a combination of memories of the kind described above.

The processor 801 may be a Central Processing Unit (CPU), in embodiments, the processor 801 may also be a Graphics Processing Unit (GPU), the processor 801 may also be a combination of a CPU and a GPU, in embodiments, the storage device 802 is used to store program instructions, the processor 801 may call the program instructions to perform the following operations:

receiving a billing request submitted by a ticketing system server, wherein the billing request carries the information of a ticket purchasing order of a target scenic spot;

sending invoicing data to a tax office server based on the invoicing request, so that the tax office server sends a notification message of allowing invoicing to the invoicing server after the invoicing data passes verification, and writes the invoicing data into a block chain through the block chain network, wherein the invoicing data comprises the identification of the target scenic spot;

and when the notification message allowing invoicing is received, generating an electronic invoice according to the invoicing data, wherein the electronic invoice comprises the identification of the target scenic spot.

Optionally, the processor 801 is specifically configured to:

generating billing data according to the identification of the target scenic spot and the ticket purchasing order information;

and sending the billing data to a tax office server.

Optionally, the processor 801 is further configured to send the electronic invoice to a user terminal, so that the user terminal collects the electronic invoice in a target application program.

Optionally, the billing request is specifically submitted by the ticketing system server to the billing server after detecting a billing confirmation operation of the user terminal for the purchase order of the target scenic spot.

In a specific implementation, the processor 801, the storage device 802, and the network interface 803 described in this embodiment of the present invention may execute the implementation manners described in the related embodiments of the ticket management methods based on the blockchain network provided in fig. 2 in this embodiment of the present invention, and may also execute the implementation manners described in the related embodiments of the ticket management devices provided in fig. 6 in this embodiment of the present invention, which is not described herein again.

Fig. 9 is a schematic structural diagram of servers according to an embodiment of the present invention, where the server according to the embodiment of the present invention corresponds to the aforementioned tax office server, and includes a power supply module and the like, and includes a processor 901, a storage device 902, and a network interface 903, where data may be exchanged among the processor 901, the storage device 902, and the network interface 903.

The storage 902 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage 902 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), etc.; the storage 902 may also comprise a combination of memories of the kind described above.

The processor 901 may be a Central Processing Unit (CPU), in embodiments, the processor 901 may also be a Graphics processor 901 (GPU), in embodiments, the storage 902 is used to store program instructions, the processor 901 may call the program instructions to perform the following operations:

receiving billing data sent by a billing server, wherein the billing data is generated by the billing server based on a billing request submitted by a ticketing system server after the billing server receives the billing request, and the billing request carries the information of a purchase order of a target scenic spot;

checking the billing data, and sending the billing data to a node in the block chain network after the billing data passes the checking, so that the node in the block chain network writes the billing data into a block chain after the billing data passes the consensus verification, wherein the billing data comprises the identification of the target scenic spot;

and after the checking of the invoicing data is passed, sending a notification message for allowing invoicing to the invoicing server so that the invoicing server generates an electronic invoice according to the invoicing data, wherein the electronic invoice comprises the identification of the target scenic spot.

Optionally, the processor 901 is further configured to:

receiving a scenic spot identification query request sent by a query terminal aiming at an electronic invoice to be verified;

responding to the scenic spot identification query request, and acquiring the identification of the scenic spot corresponding to the electronic invoice to be verified from a node in the block chain network;

and sending the identification of the scenic spot corresponding to the electronic invoice to be verified to the query terminal.

In a specific implementation, the processor 901, the storage device 902, and the network interface 903 described in this embodiment of the present invention may execute the implementation described in the related embodiment of the ticket management method based on the blockchain network provided in fig. 4 in this embodiment of the present invention, or may execute the implementation described in the related embodiment of the ticket management device provided in fig. 7 in this embodiment of the present invention, which is not described herein again.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

It should be noted that, for simplicity of description, the aforementioned method embodiments are described as series of acts in combination, but those skilled in the art will recognize that the present invention is not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the invention.

For example, the above-described embodiments of the apparatus are merely illustrative, such as the above-described division of units, only logical function divisions, and other divisions may be possible in actual implementation, such as multiple units or components may be combined or integrated into another systems, or features may be omitted, or not executed, another point, and the shown or discussed coupling or direct coupling or communication connection between each other may be through interfaces, indirect coupling or communication connection of the apparatuses or units, and may be electrical or other forms.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in places, or may also be distributed on multiple network units.

In addition, the functional units in the embodiments of the present invention may be integrated into processing units, or each unit may exist alone physically, or two or more units are integrated into units.

Based on the understanding, the technical solution of the present invention, which is essentially or partially contributed to by the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in storage media, which includes several instructions for causing computer devices (which may be personal computers, servers, or network devices, etc., and may specifically be processors in the computer devices) to execute all or part of the steps of the methods according to the embodiments of the present invention.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:区块链的存储方法和区块链的节点

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!