CN110599269A - Bill generation method and device, computer readable storage medium and computer equipment - Google Patents

Bill generation method and device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN110599269A
CN110599269A CN201910872692.1A CN201910872692A CN110599269A CN 110599269 A CN110599269 A CN 110599269A CN 201910872692 A CN201910872692 A CN 201910872692A CN 110599269 A CN110599269 A CN 110599269A
Authority
CN
China
Prior art keywords
bill
transaction
information
block chain
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910872692.1A
Other languages
Chinese (zh)
Inventor
蔡弋戈
秦青
戴传兵
张建俊
王宗友
郭鹏
洪晓雯
张懿方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910872692.1A priority Critical patent/CN110599269A/en
Publication of CN110599269A publication Critical patent/CN110599269A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Landscapes

  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to a bill generation method, a bill generation device, a computer readable storage medium and a computer device, wherein the method comprises the following steps: acquiring a payment certificate generated after the user identification completes payment according to the graphic code; when a bill creating request initiated by the user identification based on the payment voucher is received, the bill creating request is sent to a block chain node corresponding to the user identification, and the bill creating request comprises a transaction identification; receiving the transaction information and the bill attribute information returned by the block chain node according to the transaction identification; acquiring bill creating information, and generating a target bill according to the bill creating information, the transaction information and the bill attribute information. The scheme provided by the application can realize the function of making out the bill immediately after the transaction, and improve the efficiency of making out the bill.

Description

Bill generation method and device, computer readable storage medium and computer equipment
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for generating a ticket, a computer-readable storage medium, and a computer device.
Background
The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and a distributed account book which is not falsifiable and counterfeitable is ensured in a cryptographic mode. The block chain is also often applied to invoicing and invoice storage, but at present, invoicing is generally communicated with an invoicing enterprise after being consumed by a user, then the invoicing enterprise invoices through a tax control disc, and the invoicing initiative in the whole process is mastered in an invoicing enterprise, so that the invoicing efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for generating a ticket, a computer-readable storage medium, and a computer device for solving the technical problem of inefficient billing.
A bill generation method is applied to a mobile terminal and comprises the following steps:
acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
when a bill creating request initiated by the user identification based on the payment voucher is received, the bill creating request is sent to a block chain node corresponding to the user identification, and the bill creating request comprises a transaction identification;
receiving the transaction information and the bill attribute information returned by the block chain node according to the transaction identification;
acquiring bill creating information, and generating a target bill according to the bill creating information, the transaction information and the bill attribute information.
A bill generation method is applied to a mobile terminal and comprises the following steps:
acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
when a bill creating request initiated by the user identification based on the payment voucher is received, sending the bill creating request to a block chain node corresponding to the user identification; the bill creating request comprises bill creating information and a transaction identifier;
receiving a target bill returned by the block chain node corresponding to the user identification in response to the bill creation request; the target bill is generated according to the bill creating information, the transaction information and the bill attribute information; the transaction information and the bill attribute information are obtained by inquiring according to the transaction identification.
A bill generation method is applied to a block chain node and comprises the following steps:
receiving a bill creating request submitted by a user identifier, wherein the bill creating request comprises a transaction identifier;
acquiring transaction information and bill attribute information corresponding to the transaction identification;
and sending the transaction information and the bill attribute information to the user identifier so that the user identifier obtains bill creation information, and generating a target bill according to the bill creation information, the transaction information and the bill attribute information.
A bill generating device applied to a mobile terminal comprises:
the first acquisition module is used for acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
a first sending module, configured to, when a ticket creation request initiated by the user identifier based on the payment credential is received, send the ticket creation request to a block chain node corresponding to the user identifier, where the ticket creation request includes a transaction identifier;
the first receiving module is used for receiving the transaction information and the note attribute information returned by the block link points according to the transaction identification;
and the generating module is used for acquiring bill creating information and generating a target bill according to the bill creating information, the transaction information and the bill attribute information.
A bill generating device applied to a mobile terminal comprises:
the second acquisition module is used for acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
the second sending module is used for sending the bill creating request to the block chain node corresponding to the user identifier when receiving the bill creating request initiated by the user identifier based on the payment voucher; the bill creating request comprises bill creating information and a transaction identifier;
the second receiving module is used for receiving a target bill returned by the block chain node corresponding to the user identifier in response to the bill creation request; the target bill is generated according to the bill creating information, the transaction information and the bill attribute information; the transaction information and the bill attribute information are obtained by inquiring according to the transaction identification.
A bill generation device applied to a blockchain node comprises:
the receiving module is used for receiving a bill creating request submitted by a user identifier, and the bill creating request comprises a transaction identifier;
the acquisition module is used for acquiring the transaction information and the bill attribute information corresponding to the transaction identification;
and the sending module is used for sending the transaction information and the bill attribute information to the user identifier so as to enable the user identifier to obtain bill creation information, and generating a target bill according to the bill creation information, the transaction information and the bill attribute information.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of any of the ticket generation methods.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of any of the ticket generation methods.
The bill generation method, the bill generation device, the computer readable storage medium and the computer equipment acquire the payment voucher generated after the user identification completes payment according to the graphic code, when a bill creating request initiated by the user identification based on the payment voucher is received, the bill creating request is sent to the block chain node corresponding to the user identification, the bill creating request comprises a transaction identifier, the receiving block chain node acquires bill creating information according to transaction information and bill attribute information returned by the transaction identifier, the target bill is generated according to the bill creating information, the transaction information and the bill attribute information, the user can directly initiate a request for creating the bill through the mobile terminal and obtain the target bill after payment is completed through the mobile terminal, a third-party agent is not needed, the function of making a bill as the transaction is realized, and the bill making efficiency is greatly improved.
Drawings
FIG. 1 is a diagram of an application environment of a ticket generation method in one embodiment;
FIG. 2 is a flow chart illustrating a ticket generating method applied to a mobile terminal according to an embodiment;
FIG. 3 is a flow diagram of steps for binding user identities to tile link points in one embodiment;
fig. 4 is a schematic flowchart of a ticket generating method applied to a mobile terminal in another embodiment;
FIG. 5 is a schematic flow diagram of a method for ticket generation as applied to a blockchain node in one embodiment;
FIG. 6 is an alternative block diagram in accordance with one embodiment;
FIG. 7 is a block diagram showing the structure of a ticket generating apparatus applied to a mobile terminal in one embodiment;
fig. 8 is a block diagram showing the construction of a ticket generating apparatus applied to a mobile terminal in another embodiment;
FIG. 9 is a block diagram showing the structure of a ticket generating apparatus applied to a blockchain node in another embodiment;
FIG. 10 is a block diagram showing a configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The system related to the embodiment of the present invention may be a distributed system formed by connecting a client, a plurality of nodes (any form of computing devices in an access network, such as a server and a mobile terminal, where the mobile terminal may specifically be at least one of a desktop terminal, a mobile phone, a tablet computer, a notebook computer, and the like) in a network communication form.
Taking a distributed system as an example of a blockchain system, referring To fig. 1, fig. 1 is an optional structural schematic diagram of a blockchain system To which a distributed system 100 provided by an embodiment of the present invention is applied, where the system is formed by a plurality of nodes 200 (computing devices in any form in an access network, such as servers and mobile terminals) and a client 300, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and a P2P protocol is an application layer protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a mobile terminal, can join to become a node, which includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 1, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the remaining electronic money in the electronic money address;
and 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
In this embodiment, a user logs in a client on a mobile terminal through a user identifier to interact with a block link point accessing the mobile terminal. The user logs in the client on the mobile terminal through the user identification, and after payment is completed according to the graphic code, a recording request can be sent to the block chain link point through the mobile terminal where the user identification is located, so that the block chain link point can issue the transaction information of the transaction to the block chain. For example, the transaction information may include transaction identification, transaction platform, transaction amount, transaction content, transaction participants, transaction time, and the like. Of course, the specific content of the transaction information is not limited in this embodiment. When the mobile terminal receives a bill creation request initiated by a user identifier based on the payment voucher, the bill creation request is sent to a block chain node corresponding to the user identifier, and the bill creation request comprises a transaction identifier. And the block link node acquires corresponding transaction information and bill attribute information according to the transaction identifier and returns the transaction information and the bill attribute information to the mobile terminal where the user identifier is located. And the mobile terminal where the user identification is located receives the transaction information and the bill attribute information returned by the block link points, acquires the bill creation information, and generates a target bill on the mobile terminal where the user identification is located according to the bill creation information, the transaction information and the bill attribute information. Further, the mobile terminal generates a target bill on the client corresponding to the user identification.
In one embodiment, as shown in FIG. 2, a ticket generation method is provided. The embodiment is mainly illustrated by applying the method to a mobile terminal. Referring to fig. 2, the bill generation method specifically includes the following steps:
step 202, obtaining a payment certificate generated after the user identification completes payment according to the graphic code.
The graphic code is the information of black and white graphic record data symbols distributed on a plane (in two-dimensional direction) according to a certain rule by using a certain specific geometric figure. In coding, the concept of '0' and '1' bit stream forming the internal logic basis of computer is used, several geometric shapes corresponding to binary system are used to represent literal numerical information, and the information is automatically read by image input equipment or photoelectric scanning equipment so as to implement automatic information processing. The graphic code can be a two-dimensional code or the like. The payment voucher refers to payment receipt information generated after the mobile terminal completes payment. The user identification may be an instant messaging account, an email account, a mobile communication number, or the like.
Specifically, a user logs in a client on the mobile terminal through a user identifier, the mobile terminal scans the graphic code offline, payment is completed according to the information of the graphic code, and payment receipt information is automatically generated after payment is completed. The mobile terminal may obtain the generated payment receipt information and store the payment receipt information.
In this embodiment, a user may log in a client on the mobile terminal through the user identifier, display the graphic code to other devices through the mobile terminal, and scan the graphic code of the mobile terminal by the other devices to complete payment.
And step 204, when a bill creation request initiated by the user identifier based on the payment certificate is received, sending the bill creation request to a block chain node corresponding to the user identifier, wherein the bill creation request comprises a transaction identifier.
The transaction identifier refers to a unique identifier of payment, such as a transaction number, an order number, and the like.
Specifically, the display page of the payment voucher displays payment information such as transaction identification and provides an entrance for ticket creation. The user logs in the client on the mobile terminal through the user identifier, can click the payment certificate to enter a display page of the payment certificate, and initiates a bill creation request by clicking a bill creation identifier of the display page. And when the mobile terminal receives a bill creation request initiated by the user identifier based on the payment certificate, acquiring a transaction identifier in the payment certificate, and determining a block chain node corresponding to the user identifier. Then, the mobile terminal sends the bill creating request containing the transaction identifier to the blockchain node corresponding to the user identifier through a bill creating interface with the blockchain node.
Step 206, receiving the transaction information and the bill attribute information returned by the block link point according to the transaction identifier.
The transaction information may include transaction identification, transaction platform, transaction amount, transaction content, transaction participant, transaction time, and the like, and the ticket attribute information refers to basic attributes such as a ticket code, a ticket number, and the like.
Specifically, after the block chain node corresponding to the user identifier receives the ticket creation request, transaction information and ticket attribute information are obtained according to the transaction identifier in the ticket creation request and returned to the mobile terminal. And the mobile terminal receives the transaction information and the bill attribute information returned by the block link point.
And step 208, acquiring the bill creating information, and generating the target bill according to the bill creating information, the transaction information and the bill attribute information.
The ticket creating information includes the information of the purchaser, such as the head-up information, taxpayer identification number, address, telephone, account opening row and account number of the purchaser.
Specifically, after receiving the transaction information and the bill attribute information returned by the block link point according to the transaction identifier, the mobile terminal inputs the transaction information and the bill attribute information into the corresponding position of the bill creation page. The user directly inputs bill creation information of the purchaser, such as the head-up, taxpayer identification number, address, telephone, account opening row and account number, and the like on the page. And the mobile terminal receives the bill creation information input by the user, and inputs the bill creation information into the corresponding position of the bill creation page to obtain the target bill.
In this embodiment, after the user inputs the head-up of the purchaser on the page, the mobile terminal may detect whether the tax payer identification number, address, phone, account opening line, account number, and other information corresponding to the head-up information exist. If the information exists, the tax payer identification number, address, telephone, account number and other information corresponding to the head-up information are directly acquired and input to the corresponding position of the bill creating page, and the target bill is obtained.
According to the bill creating method, the payment certificate generated after payment of the user identification is completed according to the graphic code is obtained, when a bill creating request initiated by the user identification based on the payment certificate is received, the bill creating request is sent to the block chain node corresponding to the user identification, the bill creating request comprises the transaction identification, the block chain node is received, the bill creating information is obtained according to the transaction information and the bill attribute information returned by the transaction identification, the target bill is generated according to the bill creating information, the transaction information and the bill attribute information, the user can directly generate the bill through the mobile terminal after payment is completed through the mobile terminal of the user, a third party is not needed, the function of transaction, namely billing is achieved, and the bill making efficiency is greatly improved.
In one embodiment, as shown in fig. 3, before sending the ticket creation request to the user to identify the corresponding block link point, the method further includes:
step 302, determine whether the user id has a bound blockchain node.
Specifically, each user identifier is bound with one block chain link point, when the user identifier initiates a bill creation request for the first time, the mobile terminal firstly helps the user identifier to bind an address on one block chain, and the address is the address of one block chain node, so that the mapping relationship is established between the user identifier and one block chain link point. Before sending the bill creation request to the block chain node corresponding to the user identifier, the mobile terminal detects whether the user identifier is bound with the address of the block chain node. And when the user identifier is bound with the address of a block chain node, sending the bill creating request to the address of the block chain node bound with the user identifier, thereby sending the bill creating request to the block chain node corresponding to the user identifier.
Step 304, when the ue id is not bound to a node of the blockchain, an idle blockchain node is obtained.
The idle blockchain node refers to a blockchain node which is not bound with any user identifier.
Specifically, when the mobile terminal detects that the user identifier is not bound with a blockchain node, the mobile terminal acquires idle blockchain link points from a blockchain platform, and selects any blockchain node from the idle blockchain link points. Then, the mobile terminal acquires the address of the selected blockchain node.
Step 306, the idle block link point is bound with the ue id.
Specifically, the mobile terminal binds the acquired address of the block link point with the user identifier to realize the binding of the block link point with the user identifier, and sends the bill creation request to the block link node bound with the user identifier after the binding is finished.
In this embodiment, whether the user identifier has a bound block link point is determined, when the user identifier does not bind a block link node, an idle block link point is obtained, and the idle block link point is bound with the user identifier, so that each user identifier is bound with one block link node, and thus the user identifier and the block link point are associated, and through the association, a user can generate a bill by himself through the mobile terminal.
In one embodiment, after the generating the target ticket, the method further comprises:
and uploading the target bill to a block chain node corresponding to the user identification.
Specifically, after the mobile terminal generates the target bill, the target bill is uploaded to the block chain node bound with the user identifier, so that the target bill is stored on the mobile terminal and the block chain node at the same time, and loss is prevented.
In one embodiment, when the user identifier is an instant messaging account, the method further comprises:
and storing the target ticket to a specific storage position of the instant messaging account.
Specifically, when the user identifier is an instant messaging account, the mobile terminal stores a target ticket in a storage space corresponding to the instant messaging account after generating the target ticket. Further, the mobile terminal stores the target ticket in a specific storage position in a storage space corresponding to the instant messaging account.
For example, the instant messaging account can be a WeChat account, a Paibao account, or the like. The WeChat account and the Paibao account respectively correspond to a storage space, and after a user generates a target bill at a WeChat client through the WeChat account, the target bill is added into a card package of the WeChat client. After the user generates the target bill at the payment treasure client through the payment treasure account, the target bill is added into the card packet of the payment treasure client, and the user can check and use the bill conveniently.
In one embodiment, when the user identifier is an instant messaging account, the method further comprises:
receiving a viewing request; and displaying the target bill on a corresponding interface of an instant messaging end corresponding to the instant messaging account according to the viewing request.
Specifically, when the user identifier is an instant messaging account, the mobile terminal may receive a request for a view ticket sent by the user through the instant messaging account. And the mobile terminal acquires a corresponding target bill from a specific storage position of the instant messaging account according to the viewing request, and displays the target bill on an interface of an instant messaging terminal corresponding to the instant messaging account, so that a user can view the target bill conveniently.
For example, the instant messaging account may be a wechat account, and the mobile terminal obtains a target ticket from a card package of the wechat according to a check ticket request of the user, and displays the target ticket on a card package interface of the wechat terminal.
In one embodiment, a ticket generating method is provided, which is applied to a mobile terminal and includes:
and step 402, acquiring a payment certificate generated after the user identification completes payment according to the graphic code.
Specifically, a user logs in a client on the mobile terminal through a user identifier, scans the graphic code through the mobile terminal offline, completes payment according to the information of the graphic code, and automatically generates payment receipt information after the payment is completed. The mobile terminal may obtain the generated payment receipt information and store the payment receipt information.
In this embodiment, the user may log in the client on the mobile terminal through the user identifier, display the graphic code to other devices through the mobile terminal, and scan the graphic code of the mobile terminal by the other devices to complete payment.
Step 404, when receiving a ticket creating request initiated by the user identifier based on the payment voucher, sending the ticket creating request to a block chain node corresponding to the user identifier; the ticket creation request includes ticket creation information and a transaction identification.
Specifically, the display page of the payment voucher displays payment information such as transaction identification and provides an entrance for ticket creation. The user logs in the mobile terminal through the user identifier, can click the payment certificate to enter a display page of the payment certificate, and initiates a bill creation request by clicking the bill creation identifier. And when the mobile terminal receives a bill creation request initiated by the user identification based on the payment certificate, acquiring the transaction identification in the payment certificate. And acquires ticket creation information such as a purchaser's new line, taxpayer identification number, address, phone call, account opening line, and account number, which is input by the user. Then, the mobile terminal determines the block chain node corresponding to the user identifier, and sends the bill creation request containing the transaction identifier and the bill creation information to the block chain node corresponding to the user identifier through an interface with the block chain node.
Step 406, receiving a target bill returned by the block link point corresponding to the user identifier in response to the bill creation request; the target bill is generated according to the bill creating information, the transaction information and the bill attribute information; the transaction information and the ticket attribute information are obtained according to the transaction identification query.
Specifically, after the block chain node corresponding to the user identifier receives the ticket creation request, the corresponding transaction information and the ticket attribute information are inquired and acquired according to the transaction identifier in the ticket creation request. And then, the block chain node generates a target bill according to the bill creating information, the transaction information and the bill attribute information in the bill creating request, and returns the generated target bill to the user identifier. And the mobile terminal receives the target bill returned by the block chain node corresponding to the user identification.
The bill generation method comprises the steps of obtaining a payment certificate generated after payment is completed by a user identifier according to a graphic code, sending a bill creation request to a block link point corresponding to the user identifier when the bill creation request initiated by the user identifier based on the payment certificate is received, wherein the bill creation request comprises bill creation information and a transaction identifier, receiving a target bill returned by the block link point corresponding to the user identifier in response to the bill creation request, the target bill is generated according to the bill creation information, the transaction information and bill attribute information, the transaction information and the bill attribute information are obtained according to query of the transaction identifier, and a user can directly initiate the bill creation request at a mobile terminal and directly receive the target bill generated at the corresponding block link point after payment is completed by the user through the mobile terminal, so that the function of issuing a bill after transaction is completed without the aid of a third party, greatly improving the efficiency of issuing bills.
In one embodiment, before sending the ticket creation request to the user to identify the corresponding block link point, the method further includes: determining whether a user identifier has a bound block chain node; when the user identification is not bound with the block chain node, acquiring an idle block chain node; and binding the idle block chain link points with the user identification.
Specifically, when the user identifier initiates a bill creation request for the first time, the mobile terminal first helps the user identifier to bind an address on a block chain, and the address is an address of a block chain node, so that a mapping relationship is established between the user identifier and a block chain node. Before the mobile terminal sends the bill creation request to the block chain node corresponding to the user identifier, whether the user identifier is bound with the address of the block chain node is detected. When the mobile terminal detects that the user identification is not bound with the block chain node, acquiring idle block chain link points from the block chain platform, and selecting any block chain node from the idle block chain link points. And the mobile terminal binds the acquired block chain link points with the user identification to realize the binding of the block chain link points with the user identification, and sends the bill creation request to the block chain nodes bound with the user identification after the binding is finished.
In one embodiment, after generating the target ticket, the method further comprises: and uploading the target bill to the block chain node corresponding to the user identifier. Specifically, after the mobile terminal generates the target bill, the target bill is uploaded to the block chain node bound with the user identifier, so that the target bill is stored on the mobile terminal and the block chain node at the same time, and loss is prevented.
In one embodiment, when the user identifier is an instant messaging account, the method further comprises: and storing the target bill to a specific storage position of the instant messaging account. Specifically, when the user identifier is an instant messaging account, the mobile terminal stores a target ticket in a storage space corresponding to the instant messaging account after generating the target ticket. Further, the mobile terminal stores the target ticket in a specific storage position in a storage space corresponding to the instant messaging account.
In one embodiment, when the user identifier is an instant messaging account, the method further comprises: receiving a viewing request; and displaying the target bill on a corresponding interface of the instant messaging end corresponding to the instant messaging account according to the viewing request.
Specifically, when the user identifier is an instant messaging account, the mobile terminal may receive a request for a view ticket sent by the user through the instant messaging account. And the mobile terminal acquires a corresponding target bill from a specific storage position of the instant messaging account according to the viewing request, and displays the target bill on an interface of an instant messaging terminal corresponding to the instant messaging account, so that a user can view the target bill conveniently.
In one embodiment, as shown in fig. 5, there is provided a method for generating a ticket, applied to a blockchain node, including:
step 502, receiving a ticket creation request submitted by a user identifier, wherein the ticket creation request comprises a transaction identifier.
Specifically, a user logs in the mobile terminal through the user identifier, the mobile terminal scans the graphic code offline, payment is completed according to the information of the graphic code, and payment receipt information is automatically generated after payment is completed. The mobile terminal may obtain the generated payment receipt information and store the payment receipt information.
In this embodiment, a user may log in to the mobile terminal through the user identifier, display the graphic code to other devices through the mobile terminal, and scan the graphic code of the mobile terminal by the other devices to complete payment.
Then, the user identification initiates a bill creation request based on the payment certificate, and the mobile terminal sends the bill creation request to the blockchain node corresponding to the user identification. The block chain node receives a bill creation request submitted by the user identifier and acquires a transaction identifier from the bill creation request.
Step 504, obtaining the transaction information and the ticket attribute information corresponding to the transaction identifier.
Specifically, the block link node queries corresponding transaction information according to the transaction identifier, and when the transaction information corresponding to the transaction identifier is queried, the transaction information can be acquired, and the bill attribute information can be acquired.
Step 506, the transaction information and the ticket attribute information are sent to the user identifier, so that the user identifier obtains ticket creation information, and a target ticket is generated according to the ticket creation information, the transaction information and the ticket attribute information.
Specifically, the block link point sends the acquired transaction information and the ticket attribute information to the user identifier, so that the user identifier acquires ticket creation information, and generates a target ticket according to the ticket creation information, the transaction information and the ticket attribute information.
The bill generation method comprises the steps of receiving a bill creation request submitted by a user identifier, wherein the bill creation request comprises a transaction identifier, obtaining transaction information and bill attribute information corresponding to the transaction identifier, sending the transaction information and the bill attribute information to the user identifier so that the user identifier obtains bill creation information, and generating a target bill according to the bill creation information, the transaction information and the bill attribute information. In the method for generating the ticket in the embodiment, the transaction information and the ticket attribute information can be acquired from the block chain node corresponding to the user identifier through the ticket creation request, and the association between the user mobile terminal and the block chain node is established. The invoice is generated at the mobile terminal, so that the user can directly generate the invoice through the mobile terminal after completing payment through the mobile terminal, the function of issuing the invoice as transaction is realized, and the efficiency of issuing the invoice is greatly improved.
In one embodiment, the obtaining of the transaction information and the ticket attribute information corresponding to the transaction identifier includes: determining whether a transaction corresponding to the transaction identifier exists on a block chain node corresponding to the user identifier; and when the transaction corresponding to the transaction identifier exists on the block chain node, acquiring transaction information and bill attribute information corresponding to the transaction.
Specifically, the blockchain node stores therein transaction information corresponding to the transaction identifier. After receiving a bill creation request submitted by a user identifier, the block chain node acquires a transaction identifier from the bill creation request. And inquiring whether the transaction corresponding to the transaction identifier exists on the block chain node, judging that the transaction identifier is invalid when the transaction corresponding to the transaction identifier is not inquired on the block chain node, and returning error information to the mobile terminal where the corresponding user identifier is located. When the transaction corresponding to the transaction identifier is inquired on the blockchain node, the transaction identifier is judged to be valid, and then the transaction information corresponding to the transaction is acquired. And then, after determining that the transaction corresponding to the transaction identifier exists, the blockchain node can acquire the bill attribute information such as the bill code, the bill number and the like so as to send the transaction information and the bill attribute information to the mobile terminal where the user identifier is located. And determining the validity of the transaction identifier, and acquiring attribute information such as transaction information, bill codes, bill numbers and the like only when corresponding transactions exist so as to ensure the authenticity of the bill information.
In one embodiment, when there is a transaction corresponding to the transaction identifier on the blockchain node, acquiring transaction information and ticket attribute information corresponding to the transaction, including:
determining a ticket status for the transaction; and when the bill state of the transaction is the state that the bill is not created, acquiring the transaction information and the bill attribute information corresponding to the transaction.
Wherein, the bill state refers to the state of the transaction of the non-created bill and the created bill.
Specifically, when there is a transaction corresponding to the transaction identifier on the blockchain node, the blockchain node detects whether the transaction creates a ticket. When the bill state of the transaction is the state that the bill is not created, the block chain node acquires the transaction information corresponding to the transaction, and then, the block chain node acquires the bill code and the bill number to generate the bill attribute information containing the bill code and the bill number.
In this embodiment, when the block link point detects that the ticket status of the transaction is the created ticket, the ticket corresponding to the transaction identifier is acquired, and the ticket is sent to the mobile terminal where the user identifier corresponding to the block link point is located.
In the embodiment, by determining the bill state of the transaction corresponding to the transaction identifier, when the bill state of the transaction is the non-created bill, the transaction information and the bill attribute information corresponding to the transaction are acquired, so that repeated creation of bills can be avoided, and the authenticity and the validity of the generated target bill are ensured.
In one embodiment, a method for generating a bill is provided, which is applied to a blockchain node, and includes:
receiving a bill creating request initiated by a user identifier based on a payment certificate, wherein the bill creating request comprises bill creating information and a transaction identifier, and the payment certificate is generated after the user identifier completes payment according to a graphic code; acquiring corresponding transaction information and bill attribute information according to the transaction identification; generating a target bill according to the bill creating information, the transaction information and the bill attribute information; the target ticket is returned to the user identification.
Specifically, the block chain node receives a bill creation request initiated by the corresponding user identifier based on the payment certificate, acquires a transaction identifier from the bill creation request, and acquires transaction information corresponding to the transaction identifier from the block according to the transaction identifier. And acquiring bill attribute information according to the transaction identification, wherein the bill attribute information comprises basic attributes such as a bill code, a bill number and the like. And then, the block chain node can acquire the bill creation information from the bill creation information, generate a target bill according to the bill creation information, the transaction information and the bill attribute information, and send the generated target bill to the mobile terminal where the user identifier bound with the block chain link point is located.
According to the bill generation method, the bill creation request initiated by the user identification based on the payment certificate is received, the corresponding transaction information and the bill attribute information are obtained according to the transaction identification in the bill creation request, the target bill is generated according to the bill creation information, the transaction information and the bill attribute information and is returned to the user identification, so that the target bill can be directly generated on the block link node corresponding to the user identification according to the bill creation request initiated by the user based on the payment certificate, the user can apply for and generate the bill by himself, a third party agent is not needed, the function of making a bill as a transaction is realized, and the bill making efficiency is greatly improved.
In one embodiment, the ticket creation information may include the head-up information of the ticket and the transaction information of the transaction corresponding to the transaction identifier, the transaction information is input by the user, the blockchain node compares the transaction information included in the ticket creation information with the transaction information (corresponding to the transaction identifier) stored on the blockchain node after receiving the ticket creation request, and when the comparison result is that the two are consistent, the ticket is created for the transaction corresponding to the transaction identifier directly according to the transaction information and the head-up information included in the ticket creation information.
For example, after receiving a ticket creating request, a blockchain node reads transaction information contained in the ticket creating information and calculates a first hash value, compares the first hash value with a second hash value of the transaction information (corresponding to a transaction identifier) stored on the blockchain node, and when the first hash value is equal to the second hash value, determines that the transaction information input by a user is the transaction information of the transaction corresponding to the transaction identifier, and then directly creates a ticket for the transaction corresponding to the transaction identifier according to the transaction information input by the user and the header information without reading the transaction information of the transaction corresponding to the transaction identifier stored on the blockchain, thereby ensuring that the transaction information is correct.
Referring to fig. 6, fig. 6 is an optional schematic diagram of a Block Structure (Block Structure) provided in this embodiment, each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
In one embodiment, there is provided a ticket generation method including:
and the mobile terminal acquires a payment certificate generated after the user identification completes payment according to the graphic code.
And sending a recording request to the corresponding block chain node by the mobile terminal where the user identification is located so that the block chain node can issue the transaction information of the transaction to the block chain.
And the block chain link point corresponding to the user identification stores the transaction information of the transaction and issues the transaction information to the block chain.
When receiving a bill creation request initiated by the user identification based on the payment voucher, the mobile terminal determines whether the user identification has a bound blockchain node.
And when the user identification is not bound with the block chain node, the mobile terminal acquires the idle block chain node.
And the mobile terminal binds the idle block chain link point with the user identifier.
And the mobile terminal sends the bill creation request to the blockchain node corresponding to the user identification, wherein the bill creation request comprises the transaction identification.
The block chain node receives a ticket creation request submitted by a user identification, the ticket creation request including a transaction identification.
And the block chain link point determines whether a transaction corresponding to the transaction identifier exists on the block chain node corresponding to the user identifier.
And when the transaction corresponding to the transaction identification exists on the blockchain node, determining the bill state of the transaction.
And when the bill state of the transaction is the state that the bill is not created, the block link points acquire the transaction information and the bill attribute information corresponding to the transaction and return the transaction information and the bill attribute information to the mobile terminal where the user identifier is located.
And the mobile terminal receives the transaction information and the bill attribute information returned by the block link point according to the transaction identification.
The mobile terminal acquires the bill creating information and generates a target bill according to the bill creating information, the transaction information and the bill attribute information.
And the mobile terminal uploads the target bill to the block chain node corresponding to the user identification.
And the block chain node receives the target bill uploaded by the mobile terminal where the user identification is located, and stores the target bill in the block.
And when the user identification is the instant messaging account, the mobile terminal stores the target bill to a specific storage position of the instant messaging account.
The mobile terminal receives the viewing request. And displaying the target bill on a corresponding interface of an instant messaging end corresponding to the instant messaging account according to the viewing request.
The bill generation method applied to the mobile terminal obtains the payment certificate generated after the user identification completes payment according to the graphic code, determines whether the user identification is bound with the block link point or not when a bill creation request initiated by the user identification based on the payment certificate is received, and firstly binds the user identification with the block link point when the user identification is not bound so as to establish the association between the user identification and the block link point. And then sending the bill creation request to the block chain node corresponding to the user identifier so as to receive the transaction information and the bill attribute information returned by the block chain node. And generating a target bill according to the bill creating information, the transaction information and the bill attribute information, so that a user can directly generate an invoice at the mobile terminal after completing payment through the mobile terminal, and the function of transaction, namely invoicing is realized. And after the target invoice is obtained, uploading the target bill to the block link point corresponding to the user identifier for storage so as to avoid the loss of the target bill. And storing the target bill to a specific storage position of the instant messaging account. And when receiving a viewing request of a user, displaying the target bill on a corresponding interface of the instant messaging end corresponding to the instant messaging account, so that the user can conveniently view and use the target bill. By the bill generating method in the embodiment, the third-party billing enterprise billing bills are not required, so that the billing efficiency is greatly improved.
In one embodiment, there is provided a ticket generation method including:
and the mobile terminal acquires a payment certificate generated after the user identification completes payment according to the graphic code.
And the mobile terminal sends a recording request to the corresponding block chain node by the mobile terminal where the user identification is located so that the block chain node can issue the transaction information of the transaction to the block chain.
And the block chain link point corresponding to the user identification stores the transaction information of the transaction and issues the transaction information to the block chain.
When receiving a bill creation request initiated by the user identification based on the payment voucher, the mobile terminal determines whether the user identification has a bound blockchain node.
And when the user identification is not bound with the block chain node, the mobile terminal acquires the idle block chain node.
And the mobile terminal binds the idle block chain link point with the user identifier.
And the mobile terminal sends the bill creation request to the block chain node corresponding to the user identifier, wherein the bill creation request comprises bill creation information and a transaction identifier.
And the block chain node corresponding to the user identification receives a bill creation request initiated by the user identification based on the payment certificate.
And the block chain node determines whether a transaction corresponding to the transaction identifier in the bill creation request exists on the block chain node corresponding to the user identifier.
And when the transaction corresponding to the transaction identification exists on the blockchain node, determining the bill state of the transaction.
And when the bill state of the transaction is the state that the bill is not created, the block link points acquire the transaction information and the bill attribute information corresponding to the transaction.
And the block chain link point generates a target bill according to the bill creating information, the transaction information and the bill attribute information, and returns the target bill to the user identifier.
And the mobile terminal receives a target bill returned by the block chain node corresponding to the user identification in response to the bill creation request.
And when the user identification is the instant messaging account, the mobile terminal stores the target bill to a specific storage position of the instant messaging account.
The mobile terminal receives the viewing request. And displaying the target bill on a corresponding interface of an instant messaging end corresponding to the instant messaging account according to the viewing request.
The bill generation method includes the steps of obtaining a payment certificate generated after payment of a user identifier is completed according to a graphic code, determining whether the user identifier is bound with the block chain link point or not when a bill creation request initiated by the user identifier based on the payment certificate is received, and binding the user identifier with the block chain link point when the user identifier is not bound so as to establish association between the user identifier and the block chain link point. And then sending the bill creation request to the block chain node corresponding to the user identifier. The blockchain node verifies whether the transaction identification in the ticket creation request is valid and whether the transaction has created a ticket. And when the transaction corresponding to the transaction identification is effective and the bill is not created, acquiring the transaction information corresponding to the transaction identification, acquiring the attribute information of the bill, generating a target bill according to the bill creation information, the transaction information and the attribute information of the bill, and returning the target bill to the mobile terminal where the user identification is located. The user can directly apply for creating the bill at the mobile terminal after completing payment through the mobile terminal, and the function of making the bill as transaction is realized. And storing the target bill to a specific storage position of the instant messaging account. And when receiving a viewing request of a user, displaying the target bill on a corresponding interface of the instant messaging end corresponding to the instant messaging account, so that the user can conveniently view and use the target bill. By the bill generating method in the embodiment, the third-party billing enterprise billing bills are not required, so that the billing efficiency is greatly improved.
Fig. 2-5 are schematic flow diagrams of a ticket generation method in one embodiment. It should be understood that although the various steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a ticket generating apparatus applied to a mobile terminal, the apparatus including: a first obtaining module 702, a first sending module 704, a first receiving module 706, and a generating module 708. Wherein the content of the first and second substances,
the first obtaining module 702 is configured to obtain a payment credential generated after the user identifier completes payment according to the graphic code.
A first sending module 704, configured to, when a ticket creation request initiated by the user identifier based on the payment credential is received, send the ticket creation request to a blockchain node corresponding to the user identifier, where the ticket creation request includes a transaction identifier.
A first receiving module 706, configured to receive the transaction information and the ticket attribute information returned by the block node according to the transaction identifier.
The generating module 708 is configured to obtain the ticket creating information, and generate the target ticket according to the ticket creating information, the transaction information, and the ticket attribute information.
The bill creating device obtains the payment certificate generated after the user identification completes payment according to the graphic code, when a bill creating request initiated by the user identification based on the payment certificate is received, the bill creating request is sent to the block chain node corresponding to the user identification, the bill creating request comprises a transaction identification, the block chain node receives transaction information and bill attribute information returned by the transaction identification, bill creating information is obtained, a target bill is generated according to the bill creating information, the transaction information and the bill attribute information, and a user can directly generate an invoice through a mobile terminal after completing payment through the mobile terminal of the user, so that the function of transaction, namely invoicing is realized, and the bill making efficiency is greatly improved.
In one embodiment, the first sending module 704 is further configured to determine whether the user identifier has a bundled blockchain node; when the user identification is not bound with the block chain node, acquiring an idle block chain node; and binding the idle block chain link point with the user identifier. Whether the user identification has the bound block chain link point or not is determined, when the user identification does not bind the block chain link node, an idle block chain link point is obtained, the idle block chain link point is bound with the user identification, each user identification is bound with one block chain node, and therefore the user identification and the block chain link point are associated, and the user can generate a bill through the mobile terminal.
In one embodiment, the ticket generating apparatus further comprises: and an uploading module. And the uploading module is used for uploading the target bill to the block chain node corresponding to the user identifier. And after the target bill is generated, uploading the target bill to the block chain node bound with the user identifier so as to store the target bill on the mobile terminal and the block chain node simultaneously and prevent the target bill from being lost.
In one embodiment, the ticket generating apparatus further comprises: and a storage module. The storage module is used for storing the target bill to a specific storage position of the instant messaging account. The target bill is stored in a specific storage position, so that the target bill is convenient for a user to view and use.
In one embodiment, the ticket generating apparatus further comprises: and a display module. The display module is used for receiving a viewing request; and displaying the target bill on a corresponding interface of an instant messaging end corresponding to the instant messaging account according to the viewing request.
In one embodiment, as shown in fig. 8, there is provided a ticket generating apparatus applied to a mobile terminal, the apparatus including: a second obtaining module 802, and a second receiving module 806. Wherein
A second obtaining module 802, configured to obtain a payment credential generated after the user identifier completes payment according to the graphic code.
A second sending module 804, configured to, when receiving a ticket creation request initiated by the user identifier based on the payment credential, send the ticket creation request to a block chain node corresponding to the user identifier; the ticket creation request includes ticket creation information and a transaction identification.
A second receiving module 806, configured to receive a target ticket returned by the block link point corresponding to the user identifier in response to the ticket creation request; the target bill is generated according to the bill creating information, the transaction information and the bill attribute information; the transaction information and the ticket attribute information are obtained according to the transaction identification query.
The bill generating device acquires a payment certificate generated after payment is completed by a user identifier according to a graphic code, when a bill creating request initiated by the user identifier based on the payment certificate is received, the bill creating request is sent to a block link point corresponding to the user identifier, the bill creating request comprises bill creating information and a transaction identifier, a target bill returned by the block link point corresponding to the user identifier in response to the bill creating request is received, the target bill is generated according to the bill creating information, the transaction information and the bill attribute information are obtained according to query of the transaction identifier, the user can directly initiate the bill creating request at a mobile terminal after payment is completed by the user through the mobile terminal, and directly receive the target bill generated at the corresponding block link point, and the function of issuing a bill after transaction is completed without the help of a third party is realized, greatly improving the efficiency of issuing bills.
In one embodiment, as shown in fig. 9, there is provided a ticket generating apparatus applied to a blockchain node, including:
a receiving module 902 is configured to receive a ticket creation request submitted by a user identifier, where the ticket creation request includes a transaction identifier.
The obtaining module 904 is configured to obtain the transaction information and the ticket attribute information corresponding to the transaction identifier.
A sending module 906, configured to send the transaction information and the ticket attribute information to the user identifier, so that the user identifier obtains ticket creation information, and generates a target ticket according to the ticket creation information, the transaction information, and the ticket attribute information.
The bill generation device receives a bill creation request submitted by a user identifier, wherein the bill creation request comprises a transaction identifier, acquires transaction information and bill attribute information corresponding to the transaction identifier, sends the transaction information and the bill attribute information to the user identifier so that the user identifier acquires the bill creation information, and generates a target bill according to the bill creation information, the transaction information and the bill attribute information. In the method for generating the ticket in the embodiment, the transaction information and the ticket attribute information can be acquired from the block chain node corresponding to the user identifier through the ticket creation request, and the association between the user mobile terminal and the block chain node is established. The invoice is generated at the mobile terminal, so that the user can directly generate the invoice through the mobile terminal after completing payment through the mobile terminal, the function of issuing the invoice as transaction is realized, and the efficiency of issuing the invoice is greatly improved.
In one embodiment, the obtaining module 904 is further configured to: determining whether a transaction corresponding to the transaction identifier exists on a block chain node corresponding to the user identifier; and when the transaction corresponding to the transaction identifier exists on the block chain node, acquiring transaction information and bill attribute information corresponding to the transaction. And determining the validity of the transaction identifier, and acquiring attribute information such as transaction information, bill codes, bill numbers and the like only when corresponding transactions exist so as to ensure the authenticity of the bill information.
In one embodiment, the obtaining module 904 is further configured to: determining a ticket status for the transaction; and when the bill state of the transaction is the state that the bill is not created, acquiring the transaction information and the bill attribute information corresponding to the transaction. By determining the bill state of the transaction corresponding to the transaction identifier, when the bill state of the transaction is the non-created bill, the transaction information and the bill attribute information corresponding to the transaction are acquired, so that repeated bill creation can be avoided, and the authenticity and the validity of the generated target bill are ensured.
FIG. 10 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a mobile terminal. As shown in fig. 10, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the ticket generating method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform the ticket generating method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the ticket generating apparatus provided herein may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 10. The memory of the computer device may store therein various program modules constituting the ticket generating apparatus, such as a first acquiring module 702, a first transmitting module 704, a first receiving module 706, and a generating module 708 shown in fig. 7. The program modules constitute computer programs that cause a processor to execute the steps in the ticket generating method according to the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 10 may perform the step of acquiring the payment credential generated after the user identifier completes payment according to the graphic code through the first acquisition module 702 in the ticket generating apparatus shown in fig. 7. The computer device may perform, through the first sending module 704, the step of sending a ticket creation request to a blockchain node corresponding to the user identity when receiving the ticket creation request initiated by the user identity based on the payment credential, the ticket creation request including a transaction identity. The computer device may perform the step of receiving the transaction information and the ticket attribute information returned by the block node according to the transaction identifier through the first receiving module 706. The computer device may perform the steps of obtaining ticket creation information, generating a target ticket based on the ticket creation information, the transaction information, and the ticket attribute information via the generation module 708.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described ticket generation method. Here, the steps of the ticket generating method may be steps in the ticket generating methods of the above-described respective embodiments.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the above-described ticket generation method. Here, the steps of the ticket generating method may be steps in the ticket generating methods of the above-described respective embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A bill generation method is applied to a mobile terminal and comprises the following steps:
acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
when a bill creating request initiated by the user identification based on the payment voucher is received, the bill creating request is sent to a block chain node corresponding to the user identification, and the bill creating request comprises a transaction identification;
receiving the transaction information and the bill attribute information returned by the block chain node according to the transaction identification;
acquiring bill creating information, and generating a target bill according to the bill creating information, the transaction information and the bill attribute information.
2. The method of claim 1, further comprising, prior to said sending the ticket creation request to the user identification corresponding block link point:
determining whether the user identification has a bound blockchain node;
when the user identification is not bound with the block chain node, acquiring an idle block chain node;
and binding the idle block chain link point with the user identifier.
3. The method of claim 1, wherein after the generating the target ticket, the method further comprises:
and uploading the target bill to a block chain node corresponding to the user identifier.
4. The method of any one of claims 1 to 3, wherein when the user identification is an instant messaging account, the method further comprises:
storing the target bill to a specific storage position of the instant messaging account;
receiving a viewing request;
and displaying the target bill on a corresponding interface of an instant messaging end corresponding to the instant messaging account according to the viewing request.
5. A bill generation method is applied to a mobile terminal and comprises the following steps:
acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
when a bill creating request initiated by the user identification based on the payment voucher is received, sending the bill creating request to a block chain node corresponding to the user identification; the bill creating request comprises bill creating information and a transaction identifier;
receiving a target bill returned by the block chain node corresponding to the user identification in response to the bill creation request; the target bill is generated according to the bill creating information, the transaction information and the bill attribute information; the transaction information and the bill attribute information are obtained by inquiring according to the transaction identification.
6. A bill generation method is applied to a block chain node and comprises the following steps:
receiving a bill creating request submitted by a user identifier, wherein the bill creating request comprises a transaction identifier;
acquiring transaction information and bill attribute information corresponding to the transaction identification;
and sending the transaction information and the bill attribute information to the user identifier so that the user identifier obtains bill creation information, and generating a target bill according to the bill creation information, the transaction information and the bill attribute information.
7. The method of claim 6, wherein the obtaining transaction information and ticket attribute information corresponding to the transaction identifier comprises:
determining whether a transaction corresponding to the transaction identifier exists on a blockchain node corresponding to the user identifier;
and when the transaction corresponding to the transaction identification exists on the block chain node, acquiring transaction information and bill attribute information corresponding to the transaction.
8. The method according to claim 7, wherein when there is a transaction corresponding to the transaction identifier on the blockchain node, acquiring transaction information and ticket attribute information corresponding to the transaction comprises:
determining a ticket status of the transaction;
and when the bill state of the transaction is the state that the bill is not created, acquiring the transaction information and the bill attribute information corresponding to the transaction.
9. A bill generating apparatus applied to a mobile terminal, the apparatus comprising:
the first acquisition module is used for acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
a first sending module, configured to, when a ticket creation request initiated by the user identifier based on the payment credential is received, send the ticket creation request to a block chain node corresponding to the user identifier, where the ticket creation request includes a transaction identifier;
the first receiving module is used for receiving the transaction information and the note attribute information returned by the block link points according to the transaction identification;
and the generating module is used for acquiring bill creating information and generating a target bill according to the bill creating information, the transaction information and the bill attribute information.
10. A bill generating apparatus applied to a mobile terminal, the apparatus comprising:
the second acquisition module is used for acquiring a payment certificate generated after the user identification completes payment according to the graphic code;
the second sending module is used for sending the bill creating request to the block chain node corresponding to the user identifier when receiving the bill creating request initiated by the user identifier based on the payment voucher; the bill creating request comprises bill creating information and a transaction identifier;
the second receiving module is used for receiving a target bill returned by the block chain node corresponding to the user identifier in response to the bill creation request; the target bill is generated according to the bill creating information, the transaction information and the bill attribute information; the transaction information and the bill attribute information are obtained by inquiring according to the transaction identification.
11. A bill generation device applied to a blockchain node comprises:
the receiving module is used for receiving a bill creating request submitted by a user identifier, and the bill creating request comprises a transaction identifier;
the acquisition module is used for acquiring the transaction information and the bill attribute information corresponding to the transaction identification;
and the sending module is used for sending the transaction information and the bill attribute information to the user identifier so as to enable the user identifier to obtain bill creation information, and generating a target bill according to the bill creation information, the transaction information and the bill attribute information.
12. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
13. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
CN201910872692.1A 2019-09-16 2019-09-16 Bill generation method and device, computer readable storage medium and computer equipment Pending CN110599269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872692.1A CN110599269A (en) 2019-09-16 2019-09-16 Bill generation method and device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872692.1A CN110599269A (en) 2019-09-16 2019-09-16 Bill generation method and device, computer readable storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN110599269A true CN110599269A (en) 2019-12-20

Family

ID=68859907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872692.1A Pending CN110599269A (en) 2019-09-16 2019-09-16 Bill generation method and device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110599269A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461799A (en) * 2020-03-31 2020-07-28 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and medium
CN111507815A (en) * 2020-04-20 2020-08-07 腾讯科技(深圳)有限公司 Block chain based information acquisition method, device, equipment and storage medium
CN112837063A (en) * 2021-03-30 2021-05-25 中国工商银行股份有限公司 Block chain-based electronic receipt storage method and device
WO2022247968A1 (en) * 2021-05-28 2022-12-01 支付宝(杭州)信息技术有限公司 Data processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109035019A (en) * 2018-07-11 2018-12-18 平安科技(深圳)有限公司 Bill business method, system, computer equipment and storage medium
CN110046945A (en) * 2018-12-13 2019-07-23 阿里巴巴集团控股有限公司 Invoice creation method and device, electronic equipment based on block chain
CN110060112A (en) * 2018-12-13 2019-07-26 阿里巴巴集团控股有限公司 Invoice creation method and device, electronic equipment based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109035019A (en) * 2018-07-11 2018-12-18 平安科技(深圳)有限公司 Bill business method, system, computer equipment and storage medium
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN110046945A (en) * 2018-12-13 2019-07-23 阿里巴巴集团控股有限公司 Invoice creation method and device, electronic equipment based on block chain
CN110060112A (en) * 2018-12-13 2019-07-26 阿里巴巴集团控股有限公司 Invoice creation method and device, electronic equipment based on block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461799A (en) * 2020-03-31 2020-07-28 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and medium
CN111461799B (en) * 2020-03-31 2021-05-28 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and medium
CN111507815A (en) * 2020-04-20 2020-08-07 腾讯科技(深圳)有限公司 Block chain based information acquisition method, device, equipment and storage medium
CN112837063A (en) * 2021-03-30 2021-05-25 中国工商银行股份有限公司 Block chain-based electronic receipt storage method and device
WO2022247968A1 (en) * 2021-05-28 2022-12-01 支付宝(杭州)信息技术有限公司 Data processing

Similar Documents

Publication Publication Date Title
CN109255084B (en) Electronic bill query method, device, storage medium and computer equipment
CN110599269A (en) Bill generation method and device, computer readable storage medium and computer equipment
KR101795695B1 (en) Method for providing archiving service and verification service of data transceived via messenger service and server using the same
CN110599266B (en) Electronic bill data processing method and device, computer equipment and storage medium
CN110430162B (en) Method and device for sending authenticable message in cross-link mode
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
KR101795696B1 (en) Method for providing archiving and verification services of data transceived via messenger service and server using the same
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN109087024B (en) Data processing method, device, storage medium and equipment for electronic bill
CN109191272B (en) Data processing method, device, storage medium and equipment for electronic bill
CN112003858B (en) Block chain-based platform docking method, electronic device and storage medium
KR20210128454A (en) Computer-implemented systems and methods for implementing transfers via blockchain networks.
CN111738725B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN110543510B (en) Bill data processing method, device, storage medium and computer equipment
CN110839029A (en) Micro-service registration method and device
CN112150149A (en) Data tracing method and device based on block chain, computer equipment and storage medium
WO2021082340A1 (en) Data processing method, apparatus, system, and storage medium
CN111324661A (en) User cooperation method, device and medium based on block chain
WO2018192430A1 (en) Bidding service receipt processing method and device, computer device and storage medium
CN110910000A (en) Block chain asset management method and device
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CN112287311A (en) Service implementation method and device based on block chain
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CA2970301C (en) Improved network for onboarding and delivery of electronic payments to payees
CN110599268A (en) Electronic bill generating method, electronic bill generating device, computer equipment and storage medium

Legal Events

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