CN114418695A - Block chain network-based order processing method, device, equipment and medium - Google Patents

Block chain network-based order processing method, device, equipment and medium Download PDF

Info

Publication number
CN114418695A
CN114418695A CN202210068869.4A CN202210068869A CN114418695A CN 114418695 A CN114418695 A CN 114418695A CN 202210068869 A CN202210068869 A CN 202210068869A CN 114418695 A CN114418695 A CN 114418695A
Authority
CN
China
Prior art keywords
target
order
group
client device
message
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
CN202210068869.4A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210068869.4A priority Critical patent/CN114418695A/en
Publication of CN114418695A publication Critical patent/CN114418695A/en
Pending legal-status Critical Current

Links

Images

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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The disclosure provides an order processing method based on a block chain network, which can be applied to the technical field of block chains, the financial field or other fields. The method comprises the following steps: receiving an opening request message from first client equipment, wherein the opening request message carries an article identifier and a purchase quantity; associating a first service node of a plurality of service nodes of the blockchain network with a first client device if the purchase quantity is less than a preset group purchase quantity; generating a group purchase order based on the item identifier, wherein the group purchase order has an order identifier; and adding the block generated based on the order mark and the group opening request message into an order information account book of the block chain network. In addition, the disclosure also provides an order processing device based on the block chain network, an electronic device and a readable storage medium.

Description

Block chain network-based order processing method, device, equipment and medium
Technical Field
The present disclosure relates to the field of blockchain technology and the field of finance, and more particularly, to an order processing method and apparatus based on a blockchain network, an electronic device, a readable storage medium, and a computer program product.
Background
With the rapid development of internet technology, online shopping becomes a preferred shopping mode for more and more people, wherein group-piecing and group-robbing are common marketing means of the current e-commerce platform.
In the group-piecing shopping scenario, as the service logic to be processed by the group-piecing shopping is more complex than that of the common online shopping, more computing resources are consumed in a short time, and the pressure of the server is increased. In the related art, the increased server pressure in the group-pieced shopping scene is often dealt with by increasing the servers.
However, based on the characteristics of the piecing group emergency purchase scene, the pressure of the server is usually concentrated in the first half period of the scene, and therefore, the problem of resource waste exists in the second half period of the scene by adopting a mode of adding the server in the related art.
Disclosure of Invention
In view of the above, the present disclosure provides an order processing method based on a blockchain network, an order processing apparatus based on a blockchain network, an electronic device, a readable storage medium, and a computer program product.
One aspect of the present disclosure provides an order processing method based on a blockchain network, including: receiving an opening request message from a first client device, wherein the opening request message carries an article identifier and a purchase quantity; associating a first service node of the plurality of service nodes of the blockchain network with the first client device when the purchase amount is less than a preset group purchase amount; generating a group purchase order based on the article identifier, wherein the group purchase order has an order identifier; and adding the block generated based on the order mark and the group opening request message into an order information account book of the block chain network.
According to an embodiment of the present disclosure, the clustering request message further carries a network address of the first client device; the method further comprises the following steps: receiving a group participation request message from second client equipment, wherein the group participation request message carries a network address, a first target article identifier, a first target order identifier and a target purchase quantity of the second client equipment; determining a first target group purchase order based on the first target item identifier and the first target order identifier; determining N first target business nodes associated with the first target group purchase order from the order information book, wherein N is more than or equal to 1; generating a network address list based on the network addresses of the first target client devices associated with the N first target service nodes; and returning the network address list to the second client device, so that the second client device sends the group participation request messages to the N first target client devices respectively based on the network address list.
According to an embodiment of the present disclosure, the method further includes: receiving a feedback message from the first target client device, wherein the feedback message includes a message generated by the first target client device based on the group participation request message; determining a first common identification result of the N first target client devices based on all the received feedback messages; associating a second service node of the plurality of service nodes of the blockchain network with the second client device if the first consensus result indicates agreement to the group; and adding the block generated based on the group joining request message into the order information account book.
According to an embodiment of the present disclosure, the method further includes: and sending feedback information representing the participation rejection to the second client equipment when the first consensus result shows that the participation is rejected.
According to an embodiment of the present disclosure, the method further includes: the first target client device determines the current purchase quantity of the first target group purchase order based on the order information book of the first target business node; generating, by the first target client device, the feedback message indicating that the group participation is agreed when the current purchase amount is smaller than the preset group purchase amount; and under the condition that the current purchase quantity is greater than or equal to the preset group purchase quantity, the first target client device generates the feedback message which is expressed as the group participation rejection.
According to an embodiment of the present disclosure, the determining, based on all received feedback packets, first common identification results of N first target client devices includes: obtaining the first consensus result expressed as the agreement group under the condition that the number of the feedback messages expressed as the agreement group in the received feedback messages is greater than or equal to M, wherein M is the product of N and a preset consensus proportion; and under the condition that the number of the feedback messages which are expressed as the participation groups are agreed in the received feedback messages is less than M, obtaining the first consensus result which is expressed as the participation groups refused.
According to an embodiment of the present disclosure, the method further includes: receiving a clustering feedback message from a second target client device, where the clustering feedback message carries a second target item identifier and a second target order identifier, the second target client device has an associated second target service node, and the second target service node includes a service node corresponding to a second target group purchase order determined based on the order information book, where the second target group purchase order is determined based on the second target item identifier and the second target order identifier, and a current purchase quantity of the second target group purchase order is greater than or equal to the preset group purchase quantity; determining a second consensus result of the second target client device based on all the received clustering feedback messages; generating a business order based on the second consensus result and the second target group purchase order when the second consensus result indicates that consensus is achieved; and storing the business order into a local storage device so as to carry out goods delivery based on the business order.
According to an embodiment of the present disclosure, the method further includes: and setting a timing task, so that under the condition of triggering the timing task, a service node in the blockchain network sends a heartbeat message to other nodes in the blockchain network, so that all nodes in the blockchain network can commonly identify the content of the order information ledger, wherein the heartbeat message carries summary information generated based on the order information ledger.
According to an embodiment of the present disclosure, the method further includes: monitoring a resource consumption state; under the condition that the resource consumption state is represented as a low consumption state, under the condition that a heartbeat message of a third target client device is received, returning an information summary message to the third target client device, so that the third target client device responds to the information summary message and generates a response message based on an order information book of the third target service node, wherein the low consumption state represents that the resource consumption in a preset time range is lower than a preset threshold value; determining a third consensus result of the third target client device based on all the received response messages; storing the content of the response message into a local storage device under the condition that the third consensus result shows that consensus is achieved; and switching the working mode to a server center working mode.
According to an embodiment of the present disclosure, the method further includes: and under the condition of receiving the response message, returning a successful summary message to the third target client device, so that the third target client device exits from the blockchain network after receiving the successful summary message.
Another aspect of the present disclosure provides an order processing apparatus based on a blockchain network, including: the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an opening request message from first client equipment, and the opening request message carries an article identifier and a purchase quantity; a first processing module, configured to associate a first service node of the plurality of service nodes of the blockchain network with the first client device when the purchase amount is smaller than a preset group purchase amount; a first generation module, configured to generate a group purchase order based on the item identifier, where the group purchase order has an order identifier; and a first storage module, configured to add a block generated based on the order identifier and the group opening request packet to an order information book of the block link network.
Another aspect of the present disclosure provides an electronic device including: one or more processors; memory to store one or more instructions, wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement a method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program product comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, in the case of receiving the group opening request of the first client device, whether the group can be formed independently is judged through the purchase quantity submitted by the first client device, and in the case of not being capable of forming the group independently, the first client device is associated with one business node in the block chain, and the related information of the group opening is stored in the order information book. The storage resources of the client equipment can be utilized through the block chain technology, the order information during the grouping can be stored on the client equipment, and the consumption of server resources is reduced, so that the technical problem that resources are wasted due to the fact that a server is added in the related technology is at least partially solved, the operation and maintenance cost of an e-commerce platform is effectively reduced, the pressure transfer of the server is realized on the basis that the server is not added, and the processing efficiency of the grouped order is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically shows an exemplary system architecture to which an order processing method based on a blockchain network may be applied according to an embodiment of the present disclosure.
Fig. 2 schematically shows a flowchart of a blockchain network-based method for processing an order to be bought in accordance with an embodiment of the present disclosure.
Fig. 3 schematically shows a flowchart of a method for processing a group order based on a blockchain network according to an embodiment of the present disclosure.
Fig. 4 schematically shows a flowchart of a method of interaction between service nodes of a blockchain network according to an embodiment of the present disclosure.
Fig. 5 schematically shows a flowchart of a blockchain network-based clustered order processing method according to an embodiment of the present disclosure.
Fig. 6 schematically shows a flowchart of a method for switching an operation mode of a server device according to an embodiment of the present disclosure.
Fig. 7 schematically shows a block diagram of an order processing apparatus based on a blockchain network according to an embodiment of the present disclosure.
Fig. 8 schematically shows a block diagram of an electronic device adapted to implement an order processing method based on a blockchain network according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In an online shopping scenario, group-together shopping generally means a lower unit price, and thus is increasingly favored by consumers. However, when group-combining is performed for first-aid purchase, the total purchase quantity of a plurality of consumers in one group order is generally required to be greater than the lowest group quantity, and therefore, in this scenario, the server needs to store a large amount of order information and update the order information in real time, thereby increasing the pressure of the server.
On the other hand, when the group-piecing shopping campaign is started, the e-commerce platform generally sets the total number of sold items per item in consideration of profit, so that in the group-piecing shopping campaign scene, the pressure peak borne by the server is generally concentrated in the first half of the campaign, and the server has less pressure in the second half. Therefore, if the solution of adding servers in the related art is adopted, the resources of the servers are greatly wasted in the latter half of the activity, and the addition of the servers themselves causes the cost rise, including the purchase cost, the maintenance cost, the occupation cost of the servers themselves, and the like.
In view of this, an embodiment of the present disclosure provides an order processing method based on a block chain network, so as to reduce the performance pressure of a server in a group-piecing and group-robbing scenario.
Specifically, the embodiment of the disclosure provides an order processing method and device based on a block chain network, an electronic device, a readable storage medium and a computer program product. The method comprises the following steps: receiving an opening request message from first client equipment, wherein the opening request message carries an article identifier and a purchase quantity; associating a first service node of a plurality of service nodes of the blockchain network with a first client device if the purchase quantity is less than a preset group purchase quantity; generating a group purchase order based on the item identifier, wherein the group purchase order has an order identifier; and adding the block generated based on the order mark and the group opening request message into an order information account book of the block chain network.
It should be noted that the order processing method and apparatus based on the blockchain network determined in the embodiments of the present disclosure may be used in the field of blockchain technology or in the field of finance, for example, the embodiments of the present disclosure may be applied to online sales promotion activities of mobile banking to reduce activity cost. The order processing method and device based on the blockchain network determined in the embodiments of the present disclosure may also be used in any fields other than the blockchain technical field and the financial field, and the application fields of the order processing method and device based on the blockchain network determined in the embodiments of the present disclosure are not limited.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
In the technical scheme of the disclosure, before the personal information of the user is acquired or collected, the authorization or the consent of the user is acquired.
Fig. 1 schematically shows an exemplary system architecture to which an order processing method based on a blockchain network may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include service nodes 101, 102, 103, 104, 105, 106.
The service nodes 101, 102, 103, 104, 105, 106 may be any one of the nodes in the blockchain network.
The service nodes 101, 102, 103, 104, 105, 106 may have corresponding electronic devices, which may be client devices or server devices, including but not limited to cell phones, computers, servers, etc.
The service nodes 101, 102, 103, 104, 105, 106 may be connected by a network, which may include various connection types, such as wired and/or wireless communication links, and the like.
A blockchain ledger may be configured in the business nodes 101, 102, 103, 104, 105, 106, and the contents of the ledger may be synchronized in real time over the network.
It should be noted that the order processing method based on the blockchain network provided by the embodiment of the present disclosure may be generally executed by an electronic device corresponding to any one of the service nodes 101, 102, 103, 104, 105, and 106; accordingly, the order processing apparatus based on the blockchain network provided by the embodiment of the present disclosure may be generally disposed in an electronic device corresponding to any one of the service nodes 101, 102, 103, 104, 105, and 106.
It should be understood that the number of service nodes in fig. 1 is merely illustrative. There may be any number of service nodes, as desired for implementation.
Fig. 2 schematically shows a flowchart of a blockchain network-based method for processing an order to be bought in accordance with an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S204.
In operation S201, a group opening request message from a first client device is received, where the group opening request message carries an item identifier and a purchase quantity.
In operation S202, a first service node of a plurality of service nodes of a blockchain network is associated with a first client device in case the purchase number is less than a preset group purchase number.
In operation S203, a group purchase order is generated based on the item identification, wherein the group purchase order has an order identification.
In operation S204, the block generated based on the order identifier and the grouping request message is added to the order information book of the block chain network.
According to the embodiment of the disclosure, a plurality of service nodes may be provided in the block chain network, and one of the service nodes has a relationship with the server device.
According to embodiments of the present disclosure, the first client device may be any electronic device, e.g., a cell phone, a computer, etc., capable of supporting a particular client application, which may be a shopping-type application. The user can click in the shopping application, and the first client device can generate the group opening request message according to the clicked target object after receiving the click.
According to the embodiment of the disclosure, the first client device may send the ungrouping request message to the server device based on the network address of the server device.
In some embodiments, the grouping request message may further include, in addition to the item identifier and the purchase amount, information such as a grouping user identifier, a network address of the first client device, a payment bill identifier, and an encryption check field, which may be used to check the identity of the user, to ship the item after grouping is determined, to refund the item when grouping fails, and the like.
According to the embodiment of the disclosure, the preset group purchase quantity can be set according to a specific service scene.
According to the embodiment of the disclosure, when the purchase quantity in the group opening request message is greater than or equal to the preset group purchase quantity, it may be considered that the order corresponding to the group opening request message may be grouped separately, and the server device may return a message for requesting delivery information to the first client device, so as to directly enter the delivery flow, or enter the delivery flow after the pressure of the server device is reduced.
According to the embodiment of the disclosure, a plurality of group purchase orders can exist in an article at the same time, and each group purchase order is uniquely corresponding to an article identifier and an order identifier of the group purchase order.
According to an embodiment of the present disclosure, the order information ledger may be a blockchain ledger in a blockchain network, and the order information ledger may be synchronized to each service node of the blockchain network in real time.
According to the embodiment of the disclosure, in the case of receiving the group opening request of the first client device, whether the group can be formed independently is judged through the purchase quantity submitted by the first client device, and in the case of not being capable of forming the group independently, the first client device is associated with one business node in the block chain, and the related information of the group opening is stored in the order information book. The storage resources of the client equipment can be utilized through the block chain technology, the order information during the grouping can be stored on the client equipment, and the consumption of server resources is reduced, so that the technical problem that resources are wasted due to the fact that a server is added in the related technology is at least partially solved, the operation and maintenance cost of an e-commerce platform is effectively reduced, the pressure transfer of the server is realized on the basis that the server is not added, and the processing efficiency of the grouped order is improved.
The method shown in fig. 2 is further described with reference to fig. 3-6 in conjunction with specific embodiments.
Fig. 3 schematically shows a flowchart of a method for processing a group order based on a blockchain network according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S310.
It should be noted that, unless explicitly stated that there is an execution sequence between different operations or there is an execution sequence between different operations in technical implementation, the execution sequence between multiple operations may not be sequential, or multiple operations may be executed simultaneously in the flowchart in this disclosure.
In operation S301, a group request message from a second client device is received.
In operation S302, a first target group purchase order is determined based on the group participation request message.
In operation S303, N first target service nodes associated with a first target group purchase order in the blockchain network are determined.
In operation S304, a network address list is generated based on the network addresses of the first target client devices associated with the N first target service nodes.
In operation S305, a network address list is returned to the second client device.
In operation S306, a feedback packet from a first target client device is received.
In operation S307, it is determined whether the first target service node achieves consensus; in case it is determined that the first target service node agrees, performing operation S308; in case it is determined that the first target service node is not in consensus, operation S310 is performed.
In operation S308, a second service node of the plurality of service nodes of the blockchain network is associated with a second client device.
In operation S309, the block generated based on the group participation request message is added to the order information book.
In operation S310, feedback information characterizing the rejection of the participation group is transmitted to the second client device.
According to the embodiment of the disclosure, the group participation request message may carry a network address of the second client device, a first target item identifier, a first target order identifier, and a target purchase quantity; correspondingly, the group opening request message may also carry a network address of the first client device.
According to embodiments of the present disclosure, the second client device may be any electronic device, e.g., a cell phone, a computer, etc., capable of supporting a particular client application, which may be a shopping-type application. The user can click in the shopping application, and the second client device assembles the group participation request message according to the target object and the target group corresponding to the clicked group option after receiving the click.
In some embodiments, corresponding to the group-opening request message, the group-participating request message may also carry information such as a group-participating user identifier, a payment bill representation, and an encryption check field.
According to embodiments of the present disclosure, a first target group purchase order may be determined based on a first target item identification and a first target order identification.
According to an embodiment of the present disclosure, N may be a positive integer greater than or equal to 1.
According to the embodiment of the disclosure, based on the contents of a plurality of blocks in the order information book, one or more group purchase orders associated with each service node may be determined, and further, according to the order identifier of the first target group purchase order, N first target service nodes associated with the first target group purchase order may be determined.
According to embodiments of the present disclosure, based on the contents of a plurality of blocks in an order information ledger, a network address of a client device associated with each business node may be determined; the network addresses of the N first target client devices may be included in the network address list.
According to the embodiment of the present disclosure, after returning the network address list to the second client device, the second client device may send the group participation request messages to the N first target client devices, respectively, based on the network address list.
According to the embodiment of the disclosure, after receiving the group participation request message, the first target client device may determine whether the total purchase quantity reaches the group formation standard according to the target purchase quantity carried in the group participation request message and the current purchase quantity determined based on the order information book, and send a feedback message to the server device based on the determination result. Specifically, the first target client device determines the current purchase quantity of the first target group purchase order based on the order information book of the first target service node; under the condition that the current purchase quantity is smaller than the preset group purchase quantity, the first target client device generates a feedback message which indicates that the participation group is agreed; and under the condition that the current purchase quantity is larger than or equal to the preset group purchase quantity, the first target client equipment generates a feedback message which indicates that the participation group is rejected.
According to an embodiment of the present disclosure, the current purchase quantity may be a sum of purchase quantities of the target items by the users corresponding to the N first target business nodes.
According to an embodiment of the present disclosure, the first common identification result of the N first target client devices may be determined based on all the received feedback packets. For example, a first consensus result expressed as an agreement group may be obtained when the number of feedback messages expressed as the agreement group in the received feedback messages is greater than or equal to M, where M is a product of N and a preset consensus ratio; under the condition that the number of feedback messages which are indicated as the participation groups are agreed in the received feedback messages is less than M, obtaining a first consensus result which is indicated as the participation groups refused; the preset consensus ratio may be set according to a specific application scenario, and for example, may be set to 3/5, 5/6, 1, or the like. For another example, the first consensus result expressed as the agreement group may be obtained when the number of the received feedback messages is greater than or equal to N/2 and the received feedback messages are expressed as the agreement group; otherwise, a first consensus result is obtained, which is denoted as a rejection of the group.
According to the embodiment of the disclosure, after receiving the feedback information of rejecting participating in the group, the second client device may display the information to the user through a display device of the second client device, so that the user can perform subsequent refund operation and group opening and participating operation.
According to the embodiment of the disclosure, through the technical means, in the group participating process, the server equipment only needs to perform data communication and statistical operation, and the specific judgment of whether the logical operations such as group participating and the like can be executed by the client equipment is carried out, so that the operating pressure of the server equipment is effectively reduced, and the processing efficiency of the jigsaw order is improved.
Fig. 4 schematically shows a flowchart of a method of interaction between service nodes of a blockchain network according to an embodiment of the present disclosure.
As shown in fig. 4, the method includes operations S401 to S403.
In operation S401, it is determined whether to trigger a timing task; in case that it is determined that the timing task is triggered, performing operation S402; in the case where it is determined that the timing task is not triggered, it returns to perform operation S401.
In operation S402, a service node in the blockchain network sends a heartbeat message to other nodes in the blockchain network.
In operation S403, the other nodes agree on the content of the order information ledger.
According to the embodiment of the disclosure, each service node may be preset with a timing task, and the timing task may be to send a heartbeat message to other service nodes in the block chain network at intervals to check order information accounts stored in each service node.
According to the embodiment of the present disclosure, the heartbeat message may carry summary information of the order information ledger, and the summary information may be, for example, MD5 code of the order information ledger in the service node.
According to the embodiment of the disclosure, the other nodes can perform consensus on the content of the order information ledger by taking the content of the majority of nodes as a standard to perform synchronization, and complement or correct the content of the order information ledger in the inconsistent service nodes.
In some embodiments, the other nodes may include a service end node associated with the service end device, in which case the service node may also add the current network address of the client device to the heartbeat message, so that the service end node updates the originally recorded network address with the current network address to update the network address list.
In some embodiments, after receiving the heartbeat message of the service node, the service node may further return a response message to the service node, where the response message may carry an article list in which the puzzle has been completed. After receiving the item list, the client device corresponding to the service node may determine whether a target item of the group purchase order corresponding to the client device is in the list; when the target item corresponding to the group purchase order of the client device is in the list, feedback information of 'xx item is purchased, the xx item cannot be purchased, and the automatic refund is performed' can be displayed to the user in the display device; and then, the client device can send the locally recorded data to the server device, so that the server device can check and check accounts with data of other nodes participating in the same group after the operation pressure is reduced, and then refund operation is performed.
Fig. 5 schematically shows a flowchart of a blockchain network-based clustered order processing method according to an embodiment of the present disclosure.
As shown in fig. 5, the method includes operations S501 to S506.
In operation S501, a clustering feedback packet from a second target client device is received.
In operation S502, it is determined whether the number of received clustering feedback messages is less than a preset threshold; executing operation S503 when it is determined that the number of the received clustered feedback packets is greater than or equal to the preset threshold; and returning to execute operation S501 to continue receiving the clustering feedback messages from other second target client devices when it is determined that the number of the received clustering feedback messages is smaller than the preset threshold.
In operation S503, it is determined whether the second target service node agrees; in case it is determined that the second target service node agrees, performing operation S504; in case it is determined that the second target service node is not in consensus, operation S506 is performed.
In operation S504, a business order is generated based on the second consensus result and the second target group purchase order.
In operation S505, the service order is stored in the local storage device.
In operation S506, warning information of the emergency purchase exception is generated to remind the operation and maintenance staff to perform processing.
According to the embodiment of the disclosure, the clustering feedback message may carry a second target item identifier and a second target order identifier.
According to the embodiment of the disclosure, the second target client device may send the grouping feedback message to the server device after the purchase quantity of the group purchase order corresponding to the second target order identifier determined based on the order information book reaches the grouping quantity.
In some embodiments, the grouping feedback message may further carry information such as a user identifier, a payment bill identifier, a network address of the second target client device, a purchase amount, address information, and an encryption check field.
According to embodiments of the present disclosure, the second target client device may have an associated second target business node, which may include a business node corresponding to the second target group purchase order determined based on the order information ledger. And the second target group purchase order is determined based on the second target item identifier and the second target order identifier, and the current purchase quantity of the second target group purchase order is greater than or equal to the preset group purchase quantity.
According to an embodiment of the present disclosure, the preset threshold may be set to a certain proportion of the number of the second target client devices, for example, in the case where the number of the second target client devices is K, the preset threshold may be set to 0.6 × K.
According to the embodiment of the present disclosure, a second consensus result of the second target client device may be determined based on all the received clustered feedback packets, so as to determine whether the second target service node achieves consensus. For example, when the contents of 5/6 or more of all received clustered feedback messages are consistent, it may be considered that the second target service node agrees; when the number of the clustered feedback messages with the same content in all the received clustered feedback messages is less than 5/6 of the number of the received clustered feedback messages, but the number of the clustered feedback messages with the same content is greater than or equal to half of the number of the second target client devices, the second target service node may also be considered to achieve consensus; in the case that the number of the clustered feedback packets with the same content in all the received clustered feedback packets is smaller than 5/6 of the number of the received clustered feedback packets, and the number of the clustered feedback packets with the same content is smaller than half of the number of the second target client devices, it may be considered that the second target service nodes do not reach the consensus.
According to the embodiment of the disclosure, after the business order is stored in the local storage device, the subsequent delivery processing can be performed after the operating pressure of the server device is reduced.
Fig. 6 schematically shows a flowchart of a method for switching an operation mode of a server device according to an embodiment of the present disclosure.
As shown in fig. 6, the method includes operations S601 to S608.
In operation S601, a resource consumption state is monitored.
In operation S602, it is determined whether the resource consumption state is represented as a low consumption state; in case it is determined that the resource consumption state is represented as the low consumption state, operation S603 is performed; in the case where it is determined that the resource consumption state is represented as the high consumption state, operation S601 is returned to be performed.
In operation S603, in the case of receiving the heartbeat message of the third target client device, an information summary message is returned to the third target client device.
In operation S604, a response message from the third target client device is received.
In operation S605, it is determined whether the third target client device has achieved consensus; in case it is determined that the third target client device agrees, performing operation S606; in case it is determined that the third target client device does not agree, operation S603 is returned to be performed.
In operation S606, the content of the response message is stored in the local storage device.
In operation S607, the operation mode is switched to the server center operation mode.
In operation S608, a summary success message is returned to the third target client device.
According to an embodiment of the present disclosure, the resource consumption state may include a CPU consumption state and a memory usage state of the server device.
According to the embodiment of the disclosure, the low consumption state may be a preset threshold of the CPU consumption state, the memory occupation state, and the like of the server device within a period of time, for example, the CPU consumption of the server device does not exceed 50%, the memory occupation does not exceed 40%, and the time lasts for 5 minutes.
According to an embodiment of the present disclosure, the heartbeat packet may be a heartbeat packet generated after triggering the timing task as in the method of operations S401 to S403.
According to the embodiment of the disclosure, the information summary message may carry a summary instruction for instructing the service node to summarize and package the full content in the order information book of the node.
According to the embodiment of the present disclosure, the response message may be a third target client device response information summary message, which is generated based on the order information ledger of the third target service node, and the response message may include the full content in the order information ledger stored in the service node.
According to the embodiment of the present disclosure, whether the third target client device achieves the consensus may be determined based on whether the contents of the received response packet are consistent, and the consensus process may adopt the same or similar determination scheme as the other consensus processes in the embodiment of the present disclosure, which is not described herein again.
According to an embodiment of the present disclosure, the local storage device may be a storage device of the server device.
According to the embodiment of the disclosure, in the working mode of the server center, the group opening request or the group participation request initiated by the client device is processed by the server device, the operation resource of the client device is not consumed for information storage and processing operation, the purchase information and the payment information are only sent to the server device, and are not sent to other nodes in the block chain, and the heartbeat message is not sent regularly.
According to the embodiment of the disclosure, after receiving the summary success message, the client device may no longer send the heartbeat message, disconnect the connection with the corresponding service node, and exit the block chain network.
According to the embodiment of the disclosure, by the technical means, the calculation pressure can be delayed and dispersed, the effect of reducing the calculation pressure is achieved, and the enterprise can be effectively helped to reduce the investment cost of the server and the operation and maintenance of the server.
Fig. 7 schematically shows a block diagram of an order processing apparatus based on a blockchain network according to an embodiment of the present disclosure.
As shown in fig. 7, the order processing apparatus 700 based on the blockchain network includes a first receiving module 710, a first processing module 720, a first generating module 730, and a first storing module 740.
The first receiving module 710 is configured to receive a group opening request message from a first client device, where the group opening request message carries an item identifier and a purchase quantity.
A first processing module 720, configured to associate a first service node of the plurality of service nodes of the blockchain network with the first client device if the purchase number is less than the preset group purchase number.
A first generating module 730 for generating a group purchase order based on the item identification, wherein the group purchase order has an order identification.
The first storage module 740 is configured to add the block generated based on the order identifier and the grouping request message into an order information ledger of the block chain network.
According to the embodiment of the disclosure, in the case of receiving the group opening request of the first client device, whether the group can be formed independently is judged through the purchase quantity submitted by the first client device, and in the case of not being capable of forming the group independently, the first client device is associated with one business node in the block chain, and the related information of the group opening is stored in the order information book. The storage resources of the client equipment can be utilized through the block chain technology, the order information during the grouping can be stored on the client equipment, and the consumption of server resources is reduced, so that the technical problem that resources are wasted due to the fact that a server is added in the related technology is at least partially solved, the operation and maintenance cost of an e-commerce platform is effectively reduced, the pressure transfer of the server is realized on the basis that the server is not added, and the processing efficiency of the grouped order is improved.
According to the embodiment of the disclosure, the network address of the first client device is also carried in the clustering request message.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a second receiving module, a first determining module, a second generating module, and a first sending module.
And the second receiving module is used for receiving a group participation request message from the second client equipment, wherein the group participation request message carries the network address of the second client equipment, the first target object identifier, the first target order identifier and the target purchase quantity.
A first determination module to determine a first target group purchase order based on the first target item identification and the first target order identification.
And the second determining module is used for determining N first target service nodes associated with the first target group purchase order from the order information book, wherein N is more than or equal to 1.
A second generation module to generate a network address list based on network addresses of first target client devices associated with the N first target service nodes.
And the first sending module is used for returning the network address list to the second client device so that the second client device can send the group participation request messages to the N first target client devices respectively based on the network address list.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a third receiving module, a third determining module, a second processing module, and a second storage module.
And a third receiving module, configured to receive a feedback packet from the first target client device, where the feedback packet includes a packet-joining request packet generated by the first target client device.
A third determining module, configured to determine, based on all the received feedback packets, first common identification results of the N first target client devices.
A second processing module for associating a second service node of the plurality of service nodes of the blockchain network with a second client device if the first consensus result indicates the consent participation.
And the second storage module is used for adding the block generated based on the group participation request message into the order information account book.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a second transmitting module.
And the second sending module is used for sending feedback information representing the participation rejection to the second client equipment under the condition that the first consensus result shows that the participation is rejected.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a fourth determining module, a third generating module, and a fourth generating module.
And the fourth determining module is used for determining the current purchase quantity of the first target group purchase order by the first target client equipment based on the order information book of the first target service node.
And the third generation module is used for generating a feedback message which indicates that the first target client equipment agrees to participate in the group under the condition that the current purchase quantity is smaller than the preset group purchase quantity.
And the fourth generating module is used for generating the feedback message which is expressed as the participation rejection by the first target client equipment under the condition that the current purchase quantity is greater than or equal to the preset group purchase quantity.
According to an embodiment of the present disclosure, the third determination module includes a first determination unit and a second determination unit.
A first determining unit, configured to obtain a first consensus result expressed as an agreement group when the number of feedback messages expressed as the agreement group in the received feedback messages is greater than or equal to M, where M is a product of N and a preset consensus ratio.
And the second determining unit is used for obtaining a first consensus result which is expressed as the participation rejection under the condition that the number of the feedback messages which are expressed as the participation agreement in the received feedback messages is less than M.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on a blockchain network further includes a fourth receiving module, a fifth determining module, a fifth generating module, and a third storing module.
A fourth receiving module, configured to receive a group feedback message from a second target client device, where the group feedback message carries a second target item identifier and a second target order identifier, the second target client device has an associated second target service node, and the second target service node includes a service node corresponding to a second target group purchase order determined based on an order information book, where the second target group purchase order is determined based on the second target item identifier and the second target order identifier, and a current purchase quantity of the second target group purchase order is greater than or equal to a preset group purchase quantity.
A fifth determining module, configured to determine a second consensus result of the second target client device based on all the received clustered feedback packets.
And the fifth generating module is used for generating the business order based on the second consensus result and the second target group purchase order under the condition that the second consensus result shows that consensus is achieved.
And the third storage module is used for storing the business order into the local storage equipment so as to carry out goods delivery based on the business order.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a setting module.
The setting module is used for setting the timing task, so that under the condition that the timing task is triggered, a service node in the blockchain network sends a heartbeat message to other nodes in the blockchain network, so that all nodes in the blockchain network can commonly identify the content of the order information account book, wherein the heartbeat message carries summary information generated based on the order information account book.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a monitoring module, a third sending module, a sixth determining module, a fourth storing module, and a switching module.
And the monitoring module is used for monitoring the resource consumption state.
And the third sending module is used for returning an information summarizing message to the third target client device under the condition that the resource consumption state is represented as a low consumption state and under the condition that a heartbeat message of the third target client device is received, so that the third target client device responds to the information summarizing message, and a response message is generated based on an order information book of the third target service node, wherein the low consumption state represents that the resource consumption in a preset time range is lower than a preset threshold value.
A sixth determining module, configured to determine a third consensus result of the third target client device based on all the received response messages.
And the fourth storage module is used for storing the content of the response message into the local storage device under the condition that the third consensus result shows that consensus is achieved.
And the switching module is used for switching the working mode into a server center working mode.
According to an embodiment of the present disclosure, the order processing apparatus 700 based on the blockchain network further includes a fourth transmitting module.
And the fourth sending module is used for returning a successful summary message to the third target client device under the condition of receiving the response message, so that the third target client device exits from the blockchain network after receiving the successful summary message.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first receiving module 710, the first processing module 720, the first generating module 730 and the first storing module 740 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the first receiving module 710, the first processing module 720, the first generating module 730, and the first storing module 740 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or in a suitable combination of any several of them. Alternatively, at least one of the first receiving module 710, the first processing module 720, the first generating module 730 and the first storing module 740 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
It should be noted that, in the embodiment of the present disclosure, the order processing device part based on the blockchain network corresponds to the order processing method part based on the blockchain network in the embodiment of the present disclosure, and the description of the order processing device part based on the blockchain network specifically refers to the order processing method part based on the blockchain network, which is not described herein again.
Fig. 8 schematically shows a block diagram of an electronic device adapted to implement an order processing method based on a blockchain network according to an embodiment of the present disclosure. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are stored. The processor 801, the ROM802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM802 and/or RAM 803. Note that the programs may also be stored in one or more memories other than the ROM802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 800 may also include input/output (I/O) interface 805, input/output (I/O) interface 805 also connected to bus 804, according to an embodiment of the present disclosure. Electronic device 800 may also include one or more of the following components connected to I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM802 and/or RAM 803 described above and/or one or more memories other than the ROM802 and RAM 803.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product is run on an electronic device, the program code being configured to cause the electronic device to implement the method for order processing based on a blockchain network provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 801, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via communication section 809, and/or installed from removable media 811. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (14)

1. An order processing method based on a block chain network comprises the following steps:
receiving an opening request message from a first client device, wherein the opening request message carries an article identifier and a purchase quantity;
associating a first service node of a plurality of service nodes of the blockchain network with the first client device if the purchase quantity is less than a preset group purchase quantity;
generating a group purchase order based on the item identification, wherein the group purchase order has an order identification; and
and adding the block generated based on the order mark and the grouping request message into an order information account book of the block chain network.
2. The method according to claim 1, wherein the ungrouping request message further carries a network address of the first client device;
the method further comprises the following steps:
receiving a group participation request message from second client equipment, wherein the group participation request message carries a network address, a first target article identifier, a first target order identifier and a target purchase quantity of the second client equipment;
determining a first target group purchase order based on the first target item identification and a first target order identification;
determining N first target business nodes associated with the first target group purchase order from the order information book, wherein N is more than or equal to 1;
generating a network address list based on network addresses of first target client devices associated with the N first target service nodes; and
and returning the network address list to the second client device, so that the second client device can send the group participation request messages to the N first target client devices respectively based on the network address list.
3. The method of claim 2, further comprising:
receiving a feedback message from the first target client device, wherein the feedback message comprises a message generated by the first target client device based on the group participation request message;
determining first common identification results of the N first target client devices based on all received feedback messages;
associating a second traffic node of the plurality of traffic nodes of the blockchain network with the second client device if the first consensus result indicates agreement to the group; and
and adding the block generated based on the group joining request message into the order information account book.
4. The method of claim 3, further comprising:
and sending feedback information representing the participation rejection to the second client equipment under the condition that the first consensus result represents the participation rejection.
5. The method of claim 3, further comprising:
the first target client device determines a current purchase quantity of the first target group purchase order based on an order information book of the first target business node;
under the condition that the current purchase quantity is smaller than the preset group purchase quantity, the first target client device generates the feedback message which is expressed as an agreement group; and
and under the condition that the current purchase quantity is greater than or equal to the preset group purchase quantity, the first target client equipment generates the feedback message which is expressed as the rejection of group participation.
6. The method of claim 3, wherein the determining a first common identification result for the N first target client devices based on all received feedback packets comprises:
obtaining the first consensus result expressed as the agreement group under the condition that the number of the feedback messages expressed as the agreement group in the received feedback messages is greater than or equal to M, wherein M is the product of N and a preset consensus proportion; and
and under the condition that the number of the feedback messages which are expressed as the participation groups are agreed in the received feedback messages is less than M, obtaining the first consensus result which is expressed as the participation group rejection.
7. The method of any of claims 1-6, further comprising:
receiving a clustering feedback message from a second target client device, where the clustering feedback message carries a second target item identifier and a second target order identifier, the second target client device has an associated second target service node, and the second target service node includes a service node corresponding to a second target group purchase order determined based on the order information book, where the second target group purchase order is determined based on the second target item identifier and the second target order identifier, and a current purchase quantity of the second target group purchase order is greater than or equal to the preset group purchase quantity;
determining a second consensus result of the second target client device based on all the received clustered feedback messages;
generating a business order based on the second consensus result and the second target group purchase order under the condition that the second consensus result represents that consensus is achieved; and
and storing the business order into a local storage device so as to carry out goods delivery based on the business order.
8. The method of any of claims 1-6, further comprising:
and setting a timing task, so that under the condition of triggering the timing task, a service node in the blockchain network sends a heartbeat message to other nodes in the blockchain network, so that all nodes in the blockchain network can commonly identify the content of the order information book, wherein the heartbeat message carries summary information generated based on the order information book.
9. The method of claim 8, further comprising:
monitoring a resource consumption state;
under the condition that the resource consumption state is represented as a low consumption state, under the condition that a heartbeat message of a third target client device is received, returning an information summary message to the third target client device, so that the third target client device responds to the information summary message and generates a response message based on an order information book of a third target service node, wherein the low consumption state represents that the resource consumption in a preset time range is lower than a preset threshold value;
determining a third consensus result of the third target client device based on all the received response messages;
storing the content of the response message into a local storage device under the condition that the third consensus result shows that consensus is achieved; and
and switching the working mode into a server center working mode.
10. The method of claim 9, further comprising:
and under the condition of receiving the response message, returning a successful summary message to the third target client device, so that the third target client device exits from the block chain network after receiving the successful summary message.
11. An order processing apparatus based on a blockchain network, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an opening request message from first client equipment, and the opening request message carries an article identifier and a purchase quantity;
a first processing module, configured to associate a first service node of a plurality of service nodes of the blockchain network with the first client device when the purchase number is less than a preset group purchase number;
a first generation module, configured to generate a group purchase order based on the item identifier, where the group purchase order has an order identifier; and
and the first storage module is used for adding the blocks generated based on the order identification and the grouping request message into an order information account book of the block chain network.
12. An electronic device, comprising:
one or more processors;
a memory to store one or more instructions that,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-10.
13. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 10.
14. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 10 when executed.
CN202210068869.4A 2022-01-20 2022-01-20 Block chain network-based order processing method, device, equipment and medium Pending CN114418695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210068869.4A CN114418695A (en) 2022-01-20 2022-01-20 Block chain network-based order processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210068869.4A CN114418695A (en) 2022-01-20 2022-01-20 Block chain network-based order processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114418695A true CN114418695A (en) 2022-04-29

Family

ID=81275345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210068869.4A Pending CN114418695A (en) 2022-01-20 2022-01-20 Block chain network-based order processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114418695A (en)

Similar Documents

Publication Publication Date Title
Bajoudah et al. Toward a decentralized, trust-less marketplace for brokered IoT data trading using blockchain
CN108540536B (en) Block chain-based network mass service processing method, equipment and storage medium
US9218227B2 (en) Method and system for user-designed application deployment
US10630807B2 (en) Method and system for loading application- specific interfaces in a social networking application
CN111950249B (en) Message generation method and device, electronic equipment and storage medium
CN110213071B (en) Data checking method, device, system, computer equipment and storage medium
CA3059719A1 (en) Payment processing method, device, medium and electronic device
CN110874728A (en) Online payment system, online payment method, device, medium and server
CN112783629A (en) Service calling method and device, electronic equipment and storage medium
US10771623B1 (en) Rapid data access
US20230289692A1 (en) Risk management system interface
US20220327524A1 (en) Secure messaging-based delayed payout mediation with protective countermeasures
CN114418695A (en) Block chain network-based order processing method, device, equipment and medium
WO2016137727A1 (en) Affiliated individual identification and account recoupment
CN113657943B (en) Virtual asset transfer system, method, electronic equipment and storage medium
CN113132400B (en) Business processing method, device, computer system and storage medium
CN112182400B (en) Message processing method, message processing device, electronic equipment and storage medium
CN114677138A (en) Data processing method, data processing equipment and computer readable storage medium
CN111226242B (en) Cloud computing network inspection technology
CN113643014B (en) Block chain-based transaction management method, apparatus, device, medium, and program
CN111131438B (en) Method and apparatus for accessing block chains
US11750461B2 (en) Systems and methods for managing group service plan transactions
CN110430256B (en) Method, device and computer system for pushing transaction message
US20220051232A1 (en) Payment information correlation system and method
US20240054484A1 (en) Reconciliation systems and methods for unbounded streams

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