Order processing method, device and system

By depositing channel orders into the message queue and converting data, the problem of channel order processing bottleneck in the online service system is solved, and efficient processing of channel orders and improving resource utilization efficiency is achieved.

CN119151623APending Publication Date: 2024-12-17BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310713527.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

The prior art is prone to order processing bottlenecks when processing channel orders in online service systems, resulting in backlog of channel orders and inability to deal with in a timely manner.

Method used

By depositing channel orders into the message queue, and using subscription information to convert and process data, generating structured data, sending order requests to the channel management end, realizing the expansion and decoupling of order processing, ensuring that timely processing is possible when the order volume increases. .

Benefits of technology

It realizes efficient processing of channel orders, avoids order backlog, simplifies the expansion process, improves resource utilization efficiency, and ensures the balance of each processing stage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119151623A_ABST
    Figure CN119151623A_ABST
Patent Text Reader

Abstract

The invention discloses an order processing method, device and system, and relates to the technical field of electronic commerce. The method comprises the steps of storing a channel order in a first message queue in response to a situation that the channel order corresponding to a channel end is obtained; obtaining a channel order in the first message queue according to configured subscription information for the first message queue, performing data conversion on order information included in the channel order to generate structured data, and storing the structured data into a second message queue; and obtaining structured data in the second message queue according to configured subscription information for the second message queue, generating an order request for the structured data, and sending the order request to the channel management end, so that the channel management end processes the order request. According to the embodiment, the channel order can be conveniently expanded and processed, and the channel order can be timely processed to avoid backlog of the channel order.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of e-commerce, and in particular to an order processing method, device and system. Background Art

[0002] At present, in order to expand the scope of online services, service information (for example, product information and inventory information of e-commerce malls, and service content and drug information provided by Internet medical services) is generally released on third-party traffic channels outside the system providing online services, and users can place orders through third-party traffic channels. The third-party traffic channels generate channel orders for users (that is, third-party orders, such as product orders, online medical prescription orders, etc.), and then process the channel orders through the system providing online services.

[0003] In related technologies, the system that provides online services processes channel orders mainly by configuring scheduled tasks for channel orders. For example, three servers (server 1, server 2, and server 3) are configured to process scheduled tasks for channel orders, where server 1 processes the 1st to 10,000th channel orders, server 2 processes the 10,001st to 20,000th channel orders, and server 3 processes the 20,001st to 30,000th channel orders. The existing channel order processing method is prone to order processing bottlenecks, that is, once the channel order volume increases, there will be a backlog of channel orders and the problem of channel orders not being processed in a timely manner. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide an order processing method, device and system, which facilitate the expansion of channel order processing and timely processing of channel orders to avoid channel order backlog.

[0005] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides an order processing method, comprising:

[0006] In response to obtaining a channel order corresponding to the channel end, storing the channel order in a first message queue;

[0007] According to the configured subscription information for the first message queue, the channel order in the first message queue is obtained, and the order information included in the channel order is converted into structured data, and the structured data is stored in the second message queue;

[0008] According to the configured subscription information for the second message queue, the structured data in the second message queue is obtained, an order request is generated for the structured data, and the order request is sent to the channel management end so that the channel management end processes the order request.

[0009] Optionally, a plurality of first processes or a plurality of first nodes for generating structured data are preconfigured and a plurality of second processes or a plurality of second nodes for generating order requests are preconfigured, wherein:

[0010] Each of the first processes or each of the first nodes is configured with subscription information of the first message queue;

[0011] Each of the second processes or each of the second nodes is configured with subscription information of the second message queue;

[0012] The obtaining of the channel order in the first message queue includes:

[0013] Obtaining the channel order in the first message queue through any idle first process or any idle first node;

[0014] The obtaining of structured data in the second message queue includes:

[0015] The structured data in the second message queue is obtained through any idle second process or any idle second node.

[0016] Optionally, the order processing method further includes:

[0017] Receiving a data conversion strategy configured by the operation end for the channel end, and generating a data conversion program according to the data conversion strategy;

[0018] The data conversion of the order information included in the channel order includes:

[0019] The data conversion program corresponding to the channel end is called, and the order information included in the channel order is subjected to data logic processing and data structure conversion through the data conversion program.

[0020] Optionally, generating an order request for the structured data includes:

[0021] Extracting item information, item quantity, address information, and payment information from the structured data;

[0022] The item information, the item quantity, the address information and the payment information are assembled to form an order request.

[0023] Optionally, the order processing method further includes:

[0024] Subscribe to a third message queue of the channel end for storing the channel orders;

[0025] Obtaining a channel order from the subscribed third message queue, and storing the channel order in a database;

[0026] The storing the channel order into the first message queue includes:

[0027] The channel order read from the database is stored in the first message queue.

[0028] Optionally, performing data logic processing and data structure conversion on the order information included in the channel order through a data conversion program includes:

[0029] Convert multiple items of the order information, including the store identification, order status, item information, and address information, into data structures;

[0030] The item information included in the order information is subjected to data logic processing using the item quantity and the item unit price in the item information included in the order information.

[0031] Optionally, the channel management end processes the order request, including:

[0032] According to the item information and the item quantity in the order request, the channel management end performs transaction processing on the item inventory corresponding to the item information and generates an item transaction order.

[0033] Optionally, the order processing method further includes:

[0034] Determine the channel order code of the channel order, and obtain the transaction order code generated by the channel management end for the item transaction order;

[0035] The relationship between the channel order code and the transaction order code is stored.

[0036] Optionally, the order processing method further includes:

[0037] In the case where the data conversion step fails to be executed, generating feedback information indicating the conversion failure for the channel order to the operation end, so that the operation end corrects the channel order corresponding to the feedback information in the database;

[0038] The storing the channel order into the first message queue includes:

[0039] The revised channel order is stored in the first message queue.

[0040] Optionally, the order processing method further includes:

[0041] Storing the structured data in a database;

[0042] When receiving the information sent by the database indicating that the structured data storage has failed, the channel order corresponding to the structured data that has failed to be stored is stored again in the second message queue.

[0043] Optionally, the order processing method further includes:

[0044] In the case where the structured data fails to be stored in the second message queue, the channel order corresponding to the structured data that failed to be stored is re-stored in the first message queue.

[0045] Optionally, after generating an order request for the structured data, the method further includes:

[0046] Performing idempotency judgment on the order request according to the stored relationship between the channel order code and the transaction order code;

[0047] When the result of the idempotent judgment indicates that there is no transaction order corresponding to the order request, the step of sending the order request to the channel management end is executed.

[0048] Optionally, the order processing method further includes:

[0049] When it is determined that there is an order request that has failed to be processed, the structured data corresponding to the order request that has failed to be processed in the database is stored again in the second message queue.

[0050] Optionally, after obtaining the transaction order code generated by the channel management end for the item transaction order, the method further includes:

[0051] Generate ledger information corresponding to the item transaction order, and record the ledger information;

[0052] In the event that recording the ledger information fails, storing the ledger information in a preset ledger message queue;

[0053] Re-record the ledger information in the ledger message queue.

[0054] Optionally, the order processing method further includes:

[0055] Receiving an item publishing request, wherein the item publishing request includes: channel end information and item information;

[0056] According to a preset data conversion strategy corresponding to the channel-side information, data conversion is performed on the item information to form item page information;

[0057] The item page information is sent to the channel end corresponding to the channel end information, so that the channel end deploys the item page information, and enables the channel end to provide the item page information to the user terminal and generate a channel order corresponding to the channel end based on the order operation of the user terminal on the item page information.

[0058] Optionally, the order processing method further includes:

[0059] When feedback information indicating that the item page information deployment has failed is received from the channel end, data conversion is performed on the item information again.

[0060] Optionally, the order processing method further includes:

[0061] receiving an item information modification request, wherein the item information modification request includes: update information for the item information;

[0062] Performing data conversion on the update information;

[0063] The item page information deployed on the channel end is updated using the updated information after data conversion.

[0064] Optionally, the order processing method further includes:

[0065] When feedback information indicating update failure is received from the channel end, the item page information deployed by the channel end is updated again.

[0066] Optionally, the order processing method further includes:

[0067] Providing a communication interface for the channel management terminal and directly communicating with the channel management terminal through the communication interface;

[0068] and / or,

[0069] An interface provided by an independent interface system is indirectly connected to the channel end for communication.

[0070] In a second aspect, an embodiment of the present invention provides an order processing device, including: an interaction module, a data conversion module and an order conversion module, wherein:

[0071] The interaction module, in response to obtaining a channel order corresponding to the channel end, stores the channel order in the first message queue;

[0072] The data conversion module is used to obtain the channel order in the first message queue according to the configured subscription information for the first message queue, perform data conversion on the order information included in the channel order, generate structured data, and store the structured data in the second message queue;

[0073] The order conversion module is used to obtain the structured data in the second message queue according to the configured subscription information for the second message queue, generate an order request for the structured data, and send the order request to the channel management end so that the channel management end processes the order request.

[0074] In a third aspect, an embodiment of the present invention provides an order processing system, comprising: a channel end, a channel management end, and the order processing device provided by the embodiment of the second aspect above, wherein:

[0075] The channel end is used to receive the item information ordered by the user terminal, generate a channel order for the item information ordered by the user terminal, and provide the channel order to the order processing device;

[0076] The channel management end is used to process the order request sent by the order processing device.

[0077] An embodiment of the above invention has the following advantages or beneficial effects: by storing channel orders in a first message queue, and by configuring a subscription message for the first message queue, processing the channel orders, that is, performing data conversion on the order information included in the channel orders, and generating structured data; since the channel orders are obtained from the first message queue by subscription, then, when the channel order volume is relatively large, it is only necessary to configure subscription information for the newly added computing resources, that is, to configure the newly added computing resources as consumers of the first message queue, so as to realize the expansion of channel order processing, and at the same time make the expansion simple, convenient and easy to implement, the channel orders can be processed in a timely manner to avoid channel order backlogs.

[0078] In addition, by storing the structured data in the second message queue, and then generating an order request for the structured data in the second message queue by configuring the subscription information for the second message queue, when the structured data is relatively large, the subscription information can be configured for the newly added computing resources, that is, the newly added computing resources can be configured as consumers of the second message queue, so as to achieve the expansion of the structured data processing capacity of the channel orders, and further simply and conveniently realize the expansion of the channel order processing capacity, and can process the channel orders in a timely manner to further avoid channel order backlogs.

[0079] Furthermore, through the setting of the second message queue, the process of generating structured data for channel orders and the process of generating order requests are completely decoupled and do not affect each other. Therefore, when the channel order volume increases, the process of generating structured data for channel orders and the process of generating order requests can be expanded or reduced respectively according to their respective resource requirements. That is, if there is a data backlog only in the process of generating structured data for channel orders, computing resources can be added only for the process of generating structured data for channel orders, so as to effectively improve the balance of various processing stages of channel orders, avoid backlogs of channel orders in the stage of generating structured data and the stage of generating order requests, and effectively improve resource utilization efficiency.

[0080] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0082] Figure 1 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0083] Figure 2 is a schematic diagram of the main process of an order processing method according to an embodiment of the present invention;

[0084] Figure 3 is a schematic diagram of the relationship between the step processing process or node and the message queue according to an embodiment of the present invention;

[0085] Figure 4 It is a schematic diagram of the main flow of performing data logic processing and data structure conversion on order information according to an embodiment of the present invention;

[0086] Figure 5 This is a schematic diagram of the main process of recording ledger information according to an embodiment of the present invention;

[0087] Figure 6 This is a schematic diagram of the main process of publishing item page information on a channel according to an embodiment of the present invention;

[0088] Fig. 7A It is a schematic diagram of the main process of publishing online goods of an online shopping mall system to a third-party channel according to an embodiment of the present invention;

[0089] Figure 7B This is a schematic diagram of the main process of modifying the commodity status information of a third-party channel according to an embodiment of the present invention;

[0090] Figure 8is a schematic diagram of the main process of processing and managing channel orders generated by third-party channels according to an embodiment of the present invention;

[0091] Fig. 9 is a schematic diagram of main modules of an order processing device according to an embodiment of the present invention;

[0092] Fig.10 is a schematic diagram of main devices of an order processing system according to an embodiment of the present invention;

[0093] Fig.11 It is a schematic diagram of the structure of a computer system of a service device that is suitable for implementing the order processing device of the embodiment of the present invention. DETAILED DESCRIPTION

[0094] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0095] It should be noted that in the technical solution of the present invention, the collection / collection, update, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for user personal information to selectively block the use or access to personal information data to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.

[0096] In the online service scenario to which the solution provided in the embodiment of the present invention is applicable, in online services (such as online sales of goods on e-commerce platforms, Internet medical services, etc.), in order to increase the number of service users and enable users to place orders on different channels according to their personal habits, the user experience is improved. Generally, it is necessary to build an online service system (such as an e-commerce platform, an Internet medical system, etc.) to communicate with external third-party traffic channels (such as information search platforms, short video platforms, information publishing platforms, etc.) to publish online service information on third-party traffic channels, so that users can place orders for services (such as online physical goods, virtual goods, medical services, prescription services, etc.) on the third-party traffic channels according to demand, and obtain channel orders. In order to provide standardized and unified services for various channel orders, and to accurately manage the inventory information of physical goods, virtual goods, etc., it is generally necessary for an online service system (such as an e-commerce platform, an Internet medical system, etc.) to uniformly manage the channel orders generated by various third-party traffic channels, and produce orders corresponding to channel orders on the online service system.

[0097] in, Figure 1 An exemplary system architecture 100 for implementing online service deployment in multiple third-party traffic channels and unified management of channel orders of various third-party traffic channels based on the online service system is shown. The system architecture 100 can apply the order processing method or order processing device of the embodiment of the present invention.

[0098] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, a network 103, a service device 104 providing traffic channel services, a service device 105 providing interface services, a service device 106 providing channel docking services, a service device 107 providing online services, and a database 108. The network 103 is used to provide a medium for communication links between the terminal devices 101, 102 and the service device 104 providing traffic channel services, between the terminal devices 101, 102 and the service device 107 providing online services, between the service device 104 providing traffic channel services and the service device 105 providing interface services, between the service device 105 providing interface services and the service device 106 providing channel docking services, between the service device 106 providing channel docking services and the service device 107 providing online services, and between the service device 106 providing channel docking services and the database 108. The network 103 may include various connection types, such as wired or wireless communication links or optical fiber cables, etc.

[0099] The user can use the terminal devices 101 and 102 to interact with the service device 104 providing traffic channel services or the service device 107 providing online services through the network 103, so that the user can place orders for physical goods, virtual goods, consult Internet prescription information, prescription drugs, etc. on the service device 104 providing traffic channel services or on the service device 107 providing online services through the terminal devices 101 and 102. Various applications can be installed on the terminal devices 101 and 102, such as shopping applications, short video applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0100] The service device 105 providing interface services may be a server, cloud platform, etc. that provides various interface services, for example, providing a communication interface such as a product publishing interface, a product modification interface, an order service interface, etc. (only for example) between the service device 104 providing traffic channel services and the service device 107 providing online services. The service device 105 providing interface services may convert the product information and logistics information of the products to be released provided by the service device 107 providing online services into information in a specific format that can be released or recognized by the service device 104 providing traffic channel services (such as product information, service information, order number, logistics information in a specific format—only for example), and provide the converted information to the service device 104 providing traffic channel services, so that the service device 104 providing traffic channel services can release the information in the specific format or provide the information in the specific format to the terminal devices 101 and 102. The service device 105 providing interface services may also convert the channel orders generated by the service device 104 providing traffic channel services into information in a specific format and provide it to the service device 107 providing online services.

[0101] The service device 106 providing channel docking service may be a server, cloud platform, etc. that provides various interface services, and is located between the service device 107 providing online services and the service device 105 providing interface services. The service device 106 providing channel docking service may process the service information to be published to the service device 104 providing traffic channel services provided by the service device 107 providing online services, or the channel orders provided by the service device 104 providing traffic channel services. For example, according to the set logic, the online service information to be published to the service device 104 providing traffic channel services is logically converted, and the information after the logical conversion is published to the service device 104 providing traffic channel services through the interface provided by the service device 105 providing interface services, and the channel orders provided by the order interface of the service device 105 providing interface services are structurally converted, data processed, etc. (only for example). In addition, the service device 106 providing channel docking service may also store the obtained channel orders, the structured data formed by the conversion, etc. in the database 108.

[0102] The service device 107 providing online services may be a server, cloud platform, etc. that provides various services, such as a backend management server that provides support for online products and Internet medical services (only as an example). The service device 107 providing online services may publish information about online services, such as product information, doctor information, and drug information, to the terminal devices 101 and 102 for users to place orders, and process the services ordered by users, and provide the processing results (such as order numbers, logistics information - only as an example) to the terminal devices 101 and 102. The service device 107 providing online services can also sequentially publish online service information such as product information, doctor information, drug information, etc. to the service device 104 providing traffic channel services through the service device 106 providing channel docking services and the service device 105 providing interface services for users to place orders, and process the channel orders generated by the service device 104 providing traffic channel services provided sequentially through the service device 105 providing interface services and the service device 106 providing channel docking services, and provide the processing results (such as order number, logistics information - just an example) to the service device 104 providing traffic channel services through the service device 106 providing channel docking services and the service device 105 providing interface services.

[0103] The service device 104 providing traffic channel services may be a server, cloud platform, etc. providing various services, such as a background management server that provides support for online services (only for example). The background management server may publish information about online services provided by the service device 107 providing online services, such as product information, doctor information for diagnosis and treatment, drug information, etc., to the terminal devices 101 and 102 for users to place orders, and process the services ordered by users, and provide the processing results (such as order number, logistics information - only for example) to the terminal devices 101 and 102.

[0104] The terminal devices 101 and 102 may be various electronic devices having a display screen and supporting web browsing, including but not limited to desktop computers, smart phones, tablet computers, and the like.

[0105] It should be noted that the order processing method provided in the embodiment of the present invention is generally executed by the service device 106 that provides channel docking services. Accordingly, the order processing device is generally arranged in the service device 106 that provides channel docking services.

[0106] It should be understood that Figure 1 The number of terminal devices, networks, databases, file storage servers, and servers providing collaborative document services is only illustrative. Depending on the implementation requirements, there may be any number of terminal devices, networks, databases, file storage servers, and servers providing collaborative document services.

[0107] Figure 2 FIG. 1 is a schematic diagram of the main flow of an order processing method according to an embodiment of the present invention. Figure 2 As shown, the order processing method may include the following steps:

[0108] Step S201: in response to obtaining a channel order corresponding to a channel end, storing the channel order in a first message queue;

[0109] Among them, the channel end generally refers to a system outside the online shopping mall system that provides users with product ordering services. The channel end can be provided to users in the form of text pages, video pages, etc.

[0110] Among them, channel orders generally refer to orders generated by the channel end for goods or services ordered by users, and the channel order may include information, quantity, delivery address, etc. of the goods or services. Among them, the information of goods can be physical goods such as mobile phones, clothing, notebooks, food, prescription drugs, over-the-counter drugs, etc., or virtual goods such as movie tickets, dining coupons, etc. The information of services can be services of physical stores or online services such as online doctor diagnosis and treatment services, online doctor prescription drug prescription services, etc.

[0111] Step S202: according to the configured subscription information for the first message queue, obtain the channel order in the first message queue, perform data conversion on the order information included in the channel order, generate structured data, and store the structured data in the second message queue;

[0112] The subscription information is generally information configured for a thread or node and used to consume or process the channel orders in the first message queue. The subscription message enables the thread or node that subscribes to the channel orders in the first message queue to process the channel orders in a timely manner to avoid a backlog of channel orders.

[0113] The first message queue and the second message queue may be located in the same device as the program for implementing step S202 and step S203, and the first message queue and the second message queue may also be independent message queue systems. It is worth noting that the "first" and "second" in the first message queue and the second message queue generally refer to message queues with different uses and purposes, and are not a limitation on the number or order of message queues.

[0114] Structured data refers to data in a specific format or structure that can be recognized by the online shopping mall system that provides specific products or services.

[0115] Step S203: according to the configured subscription information for the second message queue, the structured data in the second message queue is obtained, an order request is generated for the structured data, and the order request is sent to the channel management end so that the channel management end processes the order request.

[0116] Among them, the channel management end generally refers to the online product system that provides online products and services, such as e-commerce platforms, service platform systems, Internet medical systems, etc.

[0117] exist Figure 2 In the illustrated embodiment, channel orders are stored in a first message queue, and through a configured subscription message for the first message queue, channel orders are processed, i.e., order information included in the channel orders is converted to generate structured data. Since channel orders are obtained from the first message queue by subscription, when the channel order volume is large, it is only necessary to configure subscription information for the newly added computing resources, i.e., configure the newly added computing resources as consumers of the first message queue. This can achieve channel order processing expansion, and while making the expansion simple, convenient, and easy to implement, channel orders can be processed in a timely manner to avoid channel order backlogs.

[0118] In addition, by storing the structured data in the second message queue, and then generating an order request for the structured data in the second message queue by configuring the subscription information for the second message queue, when the structured data is relatively large, the subscription information can be configured for the newly added computing resources, that is, the newly added computing resources can be configured as consumers of the second message queue, so as to achieve the expansion of the structured data processing capacity of the channel orders, and further simply and conveniently realize the expansion of the channel order processing capacity, and can process the channel orders in a timely manner to further avoid channel order backlogs.

[0119] Furthermore, through the setting of the second message queue, the process of generating structured data for channel orders and the process of generating order requests are completely decoupled and do not affect each other. Therefore, when the channel order volume increases, the process of generating structured data for channel orders and the process of generating order requests can be expanded or reduced respectively according to their respective resource requirements. That is, if there is a data backlog only in the process of generating structured data for channel orders, computing resources can be added only for the process of generating structured data for channel orders, so as to effectively improve the balance of various processing stages of channel orders, avoid backlogs of channel orders in the stage of generating structured data and the stage of generating order requests, and effectively improve resource utilization efficiency.

[0120] It is worth noting that there can be multiple channel ends mentioned above, that is, the online shopping mall system can publish products on multiple channel ends, and can also process channel orders from multiple channel ends.

[0121] Among them, in order to implement the order processing method provided by the embodiment of the present invention, multiple first processes or multiple first nodes for generating structured data and multiple second processes or multiple second nodes for generating order requests can be pre-configured, wherein each first process or each first node is configured with subscription information of the first message queue; each second process or each second node is configured with subscription information of the second message queue; accordingly, the specific implementation method of obtaining the channel order in the first message queue may include: obtaining the channel order in the first message queue through any idle first process or any idle first node; the specific implementation method of obtaining the structured data in the second message queue may include: obtaining the structured data in the second message queue through any idle second process or any idle second node.

[0122] Specifically, Figure 3 As shown, multiple first processes or multiple first nodes for generating structured data, multiple first message queues ( Figure 3 As shown in the first message queue corresponding to channel 1, the first message queue corresponding to channel 2, ..., the first message queue corresponding to channel N, that is, the channel orders of each channel end are stored in the same first message queue), each first process or each first node can subscribe to the first message queues corresponding to multiple channels to process the channel orders in the first message queues corresponding to multiple channels. In addition, Figure 3 As shown, each first process or each first node stores the generated structured data in the second message queue (the second message queue corresponding to channel 1, the second message queue corresponding to channel 2, ..., the second message queue corresponding to channel N, that is, the structured data generated by the channel order of each channel end is generally stored in the same second message queue). For example, the channel order generated by channel 1 is stored in the first message queue corresponding to channel 1, and the structured data corresponding to the channel order of channel 1 is stored in the second message queue corresponding to channel 1.

[0123] Since the thread or node acts as a consumer of the first message queue or the second message queue, consumers can be added through horizontal expansion, thereby increasing the efficiency of processing channel orders per unit time.

[0124] The first thread and the second thread may be located in the same device or in different devices. In addition, the first node and the second node may be the same node or different nodes, wherein the "first" and "second" in the first node and the second node are mainly used to distinguish nodes in different processing stages, and are not intended to limit the number or order of nodes.

[0125] In an embodiment of the present invention, in order to realize flexible processing of different channel orders of different channels, the above-mentioned order processing method may further include: receiving the data conversion strategy configured by the operation end for the channel end, and generating a data conversion program according to the data conversion strategy; accordingly, the above-mentioned specific real-time method for data conversion of the order information included in the channel order may include: calling the data conversion program corresponding to the channel end, and performing data logic processing and data structure conversion on the order information included in the channel order through the data conversion program. Among them, data logic processing can be, for example, integrating the unit price and quantity of goods into the total amount of goods, etc., and performing data logic calculations. Data structure conversion generally converts the data structures such as product information, quantity, delivery address, etc. in the channel order into a data structure that can be recognized by the online mall for processing by the online mall system.

[0126] Specifically, Figure 4 As shown, the specific implementation method of performing data logic processing and data structure conversion on the order information included in the channel order through the data conversion program may include the following steps:

[0127] Step S401: converting multiple items of the store identification, order status, item information, and address information included in the order information into a data structure;

[0128] Step S402: using the item quantity and item unit price in the item information included in the order information, perform data logic processing on the item information included in the order information.

[0129] The above processing process can be implemented by configuring a data conversion program corresponding to the data conversion strategy based on the data provided by the channel and the needs of the online shopping mall system, so as to enable the online shopping mall system to flexibly connect to different channels.

[0130] Furthermore, in order to enable the online shopping mall system to generate a new order based on the order request, the specific implementation method of generating the order request for the structured data may include: extracting the item information, item quantity, address information and payment information from the structured data; assembling the item information, item quantity, address information and payment information to form an order request. The assembled item information, item quantity, address information and payment information can unify the channel orders of different structures from different channels. Therefore, the online shopping mall system can process the channel orders of different structures from different channels without improving the online shopping mall system.

[0131] In addition, the above specific implementation method of generating an order request for structured data may further include: according to the item information and item quantity in the order request, the channel management end performs transaction processing on the item inventory corresponding to the item information and generates an item transaction order.

[0132] Furthermore, the above-mentioned order processing method may further include: subscribing to a third message queue on the channel side for storing channel orders; obtaining channel orders from the subscribed third message queue, and storing the channel orders in a database; accordingly, the above-mentioned specific implementation method of storing the channel orders in the first message queue may include: storing the channel orders read from the database in the first message queue.

[0133] Furthermore, the order processing method may further include: determining the channel order code of the channel order, and obtaining the transaction order code generated by the channel management end for the item transaction order; and storing the relationship between the channel order code and the transaction order code. By storing the relationship between the channel order code and the transaction order code, it is convenient to manage the channel order and the item transaction order, and without improving the channel end and the channel management end, closed-loop management of data can be achieved to ensure the reliability and traceability of data.

[0134] In an embodiment of the present invention, in order to avoid abnormal channel orders from being stuck and to avoid abnormal channel orders that cannot be processed, the above order processing method may further include: in the case of failure in the data conversion step, generating feedback information indicating the conversion failure for the channel order to the operation end, so that the operation end can correct the channel order corresponding to the feedback information in the database; accordingly, the above specific implementation method of storing the channel order in the first message queue may include: storing the corrected channel order in the first message queue. Through this process, there is no need to perform special processing or special marking on the abnormal channel order to ensure that the channel order can be processed normally. That is, when the channel order cannot be produced due to incomplete or erroneous data and a stuck order is formed, the backend engineer can modify the original data of the channel order in the database through the operation end. When the modification is correct, the retry mechanism of the message queue is used to retry the consumption of the channel order in the message queue next time, so that the channel order can be correctly produced.

[0135] In addition, the order processing method may further include: storing the structured data in a database; and re-storing the channel order corresponding to the structured data that failed to be stored into the first message queue when receiving information sent by the database indicating that the structured data storage failed. That is, retrying from the channel order to increase the probability that the channel order is correct, avoid order processing entering an infinite loop due to abnormal structured data, and ensure the processing efficiency of the channel order.

[0136] Furthermore, the order processing method may further include: in the case where the structured data fails to be stored in the second message queue, re-storing the channel order corresponding to the structured data that failed to be stored in the first message queue. That is, retrying from the channel order further avoids the order processing from entering an infinite loop due to abnormal structured data, and can further ensure the processing efficiency of the channel order.

[0137] Furthermore, after generating an order request for structured data, the method may further include: performing an idempotency judgment on the order request according to the relationship between the stored channel order code and the transaction order code; and executing a step of sending the order request to the channel management end when the result of the idempotency judgment indicates that there is no transaction order corresponding to the order request. The idempotency judgment mainly judges whether there is a transaction order code corresponding to the channel order code. If there is, it means that the online mall system has generated a corresponding item transaction order for the channel order, and the order request will not be processed subsequently. If there is no transaction order code corresponding to the channel order code, it means that the online mall system has not generated a corresponding item transaction order for the channel order, and the order request will continue to be processed subsequently, thereby avoiding repeated generation of item transaction orders for the same channel order and ensuring a one-to-one correspondence between the channel order and the item transaction order.

[0138] In an embodiment of the present invention, the order processing method may further include: when it is determined that there is an order request that has failed to be processed, re-storing the structured data corresponding to the order request that has failed to be processed in the database into the second message queue. The order request that has failed to be processed may be a channel management end processing failure or a failure in generating the order request. This process can further improve the success rate of channel order processing.

[0139] In the embodiment of the present invention, Figure 5 As shown, after obtaining the transaction order code generated by the channel management end for the item transaction order, the following steps may be further included:

[0140] Step S501: Generate ledger information corresponding to the item transaction order and record the ledger information;

[0141] The paid and unpaid orders are recorded through the ledger information, and subsequent order production is carried out only for the paid orders, such as product shipment, item allocation, inventory modification, etc.

[0142] The production of orders can be managed through ledger information, making the orders traceable.

[0143] Step S502: if the ledger information fails to be recorded, the ledger information is stored in a preset ledger message queue;

[0144] Step S503: Re-record the ledger information in the ledger message queue.

[0145] The above process can further ensure that the order can be produced normally.

[0146] In the embodiment of the present invention, Figure 6 As shown, the above order processing method may further include:

[0147] Step S601: receiving an item publishing request, wherein the item publishing request includes: channel information and item information;

[0148] The channel-side information helps to convert the item page information that can be identified and published by the channel-side according to the needs of the channel-side, so that the information can be published without improving the channel-side.

[0149] Step S602: According to a preset data conversion strategy corresponding to the channel-side information, data conversion is performed on the item information to form item page information;

[0150] Step S603: Send the item page information to the channel end corresponding to the channel end information, so that the channel end deploys the item page information, and enables the channel end to provide the item page information to the user terminal and generate a channel order corresponding to the channel end based on the user terminal's order operation on the item page information.

[0151] Through the above process, goods or services can be published on the channel side for the channel management side, such as an online shopping mall system, so that users can place orders for goods or services through multiple channels, thereby improving user experience.

[0152] In the above process, the correspondence between the item page information and the item information can still be recorded to facilitate the unified management of goods or services between the channel end and the channel management end.

[0153] Furthermore, in the above Figure 6 Based on the embodiment shown, the order processing method may further include: upon receiving feedback information sent by the channel indicating that the item page information deployment failed, re-converting the item information. That is, if the channel fails to create the item page information, continue to create it by retrying.

[0154] Furthermore, in the above Figure 6 Based on the embodiment shown, the order processing method may further include: receiving an item information modification request, wherein the item information modification request includes: updating information for the item information; performing data conversion on the updated information; and updating the item page information deployed on the channel end using the updated information after data conversion. The page information is modified according to the requirements of the online shopping mall system to ensure the accuracy of the item page information published on the channel.

[0155] For example, when it is necessary to put or take down a product published on a channel by the online shopping system, the latest status, such as product removal, is written in the channel through the provided product put-on-shelf interface. First, it is determined whether there is a corresponding relationship between the product IDs of the channel and the online shopping system. If not, an error is reported; if so, the product status, such as product removal status, is updated by calling the channel-related interface. After the channel product status is successfully updated, the stored channel product status is updated.

[0156] For another example, after the operator modifies the price in the online shopping mall system (i.e., the channel management terminal mentioned above), the price modification interface can be called through the solution provided by the embodiment of the present invention to write the price modified by the online shopping mall system (i.e., the channel management terminal mentioned above) into the channel.

[0157] In addition, in the above Figure 6 Based on the illustrated embodiment, the above order processing method may further include: upon receiving feedback information indicating update failure sent by the channel side, re-updating the item page information deployed by the channel side.

[0158] Furthermore, when the inventory of a product changes, the latest inventory can be written to the channel by calling the modify inventory interface to ensure that the inventory can be updated in a timely manner.

[0159] In order to implement the above-mentioned embodiments, the order processing method may further include: providing a communication interface for the channel management end, and directly communicating with the channel management end through the communication interface.

[0160] In addition, the order processing method may further include: indirectly communicating with the channel end through an interface provided by an independent interface system.

[0161] Through the above process, the connection between the channel end and the channel management end can be achieved without improving the channel end and the channel management end.

[0162] The following describes in detail the technical solution provided by the embodiment of the present invention by taking the third-party channel interacting with the online shopping mall system through the interface system and the channel docking service to publish online products of the online shopping mall system to the third-party channel, modify the status of products published on the third-party channel, and manage the channel orders generated by the third-party channel.

[0163] like Fig. 7A As shown, the process of publishing online products of the online shopping mall system to a third-party channel may include the following steps:

[0164] Step S701: the online shopping mall system calls the interface of the channel docking service and sends an item publishing request including the third-party channel information and item information to the channel docking service;

[0165] Step S702: the channel docking service performs data conversion on the item information to form commodity information published to the third-party channel;

[0166] Among them, the online mall system, third-party channels, channel docking services and interface systems are independent systems respectively.

[0167] The solution provided by the embodiment of the present invention is mainly implemented by providing a channel docking service for an online shopping mall system and a third-party channel access.

[0168] Step S703: the channel docking service calls the channel product delivery interface provided by the interface system to release product information on a third-party channel;

[0169] Step S704: the channel docking service calls the channel product delivery interface to release the product information of the third-party channel to the third-party channel;

[0170] Step S705: The third-party channel publishes the product information. If the publishing is successful, execute step S706; if the publishing fails, execute step S707;

[0171] Step S706: the channel docking service constructs and stores the correspondence between the ID of the commodity information published by the third-party channel and the ID of the item information in the online shopping mall system, and ends the current process;

[0172] Step S707: The channel docking service enters a retry mechanism to republish the product information to the third-party channel.

[0173] Through the above process, the item information of the online shopping mall system is published on the third-party channel so that users can place orders on the third-party channel to improve the user experience.

[0174] exist Fig. 7A The online products of the online shopping mall system provided are published to third-party channels, such as Figure 7B As shown, the technical solution provided by the embodiment of the present invention can further modify the product information published on the third-party channel. The process of modifying the product information published on the third-party channel may include the following steps:

[0175] Step S708: the online shopping mall system calls the interface of the channel docking service and sends an item modification request including modifying the item status to the channel docking service;

[0176] Step S709: the channel docking service performs data conversion on the modified item status to form item status information of the third-party channel;

[0177] Step S710: the channel docking service calls the product delisting interface provided by the interface system to the third-party channel;

[0178] Step S711: the channel docking service calls the product delisting interface to change the product status information of the third-party channel;

[0179] Step S712: The third-party channel publishes the changed product status information. If the publishing is successful, the current process ends; if the publishing fails, step S713 is executed;

[0180] Step S713: The channel docking service enters a retry mechanism to modify the product status information in the third-party channel again.

[0181] like Figure 8 As shown, the channel docking service connects the online mall system and the third-party channel to assist the online mall system in processing and managing the channel orders generated by the third-party channel. By setting up the channel docking service, the connection between the online mall system and the third-party channel can be realized and completed without making too many improvements to the online mall system. The process of processing and managing the channel orders generated by the third-party channel may include the following steps:

[0182] Step S801: The third-party channel receives the user's order and payment, and generates a channel order for the user;

[0183] Step S802: the third-party channel stores the channel order in the payment message queue of the third-party channel, and broadcasts the channel order in the payment message queue;

[0184] Step S803: after receiving the broadcast, the interface system calls the order interface corresponding to the third-party channel to obtain the channel order from the payment message queue;

[0185] That is, when a user places an order and pays on a third-party channel, the third-party channel will broadcast the paid order to the corresponding message queue.

[0186] The channel order acquisition may filter a specific message type (such as type=1), and a specific object (such as status=140 in the data object) is a channel message that the user has paid for.

[0187] Step S804: the interface system sends the channel order to the channel docking service through the order interface corresponding to the third-party channel;

[0188] The interface system can provide different interfaces to connect to different processing processes of third-party channels (such as calling interface 1 for item page information release, calling interface 2 for price modification in item page information, calling interface 3 for inventory modification in item page information, etc.), so as to facilitate the management and maintenance of different processing processes of order or item release through the interface.

[0189] Step S805: the channel docking service stores the channel order in the database and stores it in the first message queue set by the channel docking service;

[0190] Step S806: the first idle node in the channel docking service obtains the channel order from the subscribed first message queue;

[0191] Step S807: the first idle node obtains detailed information of the channel order. If the detailed information is obtained, step S808 is executed; if the detailed information is not obtained, the channel order is terminated and step S806 is executed.

[0192] Step S808: the first idle node performs data conversion on the detailed information of the channel order. If the conversion is successful, step S809 is executed; if the conversion fails, the channel order is terminated and step S806 is executed;

[0193] For example, detailed information may include: store id, order status, product id, address, and amount unit (uniformly converted to "yuan"). If the business data conversion fails, the data that failed to convert can be recorded. In particular, for address conversion, if the national standard is converted to the address standard given by the online mall system, and the last-level address of the address standard given by the online mall system is missing, the first three levels of addresses can be uploaded to the order interface of the online mall system. The conversion strategy can be set according to actual needs to improve the success rate of data conversion and ensure that the online mall system can produce orders normally.

[0194] Step S809: storing the structured data generated by the data conversion into a database, and storing the structured data into a second message queue set by the channel docking service;

[0195] Step S810: the second idle node in the channel docking service obtains structured data from the subscribed second message queue. If the structured data is obtained, step S811 is executed; if the structured data is not obtained, the current process ends.

[0196] Step S811: the second idle node generates an order request;

[0197] Step S812: the second idle node performs idempotency judgment on the order request; if it is judged that there is no commodity order for the order request, step S813 is executed; if it is judged that there is a commodity order corresponding to the order request, the current process is terminated;

[0198] Step S813: The second idle node sends the order request to the online shopping mall system;

[0199] Step S814: the online shopping mall system generates a product order for the order request;

[0200] The commodity order is the above-mentioned item transaction order.

[0201] During this process, a virtual account of the user of the online shopping mall system corresponding to the user ID on the channel side can also be generated. If the channel user ID already has a virtual account in the online shopping mall system, it can be directly obtained so that orders can be managed in the online shopping mall system according to the user's virtual account.

[0202] That is, after the order interface of the online mall system receives the request, it will create an order in the online mall system. After the order is successfully created, the channel docking service obtains the order number of the online mall system and writes the correspondence between the channel and the online mall system order. At the same time, it records the correspondence between the online mall system and the channel SKU to prepare for the subsequent adaptation of service products to different delivery strategies.

[0203] Step S815: the online shopping mall system sends the product order to the channel docking service;

[0204] Step S816: The second idle node stores the channel order and the product order in correspondence;

[0205] Step S817: The second idle node writes the ledger information for the commodity order. If the ledger writing is successful, step S818 is executed; if the ledger writing fails, step S819 is executed;

[0206] Step S818: the online shopping mall system generates a product order;

[0207] Step S819: the second idle node stores the failed ledger information in the ledger message queue;

[0208] Step S820: The channel docking service writes the ledger to compensate the ledger information in the ledger message queue and executes step S818.

[0209] In addition, the channel docking service can also provide a shipping interface. After the goods are shipped, the online mall system connects to the logistics message queue and calls this interface to ship the goods. The channel docking service determines whether there is an order correspondence between the online mall system and the channel. If not, it ends; if so, it performs shipping logic processing. Specifically, it determines whether all SKUs under the channel minimum granularity sub-order corresponding to the sub-order of the online mall system order have been shipped. If not, no processing will be done for the time being, and the number of SKUs that have been shipped needs to be saved; if all have been shipped, the interface can be adjusted to synchronize the last shipping information.

[0210] Furthermore, when an order fails or is stuck, the original order data can be directly modified. After the modification is successful, the device automatically retries and obtains the modified data for order production. There is no need to set up a separate processing procedure for failed orders, and at the same time it can be guaranteed.

[0211] Fig. 9Schematic diagram of the structure of an order processing device provided by an embodiment of the present invention. Fig. 9 As shown, the order processing device 900 may include: an interaction module 901, a data conversion module 902 and an order conversion module 903, wherein:

[0212] The interaction module 901 stores the channel order into the first message queue in response to obtaining the channel order corresponding to the channel end;

[0213] The data conversion module 902 is used to obtain the channel order in the first message queue according to the configured subscription information for the first message queue, and perform data conversion on the order information included in the channel order to generate structured data, and store the structured data in the second message queue;

[0214] The order conversion module 903 is used to obtain the structured data in the second message queue according to the configured subscription information for the second message queue, generate an order request for the structured data, and send the order request to the channel management end so that the channel management end processes the order request.

[0215] In an embodiment of the present invention, the order processing device 900 is pre-configured with multiple first processes for generating structured data and multiple second processes for generating order requests, wherein each first process is configured with subscription information of a first message queue; each second process is configured with subscription information of a second message queue; the channel order in the first message queue is obtained through any idle first process; and the structured data in the second message queue is obtained through any idle second process.

[0216] In an embodiment of the present invention, the order processing device 900 may be configured with multiple first nodes for generating structured data and multiple second nodes for generating order requests, wherein each first node is configured with subscription information of a first message queue; each second node is configured with subscription information of a second message queue; through any idle first node, the step of obtaining channel orders in the first message queue is executed; through any idle second node, the step of obtaining structured data in the second message queue is executed.

[0217] In an embodiment of the present invention, the data conversion module 902 is further used to receive the data conversion strategy configured by the operation end for the channel end, generate a data conversion program according to the data conversion strategy; call the data conversion program corresponding to the channel end, and perform data logic processing and data structure conversion on the order information included in the channel order through the data conversion program.

[0218] In the embodiment of the present invention, the order conversion module 903 is further used to extract item information, item quantity, address information and payment information from the structured data; assemble the item information, item quantity, address information and payment information to form an order request.

[0219] In an embodiment of the present invention, the interaction module 901 is further used to subscribe to a third message queue on the channel side for storing channel orders; obtain channel orders from the subscribed third message queue and store the channel orders in a database; and store the channel orders read from the database in the first message queue.

[0220] In an embodiment of the present invention, the data conversion module 902 is further used to convert multiple items of the store identification, order status, item information, and address information included in the order information into data structures; and to perform data logic processing on the item information included in the order information using the item quantity and item unit price in the item information included in the order information.

[0221] In the embodiment of the present invention, the order conversion module 903 is further used to determine the channel order code of the channel order, and obtain the transaction order code generated by the channel management end for the item transaction order; and store the relationship between the channel order code and the transaction order code.

[0222] In the embodiment of the present invention, the data conversion module 902 is further used to generate feedback information indicating the conversion failure for the channel order to the operation end in the case where the data conversion step fails to be executed, so that the operation end can correct the channel order corresponding to the feedback information in the database;

[0223] The interaction module 901 is further configured to store the modified channel order into the first message queue.

[0224] In an embodiment of the present invention, the data conversion module 902 is further used to store the structured data in a database; upon receiving information sent by the database indicating that the structured data storage has failed, the channel order corresponding to the structured data that failed to be stored is re-stored into the second message queue.

[0225] In the embodiment of the present invention, when the data conversion module 902 fails to store the structured data into the second message queue, the interaction module 901 is called again;

[0226] The interaction module 901 is further used to store the channel order corresponding to the structured data that failed to be stored into the first message queue.

[0227] In an embodiment of the present invention, the order conversion module 903 is further used to perform idempotency judgment on the order request based on the relationship between the stored channel order code and the transaction order code; when the result of the idempotency judgment indicates that there is no transaction order corresponding to the order request, execute the step of sending the order request to the channel management end.

[0228] In the embodiment of the present invention, the data conversion module 902 is further used to store the structured data corresponding to the failed order request in the database back into the second message queue when it is determined that there is a failed order request.

[0229] In the embodiment of the present invention, the order processing device 900 further includes: an account management module 904, wherein:

[0230] The ledger management module 904 is used to generate ledger information corresponding to the item transaction order and record the ledger information; if the ledger information recording fails, the ledger information is stored in a preset ledger message queue; and the ledger information in the ledger message queue is re-recorded.

[0231] In the embodiment of the present invention, the order processing device 900 further includes: an information publishing module 905, wherein:

[0232] The information publishing module 905 is used to receive an item publishing request, wherein the item publishing request includes: channel end information and item information; according to a preset data conversion strategy corresponding to the channel end information, the item information is converted to form item page information; the item page information is sent to the channel end corresponding to the channel end information, so that the channel end deploys the item page information, and the channel end provides the item page information to the user terminal and generates a channel order corresponding to the channel end based on the user terminal's order operation on the item page information.

[0233] In the embodiment of the present invention, the information publishing module 905 is further configured to re-convert the data of the item information when receiving feedback information sent by the channel end indicating that the item page information deployment has failed.

[0234] In an embodiment of the present invention, the information publishing module 905 is further used to receive an item information modification request, wherein the item information modification request includes: updating information for the item information; performing data conversion on the updated information; and updating the item page information deployed on the channel side using the updated information after data conversion.

[0235] In the embodiment of the present invention, the information publishing module 905 is further used to re-update the item page information deployed by the channel end when receiving feedback information indicating update failure sent by the channel end.

[0236] In the embodiment of the present invention, the order processing device 900 provides a communication interface for the channel management end, and directly communicates with the channel management end through the communication interface.

[0237] In the embodiment of the present invention, the order processing device 900 is indirectly connected to the channel end through an interface provided by an independent interface system.

[0238] Fig.10 Schematic diagram of the structure of an order processing system provided by an embodiment of the present invention. Fig.10 As shown, the order processing system 1000 may include: a channel end 1001, a channel management end 1002 and Fig. 9 The order processing device 900 shown, wherein

[0239] The channel end 1001 is used to receive the item information ordered by the user terminal, generate a channel order for the item information ordered by the user terminal, and provide the channel order to the order processing device 900;

[0240] The channel management terminal 1002 is used to process the order request sent by the order processing device 900.

[0241] In the embodiment of the present invention, Fig.10 As shown, the order processing system 1000 may further include: an interface system 1003, wherein:

[0242] The order processing device 900 is indirectly connected to the channel end 1001 through an interface provided by the interface system 1003 .

[0243] Reference below Fig.11 , which shows a schematic diagram of the structure of a computer system 1100 of a service device that is suitable for implementing the order processing apparatus according to an embodiment of the present invention. Fig.11 The service device that the order processing apparatus shown here relies on is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0244] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the system 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0245] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0246] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains 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 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present invention are executed.

[0247] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0248] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can 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 flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0249] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an interaction module, a data conversion module and an order conversion module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the data conversion module may also be described as a "module for performing data conversion on the order information included in the channel order".

[0250] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to obtaining a channel order corresponding to the channel end, storing the channel order in a first message queue; according to the configured subscription information for the first message queue, obtaining the channel order in the first message queue, and performing data conversion on the order information included in the channel order, generating structured data, and storing the structured data in a second message queue; according to the configured subscription information for the second message queue, obtaining the structured data in the second message queue, generating an order request for the structured data, and sending the order request to the channel management end so that the channel management end processes the order request.

[0251] According to the technical solution of the embodiment of the present invention, the channel order is stored in the first message queue, and through the configured subscription message for the first message queue, the channel order is processed, that is, the order information included in the channel order is converted to generate structured data. Since the channel order is obtained from the first message queue by subscription, then, in the case of a large channel order volume, it is only necessary to configure subscription information for the newly added computing resources, that is, to configure the newly added computing resources as consumers of the first message queue, so as to achieve channel order processing expansion. While making the expansion simple, convenient and easy to implement, the channel orders can be processed in a timely manner to avoid channel order backlogs.

[0252] In addition, by storing the structured data in the second message queue, and then generating an order request for the structured data in the second message queue by configuring the subscription information for the second message queue, when the structured data is relatively large, the subscription information can be configured for the newly added computing resources, that is, the newly added computing resources can be configured as consumers of the second message queue, so as to achieve the expansion of the structured data processing capacity of the channel orders, and further simply and conveniently realize the expansion of the channel order processing capacity, and can process the channel orders in a timely manner to further avoid channel order backlogs.

[0253] Furthermore, through the setting of the second message queue, the process of generating structured data for channel orders and the process of generating order requests are completely decoupled and do not affect each other. Therefore, when the channel order volume increases, the process of generating structured data for channel orders and the process of generating order requests can be expanded or reduced respectively according to their respective resource requirements. That is, if there is a data backlog only in the process of generating structured data for channel orders, computing resources can be added only for the process of generating structured data for channel orders, so as to effectively improve the balance of various processing stages of channel orders, avoid backlogs of channel orders in the stage of generating structured data and the stage of generating order requests, and effectively improve resource utilization efficiency.

[0254] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An order processing method, characterized in that: include: In response to obtaining a channel order corresponding to the channel end, storing the channel order in a first message queue; According to the configured subscription information for the first message queue, the channel order in the first message queue is obtained, and the order information included in the channel order is converted into structured data, and the structured data is stored in the second message queue; According to the configured subscription information for the second message queue, the structured data in the second message queue is obtained, an order request is generated for the structured data, and the order request is sent to the channel management end so that the channel management end processes the order request.

2. The order processing method according to claim 1, characterized in that: Also includes: Pre-configuring a plurality of first processes or a plurality of first nodes for generating structured data and pre-configuring a plurality of second processes or a plurality of second nodes for generating order requests; wherein each of the first processes or each of the first nodes is configured with subscription information of the first message queue; and each of the second processes or each of the second nodes is configured with subscription information of the second message queue; The obtaining of the channel order in the first message queue includes: Obtaining the channel order in the first message queue through any idle first process or any idle first node; The obtaining of structured data in the second message queue includes: The structured data in the second message queue is obtained through any idle second process or any idle second node.

3. The order processing method according to claim 1, characterized in that: Also includes: Receiving a data conversion strategy configured by the operation end for the channel end, and generating a data conversion program according to the data conversion strategy; The data conversion of the order information included in the channel order includes: The data conversion program corresponding to the channel end is called, and the order information included in the channel order is subjected to data logic processing and data structure conversion through the data conversion program.

4. The order processing method according to claim 1, characterized in that: Generating an order request for the structured data includes: Extracting item information, item quantity, address information, and payment information from the structured data; The item information, the item quantity, the address information and the payment information are assembled to form an order request.

5. The order processing method according to claim 1, characterized in that: Also includes: Subscribe to a third message queue of the channel end for storing the channel orders; Obtaining a channel order from the subscribed third message queue, and storing the channel order in a database; The storing the channel order into the first message queue includes: The channel order read from the database is stored in the first message queue.

6. The order processing method according to claim 3, characterized in that: The data conversion program is used to perform data logic processing and data structure conversion on the order information included in the channel order, including: Convert multiple items of the order information, including the store identification, order status, item information, and address information, into data structures; The item information included in the order information is subjected to data logic processing using the item quantity and the item unit price in the item information included in the order information.

7. The order processing method according to claim 4, characterized in that: The channel management end processes the order request, including: According to the item information and the item quantity in the order request, the channel management end performs transaction processing on the item inventory corresponding to the item information and generates an item transaction order.

8. The order processing method according to claim 7, characterized in that: Also includes: Determine the channel order code of the channel order, and obtain the transaction order code generated by the channel management end for the item transaction order; The relationship between the channel order code and the transaction order code is stored.

9. The order processing method according to any one of claims 1, 3 and 6, characterized in that: Also includes: In the case where the data conversion step fails to be executed, generating feedback information indicating the conversion failure for the channel order to the operation end, so that the operation end corrects the channel order corresponding to the feedback information in the database; The storing the channel order into the first message queue includes: The revised channel order is stored in the first message queue.

10. The order processing method according to any one of claims 1, 3 and 6, characterized in that: Also includes: Storing the structured data in a database; When receiving the information sent by the database indicating that the structured data storage has failed, the channel order corresponding to the structured data that has failed to be stored is stored again in the second message queue.

11. The order processing method according to any one of claims 1, 3 and 6, characterized in that: Also includes: In the case where the structured data fails to be stored in the second message queue, the channel order corresponding to the structured data that failed to be stored is re-stored in the first message queue.

12. The order processing method according to claim 8, characterized in that: After generating an order request for the structured data, the method further includes: Performing idempotency judgment on the order request according to the stored relationship between the channel order code and the transaction order code; When the result of the idempotent judgment indicates that there is no transaction order corresponding to the order request, the step of sending the order request to the channel management end is executed.

13. The order processing method according to claim 10, characterized in that: Also includes: When it is determined that there is an order request that has failed to be processed, the structured data corresponding to the order request that has failed to be processed in the database is stored again in the second message queue.

14. The order processing method according to claim 8, characterized in that: After obtaining the transaction order code generated by the channel management end for the item transaction order, the method further includes: Generate ledger information corresponding to the item transaction order, and record the ledger information; In the event that recording the ledger information fails, storing the ledger information in a preset ledger message queue; Re-record the ledger information in the ledger message queue.

15. The order processing method according to claim 1, characterized in that: Also includes: Receiving an item publishing request, wherein the item publishing request includes: channel end information and item information; According to a preset data conversion strategy corresponding to the channel-side information, data conversion is performed on the item information to form item page information; The item page information is sent to the channel end corresponding to the channel end information, so that the channel end deploys the item page information, and enables the channel end to provide the item page information to the user terminal and generate a channel order corresponding to the channel end based on the order operation of the user terminal on the item page information.

16. The order processing method according to claim 15, characterized in that: Also includes: When feedback information indicating that the item page information deployment has failed is received from the channel end, data conversion is performed on the item information again.

17. The order processing method according to claim 15, characterized in that: Also includes: receiving an item information modification request, wherein the item information modification request includes: update information for the item information; Performing data conversion on the update information; The item page information deployed on the channel end is updated using the updated information after data conversion.

18. The order processing method according to claim 15, characterized in that: Also includes: When feedback information indicating update failure is received from the channel end, the item page information deployed by the channel end is updated again.

19. The order processing method according to claim 15, characterized in that: Also includes: Providing a communication interface for the channel management terminal and directly communicating with the channel management terminal through the communication interface; and / or, An interface provided by an independent interface system is indirectly connected to the channel end for communication.

20. An order processing device, characterized in that: include: Interaction module, data conversion module and order conversion module, among which, The interaction module, in response to obtaining a channel order corresponding to the channel end, stores the channel order in the first message queue; The data conversion module is used to obtain the channel order in the first message queue according to the configured subscription information for the first message queue, perform data conversion on the order information included in the channel order, generate structured data, and store the structured data in the second message queue; The order conversion module is used to obtain the structured data in the second message queue according to the configured subscription information for the second message queue, generate an order request for the structured data, and send the order request to the channel management end so that the channel management end processes the order request.

21. An order processing system, characterized in that: include: A channel end, a channel management end, and an order processing device as claimed in claim 20, wherein: The channel end is used to receive the item information ordered by the user terminal, generate a channel order for the item information ordered by the user terminal, and provide the channel order to the order processing device; The channel management end is used to process the order request sent by the order processing device.

22. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 19.