CN111144889B - Block chain-based point settlement method and block chain accounting system - Google Patents

Block chain-based point settlement method and block chain accounting system Download PDF

Info

Publication number
CN111144889B
CN111144889B CN201911361999.1A CN201911361999A CN111144889B CN 111144889 B CN111144889 B CN 111144889B CN 201911361999 A CN201911361999 A CN 201911361999A CN 111144889 B CN111144889 B CN 111144889B
Authority
CN
China
Prior art keywords
settlement
integral
point
blockchain
instruction
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.)
Active
Application number
CN201911361999.1A
Other languages
Chinese (zh)
Other versions
CN111144889A (en
Inventor
林铭
寮岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wanyi Technology Co Ltd
Original Assignee
Wanyi Technology 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 Wanyi Technology Co Ltd filed Critical Wanyi Technology Co Ltd
Priority to CN201911361999.1A priority Critical patent/CN111144889B/en
Publication of CN111144889A publication Critical patent/CN111144889A/en
Application granted granted Critical
Publication of CN111144889B publication Critical patent/CN111144889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0236Incentive or reward received by requiring registration or ID from user
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a block chain-based integral settlement method and a block chain accounting system, wherein the method comprises the following steps: after receiving operation instructions sent by user terminals of all systems, executing integral operations corresponding to the operation instructions in a blockchain billing system through integral accounts corresponding to users of all systems in the blockchain billing system; generating an operation record corresponding to the integral operation, and determining whether an integral settlement instruction is detected; and if the integral settlement instruction is detected, generating a settlement report according to the operation record, and executing settlement operation according to the settlement report. The invention generates the operation record of the integral operation in the blockchain billing system and generates the settlement report of the operation record, and the settlement operation is executed according to the settlement report, so that the operation record generated by the integral operation is prevented from being tampered due to the fact that the data stored in the blockchain has non-tampering property, and the safety of the operation record generated by the integral operation is improved.

Description

Block chain-based point settlement method and block chain accounting system
Technical Field
The invention relates to the technical field of data processing, in particular to a block chain-based integral settlement method and a block chain accounting system.
Background
With the development of network technology, each end user will have various different kinds of points, and these different kinds of points cannot be redeemed with each other. The existing point exchange method is a centralized point anchoring technology, the point anchoring technology introduces a platform universal point as an anchoring point of all affiliated merchants, each merchant needs to specify the exchange coefficient of the self point and the anchoring point, and the points of different merchants need to take the anchoring point as a medium during exchange, so that point exchange is realized. The platform security introduced by the integral anchoring technology is not high, so that the generated operation record is easy to be hacked and maliciously tampered in the integral exchange process by using the integral anchoring technology; and a platform is introduced, so that the operation flow is complex in settlement after point exchange, and the settlement efficiency is low.
It is known that the present score operation record is easily tampered with, and the score settlement efficiency is low.
Disclosure of Invention
The invention mainly aims to provide a block chain-based integral settlement method and a block chain accounting system, which aim to solve the technical problems that the existing integral operation record is easy to tamper and the integral settlement efficiency is low.
In order to achieve the above object, the present invention provides a blockchain-based point settlement method, comprising the steps of:
after receiving operation instructions sent by user terminals of all systems, executing integral operations corresponding to the operation instructions in a blockchain billing system through integral accounts corresponding to users of all systems in the blockchain billing system;
generating an operation record corresponding to the integral operation, and determining whether an integral settlement instruction is detected;
and if the integral settlement instruction is detected, generating a settlement report according to the operation record, and executing settlement operation according to the settlement report.
Preferably, the system user includes a first system user, and if the integral settlement instruction is detected, generating a settlement report according to the operation record, and after the step of executing the settlement operation according to the settlement report, the method further includes:
acquiring initial points of the point accounts corresponding to the first system users when the settlement report is generated, and acquiring uplink points of the point accounts corresponding to the first system users in the settlement period corresponding to the point settlement instruction;
and setting initial points of the corresponding point accounts of the first system users in the next settlement period according to the initial points and the uplink points.
Preferably, the step of setting the initial points of the corresponding point accounts of the first system users in the next settlement period according to the initial points and the uplink points comprises the following steps:
determining an integral type of the uplink integral;
if the uplink integral is to-be-transmitted integral, calculating an integral sum value between the initial integral and the corresponding to-be-transmitted integral, and correspondingly setting the integral sum value as the initial integral of each first system user corresponding to an integral account in a next settlement period;
if the uplink integral is the integral to be destroyed, calculating an integral difference value between the initial integral and the corresponding integral to be destroyed, and setting the integral difference value as the initial integral of each first system user corresponding integral account in the next settlement period.
Preferably, after receiving the operation instruction sent by each system user terminal, before the step of executing the point operation corresponding to the operation instruction in the blockchain billing system through the point account corresponding to each system user in the blockchain billing system, the method further includes:
and receiving an integral uplink instruction sent by a terminal corresponding to the first system user, executing uplink operation in the blockchain billing system according to a target integral corresponding to the integral uplink instruction, and setting the target integral as an initial integral of an integral account corresponding to the first system user in a first settlement period.
Preferably, the step of generating a settlement report according to the operation record if the integral settlement instruction is detected includes:
if the point settlement instruction is detected, determining a point issuing account and a point settlement account corresponding to each point operation according to the operation record;
and determining the amount of the points corresponding to each point operation, determining settlement information between the corresponding point issuing account and the point settlement account according to the amount of the points, and generating a settlement report according to the settlement information.
Preferably, after the step of determining the point issuing account and the point settlement account corresponding to each point operation according to the operation record if the point settlement instruction is detected, the method further includes:
if the fact that the point operation has the corresponding point circulation account is determined according to the operation records, determining point circulation information of the point circulation account corresponding to the operation records;
the step of generating the settlement report according to the settlement information comprises the following steps:
and generating a settlement report according to the integral circulation information and the settlement information.
Preferably, the step of generating an operation record corresponding to the point operation and determining whether a point settlement instruction is detected includes:
Generating an operation record corresponding to the integral operation, and acquiring a preset settlement period and the detection time of last detection of an integral settlement instruction;
determining whether the current time is a settlement time according to the settlement period and the detection time;
and if the current time is determined to be the settlement time, triggering an integral settlement instruction so as to detect the triggered integral settlement instruction.
Preferably, after receiving the operation instruction sent by each system user terminal, before the step of executing the point operation corresponding to the operation instruction in the blockchain billing system through the point account corresponding to each system user in the blockchain billing system, the method further includes:
receiving a registration request sent by a terminal corresponding to a first system user and a second system user, and establishing an integral account corresponding to the first system user and the second system user in the blockchain billing system according to the registration request, wherein an operation instruction corresponding to the first system user at least comprises one of an integral uplink instruction, an integral destroying instruction and an integral issuing instruction, and an operation instruction corresponding to the second system user at least comprises one of an integral transfer instruction, an integral exchange instruction and an integral consumption instruction.
Preferably, if the integral settlement instruction is detected, generating a settlement report according to the operation record, and executing a settlement operation according to the settlement report comprises:
if the integral settlement instruction is detected, a settlement report is generated according to the operation record, and the settlement report is sent to a settlement system so that the settlement system can execute settlement operation according to the settlement report.
In addition, to achieve the above object, the present invention also provides a blockchain billing system including a memory, a processor, and a blockchain-based credit settlement program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the blockchain-based credit settlement method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a blockchain-based point settlement program which, when executed by a processor, implements the steps of the blockchain-based point settlement method as described above.
According to the invention, the integral operation corresponding to each system user is executed in the blockchain billing system, and because the operations among all nodes in the blockchain are point-to-point, each system user can perform the integral operation point-to-point, so that the complex integral operation flow caused by the platform introduction in the integral operation process is avoided, the operation efficiency of the integral operation is improved, and the integral settlement efficiency is improved; the invention generates the operation record of the integral operation in the blockchain billing system and generates the settlement report of the operation record, and the settlement operation is executed according to the settlement report, so that the operation record generated by the integral operation can be prevented from being tampered due to the fact that the data stored in the blockchain has non-tampering property, the safety of the operation record generated by the integral operation is improved, and the transparency and the reliability of the integral operation are ensured.
Drawings
FIG. 1 is a flow chart of a first embodiment of a blockchain-based point settlement method of the present invention;
FIG. 2 is a flow chart of a second embodiment of the blockchain-based point settlement method of the present invention;
FIG. 3 is a schematic diagram of interactions between a block chain billing system and a settlement system in an embodiment of the invention;
FIG. 4 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides a block chain-based integral settlement method, and referring to fig. 1, fig. 1 is a flow chart of a first embodiment of the block chain-based integral settlement method of the invention.
Embodiments of the present invention provide embodiments of blockchain-based point settlement methods, it being noted that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in a different order than that shown or described herein.
The block chain-based integral settlement method is applied to a block chain accounting system, and the block chain is a distributed shared account book and database, and has the characteristics of decentralization, data non-falsification, whole trace, traceability, collective maintenance, openness and transparency and the like. The block chain-based point settlement method comprises the following steps:
and step S10, after receiving operation instructions sent by the user terminals of the systems, executing integral operation corresponding to the operation instructions in the blockchain billing system through integral accounts corresponding to the users of the systems in the blockchain billing system.
The block chain billing system detects whether operation instructions sent by the system users through the terminals are received or not in real time or at fixed time. In this embodiment, there are two system users, one is a user who issues points, such as a merchant; the other is a user who consumes, redeems points, etc., such as a customer; in this embodiment, the user who issues the points is referred to as a first system user, and the user who consumes, redeems the points, etc. is referred to as a second system user. The operation instruction may be triggered in the corresponding terminal by the first system user or the second system user. It should be noted that, the point account of each system user is used as a node in the blockchain billing system, and in the blockchain billing system, data interaction can be directly performed between each node. The time length corresponding to the timing can be set according to specific needs, and the time length corresponding to the timing is not particularly limited in this embodiment. When the blockchain billing system receives an operation instruction sent by the terminal corresponding to the first system user or the second system user, the blockchain billing system determines an integral account corresponding to the operation instruction, and executes corresponding integral operation according to the operation instruction and the integral account. In the blockchain billing system, each system user has a corresponding point account, and in the operation instruction, account information of the corresponding point account is carried, and the corresponding point account can be determined according to the account information carried by the operation instruction, wherein the account information comprises but is not limited to an account number and a password. If the blockchain billing system receives the point consumption instruction sent by the user of the A system through the terminal, the blockchain billing system deducts the point quantity corresponding to the point consumption instruction from the point account corresponding to the user of the A system. Note that the point operations are performed between the point accounts of the system users, but because the point accounts of the system users are all nodes in the blockchain billing system, the point operations are actually performed on the blockchain.
Further, in order to improve the security of the blockchain billing system, after the blockchain billing system receives the operation instruction, the blockchain billing system acquires account information corresponding to the operation instruction, and detects whether the account information is stored in a preset billing database. If the account information is detected to be stored in the billing database of the blockchain billing system, the blockchain billing system executes the point operation corresponding to the operation instruction through the point account corresponding to the account information; if the account information is detected not to be stored in the accounting database, the blockchain accounting system refuses to execute the integral operation corresponding to the operation instruction, and can generate prompt information, and the prompt information is sent to the terminal corresponding to the operation instruction so as to prompt the terminal user that the integral operation fails to be executed through the prompt information. Further, if it is determined that the account information is stored in the accounting database, the blockchain accounting system further determines whether the account information is stored in an account blacklist database, wherein the account blacklist database is preset. If the account information is determined to exist in the account blacklist database, the blockchain billing system refuses to execute the integral operation corresponding to the operation instruction; and if the account information is determined not to exist in the account blacklist database, executing the point operation corresponding to the operation instruction through the point account corresponding to the account information by the blockchain billing system.
Step S20, generating an operation record corresponding to the integral operation, and determining whether an integral settlement instruction is detected.
When the blockchain billing system executes the point operation, the blockchain billing system generates an operation record corresponding to the point operation and determines whether a point settlement instruction is detected. The operation record includes, but is not limited to, execution time of executing the integrating operation, the number of the integrating corresponding to the integrating operation, the integrating accounts of two system users corresponding to the integrating operation and the integrating circulation direction. If the point operation is to transfer a certain amount of points from the A system account to the B system account, the operation record comprises the A system account and the B system account, and the point transfer direction is whether the points are from the A system account to the B system account or from the B system account to the A system account. In this embodiment, the credit settlement instructions may be manually triggered by the administrative user corresponding to the blockchain billing system. It should be noted that the point settlement instruction is for settlement of all system users, that is, all system users in the blockchain billing system are settled together.
Further, in order to improve the intelligence triggered by the point settlement instruction, the operation of the user in the point settlement process is reduced, and the step S30 includes:
Step a, generating an operation record corresponding to the integral operation, and acquiring a preset settlement period and the detection time for last detecting the integral settlement instruction;
step b, determining whether the current time is a settlement time according to the settlement period and the detection time;
and c, if the current time is determined to be the settlement time, triggering an integral settlement instruction so as to detect the triggered integral settlement instruction.
After the blockchain billing system generates an operation record corresponding to the point operation, the blockchain billing system acquires a preset settlement period and the detection time for last detecting the point settlement instruction. The time length corresponding to the settlement period can be set according to specific needs, for example, the settlement period can be set to 7 days, 15 days, 1 month or the like. The block chain billing system acquires the current time, calculates the time difference between the current time and the detection time, and if the time difference is equal to the duration corresponding to the settlement period, the block chain billing system determines the current time as the settlement time and automatically triggers an integral settlement instruction; if the time difference is not equal to the duration corresponding to the settlement period, the blockchain billing system determines that the current time is not the settlement time, and the blockchain billing system continues to determine whether the current time is the settlement time according to the settlement period and the detection time. It will be appreciated that when the blockchain billing system automatically triggers the points settlement instructions, the blockchain billing system can detect the automatically triggered points settlement instructions.
And step S30, if the integral settlement instruction is detected, a settlement report is generated according to the operation record, and settlement operation is executed according to the settlement report.
When the blockchain billing system detects the integral settlement instruction, the blockchain billing system generates a settlement report according to the operation record generated in the settlement period, and executes settlement operation according to the settlement report. In the settlement report, the execution time, the amount of points, the point issuing account and the point settlement account corresponding to each operation record are recorded, wherein the point issuing account is the point account of the point originally issued in the blockchain billing system, and the point settlement account is the point account of the system user corresponding to the point finally consumed by the client. In this embodiment, the point issuing account and the point settlement account are both point accounts corresponding to the first system user. If 1000 points sent by the a system user are acquired by the a system user, and the a system user finally consumes 1000 points in the B system user, the point account of the a system user is a point issue account, the point account of the B system user is a point settlement account, it can be understood that the a system user and the B system user are merchants, and the a system user is a customer. And the settlement operation is carried out according to the settlement report, namely the settlement between the corresponding point accounts of all merchants of the blockchain billing system is completed, the settlement operation is that whether each merchant pays money to other merchants or not and the amount to be paid are calculated, and then the deduction is carried out in the fund accounts of the corresponding merchants according to the calculated calculation result, so that the settlement operation is completed.
As can be seen from the above examples, when the a-system user issues 1000 points to the a-system user, the a-system user loses the amount corresponding to the 1000 points after the a-system user uses the 1000 points in the a-system user, and when the a-system user uses the 1000 points in the B-system user, the B-system user loses the amount corresponding to the 1000 points, so that in settlement, the amount corresponding to the 1000 points needs to be deducted from the funds account of the a-system user to the funds account of the B-system user, thereby realizing settlement between the a-system user and the B-system user.
Further, the step S30 includes:
and d, if the point settlement instruction is detected, determining a point issuing account and a point settlement account corresponding to each point operation according to the operation record.
And e, determining the amount of the points corresponding to each point operation, determining settlement information between the corresponding point issuing account and the point settlement account according to the amount of the points, and generating a settlement report according to the settlement information.
Specifically, after the blockchain billing system detects the point settlement instruction, the blockchain billing system determines a point issuing account and a point settlement account corresponding to each point operation according to the operation record, determines the point quantity corresponding to each point operation, determines settlement information between the corresponding point issuing account and the point settlement account according to the point quantity, and generates a settlement report according to the settlement information. It should be noted that, the points issued by different point issuing accounts all carry their corresponding account identifications, and the point issuing account and the point settlement account can be determined according to the account identifications corresponding to each operation record, and for one operation record, the point account appearing first is the point issuing account, and the point account appearing last is the point settlement account. Each operation record has corresponding settlement information, and all the settlement information forms a settlement report in one settlement period. The settlement information includes, but is not limited to, execution time, amount of points, point issuing account, and point settlement account corresponding to the operation record.
According to the embodiment, the integral operation corresponding to each system user is executed in the blockchain billing system, and because the operations among all nodes in the blockchain are point-to-point, each system user can perform the integral operation point-to-point, so that the problem that in the integral operation process, the integral operation flow is complicated due to the fact that a platform is introduced is avoided, the operation efficiency of the integral operation is improved, and the integral settlement efficiency is improved; according to the embodiment, the operation record of the integral operation is generated in the blockchain billing system, the settlement report of the operation record is generated, and the settlement operation is executed according to the settlement report, so that the operation record generated by the integral operation can be prevented from being tampered due to the fact that the data stored in the blockchain is non-tamperable, the safety of the operation record generated by the integral operation is improved, and the transparency and the reliability of the integral operation are ensured.
Further, the blockchain-based point settlement method further comprises the following steps:
and f, if the fact that the corresponding point circulation accounts exist in each point operation is determined according to the operation records, determining point circulation information of the point circulation accounts corresponding to each operation record.
The step of generating the settlement report according to the settlement information comprises the following steps:
And g, generating a settlement report according to the integral circulation information and the settlement information.
Further, the blockchain billing system can detect whether corresponding credit circulation accounts exist in each operation record in the process of generating the settlement report. It should be noted that, when the operation record at least corresponds to the point accounts of three first system users and/or at least corresponds to the point accounts of two second system users, the blockchain billing system may determine that the operation record has a corresponding point circulation account; when only one first system user's point account or two first system users ' point accounts exist in the operation points and only one second system user's point account exists, the blockchain billing system determines that the operation record does not have a corresponding point circulation account. If the second system user directly consumes the point in the point account of the first system user who issues the point after obtaining the point issued by the first system user, or consumes the point in the point account of another first system user, then no corresponding point circulation account exists in the operation record, otherwise, it can be determined that the corresponding point circulation account exists in the operation record.
When the blockchain billing system determines that each point operation corresponds to a point circulation account according to the operation records, the blockchain billing system acquires the point circulation information of the point circulation account corresponding to each operation record and generates a settlement report according to the point circulation information and the settlement information. The point circulation information includes, but is not limited to, a point circulation account, a point circulation number corresponding to the point circulation account and a point circulation time.
In the above example, if the a system user obtains 1000 points issued by the a system user, the 1000 points are converted into 800 points of the C system user, and then the 800 points of the C system user are converted into 800 points of the B system user, and the 800 points are consumed in the B system user, then the point account corresponding to the C system user is the point circulation account, and the point circulation quantity is 1000 points. Note that, the point exchange proportion between the point accounts is determined by the corresponding system user, and the point exchange proportion between the point accounts is not particularly limited in this embodiment.
And generating a settlement report according to the point circulation information and the settlement information, so that in the settlement process, if a first system user has a question about a settlement result, the first system user backtracks the point circulation information to determine whether the settlement report is wrong, thereby improving the traceability of related data in the point settlement process and improving the accuracy of the point settlement.
Further, a second embodiment of the blockchain-based point settlement method of the present invention is presented.
The second embodiment of the blockchain-based point settlement method is different from the first embodiment of the blockchain-based point settlement method in that, referring to fig. 2, the blockchain-based point settlement method further includes:
and S40, acquiring initial points of the point accounts corresponding to the first system users when the settlement report is generated, and acquiring uplink points corresponding to the first system users in the settlement period corresponding to the point settlement instruction.
After the operation of completing the calculation is executed, the blockchain billing system obtains the initial points of the point accounts corresponding to the first system users when the settlement report is generated, wherein the initial points are the initial points of the point accounts corresponding to the first system users in the settlement period corresponding to the settlement report generation, and it can be understood that the initial points of the point accounts corresponding to the first system users can be the same or different. After the completion operation is executed, the blockchain billing system acquires the uplink credits corresponding to each first system user in the settlement period corresponding to the credit settlement instruction, and the uplink credits corresponding to each first system user can be the same or different.
And S50, setting initial points of the corresponding point accounts of the first system users in the next settlement period according to the initial points and the uplink points.
After the blockchain billing system acquires the uplink points, setting initial points of the corresponding point accounts of the first system users in the next settlement period according to the initial points and the uplink points. Further, when the settlement operation is executed, the amount of points which are not allocated to the second system user in the point account of the first system user is the end point of the corresponding account of the first system user. If the number of points that can be issued in the point account of a certain first system user in a certain settlement period is 1 ten thousand points, if the end point corresponding to the last settlement period is 1 thousand points, the number of points that can be issued in the point account of the first system user in the current settlement period is 1 ten thousand 1 thousand points, namely the initial point is 1 ten thousand 1 thousand points.
Further, step S50 includes:
and h, determining the integral type of the uplink integral.
Further, after the blockchain billing system acquires the uplink points, the blockchain billing system determines the types of the uplink points, in this embodiment, the uplink points include two types, one type is to be sent and the other type is to be destroyed, specifically, whether the uplink points are to be sent or destroyed can be determined according to the type identifier of the uplink points, and each type of the points has a unique type identifier, so that the embodiment does not limit the expression form of the type identifier.
And i, if the uplink integral is the integral to be transmitted, calculating an integral sum value between the initial integral and the integral corresponding to the integral to be transmitted, and setting the integral sum value as the initial integral of the integral account corresponding to each first system user in the next settlement period.
And j, if the uplink integral is the integral to be destroyed, calculating an integral difference value between the initial integral and the corresponding integral to be destroyed, and setting the integral difference value as the initial integral of each first system user corresponding to the integral account in the next settlement period.
When the blockchain billing system determines that the uplink point is the point to be transmitted, the blockchain billing system calculates the point sum value between the initial point of the point account corresponding to each first system user and the point to be transmitted, and correspondingly sets the point sum value as the initial point of the point account corresponding to each first system user in the next settlement period; when the blockchain billing system determines that the uplink points are points to be destroyed, the blockchain billing system calculates the point difference value between the initial points of the point accounts corresponding to the first system users and the points to be destroyed, and correspondingly sets the point difference value as the initial points of the point accounts corresponding to the first system users in the next settlement period. It will be appreciated that when the to-be-issued credit is zero, the initial credit of the first system user's corresponding credit account is consistent with the initial credit in the last settlement period.
The embodiment improves the flexibility of the point accounts in the blockchain billing system by allowing the first system user to update the number of points in the point account when entering the next settlement period.
Further, the blockchain-based point settlement method further comprises the following steps:
and step k, receiving an integral uplink instruction sent by a terminal corresponding to the first system user, executing uplink operation in the blockchain billing system according to a target integral corresponding to the integral uplink instruction, and setting the target integral as an initial integral of an integral account corresponding to the first system user in a first settlement period.
When the first system user successfully registers in the blockchain billing system and becomes a node of the blockchain billing system, the blockchain billing system detects whether an integral uplink instruction sent by a corresponding terminal of the first system user is received. When the blockchain billing system receives the point uplink instruction, the blockchain billing system records the point corresponding to the point uplink instruction as a target point, and executes the uplink operation according to the target point, namely, the target point is set as the most original point of the point account corresponding to the first system user, and the target point is set as the initial point of the point account corresponding to the first system user in the first settlement period.
According to the method and the device, the initial points of the corresponding point accounts in the first settlement period are set according to the point uplink instructions of the first system user, so that when no points exist in the point accounts of the first system user, the point accounts of the first system user are prevented from being subjected to settlement operation, and the data quantity involved in the point settlement operation process is increased.
Further, a third embodiment of the blockchain-based point settlement method of the present invention is presented.
The third embodiment of the blockchain-based point settlement method is different from the first and/or second embodiments of the blockchain-based point settlement method in that the blockchain-based point settlement method further includes:
step l, receiving a registration request sent by a terminal corresponding to a first system user and a second system user, and establishing an integral account corresponding to the first system user and the second system user in the blockchain billing system according to the registration request, wherein an operation instruction corresponding to the first system user at least comprises one of an integral uplink instruction, an integral destroying instruction and an integral issuing instruction, and an operation instruction corresponding to the second system user at least comprises one of an integral transfer instruction, an integral exchange instruction and an integral consumption instruction.
The block chain billing system receives a registration request sent by a terminal corresponding to a first system user and a second system user, establishes a point account corresponding to the first system user according to the registration request, and establishes a point account corresponding to the second system user. Wherein the registration instruction may be triggered by the first system user and the second system user as desired. The operation instruction corresponding to the first system user at least comprises one of an integral uplink instruction, an integral destroying instruction and an integral issuing instruction, the operation instruction corresponding to the second system user at least comprises one of an integral transfer instruction, an integral exchange instruction and an integral consumption instruction, and the integral issuing instruction is an instruction for the first system user to issue the held integral to the second system user; the integral transfer instruction is an instruction for two second system users to transfer the integral in the blockchain billing system, for example, a customer wants to transfer the integral of a merchant owned by the customer to a friend b customer, and the corresponding operation instruction is the integral transfer instruction; the point exchange instruction relates to two first system users and one second system user, for example, a customer wants to exchange the points of a merchant owned by the customer into the points of a merchant B, and the corresponding operation instruction is the point exchange instruction; the point consumption instruction relates to a first system user and a second system user, for example, a customer wants to purchase goods in a merchant by using the point of a merchant owned by the customer, and the corresponding operation instruction is the point consumption instruction.
In the embodiment, according to the registration request of the first system user and the second system user, the point accounts corresponding to the first system user and the second system user are established in the blockchain billing system, so that the point accounts corresponding to the first system user and the second system user become one node in the blockchain, and various point operations are executed in the blockchain.
Further, in order to ensure the security of the blockchain billing system, when the registration request is sent by the first system user through its corresponding terminal, the registration request should include business license information of the first system user, where the business license information includes, but is not limited to, unified social credit code, established date, business deadline, and name. When the blockchain billing system receives a registration request corresponding to a first system user, the blockchain billing system acquires business license information in the registration request, detects whether unified social credit codes in the business license information are in a preset registration blacklist or not, detects whether business deadlines are expired, and stores the unified social credit codes corresponding to abnormal operation and serious illegal credit loss merchants in the preset registration blacklist. If the blockchain billing system detects that the unified social credit code is in a preset registration blacklist and/or the business deadline is expired, the blockchain billing system does not establish a point account corresponding to the first system user according to the registration request; if the blockchain billing system detects that the unified social credit code is not in the preset registration blacklist and the business deadline is not expired, the blockchain billing system generates a corresponding point account according to a registration request corresponding to the first system user, so that the security of the calculation operation is improved.
Further, a fourth embodiment of the blockchain-based point settlement method of the present invention is presented.
The fourth embodiment of the blockchain-based point settlement method is different from the first, second and/or third embodiments of the blockchain-based point settlement method in that step S30 includes:
and m, if the integral settlement instruction is detected, generating a settlement report according to the operation record, and sending the settlement report to a settlement system so that the settlement system can execute settlement operation according to the settlement report.
And when the blockchain billing system detects the integral settlement instruction, the blockchain billing system generates a settlement report according to the operation record and sends the settlement report to the settlement system. And after the settlement system receives the settlement report, executing settlement operation according to the settlement report. After the settlement system successfully executes the settlement operation, the settlement system generates a successful message of settlement success and sends the successful message to the blockchain billing system so as to inform the blockchain billing system of the successful settlement operation execution through the successful message. It should be noted that, the process of executing the settlement operation by the settlement system is similar to the process of executing the settlement operation by the blockchain billing system, and the detailed description is not repeated here. After the settlement system successfully executes the settlement operation, the settlement system continues to detect whether a new settlement report is received.
In this embodiment, each of the first system user and the second system user needs to register in the settlement system, and when the first system user and the second system user register in the settlement system successfully, the settlement system correspondingly generates a settlement account for the first system user and the second system user, where the settlement account is equal to a bank card. Further, when the settlement operation is executed, if it is determined that the unconsumed points exist in the point account of the second system user according to the settlement report, the settlement system can convert the unconsumed points into corresponding amounts and store the corresponding amounts into the settlement accounts corresponding to the second system user. It will be appreciated that the second system user may also perform a recharge operation in the settlement system to increase the amount in his settlement account.
Further, if the first system user wants to successfully settle accounts in the settlement system, the first system user needs to pay a reserve in the settlement system so as to ensure the reliability of the integral settlement through a reserve mechanism. Therefore, when the settlement system receives a registration request sent by the terminal corresponding to the first system user, whether the prepared payment amount in the registration request is larger than a preset amount is detected. If the prepared payment amount in the registration request is detected to be larger than or equal to the preset amount, the settlement system generates a settlement account for the first system user according to the registration request; if the prepared payment amount in the registration request is detected to be smaller than the preset amount, the settlement system does not generate a settlement user for the first system user according to the registration request, and returns a prompt message of registration failure to the first system user terminal so as to inform the first system user of the registration failure according to the prompt message. It should be noted that, the corresponding preparation payments of different first system users may be the same or different, for example, the preparation payments may be determined according to the registration amount in the business license information of the first system user, the larger the registration amount is, the smaller the preparation payments are, that is, the preparation payments decrease with the increase of the registration amount, or the preparation payments are determined according to the initial integral number of the first system user in the blockchain billing system, the larger the initial integral number is, the smaller the preparation payments are, that is, the preparation payments decrease with the increase of the initial integral number. In particular, referring to fig. 3, fig. 3 is a schematic diagram illustrating interactions between the block chain billing system and the settlement system in accordance with an embodiment of the present invention.
In the embodiment, after the block chain billing system generates the settlement report, the settlement report is sent to the settlement system for settlement, so that the block chain billing system can use all resources to perform the point operation.
In addition, the invention also provides a block chain billing system. As shown in fig. 4, fig. 4 is a schematic structural diagram of a hardware running environment according to an embodiment of the present invention.
It should be noted that fig. 4 is a schematic structural diagram of a hardware running environment of the blockchain billing system.
As shown in fig. 4, the blockchain billing system may include: a processor 1001, such as a CPU, memory 1005, user interface 1003, network interface 1004, communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the blockchain billing system may also include RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like.
Those skilled in the art will appreciate that the blockchain billing system architecture shown in fig. 4 is not limiting of the blockchain billing system and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 4, an operating system, a network communication module, a user interface module, and a blockchain-based point settlement program may be included in the memory 1005 as one type of computer storage medium. Wherein the operating system is a program that manages and controls the blockchain billing system hardware and software resources, supporting blockchain-based points settlement programs and other software or program runs.
In the blockchain billing system shown in fig. 4, the user interface 1003 is mainly used for connecting to a settlement system, and is in data communication with a terminal of the settlement system; the network interface 1004 is mainly used for a background server and is in data communication with the background server; the processor 1001 may be configured to invoke the blockchain-based point settlement program stored in the memory 1005 and perform the steps of the blockchain-based point settlement method as described above.
The specific implementation manner of the device is basically the same as that of each embodiment of the block chain-based integral settlement method, and is not repeated here.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a blockchain-based integral settlement program, and the blockchain-based integral settlement program realizes the steps of the blockchain-based integral settlement method when being executed by a processor.
The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the blockchain-based point settlement method, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a device, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The block chain-based point settlement method is characterized by comprising the following steps of:
after receiving operation instructions sent by user terminals of all systems, executing point operations corresponding to the operation instructions in a blockchain billing system through point accounts corresponding to all system users in the blockchain billing system, wherein the system users comprise a first system user and a second system user, the first system user is a user for issuing points, and the second system user is a user for consuming, exchanging and transferring the points;
generating an operation record corresponding to the integral operation, and determining whether an integral settlement instruction is detected;
if the integral settlement instruction is detected, a settlement report is generated according to the operation record, and settlement operation is executed according to the settlement report;
acquiring initial points of the point accounts corresponding to the first system users when the settlement report is generated, and acquiring uplink points of the point accounts corresponding to the first system users in the settlement period corresponding to the point settlement instruction;
setting initial points of corresponding point accounts of all first system users in a next settlement period according to the initial points and the uplink points;
And if the integral settlement instruction is detected, generating a settlement report according to the operation record, wherein the step of generating the settlement report comprises the following steps of:
if the point settlement instruction is detected, determining a point issuing account and a point settlement account corresponding to each point operation according to the operation record;
determining the amount of points corresponding to each point operation, determining settlement information between a corresponding point issuing account and a point settlement account according to the amount of points, and generating a settlement report according to the settlement information;
the point issuing account and the point settlement account are point accounts corresponding to the first system user.
2. The blockchain-based point settlement method as in claim 1, wherein the step of setting the initial points of the respective first system user's corresponding point accounts in the next settlement period according to the initial points and the uplink point correspondence comprises:
determining an integral type of the uplink integral;
if the uplink integral is to-be-transmitted integral, calculating an integral sum value between the initial integral and the corresponding to-be-transmitted integral, and correspondingly setting the integral sum value as the initial integral of each first system user corresponding to an integral account in a next settlement period;
If the uplink integral is the integral to be destroyed, calculating an integral difference value between the initial integral and the corresponding integral to be destroyed, and setting the integral difference value as the initial integral of each first system user corresponding integral account in the next settlement period.
3. The blockchain-based point settlement method as in claim 1, wherein after receiving the operation instruction sent by each system user terminal, before the step of executing the point operation corresponding to the operation instruction in the blockchain billing system through the point account corresponding to each system user in the blockchain billing system, the method further comprises:
and receiving an integral uplink instruction sent by a terminal corresponding to the first system user, executing uplink operation in the blockchain billing system according to a target integral corresponding to the integral uplink instruction, and setting the target integral as an initial integral of an integral account corresponding to the first system user in a first settlement period.
4. The blockchain-based point settlement method as in claim 1, wherein after the step of determining the point issuing account and the point settlement account corresponding to each point operation according to the operation record if the point settlement instruction is detected, further comprising:
If the fact that the point operation has the corresponding point circulation account is determined according to the operation records, determining point circulation information of the point circulation account corresponding to the operation records;
the step of generating the settlement report according to the settlement information comprises the following steps:
and generating a settlement report according to the integral circulation information and the settlement information.
5. The blockchain-based point settlement method of claim 1, wherein the step of generating an operation record corresponding to the point operation and determining whether a point settlement instruction is detected comprises:
generating an operation record corresponding to the integral operation, and acquiring a preset settlement period and the detection time of last detection of an integral settlement instruction;
determining whether the current time is a settlement time according to the settlement period and the detection time;
and if the current time is determined to be the settlement time, triggering an integral settlement instruction so as to detect the triggered integral settlement instruction.
6. The blockchain-based point settlement method as in claim 1, wherein after receiving the operation instruction sent by each system user terminal, before the step of executing the point operation corresponding to the operation instruction in the blockchain billing system through the point account corresponding to each system user in the blockchain billing system, the method further comprises:
Receiving a registration request sent by a terminal corresponding to a first system user and a second system user, and establishing an integral account corresponding to the first system user and the second system user in the blockchain billing system according to the registration request, wherein an operation instruction corresponding to the first system user at least comprises one of an integral uplink instruction, an integral destroying instruction and an integral issuing instruction, and an operation instruction corresponding to the second system user at least comprises one of an integral transfer instruction, an integral exchange instruction and an integral consumption instruction.
7. The blockchain-based point settlement method as set forth in any one of claims 1 to 6, wherein the step of generating a settlement report from the operation record and performing a settlement operation from the settlement report if the point settlement instruction is detected comprises:
if the integral settlement instruction is detected, a settlement report is generated according to the operation record, and the settlement report is sent to a settlement system so that the settlement system can execute settlement operation according to the settlement report.
8. A blockchain billing system comprising a memory, a processor, and a blockchain-based point settlement program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the blockchain-based point settlement method of any of claims 1 to 7.
CN201911361999.1A 2019-12-25 2019-12-25 Block chain-based point settlement method and block chain accounting system Active CN111144889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911361999.1A CN111144889B (en) 2019-12-25 2019-12-25 Block chain-based point settlement method and block chain accounting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911361999.1A CN111144889B (en) 2019-12-25 2019-12-25 Block chain-based point settlement method and block chain accounting system

Publications (2)

Publication Number Publication Date
CN111144889A CN111144889A (en) 2020-05-12
CN111144889B true CN111144889B (en) 2024-02-02

Family

ID=70520154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911361999.1A Active CN111144889B (en) 2019-12-25 2019-12-25 Block chain-based point settlement method and block chain accounting system

Country Status (1)

Country Link
CN (1) CN111144889B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003883B (en) * 2020-10-29 2022-03-11 浙江微能科技有限公司 System for realizing integral accounting by using block chain technology
CN113723940B (en) * 2021-09-01 2023-11-03 京东科技控股股份有限公司 Account data processing method and device, electronic equipment and storage medium
CN117710027B (en) * 2024-02-06 2024-05-28 深圳市飞泉云数据服务有限公司 Block chain-based point transaction settlement method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3056717A1 (en) * 2017-03-17 2018-09-20 Royal Bank Of Canada Systems and methods for hybrid blockchain platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain

Also Published As

Publication number Publication date
CN111144889A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
US11756032B2 (en) Methods and systems for secure payment processing
CN111144889B (en) Block chain-based point settlement method and block chain accounting system
TWI610255B (en) Online payment method and equipment
US20220383356A1 (en) Method, apparatus, and computer readable medium for transferring of promotions
RU2581784C2 (en) Apparatus and method for bill presentment and payment
US10535098B2 (en) Recurring money transfer
US20150039457A1 (en) System for syndicating subscriptions with retailers
US10546331B2 (en) Subscription managed method and system for text-to-pay subscriptions at a subscription server
CN109426955B (en) Target object providing method, device and system
US20210217045A1 (en) Payment method and apparatus based on member feature code
US20100096449A1 (en) Cause gift card platform for providing redemption of funds across multiple unaffiliated entities
CN110490568B (en) Method and device for exchanging object, storage medium and electronic device
US20170286992A1 (en) System and method for coded transaction processing
US9569761B2 (en) Text-to-pay for a new subscription
JP2022158871A (en) Information processing device, information processing method and information processing program
US20150206145A1 (en) Id management device, id management method, and id management program
US20150127554A1 (en) Merchant managed method and system for text-to-pay subscriptions at a subscription server
US20150127532A1 (en) Text subscription identifier to renew subscription
KR101735287B1 (en) The method, server and system for providing application funding service
JP2022158810A (en) Information processing device, information processing method and information processing program
US20140012657A1 (en) Clearinghouse for electronic coupons
US20130110689A1 (en) Sales management system, method of managing sales, program, and recording medium
TWI825448B (en) Information processing systems, information processing methods and programs
US20220164881A1 (en) Fractional Share System for Privately Held Companies
US20150019321A1 (en) Using universal product code to retrieve coupons at checkout

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
GR01 Patent grant
GR01 Patent grant