E-commerce platform logistics order track pushing method, device and equipment and storage medium

By analyzing and verifying the real-time subscription information of the e-commerce platform, using the platform standard format to encapsulate data and push, the problems of slow push speed and low data accuracy in the existing technology are solved, and fast response and high-accuracy logistics are achieved Order track push.

CN119323393APending Publication Date: 2025-01-17SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411353163.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

The existing platform track push system does not support real-time subscription for platform-side orders, and cannot encapsulate data according to the standard format of the e-commerce platform. It has low intelligence and slow push speed. It cannot respond quickly to a large number of subscription requests, and cannot carry out logistics order tracks. Perform integrity verification, resulting in reduced accuracy of logistics order trajectory data.

Method used

By obtaining the real-time subscription information of the e-commerce platform, analyzing and obtaining the waybill number and platform standard format packaging information, querying and cacheing target subscription data in the order database based on the waybill number, performing integrity verification, and using the platform standard format packaging The template fills the data and calls the push interface of the e-commerce platform for pushing.

Benefits of technology

It realizes data encapsulation according to the standard format of the e-commerce platform, improves intelligence, improves push speed, can quickly respond to a large number of subscription requests, and improves the accuracy of logistics order trajectory data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119323393A_ABST
    Figure CN119323393A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information processing, in particular to an e-commerce platform logistics order track pushing method, device and equipment and a storage medium, and the method comprises the steps: obtaining the order placing real-time subscription information of an e-commerce platform, carrying out the analysis of the order placing real-time subscription information, obtaining the waybill number subscription information and platform standard format packaging information, and carrying out the processing of the waybill number. Based on the waybill number subscription information, the data queue is queried in the order database to obtain the target subscription data, the target subscription data is subjected to integrity verification, the accuracy of the logistics order track data is improved, when the verification result is passed, the target subscription data is loaded from the cache, the pushing speed is improved, a large number of subscription requests can be quickly responded, and the service life of the logistics order track data is prolonged. According to the method, the packaging template is obtained according to the platform standard format packaging information, the packaging template is filled with the target subscription data to generate the platform order track to-be-pushed queue, data packaging can be carried out according to the standard format of the corresponding e-commerce platform, and the intelligent degree is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a method, device, equipment and storage medium for pushing logistics order tracks on an e-commerce platform. Background Art

[0002] The platform track push system aims to push the logistics track to Pinduoduo, Taobao, Douyin, JD.com, Kuaishou and other e-commerce platforms in real time to ensure the logistics index and related business capabilities. However, the current platform track push system does not support real-time subscription of orders placed on the platform side, cannot encapsulate data according to the standard format of the corresponding e-commerce platform, has a low degree of intelligence, and has a slow push speed. It cannot quickly respond to a large number of subscription requests and cannot verify the integrity of the logistics order track, which reduces the accuracy of the logistics order track data. Summary of the invention

[0003] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide an e-commerce platform logistics order trajectory push method, device, equipment and storage medium that can encapsulate data according to the standard format of the corresponding e-commerce platform, improve the degree of intelligence, increase the push speed, quickly respond to a large number of subscription requests, verify the integrity of the logistics order trajectory, and improve the accuracy of the logistics order trajectory data.

[0004] The first aspect of the present invention provides a method for pushing logistics order trajectories on an e-commerce platform, comprising: obtaining real-time subscription information for orders on the e-commerce platform, parsing the real-time subscription information for orders, obtaining waybill number subscription information and platform standard format encapsulation information; based on the waybill number subscription information, querying a data queue in an order database to obtain target subscription data, and caching the target subscription data; performing integrity verification on the target subscription data to obtain a verification result, and when the verification result is passed, loading the target subscription data from the cache; obtaining an encapsulation template according to the platform standard format encapsulation information, filling the target subscription data into the encapsulation template to generate a platform order trajectory queue to be pushed; calling the push interface of the e-commerce platform, and using the push interface to push the platform order trajectory queue to be pushed.

[0005] Optionally, in a first implementation method of the first aspect of the present invention, the real-time subscription information for orders of the e-commerce platform is obtained, the real-time subscription information for orders is parsed, and waybill number subscription information and platform standard format packaging information are obtained, including: obtaining the real-time subscription information for orders sent by the e-commerce platform from a subscription interface; parsing the real-time subscription information for orders to obtain parsed information; classifying the parsed information to obtain waybill number subscription information and platform standard format packaging information.

[0006] Optionally, in a second implementation method of the first aspect of the present invention, based on the waybill number subscription information, a data queue is queried in an order database to obtain target subscription data, and the target subscription data is cached, including: inputting the waybill number subscription information into the order database for matching to obtain a matching result; querying the data queue according to the matching result to obtain the target subscription data; and caching the target subscription data.

[0007] Optionally, in a third implementation method of the first aspect of the present invention, the target subscription data is integrity verified to obtain a verification result, and when the verification result is passed, the target subscription data is loaded from the cache, including: performing consistency and integrity verification on the target subscription data to obtain a verification result; when the verification result is failed, creating a subscription listener, and using the subscription listener to monitor the subscription number lag information in real time; when the subscription number lag information is monitored, receiving the current subscription number lag information; generating platform track supplementary information to be pushed according to the subscription number lag information; updating the target subscription data according to the platform track supplementary information to be pushed; when the verification result is passed, loading the target subscription data from the cache.

[0008] Optionally, in a fourth implementation method of the first aspect of the present invention, obtaining a packaging template according to the platform specification format packaging information, filling the target subscription data into the packaging template to generate a platform order track to be pushed queue, including: identifying the mapping relationship between the platform specification format packaging information and the packaging template; obtaining the packaging template from a template library according to the mapping relationship; performing data statistics on the target subscription data to obtain statistical information; filling the target subscription data and the statistical information into the packaging template to generate a platform order track to be pushed queue.

[0009] Optionally, in a fifth implementation method of the first aspect of the present invention, the push interface of the e-commerce platform is called and the platform order track queue to be pushed is pushed using the push interface, including: using the public key in a preset key pair to encrypt the platform order track queue to be pushed to obtain the platform order track encrypted queue to be pushed; calling the push interface corresponding to the e-commerce platform; using the push interface to push the private key in the key pair and the platform order track encrypted queue to be pushed, so that the e-commerce platform uses the private key to decrypt the platform order track encrypted queue to be pushed.

[0010] Optionally, in a sixth implementation method of the first aspect of the present invention, after calling the push interface of the e-commerce platform and using the push interface to push the platform order track to-be-pushed queue, it also includes: receiving feedback information from the e-commerce platform, and generating a push log based on the feedback information; obtaining a timestamp from a timestamp service platform based on the generation time of the push log; merging the push log and the timestamp to obtain merged information, and uploading the merged information to the blockchain; performing abnormal warning analysis on the push log to obtain an analysis report; identifying a management terminal with the authority to process the analysis report, and sending the analysis report to the management terminal.

[0011] The second aspect of the present invention provides a device for pushing logistics order tracks of an e-commerce platform, including: an acquisition and parsing module, which is used to obtain real-time subscription information for orders of the e-commerce platform, parse the real-time subscription information for orders, and obtain waybill number subscription information and platform standard format encapsulation information; a query cache module, which is used to query the data queue in the order database based on the waybill number subscription information, obtain target subscription data, and cache the target subscription data; a verification and loading module, which is used to verify the integrity of the target subscription data and obtain a verification result. When the verification result is passed, the target subscription data is loaded from the cache; an acquisition and generation module, which is used to obtain an encapsulation template according to the platform standard format encapsulation information, fill the target subscription data into the encapsulation template to generate a platform order track to be pushed queue; a call push module, which is used to call the push interface of the e-commerce platform, and use the push interface to push the platform order track to be pushed queue.

[0012] Optionally, in a first implementation method of the second aspect of the present invention, the acquisition and parsing module includes: a first acquisition unit, used to obtain real-time subscription information for orders sent by the e-commerce platform from a subscription interface; a parsing unit, used to parse the real-time subscription information for orders to obtain parsed information; and a classification unit, used to classify the parsed information to obtain waybill number subscription information and platform standard format encapsulation information.

[0013] Optionally, in a second implementation of the second aspect of the present invention, the query cache module includes: a matching unit, used to input the waybill number subscription information into the order database for matching to obtain a matching result; a query unit, used to query the data queue according to the matching result to obtain target subscription data; and a cache unit, used to cache the target subscription data.

[0014] Optionally, in a third implementation method of the second aspect of the present invention, the verification loading module includes: a verification unit, used to verify the consistency and integrity of the target subscription data to obtain a verification result; a creation monitoring unit, used to create a subscription listener when the verification result is failed, and use the subscription listener to monitor the subscription number lag information in real time; a receiving unit, used to receive the current subscription number lag information when the subscription number lag information is monitored; a generation unit, used to generate platform track to be pushed supplementary information according to the subscription number lag information; an update unit, used to update the target subscription data according to the platform track to be pushed supplementary information; a loading unit, used to load the target subscription data from the cache when the verification result is passed.

[0015] Optionally, in a fourth implementation method of the second aspect of the present invention, the acquisition generation module includes: an identification unit, used to identify the mapping relationship between the platform specification format encapsulation information and the encapsulation template; a second acquisition unit, used to obtain the encapsulation template from the template library according to the mapping relationship; a statistical unit, used to perform data statistics on the target subscription data to obtain statistical information; and a filling generation unit, used to fill the target subscription data and the statistical information into the encapsulation template to generate a platform order track to be pushed queue.

[0016] Optionally, in a fifth implementation method of the second aspect of the present invention, the calling push module includes: an encryption unit, used to use a public key in a preset key pair to encrypt the platform order track queue to be pushed to obtain the platform order track encrypted queue to be pushed; a calling unit, used to call the push interface corresponding to the e-commerce platform; a push unit, used to use the push interface to push the private key in the key pair and the platform order track encrypted queue to be pushed, so that the e-commerce platform uses the private key to decrypt the platform order track encrypted queue to be pushed.

[0017] Optionally, in a sixth implementation method of the second aspect of the present invention, it also includes: a receiving and generating module, used to receive feedback information from the e-commerce platform, and generate a push log according to the feedback information; an acquisition module, used to obtain a timestamp from a timestamp service platform based on the generation time of the push log; a merge and upload module, used to merge the push log and the timestamp to obtain merged information, and upload the merged information to the blockchain; an analysis module, used to perform abnormal warning analysis on the push log to obtain an analysis report; an identification and sending module, used to identify a management terminal with the authority to process the analysis report, and send the analysis report to the management terminal.

[0018] The third aspect of the present invention provides an e-commerce platform logistics order trajectory pushing device, which includes: a memory and at least one processor, wherein instructions are stored in the memory; at least one of the processors calls the instructions in the memory to enable the e-commerce platform logistics order trajectory pushing device to execute each step of the e-commerce platform logistics order trajectory pushing method described in any one of the above items.

[0019] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed by a processor, implement the various steps of any of the above-mentioned methods for pushing logistics order tracks on an e-commerce platform.

[0020] In the technical solution of the present invention, by acquiring the real-time subscription information of the order of the e-commerce platform, the real-time subscription information of the order is parsed to obtain the waybill number subscription information and the platform standard format packaging information, based on the waybill number subscription information, the data queue is queried in the order database to obtain the target subscription data, the integrity of the target subscription data is verified, and the accuracy of the logistics order track data is improved. When the verification result is passed, the target subscription data is loaded from the cache to increase the push speed, and a large number of subscription requests can be responded to quickly. The packaging template is obtained according to the platform standard format packaging information, and the target subscription data is filled into the packaging template to generate a platform order track to be pushed queue, which can be packaged according to the standard format of the corresponding e-commerce platform to improve the degree of intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A first flow chart of a method for pushing a logistics order track on an e-commerce platform provided by an embodiment of the present invention;

[0022] Figure 2 A second flow chart of the method for pushing logistics order tracks on an e-commerce platform provided by an embodiment of the present invention;

[0023] Figure 3 A third flow chart of the method for pushing logistics order tracks on an e-commerce platform provided by an embodiment of the present invention;

[0024] Figure 4 A fourth flow chart of the method for pushing logistics order tracks on an e-commerce platform provided by an embodiment of the present invention;

[0025] Figure 5 A schematic diagram of a structure of a device for pushing a logistics order track of an e-commerce platform provided by an embodiment of the present invention;

[0026] Figure 6 Another structural schematic diagram of the device for pushing the logistics order track of an e-commerce platform provided by an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of the structure of a device for pushing logistics order tracks on an e-commerce platform provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention provides a method, device, equipment and storage medium for pushing logistics order trajectories on an e-commerce platform, which can encapsulate data according to the standard format of the corresponding e-commerce platform, improve the degree of intelligence, increase the push speed, quickly respond to a large number of subscription requests, verify the integrity of the logistics order trajectory, and improve the accuracy of the logistics order trajectory data.

[0029] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 An embodiment of the method for pushing logistics order tracks on an e-commerce platform in an embodiment of the present invention includes:

[0031] 101. Obtain the real-time subscription information of the order placed on the e-commerce platform, parse the real-time subscription information of the order placed, and obtain the waybill number subscription information and the platform standard format packaging information;

[0032] In this embodiment, ensure that the subscription mechanism with the e-commerce platform is correctly configured, receive order information from the e-commerce platform, confirm the format of the order information (such as JSON, XML, etc.), and select an appropriate parsing tool or library. Use the parsing tool to convert the order information into a data structure for internal use. For example, parse the JSON data into a Python dictionary or Java object, extract necessary fields such as waybill number, order details, etc. from the parsed data, extract waybill number related information from the parsed data, which includes the waybill number itself and the order details or status information related thereto, extract the waybill number from the data field, collect other information related to the waybill number, and extract the platform specification format encapsulation information from the parsed data.

[0033] 102. Based on the subscription information of the waybill number, query the data queue in the order database to obtain the target subscription data, and cache the target subscription data;

[0034] In this embodiment, the waybill number is extracted from the previous subscription information, the waybill number is used to construct a database query statement, the query statement is executed in the order database, and the result is obtained, the query result is converted into a format suitable for further processing, such as an object, a dictionary, or a data structure, the query results are filtered or sorted according to business needs, and a suitable cache system is selected, such as a memory cache (such as Redis), a file cache, or a database cache, the target subscription data is stored in the cache system, and the cache expiration time, clearing policy, etc. are configured to ensure the timeliness and consistency of the cached data.

[0035] 103. Perform integrity verification on the target subscription data to obtain a verification result. When the verification result is passed, load the target subscription data from the cache;

[0036] In this embodiment, the standard for data integrity is determined, such as whether all fields are filled in, whether the data format is correct, whether the field value is within the expected range, etc. It is confirmed that all required fields have values ​​and the field value type is correct. Regular expressions or other verification methods are used to check whether the data format is correct to ensure that the relationship logic between the data is correct. For example, the order status should be consistent with the order time. If the data passes all checks, it is marked as "passed". If the data fails the check, the reason for the failure is recorded and processed accordingly. If the target data passes the integrity verification, it is marked as "verified passed". It is confirmed whether the target subscription data has been cached. If the data does not exist in the cache, it needs to be re-queried or processed to ensure that the data in the cache is still valid (not expired). Determine whether it needs to be refreshed according to the cache policy. If the data in the cache is valid, read the target subscription data from the cache. After reading the cached data, necessary processing is performed, such as data format conversion, further business logic processing, etc. If the data is modified, the data in the cache needs to be updated to keep the data up to date.

[0037] 104. Obtain a packaging template according to the platform specification format packaging information, and fill the target subscription data into the packaging template to generate a platform order track to be pushed queue;

[0038] In this embodiment, according to the platform specifications, the structure and format of the encapsulation template are defined, the encapsulation template is obtained from a configuration file, a database or an external service, the fields required in the encapsulation template are determined, for example, order ID, user information, order details, timestamp, etc., to ensure that the data type and format of the field meet the requirements of the platform, the fields in the target subscription data are mapped to the corresponding fields in the encapsulation template, and according to the mapping rules, the target subscription data is filled into the corresponding position of the encapsulation template, the missing fields or data in the target subscription data are processed to ensure the integrity of the filled template, the structure of the queue to be pushed is determined, including the storage method of the queue (such as memory, database, message queue, etc.), the format of the queue, etc., the filled encapsulation template generates a queue item to be pushed, the queue items are sorted to ensure that they are processed in the correct order, and the generated queue items are pushed to the queue to be pushed.

[0039] 105. Call the push interface of the e-commerce platform and use the push interface to push the platform order track to-be-pushed queue;

[0040] In this embodiment, the HTTP request method to be used is determined, a request is initiated using the URL provided in the interface document, the request header is configured, including authentication information, content type, etc., the request body after data packaging is attached to the request, and the platform order track queue to be pushed is pushed using the push interface, and the status code and message of the interface response are checked to confirm whether the push is successful.

[0041] In an embodiment of the present invention, by acquiring the real-time subscription information of the order of the e-commerce platform, the real-time subscription information of the order is parsed to obtain the waybill number subscription information and the platform standard format packaging information, based on the waybill number subscription information, the data queue is queried in the order database to obtain the target subscription data, the integrity of the target subscription data is verified, and the accuracy of the logistics order track data is improved. When the verification result is passed, the target subscription data is loaded from the cache to increase the push speed, and a large number of subscription requests can be responded to quickly. According to the platform standard format packaging information, the packaging template is obtained, and the target subscription data is filled into the packaging template to generate a platform order track to be pushed queue, which can be packaged according to the standard format of the corresponding e-commerce platform to improve the degree of intelligence.

[0042] See also Figure 2 , the second embodiment of the method for pushing the logistics order track of the e-commerce platform in the embodiment of the present invention includes:

[0043] 201. Obtain the real-time subscription information of the order sent by the e-commerce platform from the subscription interface;

[0044] In this embodiment, the response status code and return data of the subscription request are confirmed to verify whether the subscription is successful, and the real-time pushed data stream is received through the subscription interface to obtain the real-time subscription information of the order sent by the e-commerce platform.

[0045] 202. Parse the order real-time subscription information to obtain parsed information;

[0046] In this embodiment, a JSON parsing library or an XML parsing library is used to parse the order real-time subscription information to obtain parsed information.

[0047] 203. Classify the parsed information to obtain waybill number subscription information and platform standard format packaging information;

[0048] In this embodiment, fields related to the waybill number and format requirements are identified from the parsed message, the extracted fields are mapped to the data model of the application, and the data model is classified to obtain the waybill number subscription information and platform specification format encapsulation information.

[0049] 204. Input the waybill number subscription information into the order database for matching, and obtain a matching result;

[0050] In this embodiment, the waybill number and related information are extracted from the waybill number subscription information, key data fields extracted from the waybill number information are prepared for database query, a suitable database connection tool or API is used to connect to the order database, an SQL query statement is written, related order records are found based on the waybill number field, the query statement is executed, the extracted waybill number is used as a query parameter, and matching order records are obtained from the result set returned by the database.

[0051] 205. Query the data queue according to the matching result to obtain the target subscription data;

[0052] In this embodiment, it is ensured that the order record obtained from the database contains a valid waybill number and related data, key fields for querying the data queue, such as order ID, user ID, etc., are extracted from the matching results, a connection is made to the data queue system, a query request is constructed based on the extracted key fields, a query request is sent to the data queue system, target subscription data related to the matching results is obtained, and a response from the data queue system is received, which contains subscription data matching the query criteria.

[0053] 206. Cache the target subscription data;

[0054] In this embodiment, a suitable cache type is selected according to business needs, such as memory cache (such as Redis, Memcached), distributed cache, etc., and a cache strategy is determined, including cache expiration time, update strategy, cache invalidation processing, etc. The cache system is installed and configured, cache nodes, clusters, and network configurations are set, and a cache key is constructed according to the unique identifier of the target subscription data (such as order ID, user ID) for subsequent quick search and access. The target subscription data is stored in the cache, and a suitable expiration time is set for the cache data to prevent data expiration or cache pollution. When the query request can find the target subscription data in the cache, the data is directly read from the cache to reduce access to the main database. When there is no target subscription data in the cache, the data is read from the main database or data source, and the obtained data is stored in the cache for subsequent access, ensuring that the data in the cache is consistent with the data in the main database or data source. If the data is updated or deleted, the cache is updated in time or the expired cache is cleared, and cache data that is no longer needed is regularly cleared to prevent excessive occupation of the cache space.

[0055] In the embodiment of the present invention, by obtaining real-time subscription information of orders from the subscription interface, it can be ensured that the system can process and respond to the latest order data in a timely manner, parse and classify the order information, and structure the data to facilitate subsequent operations and processing, thereby improving the efficiency of data management. The waybill number subscription information is matched with the data in the order database to ensure the accuracy and consistency of the order data. By querying the data queue and caching the target subscription data, the system can speed up data access, reduce repeated calculations, and improve overall performance.

[0056] See also Figure 3 The third embodiment of the method for pushing the logistics order track of the e-commerce platform in the embodiment of the present invention includes:

[0057] 301. Verify the consistency and integrity of the target subscription data to obtain a verification result;

[0058] In this embodiment, it is determined whether the data in the cache should be completely consistent with the data in the main database, and the integrity requirements of the data are determined, such as whether the data fields are complete and whether the data values ​​are within the expected range. Specifically, the target subscription data in the cache is obtained, the target subscription data in the main database is obtained, and the data in the cache is compared with the data in the main database for consistency. The data field values, data structure, timestamp, etc. are checked. If the data is found to be inconsistent, the detailed information of the difference is recorded, including which data source the data is from and the specific content of the difference. It is verified that the target subscription data contains all necessary fields and that the field values ​​are as expected. For example, it is checked whether any required fields are missing, whether the data type is correct, and whether the value is within the allowable range to obtain the verification result.

[0059] 302. When the verification result is not passed, a subscription listener is created, and the subscription listener is used to monitor the subscription number lag information in real time;

[0060] In this embodiment, when the data verification result fails, a suitable technology stack and tools are selected to implement the subscription listener, the architecture of the listener is designed, including data acquisition methods, event processing logic, error handling mechanisms, etc., code is written to implement the listener function, ensure that it can connect to the data source, receive and process subscription information in real time, detect lags or inconsistencies, configure the listener to connect to the data source, and set up a suitable data query or subscription mechanism so that the listener can receive and process relevant data, configure the triggering conditions of the listener, such as triggering an alarm or performing processing operations when a lag is detected for a specific subscription number, start the subscription listener and ensure its normal operation, and monitor the lag information of the subscription number in real time.

[0061] 303. When the subscription order number delay information is monitored, the current subscription order number delay information is received;

[0062] In this embodiment, when the subscription listener listens to the subscription order number hysteresis information, the subscription order number hysteresis information is extracted from the data stream received by the subscription listener.

[0063] 304. Generate supplementary information of the platform track to be pushed according to the delayed information of the subscription order number;

[0064] In this embodiment, the relevant subscription order number is extracted from the subscription order number lag information, the corresponding order data is searched in the order database according to the relevant subscription order number, and the order data is generated as the platform track supplementary information to be pushed.

[0065] 305. Update the target subscription data according to the platform track to be pushed supplementary information;

[0066] In this embodiment, the structure and content of the platform track supplementary information to be pushed are parsed to ensure that it can be understood and correctly applied to the target subscription data, and the parsed platform track supplementary information to be pushed is inserted into the target subscription data for update operation.

[0067] 306. When the verification result is passed, the target subscription data is loaded from the cache;

[0068] In this embodiment, when the verification result is passed, the target subscription data is retrieved and loaded from the cache, and the data loaded from the cache is applied to the current state of the system.

[0069] 307. Identify the mapping relationship between the platform specification format packaging information and the packaging template;

[0070] In this embodiment, the definition of the platform specification format is clarified, its data fields, structure and format requirements are understood, the structure and content of the encapsulation template are identified, the data fields in the platform specification format are mapped to the corresponding fields in the encapsulation template, and the mapping relationship between the platform specification format encapsulation information and the encapsulation template is recorded.

[0071] 308. Obtain a package template from a template library according to the mapping relationship;

[0072] In this embodiment, based on the aforementioned mapping relationship, the specific package template that needs to be extracted from the template library is determined. The mapping relationship will specify which fields or structures need to correspond in the template. The template library is queried using the information in the mapping relationship to locate and retrieve the package template that meets the requirements. The required package template is extracted and loaded from the template library, and it is checked whether the obtained package template meets the requirements of the mapping relationship.

[0073] 309. Perform data statistics on the target subscription data to obtain statistical information;

[0074] In this embodiment, statistical tools or programming languages ​​(such as Python's Pandas, R, etc.) are used to analyze the target subscription data, calculate the required statistical information, generate summary statistical information based on the results of the statistical analysis, such as the total number of orders and order status distribution, and visualize the statistical information in the form of charts, graphs, etc. to help more intuitively understand the data, such as bar charts, pie charts, line charts, etc.

[0075] 310. Fill the target subscription data and statistical information into the packaging template to generate a platform order track to be pushed queue;

[0076] In this embodiment, the structure and content of the encapsulation template are determined, including fields such as order ID, user information, order track status, statistical data, etc., and it is clear how each field is mapped to the target subscription data and statistical information. The required original data is extracted from the target subscription data source to ensure that all necessary fields and information are included. The relevant data is integrated into a data set as needed to ensure data consistency and integrity. The required statistical information, such as the total number of orders, order status distribution, etc., is calculated based on the target subscription data. The calculated statistical results are organized into a data format suitable for filling the template, and a template instance is created for each target subscription data using the defined template structure. The target subscription data and statistical information are filled into the corresponding fields in the template, and the filled template instance is encapsulated into a format to be pushed, such as JSON, XML or other structured formats, and the encapsulated data is added to the order track queue to be pushed of the platform.

[0077] In an embodiment of the present invention, the consistency and integrity of the target subscription data are verified before processing the data to ensure the accuracy and reliability of the data, the lagging information is monitored in real time through the subscription listener, and the data is updated in time to solve the data delay problem, improve the system response speed, generate and apply the platform track to push supplementary information to ensure the latest and completeness of the data, identify and apply the packaging template, improve the consistency and standardization of the data output, and provide useful business insights through data statistics.

[0078] See also Figure 4 The fourth embodiment of the method for pushing the logistics order track of the e-commerce platform in the embodiment of the present invention includes:

[0079] 401. Use the public key in the preset key pair to encrypt the platform order track to-be-pushed queue to obtain the platform order track to-be-pushed encrypted queue;

[0080] In this embodiment, a key pair is generated, and the public key is securely provided to the system or application that needs to encrypt data. The original data to be encrypted is extracted from the previously generated queue to be pushed, an appropriate encryption algorithm is selected to protect the data, the key length used by the encryption algorithm is determined, the preset public key is used to encrypt the queue data to be pushed, and the encrypted data is saved as an encrypted queue.

[0081] 402. Call the push interface corresponding to the e-commerce platform;

[0082] In this embodiment, ensure that you have the latest documentation of the e-commerce platform push interface. The document should contain information such as the interface URL, request method (such as POST), request parameters, response format, etc. Set the request header information (such as Content-Type, Authorization, etc.) and the data in the request body according to the interface documentation, use an appropriate HTTP client library to send the request, send the prepared request to the push interface of the e-commerce platform, and receive and parse the response data returned by the interface.

[0083] 403. Push the private key in the key pair and the encrypted queue of the platform order track to be pushed using the push interface, so that the e-commerce platform uses the private key to decrypt the encrypted queue of the platform order track to be pushed;

[0084] In this embodiment, the push interface is used to push the private key in the key pair and the encrypted queue of the platform order track to be pushed. After the e-commerce platform receives the private key and the encrypted queue of the platform order track to be pushed, the private key is used to decrypt the encrypted queue of the platform order track to be pushed to obtain the encrypted queue of the platform order track to be pushed.

[0085] 404. Receive feedback information from the e-commerce platform and generate a push log according to the feedback information;

[0086] In this embodiment, response data is received from the e-commerce platform, and the response data is parsed to extract key information, such as status code, error information, processing results, etc. The status code or result field in the response is confirmed to determine whether the push request is successful. The format and structure of the log are designed, including timestamp, request ID, identifier of the encryption queue, response status code, processing results, etc. The detailed response content and any error information are recorded for subsequent analysis, and the recorded information is stored in a log file. The appropriate storage location and file format are selected to ensure that the log content contains all important information for auditing and troubleshooting.

[0087] 405. Obtain a timestamp from the timestamp service platform based on the generation time of the push log;

[0088] In this embodiment, the push log file is parsed, the generation time of each record is extracted, the format of the extracted timestamp is ensured to meet the requirements of the timestamp service platform, the request parameters are designed, including the extracted timestamp, the necessary request headers are set according to the interface document of the timestamp service platform, the request is sent using the HTTP client library, the response returned from the timestamp service platform is parsed, and the timestamp and other related information returned by the timestamp service platform are extracted.

[0089] 406. Merge the push log and the timestamp to obtain merged information, and upload the merged information to the blockchain;

[0090] In this embodiment, the timestamp obtained from the timestamp service platform is added to the push log to obtain the merged information, ensure that the data format of the merged information meets the requirements of the blockchain platform, use the API or tools provided by the blockchain platform to generate a blockchain transaction from the merged information, select a suitable blockchain platform (such as Ethereum, Hyperledger, Bitcoin, etc.), and obtain the necessary API keys or access rights, use the API or tools of the blockchain platform to create a transaction, send the signed transaction to the blockchain network, ensure that the transaction ID or hash is recorded for subsequent query and verification, use the API of the blockchain platform to query the status of the transaction, and confirm whether the transaction has been successfully written to the blockchain.

[0091] 407. Perform abnormal warning analysis on the push log and obtain an analysis report;

[0092] In this embodiment, all push log data is extracted from the system, and the problems of missing values, duplicates and inconsistent formats are handled to ensure that the data quality is suitable for analysis. Based on historical data or expert knowledge, the standards and thresholds for exceptions are defined, and the log data is detected for anomalies using the defined exception standards and methods. The detected abnormal logs are marked for further analysis, and the statistical data of the abnormal logs are summarized, including the time, frequency, and scope of impact of the abnormality. The possible causes of the abnormality are deeply analyzed to see whether they are related to system failures, network problems, configuration errors, and other factors. An analysis report is written based on all factors, and the analysis report includes a cause analysis and recommended measures.

[0093] 408. Identify a management terminal with permission to process the analysis report, and send the analysis report to the management terminal;

[0094] In this embodiment, it is determined which terminals or users have the authority to process the analysis report, and the information of users or terminals with report processing authority is extracted from the authority management system or database to ensure that the identified terminals or users do have the authority to process the report, avoid mistakenly sending the report to a terminal that does not have the authority to process the report, and determine the method for sending the report, which can be to send the report to the identified management terminal via email, internal messaging system or file transfer tool.

[0095] In an embodiment of the present invention, a public key is used to encrypt the queue of platform order tracks to be pushed, ensuring that the confidentiality and integrity of data are maintained during transmission. By calling the push interface corresponding to the e-commerce platform, it is ensured that the data can be smoothly pushed to the target platform. The encrypted queue is decrypted by a private key to ensure that the e-commerce platform can correctly interpret the data. By generating a push log, the system can record each data transmission process to provide support for subsequent tracking and auditing. Obtaining and attaching a timestamp can ensure the time accuracy and credibility of the push log. Uploading the merged information to the blockchain improves the transparency and non-tamperability of the data, ensures the archiving and traceability of the push log, and enhances the security and reliability of the data. Anomaly warning analysis of the push log can timely discover potential problems or anomalies, help respond quickly and take corrective measures, and generate an analysis report that provides detailed abnormal information to provide a basis for decision-making and improvement. The analysis report is identified and sent to a management terminal with processing authority to ensure that only authorized personnel can access and process these reports, thereby improving the security of data processing and management efficiency.

[0096] The above describes the method for pushing the logistics order track of the e-commerce platform in the embodiment of the present invention. The following describes the device for pushing the logistics order track of the e-commerce platform in the embodiment of the present invention. Figure 5 In one embodiment of the present invention, an e-commerce platform logistics order track push device includes:

[0097] The acquisition and parsing module 501 is used to obtain the real-time subscription information of the order on the e-commerce platform, parse the real-time subscription information of the order, and obtain the waybill number subscription information and the platform standard format packaging information;

[0098] The query cache module 502 is used to query the data queue in the order database based on the waybill number subscription information, obtain the target subscription data, and cache the target subscription data;

[0099] The verification and loading module 503 is used to perform integrity verification on the target subscription data and obtain a verification result. When the verification result is passed, the target subscription data is loaded from the cache;

[0100] The acquisition generation module 504 is used to obtain a packaging template according to the platform specification format packaging information, and fill the target subscription data into the packaging template to generate a platform order track to be pushed queue;

[0101] The push module 505 is called to call the push interface of the e-commerce platform, and use the push interface to push the platform order track to-be-pushed queue.

[0102] In this embodiment, by obtaining the real-time subscription information of the order of the e-commerce platform, the real-time subscription information of the order is parsed to obtain the waybill number subscription information and the platform standard format packaging information, based on the waybill number subscription information, the data queue is queried in the order database to obtain the target subscription data, the integrity of the target subscription data is verified, and the accuracy of the logistics order track data is improved. When the verification result is passed, the target subscription data is loaded from the cache to increase the push speed and quickly respond to a large number of subscription requests. According to the platform standard format packaging information, the packaging template is obtained, and the target subscription data is filled into the packaging template to generate a platform order track to be pushed queue, which can be packaged according to the standard format of the corresponding e-commerce platform to improve the degree of intelligence.

[0103] See also Figure 6 Another embodiment of the device for pushing the logistics order track of the e-commerce platform in the embodiment of the present invention includes:

[0104] The acquisition and parsing module 501 is used to obtain the real-time subscription information of the order on the e-commerce platform, parse the real-time subscription information of the order, and obtain the waybill number subscription information and the platform standard format packaging information;

[0105] The query cache module 502 is used to query the data queue in the order database based on the waybill number subscription information, obtain the target subscription data, and cache the target subscription data;

[0106] The verification and loading module 503 is used to perform integrity verification on the target subscription data and obtain a verification result. When the verification result is passed, the target subscription data is loaded from the cache;

[0107] The acquisition generation module 504 is used to obtain a packaging template according to the platform specification format packaging information, and fill the target subscription data into the packaging template to generate a platform order track to be pushed queue;

[0108] Calling the push module 505, which is used to call the push interface of the e-commerce platform, and use the push interface to push the platform order track to-be-pushed queue;

[0109] In this embodiment, the acquisition and parsing module 501 includes: a first acquisition unit 5011, used to obtain the real-time subscription information of the order sent by the e-commerce platform from the subscription interface; a parsing unit 5012, used to parse the real-time subscription information of the order to obtain parsed information; a classification unit 5013, used to classify the parsed information to obtain the waybill number subscription information and the platform standard format encapsulation information.

[0110] In this embodiment, the query cache module 502 includes: a matching unit 5021, which is used to input the waybill number subscription information into the order database for matching and obtain a matching result; a query unit 5022, which is used to query the data queue according to the matching result and obtain the target subscription data; and a cache unit 5023, which is used to cache the target subscription data.

[0111] In this embodiment, the verification loading module 503 includes: a verification unit 5031, which is used to verify the consistency and integrity of the target subscription data to obtain a verification result; a creation monitoring unit 5032, which is used to create a subscription listener when the verification result is not passed, and use the subscription listener to monitor the subscription number lag information in real time; a receiving unit 5033, which is used to receive the current subscription number lag information when the subscription number lag information is monitored; a generation unit 5034, which is used to generate the platform track to be pushed supplementary information according to the subscription number lag information; an update unit 5035, which is used to update the target subscription data according to the platform track to be pushed supplementary information; a loading unit 5036, which is used to load the target subscription data from the cache when the verification result is passed.

[0112] In this embodiment, the acquisition generation module 504 includes: an identification unit 5041, which is used to identify the mapping relationship between the platform specification format packaging information and the packaging template; a second acquisition unit 5042, which is used to obtain the packaging template from the template library according to the mapping relationship; a statistical unit 5043, which is used to perform data statistics on the target subscription data to obtain statistical information; a filling generation unit 5044, which is used to fill the target subscription data and statistical information into the packaging template to generate a platform order track to be pushed queue.

[0113] In this embodiment, the calling push module 505 includes: an encryption unit 5051, which is used to use the public key in the preset key pair to encrypt the platform order track to be pushed queue to obtain the platform order track to be pushed encrypted queue; a calling unit 5052, which is used to call the push interface corresponding to the e-commerce platform; a push unit 5053, which is used to use the push interface to push the private key in the key pair and the platform order track to be pushed encrypted queue, so that the e-commerce platform uses the private key to decrypt the platform order track to be pushed encrypted queue.

[0114] In this embodiment, it also includes: a receiving and generating module 506, which is used to receive feedback information from the e-commerce platform and generate a push log according to the feedback information; an obtaining module 507, which is used to obtain a timestamp from a timestamp service platform based on the generation time of the push log; a merging and uploading module 508, which is used to merge the push log and the timestamp to obtain merged information, and upload the merged information to the blockchain; an analyzing module 509, which is used to perform abnormal warning analysis on the push log to obtain an analysis report; an identifying and sending module 510, which is used to identify a management terminal with the authority to process the analysis report and send the analysis report to the management terminal.

[0115] above Figure 5 and Figure 6 The e-commerce platform logistics order trajectory pushing device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The e-commerce platform logistics order trajectory pushing device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0116] Figure 7 6 is a schematic diagram of the structure of a device for pushing a logistics order track of an e-commerce platform provided by an embodiment of the present invention. The device 600 for pushing a logistics order track of an e-commerce platform may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) for storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 may be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the device 600 for pushing a logistics order track of an e-commerce platform. Furthermore, the processor 610 may be configured to communicate with the storage medium 630, and execute a series of instruction operations in the storage medium 630 on the device 600 for pushing a logistics order track of an e-commerce platform, so as to implement the steps of the method for pushing the logistics order track of an e-commerce platform provided by the above-mentioned method embodiments.

[0117] The e-commerce platform logistics order track push device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 7 The structure of the e-commerce platform logistics order track pushing device shown does not constitute a limitation on the e-commerce platform logistics order track pushing device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0118] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for pushing logistics order trajectories of an e-commerce platform.

[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0121] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for pushing logistics order tracks on an e-commerce platform, characterized in that: include: Obtaining the real-time subscription information of the order on the e-commerce platform, parsing the real-time subscription information of the order, and obtaining the waybill number subscription information and the platform standard format packaging information; Based on the waybill number subscription information, query the data queue in the order database to obtain the target subscription data, and cache the target subscription data; Performing integrity verification on the target subscription data to obtain a verification result, and when the verification result is passed, loading the target subscription data from the cache; Acquire a packaging template according to the platform specification format packaging information, and fill the target subscription data into the packaging template to generate a platform order track to be pushed queue; The push interface of the e-commerce platform is called, and the platform order track to-be-pushed queue is pushed using the push interface.

2. The method for pushing logistics order tracks on an e-commerce platform according to claim 1, characterized in that: The step of obtaining the real-time order subscription information of the e-commerce platform, parsing the real-time order subscription information, and obtaining the waybill number subscription information and platform standard format packaging information includes: Get the real-time subscription information of the order sent by the e-commerce platform from the subscription interface; Parsing the order real-time subscription information to obtain parsed information; The parsed information is classified to obtain waybill number subscription information and platform standard format packaging information.

3. The method for pushing logistics order tracks on an e-commerce platform according to claim 1, characterized in that: The method of querying a data queue in an order database based on the waybill number subscription information to obtain target subscription data and caching the target subscription data includes: Input the waybill number subscription information into the order database for matching, and obtain a matching result; Query the data queue according to the matching result to obtain the target subscription data; The target subscription data is cached.

4. The method for pushing logistics order tracks on an e-commerce platform according to claim 1, characterized in that: The performing integrity verification on the target subscription data to obtain a verification result, and when the verification result is passed, loading the target subscription data from the cache, includes: Verifying the consistency and integrity of the target subscription data to obtain a verification result; When the verification result is not passed, a subscription listener is created, and the subscription listener is used to monitor the subscription number lag information in real time; When the subscription order number delay information is monitored, the current subscription order number delay information is received; Generate the platform track supplementary information to be pushed according to the subscription order number lag information; Updating the target subscription data according to the platform track supplementary information to be pushed; When the verification result is passed, the target subscription data is loaded from the cache.

5. The method for pushing logistics order tracks on an e-commerce platform according to claim 1, characterized in that: The step of obtaining a packaging template according to the platform specification format packaging information and filling the target subscription data into the packaging template to generate a platform order track to be pushed queue includes: Identify the mapping relationship between the platform specification format packaging information and the packaging template; Acquire the encapsulation template from a template library according to the mapping relationship; Performing data statistics on the target subscription data to obtain statistical information; The target subscription data and the statistical information are filled into the packaging template to generate a platform order track queue to be pushed.

6. The method for pushing logistics order tracks on an e-commerce platform according to claim 1, characterized in that: The calling of the push interface of the e-commerce platform and using the push interface to push the platform order track to-be-pushed queue includes: Using the public key in the preset key pair to encrypt the platform order track to-be-pushed queue, to obtain the platform order track to-be-pushed encrypted queue; Calling the push interface corresponding to the e-commerce platform; The push interface is used to push the private key in the key pair and the encrypted queue of the platform order track to be pushed, so that the e-commerce platform uses the private key to decrypt the encrypted queue of the platform order track to be pushed.

7. The method for pushing logistics order tracks on an e-commerce platform according to claim 1, characterized in that: After calling the push interface of the e-commerce platform and using the push interface to push the platform order track to-be-pushed queue, the method further includes: Receive feedback information from the e-commerce platform, and generate a push log according to the feedback information; Obtaining a timestamp from a timestamp service platform based on the generation time of the push log; Merging the push log and the timestamp to obtain merged information, and uploading the merged information to the blockchain; Performing abnormal warning analysis on the push log to obtain an analysis report; A management terminal having the authority to process the analysis report is identified, and the analysis report is sent to the management terminal.

8. An e-commerce platform logistics order track push device, characterized in that: include: An acquisition and parsing module is used to obtain the real-time subscription information of the order on the e-commerce platform, parse the real-time subscription information of the order, and obtain the waybill number subscription information and the platform standard format packaging information; A query cache module, used to query the data queue in the order database based on the waybill number subscription information, obtain the target subscription data, and cache the target subscription data; A verification loading module, used for performing integrity verification on the target subscription data to obtain a verification result, and when the verification result is passed, loading the target subscription data from the cache; An acquisition generation module, used for obtaining a packaging template according to the packaging information in the platform specification format, and filling the target subscription data into the packaging template to generate a platform order track to be pushed queue; The push module is called to call the push interface of the e-commerce platform, and the push interface is used to push the order track to be pushed queue of the platform.

9. An e-commerce platform logistics order track push device, characterized in that: The e-commerce platform logistics order track push device includes: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors calls the instructions in the memory so that the e-commerce platform logistics order track pushing device executes each step of the e-commerce platform logistics order track pushing method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, each step of the method for pushing logistics order track of the e-commerce platform as described in any one of claims 1-7 is implemented.

Citation Information

Cited By

  • Cross-border e-commerce data statistical management method for data processing and analysis

    CN119576919A