Order processing method, device, equipment and medium based on blockchain network

By storing order information using client devices in the blockchain network, the problem of waste of server resources in the group buying scenario is solved, and the transfer of server pressure and the improvement of processing efficiency is achieved.

CN114418695BActive Publication Date: 2025-08-22INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210068869.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2025-08-22
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

In the group buying scene, server pressure is concentrated in the first half of the activity, resulting in waste of resources in the second half of the activity, increasing operation and maintenance costs and waste of server resources.

Method used

Through the blockchain network, the client device is associated with the business node, the client storage resources are used to store order information, reduce server load, and add the block to the order information ledger when the consensus result is reached.

Benefits of technology

It effectively reduces server resource consumption, reduces operation and maintenance costs, and improves the processing efficiency of group buying orders without increasing the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418695B_ABST
    Figure CN114418695B_ABST
Patent Text Reader

Abstract

The present disclosure provides an order processing method based on a blockchain network, which can be applied to the blockchain technology field, the financial field, or other fields. The method includes: receiving a group purchase request message from a first client device, wherein the group purchase request message carries an item identification and a purchase quantity; when the purchase quantity is less than a preset group purchase quantity, associating a first business node among multiple business nodes of the blockchain network with the first client device; generating a group purchase order based on the item identification, wherein the group purchase order has an order identification; and adding a block generated based on the order identification and the group purchase request message to the order information ledger of the blockchain network. In addition, the present disclosure also provides an order processing device, electronic device, and readable storage medium based on a blockchain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of blockchain technology and finance, and more specifically, to an order processing method, device, electronic device, readable storage medium, and computer program product based on a blockchain network. Background Art

[0002] With the rapid development of Internet technology, online shopping has become the preferred shopping method for more and more people. Among them, group buying is a common marketing method used by current e-commerce platforms.

[0003] In group buying scenarios, the business logic required is more complex than that of regular online shopping, consuming more computing resources in a short period of time, which increases server pressure. In related technologies, adding servers is often used to address the increased server pressure in group buying scenarios.

[0004] However, due to the characteristics of group buying scenarios, the pressure on the server is usually concentrated in the first half of the scenario. Therefore, the use of the related technology of adding servers will cause resource waste in the second half of the scenario. Summary of the Invention

[0005] In view of this, the present disclosure provides an order processing method based on a blockchain network, an order processing device based on a blockchain network, an electronic device, a readable storage medium, and a computer program product.

[0006] One aspect of the present disclosure provides an order processing method based on a blockchain network, comprising: receiving a group purchase request message from a first client device, wherein the group purchase request message carries an item identifier and a purchase quantity; when the purchase quantity is less than a preset group purchase quantity, associating a first business node among multiple business nodes of the blockchain network with the first client device; generating a group purchase order based on the item identifier, wherein the group purchase order has an order identifier; and adding a block generated based on the order identifier and the group purchase request message to an order information ledger of the blockchain network.

[0007] According to an embodiment of the present disclosure, the above-mentioned group creation request message also carries the network address of the above-mentioned first client device; the above-mentioned method also includes: receiving a group joining request message from the second client device, wherein the above-mentioned group joining request message carries the network address of the above-mentioned second client device, the first target item identifier, the first target order identifier and the target purchase quantity; determining the first target group purchase order based on the above-mentioned first target item identifier and the first target order identifier; determining N first target business nodes associated with the above-mentioned first target group purchase order from the above-mentioned order information ledger, wherein N≥1; generating a network address list based on the network addresses of the first target client devices associated with the N above-mentioned first target business nodes; and returning the above-mentioned network address list to the above-mentioned second client device, so that the above-mentioned second client device can send the above-mentioned group joining request message to the N above-mentioned first target client devices respectively based on the above-mentioned network address list.

[0008] According to an embodiment of the present disclosure, the above-mentioned method also includes: receiving a feedback message from the above-mentioned first target client device, wherein the above-mentioned feedback message includes a message generated by the above-mentioned first target client device based on the above-mentioned group participation request message; determining a first consensus result of the N above-mentioned first target client devices based on all received feedback messages; when the above-mentioned first consensus result indicates agreement to participate in the group, associating a second business node among the multiple business nodes of the above-mentioned blockchain network with the above-mentioned second client device; and adding a block generated based on the above-mentioned group participation request message to the above-mentioned order information ledger.

[0009] According to an embodiment of the present disclosure, the method further includes: when the first consensus result indicates refusal to join the group, sending feedback information indicating refusal to join the group to the second client device.

[0010] According to an embodiment of the present disclosure, the above-mentioned method also includes: the above-mentioned first target client device determines the current purchase quantity of the above-mentioned first target group purchase order based on the order information ledger of the above-mentioned first target business node; when the above-mentioned current purchase quantity is less than the above-mentioned preset group purchase quantity, the above-mentioned first target client device generates the above-mentioned feedback message indicating agreement to join the group; and when the above-mentioned current purchase quantity is greater than or equal to the above-mentioned preset group purchase quantity, the above-mentioned first target client device generates the above-mentioned feedback message indicating refusal to join the group.

[0011] According to an embodiment of the present disclosure, the above-mentioned determination of the first consensus result of the N above-mentioned first target client devices based on all received feedback messages includes: when the number of feedback messages indicating agreement to join the group in the received feedback messages is greater than or equal to M, obtaining the above-mentioned first consensus result indicating agreement to join the group, wherein the above-mentioned M is the product of N and a preset consensus ratio; and when the number of feedback messages indicating agreement to join the group in the received feedback messages is less than M, obtaining the above-mentioned first consensus result indicating refusal to join the group.

[0012] According to an embodiment of the present disclosure, the above method also includes: receiving a group feedback message from a second target client device, wherein the above group feedback message carries a second target item identifier and a second target order identifier, the above second target client device has an associated second target business node, and the above second target business node includes a business node corresponding to the second target group purchase order determined based on the above order information ledger, wherein the above second target group purchase order is determined based on the above second target item identifier and the above second target order identifier, and the current purchase quantity of the above second target group purchase order is greater than or equal to the above preset group purchase quantity; determining a second consensus result of the above second target client device based on all received group feedback messages; when the above second consensus result indicates that consensus has been reached, generating a business order based on the above second consensus result and the above second target group purchase order; and storing the above business order in a local storage device so as to ship the items based on the above business order.

[0013] According to an embodiment of the present disclosure, the above method also includes: setting a scheduled task so that when the above scheduled task is triggered, the business node in the above blockchain network sends a heartbeat message to other nodes in the above blockchain network, so that all nodes in the above blockchain network can reach a consensus on the content of the above order information ledger, wherein the above heartbeat message carries summary information generated based on the above order information ledger.

[0014] According to an embodiment of the present disclosure, the above method also includes: monitoring the resource consumption status; when the above resource consumption status is indicated as a low consumption status, upon receiving a heartbeat message from the third target client device, returning an information summary message to the above third target client device, so that the above third target client device responds to the above information summary message, and generates a response message based on the order information ledger of the above third target business node, wherein the above low consumption status indicates that the resource consumption within a preset time range is lower than a preset threshold; determining the third consensus result of the above third target client device based on all received response messages; when the above third consensus result indicates that consensus is reached, storing the content of the above response message in a local storage device; and switching the working mode to the server center working mode.

[0015] According to an embodiment of the present disclosure, the above method also includes: upon receiving the above response message, returning a summary success message to the above third target client device, so that the above third target client device exits the above blockchain network after receiving the above summary success message.

[0016] Another aspect of the present disclosure provides an order processing device based on a blockchain network, comprising: a first receiving module, configured to receive a group purchase request message from a first client device, wherein the group purchase request message carries an item identifier and a purchase quantity; a first processing module, configured to associate a first business node among multiple business nodes of the blockchain network with the first client device when the purchase quantity is less than a preset group purchase quantity; a first generating module, configured to generate a group purchase order based on the item identifier, wherein 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 purchase request message to an order information ledger of the blockchain network.

[0017] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method described above.

[0018] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method described above when executed.

[0019] Another aspect of the present disclosure provides a computer program product comprising computer executable instructions, which are used to implement the method described above when the instructions are executed.

[0020] According to an embodiment of the present disclosure, when a request to start a group purchase is received from a first client device, it is determined whether a separate group purchase can be formed based on the purchase quantity submitted by the first client device. If a separate group purchase cannot be formed, the first client device is associated with a business node in the blockchain, and the relevant information for starting the group purchase is stored in the order information ledger. Blockchain technology can utilize the storage resources of the client device, and the order information when the group purchase is made can be stored on the client device, reducing the consumption of server resources. Therefore, it at least partially overcomes the technical problem in the related art that adding servers will cause waste of resources, thereby effectively reducing the operation and maintenance costs of the e-commerce platform, and realizing the transfer of server pressure without adding servers, thereby improving the processing efficiency of group purchase orders. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0022] Figure 1 The present invention schematically illustrates an exemplary system architecture to which a blockchain network-based order processing method according to an embodiment of the present disclosure can be applied.

[0023] Figure 2 The flowchart of the method for processing group orders based on a blockchain network according to an embodiment of the present disclosure is schematically shown.

[0024] Figure 3 The flowchart of the group order processing method based on the blockchain network according to an embodiment of the present disclosure is schematically shown.

[0025] Figure 4 The present invention schematically illustrates a flowchart of a method for interaction between business nodes in a blockchain network according to an embodiment of the present disclosure.

[0026] Figure 5 The flowchart of the method for processing orders after group formation based on the blockchain network according to an embodiment of the present disclosure is schematically shown.

[0027] Figure 6 The flowchart of the method for switching the working mode of a server device according to an embodiment of the present disclosure is schematically shown.

[0028] Figure 7 The block diagram schematically shows an order processing device based on a blockchain network according to an embodiment of the present disclosure.

[0029] Figure 8 A block diagram of an electronic device suitable for implementing an order processing method based on a blockchain network according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0030] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0031] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0032] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0033] When expressions such as “at least one of A, B, and C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, and C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.). When expressions such as “at least one of A, B, or C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, or C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.).

[0034] In online shopping scenarios, group buying often offers lower unit prices, making it increasingly popular among consumers. However, group buying typically requires that the total purchase quantity of multiple consumers within a group order exceed the minimum group size. Therefore, in this scenario, servers need to store a large amount of order information and update it in real time, increasing server pressure.

[0035] On the other hand, when e-commerce platforms launch group buying events, they typically set a maximum number of units per item for profit. Consequently, peak server pressure in the first half of the event is typically concentrated, while the latter half experiences less pressure. Therefore, adopting the related art solution of adding servers would result in significant waste of server resources in the latter half of the event, and adding servers would also increase costs, including server purchase, maintenance, and server space.

[0036] In view of this, an embodiment of the present disclosure provides an order processing method based on a blockchain network to reduce server performance pressure in group buying scenarios.

[0037] Specifically, embodiments of the present disclosure provide a blockchain-based order processing method, apparatus, electronic device, readable storage medium, and computer program product. The method includes: receiving a group purchase request message from a first client device, wherein the group purchase request message carries an item identifier and a purchase quantity; if the purchase quantity is less than a preset group purchase quantity, associating a first service node among multiple service nodes of the blockchain network with the first client device; generating a group purchase order based on the item identifier, wherein the group purchase order has an order identifier; and adding a block generated based on the order identifier and the group purchase request message to an order information ledger of the blockchain network.

[0038] It should be noted that the blockchain-based order processing method and apparatus determined in the embodiments of the present disclosure can be used in the blockchain technology field or the financial field. For example, the embodiments of the present disclosure can be applied to online promotional activities of mobile banking to reduce activity costs. The blockchain-based order processing method and apparatus determined in the embodiments of the present disclosure can also be used in any field other than the blockchain technology field and the financial field. The application field of the blockchain-based order processing method and apparatus determined in the embodiments of the present disclosure is not limited.

[0039] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0040] In the technical solution disclosed herein, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0041] Figure 1 The following schematically illustrates an exemplary system architecture to which a blockchain network-based order processing method according to an embodiment of the present disclosure can be applied. Figure 1 The examples shown are merely examples of system architectures 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, but do not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments or scenarios.

[0042] like Figure 1 As shown, the system architecture 100 according to this embodiment may include service nodes 101 , 102 , 103 , 104 , 105 , and 106 .

[0043] Business nodes 101, 102, 103, 104, 105, and 106 can be any node in the blockchain network.

[0044] The service nodes 101 , 102 , 103 , 104 , 105 , and 106 may have corresponding electronic devices, which may be client devices or server devices, including but not limited to mobile phones, computers, servers, and the like.

[0045] The service nodes 101 , 102 , 103 , 104 , 105 , and 106 may be connected via a network, which may include various connection types, such as wired and / or wireless communication links.

[0046] Business nodes 101, 102, 103, 104, 105, and 106 may be configured with a blockchain ledger, the contents of which may be synchronized in real time over the network.

[0047] It should be noted that the order processing method based on the blockchain network provided in the embodiment of the present disclosure can generally be executed by an electronic device corresponding to any one of the business nodes 101, 102, 103, 104, 105, and 106; accordingly, the order processing device based on the blockchain network provided in the embodiment of the present disclosure can generally be set in an electronic device corresponding to any one of the business nodes 101, 102, 103, 104, 105, and 106.

[0048] It should be understood that Figure 1 The number of service nodes in FIG is only for illustration. Any number of service nodes may be provided according to implementation requirements.

[0049] Figure 2 The flowchart of the method for processing group orders based on a blockchain network according to an embodiment of the present disclosure is schematically shown.

[0050] like Figure 2 As shown, the method includes operations S201 to S204.

[0051] In operation S201, a group creation request message is received from a first client device, wherein the group creation request message carries an item identifier and a purchase quantity.

[0052] In operation S202 , when the purchase quantity is less than a preset group purchase quantity, a first business node among multiple business nodes of the blockchain network is associated with the first client device.

[0053] In operation S203 , a group purchase order is generated based on the item identifier, wherein the group purchase order has an order identifier.

[0054] In operation S204, the block generated based on the order identifier and the group creation request message is added to the order information ledger of the blockchain network.

[0055] According to an embodiment of the present disclosure, there may be multiple business nodes in a blockchain network, and one of the multiple business nodes establishes an association relationship with a server device.

[0056] According to an embodiment of the present disclosure, the first client device may be any electronic device that supports a specific client application, such as a mobile phone or a computer. The specific client application may be a shopping application. A user may perform a click operation within the shopping application. Upon receiving the click operation, the first client device may generate a group creation request message based on the clicked target item.

[0057] According to an embodiment of the present disclosure, the first client device may send a group creation request message to the server device based on the network address of the server device.

[0058] In some embodiments, in addition to the item identification and purchase quantity, the group creation request message may also include information such as the group creation user identification, the network address of the first client device, the payment bill identification, an encrypted verification field, etc. This information can be used to verify the user's identity, ship the items after the group is confirmed, and refund if the group fails to be formed.

[0059] According to an embodiment of the present disclosure, the preset group purchase quantity can be set according to a specific business scenario.

[0060] According to an embodiment of the present disclosure, when the purchase quantity in the group purchase request message is greater than or equal to the preset group purchase quantity, it can be considered that the order corresponding to the group purchase request message can be formed into a separate group, and the server device can return a message requesting the provision of shipping information to the first client device so as to directly enter the shipping process, or enter the shipping process after the pressure on the server device drops.

[0061] According to an embodiment of the present disclosure, there may be multiple group purchase orders for one item at the same time, and each group purchase order uniquely corresponds to an item identifier and an order identifier of the group purchase order.

[0062] 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 business node of the blockchain network in real time.

[0063] According to an embodiment of the present disclosure, when a request to start a group purchase is received from a first client device, it is determined whether a separate group purchase can be formed based on the purchase quantity submitted by the first client device. If a separate group purchase cannot be formed, the first client device is associated with a business node in the blockchain, and the relevant information for starting the group purchase is stored in the order information ledger. Blockchain technology can utilize the storage resources of the client device, and the order information when the group purchase is made can be stored on the client device, reducing the consumption of server resources. Therefore, it at least partially overcomes the technical problem in the related art that adding servers will cause waste of resources, thereby effectively reducing the operation and maintenance costs of the e-commerce platform, and realizing the transfer of server pressure without adding servers, thereby improving the processing efficiency of group purchase orders.

[0064] Reference below Figures 3 to 6 , combined with specific embodiments Figure 2 The method shown is further explained.

[0065] Figure 3 The flowchart of the group order processing method based on the blockchain network according to an embodiment of the present disclosure is schematically shown.

[0066] like Figure 3 As shown, the method includes operations S301 to S310.

[0067] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present disclosure, or there is a sequence of execution between different operations in technical implementation, otherwise, the execution order between multiple operations may not be prioritized, and multiple operations may also be executed simultaneously.

[0068] In operation S301, a group joining request message is received from a second client device.

[0069] In operation S302, a first target group purchase order is determined based on the group joining request message.

[0070] In operation S303, N first target business nodes associated with the first target group purchase order in the blockchain network are determined.

[0071] 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.

[0072] In operation S305 , the network address list is returned to the second client device.

[0073] In operation S306 , a feedback message is received from the first target client device.

[0074] In operation S307 , it is determined whether the first target service nodes have reached a consensus. If it is determined that the first target service nodes have reached a consensus, operation S308 is performed. If it is determined that the first target service nodes have not reached a consensus, operation S310 is performed.

[0075] In operation S308, a second business node among the plurality of business nodes of the blockchain network is associated with the second client device.

[0076] In operation S309, the block generated based on the group joining request message is added to the order information ledger.

[0077] In operation S310 , feedback information indicating refusal to join the group is sent to the second client device.

[0078] According to an embodiment of the present disclosure, the group joining request message may carry the network address of the second client device, the first target item identifier, the first target order identifier and the target purchase quantity; accordingly, the group creation request message may also carry the network address of the first client device.

[0079] According to an embodiment of the present disclosure, the second client device can be any electronic device that supports a specific client application, such as a mobile phone or a computer. The specific client application can be a shopping application. A user can perform a click operation within the shopping application. Upon receiving the click operation, the second client device assembles a group joining request message based on the target item and target group corresponding to the clicked group group option.

[0080] In some embodiments, corresponding to the group creation request message, the group joining request message may also carry information such as the group joining user identifier, payment bill representation, and encryption verification field.

[0081] According to an embodiment of the present disclosure, the first target group purchase order may be determined based on the first target item identifier and the first target order identifier.

[0082] According to an embodiment of the present disclosure, N may be a positive integer greater than or equal to 1.

[0083] According to an embodiment of the present disclosure, based on the contents of multiple blocks in the order information ledger, one or more group purchase orders associated with each business node can be determined, and then based on the order identifier of the first target group purchase order, N first target business nodes associated with the first target group purchase order can be determined.

[0084] According to an embodiment of the present disclosure, based on the contents of multiple blocks in the order information ledger, the network address of the client device associated with each business node can be determined; the network address list may include the network addresses of N first target client devices.

[0085] According to an embodiment of the present disclosure, after returning the network address list to the second client device, the second client device may send group joining request messages to each of the N first target client devices based on the network address list.

[0086] According to an embodiment of the present disclosure, after receiving a group-joining request message, the first target client device can determine whether the total purchase quantity meets the group-joining criteria based on the target purchase quantity carried in the group-joining request message and the current purchase quantity determined based on the order information ledger, and send a feedback message to the server device based on the judgment result. Specifically, the first target client device determines the current purchase quantity of the first target group purchase order based on the order information ledger of the first target business node; if the current purchase quantity is less than the preset group purchase quantity, the first target client device generates a feedback message indicating that it agrees to join the group; and if the current purchase quantity is greater than or equal to the preset group purchase quantity, the first target client device generates a feedback message indicating that it refuses to join the group.

[0087] According to an embodiment of the present disclosure, the current purchase quantity may be the sum of the purchase quantities of the target item by users corresponding to the N first target service nodes.

[0088] According to an embodiment of the present disclosure, a first consensus result of N first target client devices can be determined based on all received feedback messages. For example, when the number of feedback messages indicating agreement to join the group in the received feedback messages is greater than or equal to M, a first consensus result indicating agreement to join the group can be obtained, wherein M is the product of N and a preset consensus ratio; when the number of feedback messages indicating agreement to join the group in the received feedback messages is less than M, a first consensus result indicating refusal to join the group can be obtained; wherein the preset consensus ratio can be set according to the specific application scenario, for example, it can be set to 3 / 5, 5 / 6, 1, etc. For another example, when the number of received feedback messages is greater than or equal to N / 2, and the received feedback messages do not indicate agreement to join the group, a first consensus result indicating agreement to join the group can be obtained; otherwise, a first consensus result indicating refusal to join the group can be obtained.

[0089] According to an embodiment of the present disclosure, after receiving the feedback information of rejection of group participation, the second client device can display the information to the user through the display device of the second client device, so that the user can perform subsequent refund operations and group opening and group participation operations.

[0090] According to the embodiments of the present disclosure, through the above-mentioned technical means, in the group joining process, the server-side device only needs to perform data communication and statistical operations, while the specific logical operations such as judging whether it is possible to join the group are performed by the client device, thereby effectively reducing the operating pressure of the server-side device and improving the processing efficiency of puzzle orders.

[0091] Figure 4 The present invention schematically illustrates a flowchart of a method for interaction between business nodes in a blockchain network according to an embodiment of the present disclosure.

[0092] like Figure 4 As shown, the method includes operations S401 to S403.

[0093] In operation S401, it is determined whether a scheduled task is triggered; if it is determined that the scheduled task is triggered, operation S402 is executed; if it is determined that the scheduled task is not triggered, the process returns to operation S401.

[0094] In operation S402, a service node in the blockchain network sends a heartbeat message to other nodes in the blockchain network.

[0095] In operation S403, other nodes reach a consensus on the contents of the order information ledger.

[0096] According to an embodiment of the present disclosure, a scheduled task may be pre-set in each business node. The scheduled task may be to send a heartbeat message to other business nodes in the blockchain network at regular intervals to verify the order information ledger stored in each business node.

[0097] According to an embodiment of the present disclosure, the heartbeat message may carry summary information of the order information ledger. For example, the summary information may be the MD5 code of the order information ledger in the service node.

[0098] According to an embodiment of the present disclosure, other nodes may reach a consensus on the contents of the order information ledger by synchronizing the contents of the order information ledger based on the contents of more than half of the nodes, and completing or correcting the contents of the order information ledger in the inconsistent business nodes.

[0099] In some embodiments, the other nodes may include a server node associated with the server device. In this case, the service node may also add the network address of the current client device to the heartbeat message so that the server node uses the current network address to update the originally recorded network address to update the network address list.

[0100] In some embodiments, after receiving the heartbeat message from the business node, the server node may also return a response message to the business node, which may carry a list of items for which the puzzle has been completed. After receiving the list of items, the client device corresponding to the business node may determine whether the target item of the group purchase order corresponding to the client device is on the list; if the target item of the group purchase order corresponding to the client device is on the list, a feedback message "The rush for xx item has ended, failed to grab xx item, automatic refund in progress" may be displayed to the user on the display device; thereafter, the client device may send the locally recorded data to the server device, so that after the operating pressure of the server device decreases, the server device can verify and reconcile the data with the data of other nodes participating in the same group and then perform the refund operation.

[0101] Figure 5 The flowchart of the method for processing orders after group formation based on the blockchain network according to an embodiment of the present disclosure is schematically shown.

[0102] like Figure 5 As shown, the method includes operations S501 to S506.

[0103] In operation S501 , a clumping feedback message is received from a second target client device.

[0104] In operation S502, determine whether the number of received clustering feedback messages is less than a preset threshold; if it is determined that the number of received clustering feedback messages is greater than or equal to the preset threshold, perform operation S503; if it is determined that the number of received clustering feedback messages is less than the preset threshold, return to perform operation S501 to continue receiving clustering feedback messages from other second target client devices.

[0105] In operation S503, it is determined whether the second target service nodes have reached a consensus; if it is determined that the second target service nodes have reached a consensus, operation S504 is performed; if it is determined that the second target service nodes have not reached a consensus, operation S506 is performed.

[0106] In operation S504 , a business order is generated based on the second consensus result and the second target group purchase order.

[0107] In operation S505, the business order is stored in a local storage device.

[0108] In operation S506, a warning message of abnormal rush purchase is generated to remind operation and maintenance personnel to handle the situation.

[0109] According to an embodiment of the present disclosure, the group formation feedback message may carry the second target item identifier and the second target order identifier.

[0110] According to an embodiment of the present disclosure, after the purchase quantity of the group purchase order corresponding to the second target order identifier determined based on the order information ledger reaches the group formation quantity, the second target client device can send a group formation feedback message to the server device.

[0111] In some embodiments, the group formation feedback message may also carry information such as a user identifier, a payment bill identifier, a network address of the second target client device, a purchase quantity, address information, an encrypted checksum field, and the like.

[0112] According to an embodiment 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. 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.

[0113] According to an embodiment of the present disclosure, the preset threshold may be set to a certain proportion of the number of second target client devices. For example, when the number of second target client devices is K, the preset threshold may be set to 0.6*K.

[0114] According to an embodiment of the present disclosure, the second consensus result of the second target client device can be determined based on all received clustering feedback messages, thereby judging whether the second target business node has reached a consensus. For example, if the content of 5 / 6 or more of the clustering feedback messages received is consistent, it can be considered that the second target business node has reached a consensus; if the number of clustering feedback messages with consistent content in all received clustering feedback messages is less than 5 / 6 of the number of received clustering feedback messages, but the number of clustering feedback messages with consistent content is greater than or equal to half of the number of second target client devices, it can also be considered that the second target business node has reached a consensus; if the number of clustering feedback messages with consistent content in all received clustering feedback messages is less than 5 / 6 of the number of received clustering feedback messages, and the number of clustering feedback messages with consistent content is less than half of the number of second target client devices, it can be considered that the second target business node has not reached a consensus.

[0115] According to an embodiment of the present disclosure, after a business order is stored in a local storage device, subsequent delivery processing can be performed after the operating pressure of the server device decreases.

[0116] Figure 6 The flowchart of the method for switching the working mode of a server device according to an embodiment of the present disclosure is schematically shown.

[0117] like Figure 6As shown, the method includes operations S601 to S608.

[0118] In operation S601 , a resource consumption state is monitored.

[0119] In operation S602, it is determined whether the resource consumption state is a low consumption state; if it is determined that the resource consumption state is a low consumption state, operation S603 is executed; if it is determined that the resource consumption state is a high consumption state, the process returns to operation S601.

[0120] In operation S603 , when the heartbeat message of the third target client device is received, an information summary message is returned to the third target client device.

[0121] In operation S604 , a response message is received from the third target client device.

[0122] In operation S605 , it is determined whether the third target client device reaches a consensus; if it is determined that the third target client device reaches a consensus, operation S606 is executed; if it is determined that the third target client device does not reach a consensus, the process returns to execute operation S603 .

[0123] In operation S606, the content of the response message is stored in a local storage device.

[0124] In operation S607, the working mode is switched to a server-centric working mode.

[0125] In operation S608 , a summary success message is returned to the third target client device.

[0126] According to an embodiment of the present disclosure, the resource consumption status may include a CPU consumption status and a memory occupancy status of the server device.

[0127] According to an embodiment of the present disclosure, the low consumption state can be the CPU consumption state, memory occupancy state, etc. of the server device within a period of time, which are preset thresholds of the region. For example, the CPU consumption of the server device does not exceed 50%, and the memory occupancy does not exceed 40% and lasts for 5 minutes.

[0128] According to an embodiment of the present disclosure, the heartbeat message may be a heartbeat message generated after a scheduled task is triggered in the method of operations S401 to S403 .

[0129] According to an embodiment of the present disclosure, the information summary message may carry a summary instruction to instruct the service node to summarize and package all the contents in the order information ledger under the node.

[0130] According to an embodiment of the present disclosure, the reply message may be a response information summary message of the third target client device, generated based on the order information ledger of the third target business node, and the reply message may include the full content of the order information ledger stored under the business node.

[0131] According to an embodiment of the present disclosure, whether the third target client device reaches a consensus can be determined based on whether the content of the received response message is consistent. Its consensus process can adopt the same or similar judgment scheme as other consensus processes of the embodiment of the present disclosure, which will not be repeated here.

[0132] According to an embodiment of the present disclosure, the local storage device may be a storage device of a server device.

[0133] According to the embodiments of the present disclosure, in the server-centric working mode, requests for starting or joining a group initiated by a client device are all processed by the server device, and the computing resources of the client device are no longer consumed for information storage and processing operations. Purchase information and payment information are only sent to the server device, and are not sent to other nodes in the blockchain, and there is no need to send heartbeat messages regularly.

[0134] According to an embodiment of the present disclosure, after receiving the summary success message, the client device may no longer send heartbeat messages, disconnect from the corresponding business node, and exit the blockchain network.

[0135] According to the embodiments of the present disclosure, the above-mentioned technical means can be used to postpone and disperse computing pressure, thereby achieving the effect of reducing computing pressure, and can effectively help enterprises reduce investment costs in servers and server operation and maintenance.

[0136] Figure 7 The block diagram schematically shows an order processing device based on a blockchain network according to an embodiment of the present disclosure.

[0137] like Figure 7 As shown, the order processing device 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 storage module 740.

[0138] The first receiving module 710 is configured to receive a group creation request message from a first client device, wherein the group creation request message carries an item identifier and a purchase quantity.

[0139] The first processing module 720 is configured to associate a first business node among multiple business nodes of the blockchain network with the first client device when the purchase quantity is less than a preset group purchase quantity.

[0140] The first generating module 730 is configured to generate a group purchase order based on the item identifier, wherein the group purchase order has an order identifier.

[0141] The first storage module 740 is used to add the block generated based on the order identifier and the group creation request message to the order information ledger of the blockchain network.

[0142] According to an embodiment of the present disclosure, when a request to start a group purchase is received from a first client device, it is determined whether a separate group purchase can be formed based on the purchase quantity submitted by the first client device. If a separate group purchase cannot be formed, the first client device is associated with a business node in the blockchain, and the relevant information for starting the group purchase is stored in the order information ledger. Blockchain technology can utilize the storage resources of the client device, and the order information when the group purchase is made can be stored on the client device, reducing the consumption of server resources. Therefore, it at least partially overcomes the technical problem in the related art that adding servers will cause waste of resources, thereby effectively reducing the operation and maintenance costs of the e-commerce platform, and realizing the transfer of server pressure without adding servers, thereby improving the processing efficiency of group purchase orders.

[0143] According to an embodiment of the present disclosure, the group creation request message also carries the network address of the first client device.

[0144] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a second receiving module, a first determining module, a second determining module, a second generating module and a first sending module.

[0145] The second receiving module is configured to receive a group joining request message from a second client device, wherein the group joining request message carries the network address of the second client device, the first target item identifier, the first target order identifier, and the target purchase quantity.

[0146] The first determining module is configured to determine a first target group purchase order based on a first target item identifier and a first target order identifier.

[0147] The second determining module is used to determine N first target business nodes associated with the first target group purchase order from the order information ledger, where N≥1.

[0148] The second generating module is configured to generate a network address list based on the network addresses of the first target client devices associated with the N first target service nodes.

[0149] The first sending module is configured to return a network address list to the second client device, so that the second client device can send group joining request messages to the N first target client devices respectively based on the network address list.

[0150] According to an embodiment of the present disclosure, the order processing device 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.

[0151] The third receiving module is configured to receive a feedback message from the first target client device, wherein the feedback message is generated by the first target client device based on the group joining request message.

[0152] The third determining module is configured to determine a first consensus result of the N first target client devices based on all received feedback messages.

[0153] The second processing module is used to associate a second business node among the multiple business nodes of the blockchain network with the second client device when the first consensus result indicates agreement to join the group.

[0154] The second storage module is used to add the block generated based on the group joining request message to the order information ledger.

[0155] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a second sending module.

[0156] The second sending module is configured to send feedback information indicating refusal to join the group to the second client device when the first consensus result indicates refusal to join the group.

[0157] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a fourth determination module, a third generation module and a fourth generation module.

[0158] The fourth determination module is used for the first target client device to determine the current purchase quantity of the first target group purchase order based on the order information ledger of the first target business node.

[0159] The third generating module is configured to enable the first target client device to generate a feedback message indicating that the first target client device agrees to join the group purchase when the current purchase quantity is less than the preset group purchase quantity.

[0160] The fourth generating module is configured to generate, when the current purchase quantity is greater than or equal to the preset group purchase quantity, a feedback message indicating a refusal to participate in the group purchase by the first target client device.

[0161] According to an embodiment of the present disclosure, the third determining module includes a first determining unit and a second determining unit.

[0162] The first determining unit is configured to obtain a first consensus result indicating agreement to join the group when the number of feedback messages indicating agreement to join the group in the received feedback messages is greater than or equal to M, where M is the product of N and a preset consensus ratio.

[0163] The second determining unit is configured to obtain a first consensus result indicating a refusal to join the group if the number of feedback messages indicating agreement to join the group in the received feedback messages is less than M.

[0164] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a fourth receiving module, a fifth determining module, a fifth generating module and a third storage module.

[0165] The fourth receiving module is used to receive a group formation feedback message from the second target client device, wherein the group formation feedback message carries the second target item identifier and the second target order identifier, the second target client device has an associated second target business node, the second target business node includes a business node corresponding to the second target group purchase order determined based on the order information ledger, wherein 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.

[0166] The fifth determining module is configured to determine a second consensus result of the second target client device based on all received clique feedback messages.

[0167] The fifth generating module is configured to generate a business order based on the second consensus result and the second target group purchase order when the second consensus result indicates that a consensus has been reached.

[0168] The third storage module is used to store the business order in a local storage device so as to ship the items based on the business order.

[0169] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a setting module.

[0170] The setting module is used to set a scheduled task so that when the scheduled task is triggered, the business 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 reach a consensus on the contents of the order information ledger. The heartbeat message carries summary information generated based on the order information ledger.

[0171] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a monitoring module, a third sending module, a sixth determination module, a fourth storage module and a switching module.

[0172] The monitoring module is used to monitor resource consumption status.

[0173] The third sending module is used to return an information summary message to the third target client device when the resource consumption state is indicated as a low consumption state and when a heartbeat message from the third target client device is received, so that the third target client device responds to the information summary message and generates a reply message based on the order information ledger of the third target business node, wherein the low consumption state indicates that the resource consumption within a preset time range is lower than a preset threshold.

[0174] A sixth determining module is configured to determine a third consensus result of a third target client device based on all received response messages.

[0175] The fourth storage module is configured to store the content of the response message in a local storage device when the third consensus result indicates that consensus has been reached.

[0176] The switching module is used to switch the working mode to the server center working mode.

[0177] According to an embodiment of the present disclosure, the order processing device 700 based on the blockchain network further includes a fourth sending module.

[0178] The fourth sending module is used to return a summary success message to the third target client device when the response message is received, so that the third target client device exits the blockchain network after receiving the summary success message.

[0179] According to the modules, submodules, units, and subunits of the embodiments of the present invention, any multiple or at least part of the functions of any multiple thereof can be implemented in one module. According to the modules, submodules, units, and subunits of the embodiments of the present invention, any one or more thereof can be split into multiple modules for implementation. According to the modules, submodules, units, and subunits of the embodiments of the present invention, any one or more thereof can 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 can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, according to the modules, submodules, units, and subunits of the embodiments of the present invention, one or more thereof can be at least partially implemented as a computer program module, which can perform the corresponding function when the computer program module is run.

[0180] For example, any multiple of the first receiving module 710, the first processing module 720, the first generating module 730, and the first storage module 740 can be combined into one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions 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 storage module 740 can 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 can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or in any one of the three implementation modes of software, hardware, and firmware, or in an appropriate combination of any 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 storage module 740 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.

[0181] It should be noted that the order processing device part based on the blockchain network in the embodiments of the present disclosure corresponds to the order processing method part based on the blockchain network in the embodiments of the present disclosure. 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 will not be repeated here.

[0182] Figure 8 A block diagram of an electronic device suitable for implementing an order processing method based on a blockchain network according to an embodiment of the present disclosure is schematically shown. Figure 8 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0183] like Figure 8As shown, the 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 part 808 into a random access memory (RAM) 803. The processor 801 may, for example, include a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for executing different actions of the method flow according to an embodiment of the present disclosure.

[0184] Various programs and data required for the operation of the electronic device 800 are stored in the RAM 803. The processor 801, ROM 802, and RAM 803 are connected to each other via a bus 804. The processor 801 executes the programs in the ROM 802 and / or RAM 803 to perform various operations of the method flow according to the embodiment of the present disclosure. It should be noted that the programs may also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also execute the programs stored in the one or more memories to perform various operations of the method flow according to the embodiment of the present disclosure.

[0185] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the I / O interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 808 including a hard disk; and a communication portion 809 including a network interface card such as a LAN card or a modem. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed in the drive 810 as needed, so that a computer program read therefrom can be installed into the storage portion 808 as needed.

[0186] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0187] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.

[0188] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0189] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 802 and / or the RAM 803 described above and / or one or more memories other than the ROM 802 and the RAM 803 .

[0190] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, which contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the order processing method based on the blockchain network provided by the embodiment of the present disclosure.

[0191] When the computer program is executed by the processor 801, the above functions defined in the system / device of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0192] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0193] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0194] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the boxes may occur in an order different from that marked in the accompanying drawings. For example, two boxes shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, as well as the combination of boxes in the block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or may be implemented using a combination of dedicated hardware and computer instructions. It will be understood by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in various ways, and all such combinations and / or couplings fall within the scope of the present disclosure.

[0195] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for processing orders based on a blockchain network, comprising: receiving a group purchase request message from a first client device, wherein the group purchase request message carries an item identifier and a purchase quantity; When the purchase quantity is less than a preset group purchase quantity, associating a first business node among the plurality of business nodes of the blockchain network with the first client device; generating a group purchase order based on the item identifier, wherein the group purchase order has an order identifier; and Adding a block generated based on the order identifier and the group creation request message to the order information ledger of the blockchain network; The group creation request message also carries the network address of the first client device; The method further comprises: receiving a group joining request message from a second client device, wherein the group joining request message carries a network address of the second client device, a first target item identifier, a first target order identifier, and a target purchase quantity; 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 ledger, where N ≥ 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 The network address list is returned to the second client device, so that the second client device can send the group joining request message to each of the N first target client devices based on the network address list.

2. The method according to claim 1, further comprising: receiving a feedback message from the first target client device, wherein the feedback message includes information generated by the first target client device based on the group joining request message; Determine a first consensus result of the N first target client devices based on all received feedback messages; When the first consensus result indicates agreement to join the group, associating a second business node among the plurality of business nodes of the blockchain network with the second client device; and The block generated based on the group joining request message is added to the order information ledger.

3. The method according to claim 2, further comprising: In a case where the first consensus result indicates refusal to join the group, feedback information indicating refusal to join the group is sent to the second client device.

4. The method according to claim 2, further comprising: The first target client device determines the current purchase quantity of the first target group purchase order based on the order information ledger of the first target business node; When the current purchase quantity is less than the preset group purchase quantity, the first target client device generates the feedback message indicating that the first target client device agrees to join the group purchase; as well as In a case where the current purchase quantity is greater than or equal to the preset group purchase quantity, the first target client device generates the feedback message indicating a refusal to participate in the group purchase.

5. The method according to claim 2, wherein: The determining a first consensus result of the N first target client devices based on all received feedback messages includes: When the number of feedback messages indicating agreement to join the group in the received feedback messages is greater than or equal to M, obtaining the first consensus result indicating agreement to join the group, wherein M is the product of N and a preset consensus ratio; and When the number of feedback messages indicating agreement to join the group among the received feedback messages is less than M, the first consensus result indicating refusal to join the group is obtained.

6. The method according to any one of claims 1 to 5, further comprising: receiving a group purchase feedback message from a second target client device, wherein the group purchase feedback message carries a second target item identifier and a second target order identifier, the second target client device has an associated second target business node, the second target business node includes a business node corresponding to a second target group purchase order determined based on the order information ledger, wherein 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 received clique feedback messages; When the second consensus result indicates that a consensus has been reached, generating a business order based on the second consensus result and the second target group purchase order; and The business order is stored in a local storage device so as to ship items based on the business order.

7. The method according to any one of claims 1 to 5, further comprising: A scheduled task is set so that when the scheduled task is triggered, the 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 reach a consensus on the content of the order information ledger, wherein the heartbeat message carries summary information generated based on the order information ledger.

8. The method according to claim 7, further comprising: Monitor resource consumption status; When the resource consumption state is indicated as a low consumption state, upon receiving a heartbeat message from the third target client device, an information summary message is returned to the third target client device, so that the third target client device responds to the information summary message and generates a reply message based on the order information ledger of the third target business node, wherein the low consumption state indicates that the resource consumption within a preset time range is lower than a preset threshold; Determine a third consensus result of the third target client device based on all received response messages; If the third consensus result indicates that consensus has been reached, storing the content of the response message in a local storage device; and Switch the working mode to server center working mode.

9. The method according to claim 8, further comprising: When the response message is received, a summary success message is returned to the third target client device, so that the third target client device exits the blockchain network after receiving the summary success message.

10. An order processing device based on a blockchain network, comprising: A first receiving module is configured to receive a group creation request message from a first client device, wherein the group creation request message carries an item identifier and a purchase quantity; A first processing module is configured to associate a first business node among the multiple business nodes of the blockchain network with the first client device when the purchase quantity is less than a preset group purchase quantity; a first generating module, configured to generate a group purchase order based on the item identifier, wherein the group purchase order has an order identifier; and A first storage module is configured to add a block generated based on the order identifier and the group creation request message to an order information ledger of the blockchain network; The group creation request message also carries the network address of the first client device; The device further comprises: A second receiving module is configured to receive a group joining request message from a second client device, wherein the group joining request message carries the network address of the second client device, the first target item identifier, the first target order identifier, and the target purchase quantity; A first determining module, configured to determine a first target group purchase order based on the first target item identifier and the first target order identifier; A second determining module is configured to determine N first target business nodes associated with the first target group purchase order from the order information ledger, where N ≥ 1; a second generating module, configured to generate a network address list based on the network addresses of the first target client devices associated with the N first target service nodes; and The first sending module is configured to return the network address list to the second client device, so that the second client device can send the group joining request message to each of the N first target client devices based on the network address list.

11. An electronic device comprising: one or more processors; a memory for storing one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 9. 12 . A computer-readable storage medium having executable instructions stored thereon, wherein when the executable instructions are executed by a processor, the processor is enabled to implement the method according to claim 1 .

13. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 9 when the computer executable instructions are executed.

Citation Information

Patent Citations

  • Commodity group purchase data evidence storage method and device based on blockchain

    CN110544153A