Order placing abnormal information processing method and device

By receiving and matching the abnormal information returned by the logistics service provider, it determines its abnormal classification and generates new abnormal classification and abnormal expression when necessary, solving the problem of low efficiency of abnormal information processing in existing technology, realized automated classification, and realized automation classification. And the convenience of analysis.

CN119337261APending Publication Date: 2025-01-21BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310889755.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2025-01-21

Smart Images

  • Figure CN119337261A_ABST
    Figure CN119337261A_ABST
Patent Text Reader

Abstract

The invention discloses a processing method and device for order placing abnormal information, and relates to the technical field of computers. One specific embodiment of the method comprises the following steps: receiving order placing abnormal information returned by a logistics service provider; obtaining a plurality of abnormal classifications corresponding to the logistics service provider; determining a matching result of the order placing exception information and an exception expression corresponding to the exception classification; and according to the matching result, determining an exception classification corresponding to the order placing exception information, and according to the exception classification corresponding to the order placing exception information, performing information processing on the order placing exception information. According to the embodiment, the abnormal information returned by the logistics service provider can be divided into different abnormal classifications, so that statistical analysis and reason investigation of the abnormal information are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing abnormal order information. Background Art

[0002] With the rapid development of the logistics industry, it is necessary to integrate the distribution capabilities of more and more local or overseas logistics service providers so that the distribution service capabilities can cover more and more countries and regions. When the shipping order fails to be issued to each logistics service provider, the logistics service provider will return abnormal information. In the prior art, it is necessary to pre-create multiple abnormal classifications for each logistics service provider. Since the abnormal systems of various logistics service providers are constructed in different ways and cannot be processed uniformly, after receiving the abnormal information returned by the logistics service provider, the received abnormal information is manually divided into different abnormal classifications. In the case of a large volume of logistics business, the work pressure of the staff is relatively high, and it is difficult to conduct statistical analysis on the abnormal information returned by the logistics service provider, which causes troubles in the investigation of the abnormal reasons for placing orders. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method and device for processing order abnormal information, which can reduce the work pressure of staff, divide the various abnormal information returned by the logistics service provider into different abnormal categories, and facilitate statistical analysis and cause investigation of the abnormal information.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing abnormal order information, including:

[0005] Receive order exception information returned by the logistics service provider;

[0006] Obtain multiple exception categories corresponding to the logistics service provider;

[0007] Determine a matching result between the order exception information and an exception expression corresponding to the exception classification;

[0008] According to the matching result, the abnormal classification corresponding to the abnormal order information is determined, and according to the abnormal classification corresponding to the abnormal order information, information processing is performed on the abnormal order information.

[0009] Optionally, determining, according to the matching result, an abnormality classification corresponding to the abnormal order information includes:

[0010] In response to the matching result indicating that there is a target expression matching the order abnormality information, determining a target category corresponding to the target expression, and determining the target category as the abnormal category corresponding to the order abnormality information;

[0011] In response to the matching result indicating that there is no abnormal expression matching the abnormal order information, it is determined that the abnormal order information corresponds to a new abnormal classification, and an abnormal expression corresponding to the new abnormal classification is generated.

[0012] Optionally, generating an abnormal expression corresponding to the new abnormal classification includes:

[0013] Acquire an order exception information set corresponding to the logistics service provider, wherein the order exception information set includes the order exception information;

[0014] Constructing a dictionary tree corresponding to the order exception information set, and optimizing the dictionary tree;

[0015] According to the query path of the order exception information in the optimized dictionary tree, an exception expression corresponding to the new exception classification is generated.

[0016] Optionally, the performing information processing on the order abnormality information according to the abnormality classification corresponding to the order abnormality information includes:

[0017] Determine the speech packaging information of the abnormal classification corresponding to the abnormal order information;

[0018] According to the speech packaging information, the abnormal order information is packaged in a speech packaging manner;

[0019] Returns order exception information after script packaging processing.

[0020] Optionally, performing speech packaging processing on the order exception information according to the speech packaging information includes:

[0021] Obtaining processing information in the speech packaging information;

[0022] In response to the processing information representing the replacement, obtaining the placeholder expression and the replacement fragment in the speech packaging information;

[0023] According to the placeholder expression, a target segment is determined from the order exception information;

[0024] The target segment in the order exception information is replaced by the replacement segment.

[0025] Optionally, it also includes:

[0026] Determine the order information of the target waybill;

[0027] Obtain the pre-verification script corresponding to the logistics service provider;

[0028] Determine whether the order information of the target waybill passes the verification of the pre-verification script;

[0029] In response to the order information of the target waybill passing the verification of the pre-verification script, the order information of the target waybill is sent to the logistics service provider.

[0030] Optionally, after determining whether the order information of the target waybill passes the verification of the pre-verification script, the method further includes:

[0031] In response to the order information of the target waybill not passing the verification of the pre-verification script, determining whether the target waybill satisfies the occasional release condition;

[0032] In response to the target waybill satisfying the occasional release condition, sending the order information of the target waybill to the logistics service provider to obtain order processing information;

[0033] In response to the order processing information indicating that the order is successfully placed, the pre-verification script is disabled, and troubleshooting information for the pre-verification script is generated.

[0034] In a second aspect, an embodiment of the present invention provides a device for processing order abnormality information, including:

[0035] The information receiving module is used to receive the order abnormality information returned by the logistics service provider;

[0036] A classification acquisition module, used to acquire multiple abnormal classifications corresponding to the logistics service provider;

[0037] A result determination module, used to determine the matching result of the abnormal order information and the abnormal expression corresponding to the abnormal classification;

[0038] An information processing module is used to determine the abnormal classification corresponding to the abnormal order information according to the matching result, and to perform information processing on the abnormal order information according to the abnormal classification corresponding to the abnormal order information.

[0039] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0040] one or more processors;

[0041] a storage device for storing one or more programs,

[0042] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the above embodiments.

[0044] One embodiment of the above invention has the following advantages or beneficial effects: multiple exception categories corresponding to the logistics service provider and the exception expressions corresponding to each exception category are set in the system. Each exception expression is matched with the order exception information. If there is a target expression that matches the order exception information, the target category corresponding to the target expression is determined as the exception category corresponding to the order exception information. If there is no exception expression that matches the order exception information, it is determined that the order exception information corresponds to a new exception category, and an exception expression corresponding to the new exception category is generated. Therefore, it can reduce the work pressure of the staff, divide the various exception information returned by the logistics service provider into different exception categories, and facilitate statistical analysis and cause investigation of the exception information.

[0045] 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

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

[0047] Figure 1 It is a schematic diagram of a process of a method for processing abnormal order information provided by an embodiment of the present invention;

[0048] Figure 2 It is a schematic diagram of a process for automatically classifying abnormal order information provided by an embodiment of the present invention;

[0049] Figure 3 It is a schematic diagram of a process of a method for processing abnormal order information provided by another embodiment of the present invention;

[0050] Figure 4 It is a flow chart of binding an exception mapping rule, a pre-checking script and an exception packaging rule provided by an embodiment of the present invention;

[0051] Figure 5 It is a flowchart of order pre-verification and exception handling provided by an embodiment of the present invention;

[0052] Figure 6 It is a schematic diagram of the structure of a dictionary tree provided by an embodiment of the present invention;

[0053] Figure 7 Yes Figure 6 The schematic diagram of the structure of the dictionary tree after the dictionary tree shown is initially merged;

[0054] Figure 8 Yes Figure 7 The structural diagram of the dictionary tree after the dictionary tree is pruned is shown;

[0055] Fig. 9 Yes Figure 8 The schematic diagram of the structure of the dictionary tree after the dictionary tree is deeply merged;

[0056] Fig.10 is a schematic diagram of the structure of another dictionary tree provided by an embodiment of the present invention;

[0057] Fig.11 Yes Fig.10 The schematic diagram of the structure of the dictionary tree after the dictionary tree shown is initially merged;

[0058] Fig.12 Yes Fig.11 A schematic diagram of the structure of the dictionary tree after the dictionary tree shown is further merged;

[0059] Fig.13 It is a structural schematic diagram of a device for processing abnormal order information provided by an embodiment of the present invention;

[0060] Fig.14 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

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

[0062] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of the embodiments of the present invention are in compliance with the relevant provisions of national laws and regulations.

[0063] Figure 1 FIG. 1 is a schematic diagram of a method for processing abnormal order information provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0064] Step 101: Receive order exception information returned by the logistics service provider.

[0065] This method can be applied to the routing system of a third-party service provider. The routing system of the third-party service provider sends an order request for a waybill to the logistics service provider. If the logistics service provider cannot process the order request, the logistics service provider returns order exception information. The routing system of the third-party service provider may include but is not limited to: a waybill issuing module, an information receiving module, a classification acquisition module and an information processing module. Among them, the waybill issuing module is used to implement the issuance of overseas waybills according to the designated service provider's products. The information receiving module is used to receive order exception information returned by the logistics service provider. The classification acquisition module is used to obtain multiple exception classifications corresponding to the logistics service provider. The information module is used to determine the exception classification corresponding to the order exception information, and to perform information processing on the order exception information.

[0066] Step 102: Obtain multiple exception categories corresponding to the logistics service provider.

[0067] In the third-party service provider routing system, multiple exception categories corresponding to logistics service providers and exception expressions corresponding to each exception category are set. The exception category can correspond to the logistics service provider, and the exception category can also correspond to the logistics product provided by the logistics service provider. The exception expression can be expressed in the form of a regular expression.

[0068] If the abnormal classification corresponds to a logistics service provider, multiple abnormal classifications corresponding to the logistics service provider are obtained. If the abnormal classification corresponds to a logistics product provided by the logistics service provider, multiple abnormal classifications are determined according to the logistics service provider and the logistics product corresponding to the order abnormal information.

[0069] Relevant personnel can manually input multiple exception categories and the exception expressions corresponding to each exception category. It is also possible to obtain an exception information set for a logistics service provider or a logistics product; based on the exception information set, construct a dictionary tree corresponding to the exception information set, and optimize the dictionary tree; for each query path in the optimized dictionary tree, determine multiple exception categories and the exception expressions corresponding to each exception category. Among them, the exception category and the query path are in a one-to-one correspondence, and the exception expression is a regular expression generated by the combination of each node passed by the query path.

[0070] Step 103: Determine the matching result between the order exception information and the exception expression corresponding to the exception classification.

[0071] The current expression is determined from the abnormal expressions corresponding to multiple abnormal categories. The current expression is matched with the abnormal order information. If the match is successful, the target category corresponding to the target expression is determined, and the target category is used as the abnormal category of the abnormal order information, and the matching is stopped. If the match is unsuccessful, the abnormal expression of the next abnormal category is obtained until the match is successful or all abnormal expressions are matched.

[0072] Step 104: Determine the abnormal classification corresponding to the abnormal order information according to the matching result, and perform information processing on the abnormal order information according to the abnormal classification corresponding to the abnormal order information.

[0073] If the matching result indicates that there is a target expression that matches the order exception information, the target category corresponding to the target expression is determined, and the target category is determined as the exception category corresponding to the order exception information. If the matching result indicates that there is no exception expression that matches the order exception information, it is determined that the order exception information corresponds to a new exception category, and an exception expression corresponding to the new exception category is generated. A category identifier can be set for the new exception category in the third-party service provider routing system and added to the exception category list.

[0074] In an embodiment of the present invention, multiple exception categories corresponding to the logistics service provider and exception expressions corresponding to each exception category are set in the third-party service provider routing system. Each exception expression is matched with the order exception information. If there is a target expression that matches the order exception information, the target category corresponding to the target expression is determined as the exception category corresponding to the order exception information. If there is no exception expression that matches the order exception information, it is determined that the order exception information corresponds to a new exception category, and an exception expression corresponding to the new exception category is generated. Therefore, the various exception information returned by the logistics service provider can be divided into different exception categories, which is convenient for statistical analysis of the exception information and troubleshooting of the causes of the exceptions.

[0075] In the absence of an abnormal expression matching the order abnormal information, it is determined that the order abnormal information corresponds to a new abnormal classification, which is a category different from the abnormal classifications already in the system. The new abnormal classification and the abnormal expression corresponding to the new abnormal classification are saved in the system. If other abnormal information is received later, and the other abnormal information matches the abnormal expression corresponding to the new abnormal classification, it is determined that the other abnormal information corresponds to the new abnormal classification.

[0076] In one embodiment of the present invention, generating an abnormal expression corresponding to a new abnormal classification includes: obtaining an order abnormality information set corresponding to a logistics service provider, the order abnormality information set including order abnormality information; constructing a dictionary tree corresponding to the order abnormality information set, and optimizing the dictionary tree; generating an abnormal expression corresponding to the new abnormal classification according to the query path of the order abnormality information in the optimized dictionary tree.

[0077] The specific steps to generate and optimize the dictionary tree are as follows:

[0078] 1. Split the exception information into multiple single characters, generate a dictionary tree through the script, and store the dictionary tree in memory.

[0079] 2. Node traversal, upgrade and merge: Traverse each node of the dictionary tree. If the number of child branches of a node exceeds a given threshold (the threshold can be set to 3), it means that the subsequent data is more complex. You can consider upgrading the child nodes with the same value to improve the generalization ability of the dictionary tree, that is, merge all child nodes with the parent node with the same value.

[0080] When calculating the number of sub-branches, in addition to paying attention to the number of sub-nodes, you also need to pay attention to the situation where the abnormal text terminates at the node, that is, a child node that is empty is also considered a sub-branch, so the number of branches is the number of sub-nodes plus 1. The above judgment logic can be implemented by recording the number of data entering and terminating each node.

[0081] In addition, the values ​​of multiple child nodes of a node may be the same after upgrading. For example, in the text "Order number ABCZ failed to be placed", the four child nodes "ABCZ" after the "number" node are all upgraded to "[AZ]". In this case, these nodes with the same value and all their subordinate child nodes can also be merged.

[0082] 3. Pruning the dictionary tree and processing dirty data: The order exception information may contain a few special characters and other dirty data, which will affect the correct generation of regular expressions. Therefore, during the traversal process, the nodes with less data in the branch can be determined as dirty data and excluded from the dictionary tree. The specific judgment logic is that if the ratio of the data volume of a branch to the average data volume of the branch is less than a certain threshold (the threshold can be set to 0.3), then this branch can be judged as dirty data and pruned from the dictionary tree, so as to continuously improve the matching accuracy of the dictionary tree.

[0083] 4. Deep merging: If a character appears multiple times in a regular expression, the {n}, {n,m} placeholders can be used to indicate the number of repetitions of the character. In the dictionary tree, this situation is manifested as the parent node of a branch having the same value as the child nodes in the following layers. Therefore, if each parent node in a branch has only one child node and the parent and child node values ​​are the same, the child nodes in each layer can be merged with the parent node layer by layer, and the number of repetitions of the parent node can be increased by 1 accordingly. This can eventually compress the branch into one node. However, the above algorithm is not applicable to the case of multiple child nodes.

[0084] By repeatedly iterating the above steps, continuously upgrading, merging and pruning until the dictionary tree structure is stable, that is, all nodes have been upgraded to the given highest level. Finally, the regular expression of the optimal solution can be output from the dictionary tree traversal result, and the regular expression is used as an abnormal expression and bound to the abnormal classification. Specifically, the nodes passed by the query path corresponding to the order abnormal information are combined into the abnormal expression corresponding to the abnormal classification to which the order abnormal information belongs.

[0085] The international logistics overseas distribution system may include: external merchants, merchant docking system, third-party service provider routing and logistics service provider system. Among them, the merchant docking system is responsible for docking with external merchant platforms, issuing and importing merchant orders, and distributing data to collection, warehousing, trunk transportation, cross-border transportation and import and export customs clearance systems according to different business scenarios, and integrating and monitoring the status of the entire order process. The third-party service provider routing is responsible for docking and aggregating the distribution capabilities of overseas logistics service providers, and at the same time undertakes the issuance of overseas waybills from upstream international merchant docking systems.

[0086] Figure 2 FIG. 1 is a flow chart of automatic classification of abnormal order information provided by an embodiment of the present invention. Figure 2 As shown, the automatic classification of order exception information is implemented by the third-party service provider routing. The process is as follows:

[0087] 1. When a customer sends an order request to a designated service provider's logistics product through the merchant docking system, third-party service provider routing, and service provider system, but the order fails, the third-party routing obtains the abnormal classification list under the logistics product. Each abnormal classification in the abnormal classification list is bound to an abnormal expression. The order abnormal information returned by the service provider interface is matched with each abnormal expression through regular calculation.

[0088] If the order exception information does not match the corresponding exception classification, the original order exception information is synchronously returned to the upstream system, and the order exception information and logistics product information are automatically associated in an asynchronous manner to generate an exception handling task. The exception handling task corresponds to the new exception classification, and the exception handling task is used to generate and bind the exception regular expression corresponding to the new exception classification.

[0089] If the order exception information matches the corresponding exception category, it is considered that the current order exception belongs to this exception category, and the number of order exception hits of this exception category is accumulated once.

[0090] 2. Exception handling tasks can be performed through asynchronous processing, scheduled tasks, and manual triggering during the order process. Exception handling tasks are used to generate new exception categories and their exception expressions.

[0091] Relevant personnel can log in to the three-party routing system regularly to view the generated exception classification list and monitor the execution of exception handling tasks in real time. The page supports manual addition or cleaning of redundant and expired exception classifications, and manual intervention and correction of exception classifications. If the exception handling task does not generate an exception expression, or the exception expression is not perfect, you can also manually trigger real-time calculation or manually enter the exception expression. When manually entering an exception expression, the page provides the corresponding syntax verification function.

[0092] When an exception occurs when sending an overseas shipping order, and the corresponding category cannot be matched in the existing exception classification, the third-party routing automatically generates an exception handling task for the logistics product, and generates an exception expression based on the order exception information and binds it to the new exception classification. When the same type of exception occurs in subsequent orders, it will be matched to the new exception classification through regular calculation, and the number of occurrences will be automatically accumulated, thereby realizing the automatic collection, classification and statistical monitoring of the service provider's order exception information.

[0093] Figure 3 FIG. 1 is a schematic diagram of a method for processing abnormal order information provided by an embodiment of the present invention. Figure 3 As shown, the method includes:

[0094] Step 301: Receive order exception information returned by the logistics service provider.

[0095] Step 302: Obtain multiple abnormal classifications corresponding to the logistics service provider.

[0096] Step 303: Determine the matching result between the order exception information and the exception expression corresponding to the exception classification.

[0097] Step 304: Determine the abnormal classification corresponding to the abnormal order information based on the matching result.

[0098] Step 305: Determine the speech packaging information of the abnormal classification corresponding to the abnormal order information.

[0099] Step 306: Perform speech packaging processing on the order exception information according to the speech packaging information; and return the order exception information after the speech packaging processing.

[0100] Talk packaging refers to a series of special processing by the merchant fulfillment platform for displaying abnormal order information for specific external merchants. Talk packaging includes: multi-language switching, sensitive field replacement or hiding, abnormal talk conversion, special character replacement, etc. Talk packaging information is related information of talk packaging, such as the language to be displayed, processing information, placeholder expressions and replacement fragments, etc. Processing information can represent replacement, splicing, hiding, desensitization, etc.

[0101] In the embodiment of the present invention, based on the exception mapping function of exception classification, the exception systems of the upstream and downstream systems are connected and integrated. When an order is abnormal, if a specific exception classification is located, the three-party routing can perform speech conversion and multi-language switching on the order exception information according to the login language, logistics product information and exception mapping rules in the speech packaging information.

[0102] In one embodiment of the present invention, speech packaging processing is performed on the abnormal order information according to the speech packaging information, including: obtaining processing information in the speech packaging information; obtaining placeholder expressions and replacement segments in the speech packaging information in response to replacement represented by the processing information; determining a target segment from the abnormal order information according to the placeholder expression; and replacing the target segment in the abnormal order information with the replacement segment.

[0103] According to the placeholder expression, the sensitive information or fragments in the original order exception information are hidden, spliced, and replaced. For example, when processing information representation replacement, the placeholder expression can be: {^[1-9]\\d{5}$"^}, and the replacement field is: post code. The order exception information is: 12345is invalid for CA United States. For the above order exception information, through the placeholder expression, "12345" is determined as the target field, and "12345" is replaced with "postcode". The order exception information after packaging is: post code is invalid for CA United States.

[0104] Through regular expression-based placeholder expressions and processing information, the ambiguous fields and sensitive fields in the order exception information are replaced, spliced ​​or hidden, and then fed back to the upstream system. The order exception information after the speech packaging is friendly and intuitive, which can improve the user experience and the efficiency of the system personnel in locating abnormal problems.

[0105] In one embodiment of the present invention, it also includes: determining the order information of the target waybill; obtaining the pre-verification script corresponding to the logistics service provider; determining whether the order information of the target waybill has passed the verification of the pre-verification script; in response to the order information of the target waybill passing the verification of the pre-verification script, sending the order information of the target waybill to the logistics service provider. The processing logic of the pre-verification script can be set as required, such as whether the number of digits in the waybill number is a preset number, whether the departure address is a valid address, whether the destination address is a valid address, etc. Using the pre-verification script, the order request that potentially causes the order failure is identified and intercepted in time before it is sent.

[0106] Pre-verification scripts can be written based on the groovy language, and can be used to implement pre-verification of orders at the logistics product level. Relying on the dynamic scripting language characteristics of groovy, R&D and operation and maintenance personnel can classify abnormalities with high hit frequencies at any time, and perform targeted, customized, and ready-to-use pre-verification script maintenance. During execution, the third-party router preheats the script at the order entry, loads the script processor from the cache, and executes it, effectively ensuring the script execution performance and avoiding interference with the normal order process.

[0107] After determining whether the order information of the target waybill has passed the verification of the pre-verification script, it also includes: in response to the order information of the target waybill failing to pass the verification of the pre-verification script, determining whether the target waybill satisfies the conditions for occasional release; in response to the target waybill satisfying the conditions for occasional release, sending the order information of the target waybill to the logistics service provider to obtain order processing information; in response to the order processing information indicating that the order is successful, disabling the pre-verification script and generating troubleshooting information for the pre-verification script.

[0108] The occasional dispatch condition corresponds to the occasional dispatch time interval. The target time point is determined according to the occasional dispatch time interval. If the order time point of the waybill matches the target time point, it is determined that the target waybill meets the occasional dispatch condition.

[0109] If the waybill fails the pre-verification script verification, but meets the conditions for occasional release, the order request is executed. If the order is successfully placed, the corresponding pre-verification script is disabled and troubleshooting information is generated. Since the processing logic of logistics service providers often changes, the occasional release mechanism is used to ensure the accuracy and real-time performance of the verification script, reduce the ratio of invalid alarms and abnormal orders, improve service stability, and save the time cost of R&D personnel in troubleshooting problems, processing abnormal data, and developing and launching.

[0110] Figure 4 FIG. 1 is a flow chart of binding an exception mapping rule, a pre-checking script and an exception packaging rule provided by an embodiment of the present invention. Figure 4 As shown, the exception mapping rules and order pre-verification script configuration are implemented by the third-party routing system, and the exception mapping rule binding is configured by the upstream merchant docking system. The process is as follows:

[0111] 1. Automatically obtain the abnormal classification list of the logistics service provider based on the third-party routing to set the abnormal mapping of the merchant docking system, and support the needs of speech packaging conversion and desensitization for specific ordering customers. When the merchant docking system signs an order channel for a certain logistics product for a customer, if the abnormal mapping and speech packaging information under the logistics product need to be configured at the same time, the abnormal classification and speech packaging information that need to be subscribed will be provided to the third-party routing. If international conversion is required, the corresponding multilingual abnormal speech terms must also be provided.

[0112] 2. In the three-party routing system, the logistics products, agreed language types, and script packaging information provided by the merchant docking system are bound to the abnormal classification under the logistics product as needed, and an abnormal mapping relationship is generated. According to the merchant docking system and logistics product dimensions, the mapping relationship pool is classified into different abnormal packaging rules, and the packaging rules are published to the corresponding merchant docking system for selection.

[0113] 3. Since order exception information may contain fields with unclear semantics, such as the order exception information: FG0000001 does not exist, but the customer cannot immediately understand what FG0000001 represents, making it difficult to identify the cause of the exception. In addition, before the third-party router returns the order exception information to the upstream system, it may need to replace or hide sensitive information or dirty data in the script, which requires matching and replacement of these target fragments.

[0114] In response to the above requirements, three-party routing supports configuring speech packaging information in exception mapping, which may include: placeholder expressions, processing information, etc. Ways to generate placeholder expressions include: generating regular expressions of exception text, replacing text fragments that need to be replaced or hidden in regular expressions with placeholders, etc. Processing information includes: replacement, hiding, or splicing, etc. Generate exception packaging rules from speech packaging information and bind them to the corresponding exception mapping.

[0115] 4. Operation and maintenance R&D personnel classify and perform statistical analysis on the order anomalies of each logistics product. For the most frequently occurring anomaly classification, a pre-verification script is dynamically configured under the logistics product. Since the order verification logic of each service provider connected to the third-party routing is different and may change frequently, relying on the dynamic nature of the groovy script, the existing order logic of the third-party routing can be left unchanged, and personalized parameter verification that takes effect immediately after configuration can be achieved, saving R&D resources and operation and maintenance time costs.

[0116] 5. On the order channel configuration page of the merchant docking system, pull and display the list of abnormal packaging rules published by the third-party routing for the system, select the abnormal packaging rules corresponding to the logistics products and bind them to the channel.

[0117] Figure 5 FIG. 1 is a flowchart of an order pre-verification and exception handling process provided by an embodiment of the present invention. Figure 5 As shown, the order pre-verification and exception handling are implemented by the third-party routing system. The process is as follows:

[0118] 1. When a customer places a shipping order with a service provider through the docking systems of the connected merchants, the docking system will also send the language environment, order logistics products and their bound speech packaging rules in the context of the current customer login account OSS (system, i.e., operation support system) to the third-party routing.

[0119] 2. At the order entry point, the third-party router obtains the pre-verification script configured on the ordered logistics product through the section. To ensure that the parsing, loading and running of the pre-verification script does not affect the overall order performance, a cache design can be used. If it is the first time to execute the pre-pre-verification script, the script is read from the database and the script processor is parsed, and then the parsing result is synchronized to the cache for data preheating. Subsequent orders for the same logistics product can directly obtain the script processor from the cache and run without the need for re-parsing.

[0120] If the logistics product is not configured with a pre-verification script or the pre-verification passes, an order request is placed to the logistics service provider. If the pre-verification fails, the order request is directly intercepted, and an abnormal order interception prompt is returned to the upstream system. An occasional release mechanism is also provided, and the time interval for occasional releases can be configured. The third-party router will occasionally release order requests that fail verification to the service provider system at the time interval for occasional releases.

[0121] If the pre-verification script determines that the verification has failed, but the order is actually placed successfully, it is determined that there may be a problem with the current verification configuration and needs to be adjusted. The third-party router will automatically disable the script and trigger an alarm to remind R&D personnel to conduct investigation and re-maintenance. By continuously revising the pre-verification script, the accuracy and timeliness of the order pre-verification are guaranteed.

[0122] 2. If an exception occurs during order placement, the exception classification is performed based on the order exception information. If the exception classification can be matched, the exception packaging rules are matched through the corresponding exception classification identifier, logistics product, exception packaging rules and language environment. If the exception packaging information is matched, the corresponding language packaging information can be obtained, including processing information and text replacement solutions.

[0123] If the abnormal packaging information is not matched, the abnormal classification will be automatically associated to generate an ineffective abnormal packaging mapping, which will be completed and enabled by the operation and maintenance personnel. R&D personnel can also dynamically modify the pre-verification script in real time to be compatible with new order anomalies.

[0124] 4. Obtain and execute the abnormal script processing scheme configured in the abnormal packaging rule. First, identify the target segment in the order abnormality information through the placeholder expression, and obtain the corresponding processing information and replacement segment. Replace, splice the preset script or hide the target segment according to the processing method.

[0125] If the processing information of the target segment is not configured, the default processing information representation is spliced. Specifically, the target segment is used to match the values ​​of each field in the order message. If a specific field is matched, the field description is spliced ​​with the target field to perform speech packaging on the order exception information. For example, the order exception information is: FG0000001 does not exist. Match the fields in the order message, and match the value of FG0000001 corresponding to the sku code. The field description is: sku code. Then splice the "sku code" with the "FG0000001" in the order exception information, and replace the original target segment with the spliced ​​field. The order exception information after speech packaging is: sku code FG0000001 does not exist.

[0126] 5. Return the order exception information after the script packaging process to the upstream system, and send the exception prompt to the operation and maintenance developers via email or SMS, so that relevant personnel can perceive and troubleshoot the problem at the first time.

[0127] In order to facilitate the implementation of the embodiment of the present invention, the embodiment of the present invention also provides a method for constructing and optimizing a dictionary tree, and a method for generating a regular expression using an optimized dictionary tree. When the information text is an abnormal order information, the regular expression can be used as an abnormal expression of the abnormal classification to which the abnormal order information belongs. The dictionary tree can be constructed using a Trie tree (prefix tree) generation algorithm.

[0128] Take the following 27 information texts as an example: National Medicine Standard Z22020031, National Medicine Standard Z44021605, National Medicine Standard H20052134, National Medicine Standard H20065128, National Medicine Standard H20063321, National Medicine Standard Z45020047, National Medicine Standard Z44023696, National Medicine Standard Z44020041, National Medicine Standard B20020729, National Medicine Standard Z37021536, National Medicine Standard Z10970003, National Medicine Standard Z20025893, National Medicine Standard Z200 25021, National Medicine Standard Z41021818, National Medicine Standard Z13021046, National Medicine Standard Z10980075, National Medicine Standard Z22020445, National Medicine Standard Z45021256, National Medicine Standard Z20027946, National Medicine Standard Z20027945, National Medicine Standard Z20054513, National Medicine Standard Z20064282, National Medicine Standard Z20064281, National Medicine Standard Z20063129, National Medicine Standard Z20053531, J20030052, National Medicine Standard. Split the above 27 pieces of information text into single words, each single word corresponds to a node and is input in order. The final dictionary tree is as follows: Figure 6 shown.

[0129] After inserting the new information text and generating the trie, traverse each node of the trie again, form all branches into separate strings, and then concatenate the strings in the form of logical OR to generate an unoptimized regular expression.

[0130] As Figure 6 The trie shown, the output regular expression is as follows: (?:J20030052|Guo Yao Zhun Zi B20020729|Guo Yao Zhun Zi H20052134|...). The unoptimized regular expression has a lot of repeated text, overfitting, and insufficient expressive power. Upgrade the nodes as needed and merge the nodes with the same value to improve the generalization ability of the regular expression.

[0131] Initial merging: During the process of traversing the trie to generate the regular expression, if the number of sub-branches of a node exceeds a given threshold (such as 3), it means that the subsequent data of this single character is more complex, and the expressive power of the child nodes needs to be improved. Upgrade all child nodes by one level. After upgrading, the values of multiple child nodes of a node may still be the same. For example, the 3 child nodes "BHZ" of the "character" node are all upgraded to "[A-Z]". At this time, the nodes with the same value and all subordinate child nodes (i.e., the entire sub-branch) can be merged again.

[0132] When calculating the number of sub-branches, in addition to calculating the number of child nodes, the situation where the string terminates at this node also needs to be considered. For example, for the "character" node in "Guo Yao Zhun Zi", in addition to the 3 child nodes "BHZ", there is also a piece of data that terminates at "character", which also counts as a branch. Therefore, the number of branches of the "character" node is 4. During the implementation process, determine the branch tree by recording the number of data entries and termination entries of each node.

[0133] Assume that the threshold for upgrading the number of node branches is 3. For the Figure 6 shown trie, perform initial merging. The structure of the trie after initial merging is as Figure 7 shown.

[0134] Dirty data pruning: For all branches of a node, if the ratio of the data volume of a certain branch to the average data volume of the branches is less than a certain threshold (such as 0.3), it means that the frequency of this branch is relatively small and can be regarded as dirty data and pruned from the tree. For the Figure 7 shown trie, the root node has 2 branches, and the average data volume of the branches is 27 / 2 = 13.5. The ratio of the data volume of the left branch to the average is 1 / 13.5 = 0.074, which is less than the threshold, so it is pruned from the tree. The "character" node in Figure 7 also has 2 branches, with an average number of 26 / 2 = 13. Among them, the proportion of the data volume of the termination branch is 1 / 13 = 0.077, which is also less than the threshold, so it is pruned from the tree (set the termination number to 0). For the Figure 7The dictionary tree shown in the figure is pruned, and the structure of the dictionary tree after pruning is as follows Figure 8 shown. Figure 8 The regular expression corresponding to the dictionary tree shown is: "National Medicine Standard [AZ]\d\d\d\d\d\d\d\d\d".

[0135] Deep merging: If a character appears multiple times in a regular expression, this is reflected in the dictionary tree as the parent node and the child node have the same value. Figure 8 In the dictionary tree shown, the "\d" node is repeated 8 times. If a node has only one child node and its value is the same as the parent node, the child node can be merged upward with the parent node and the number of repetitions of the parent node is increased by 1. Figure 8 In the dictionary tree shown in the figure, the 7 "\d" nodes at the bottom can be merged into the parent node and compressed into one node. The structure of the dictionary tree after deep merging is as follows Fig. 9 shown. Fig. 9 The regular expression corresponding to the dictionary tree shown is: "National Medicine Standard [AZ]\d{8}".

[0136] Fig.10 FIG. 1 is a schematic diagram of another dictionary tree structure provided by an embodiment of the present invention. Fig.10 As shown, if we only consider the case of single branch merging, we can get Fig.11 The dictionary tree shown. Fig.11 The regular expression corresponding to the dictionary tree shown is: "National Medicine Standard [AZ]\d{3}(?:\d{5}|[az]{2})".

[0137] At this time, if the terminal "\d" node is merged into the parent node, we get Fig.12 The dictionary tree shown. Fig.12 The regular expression corresponding to the dictionary tree is: "National Medicine Standard [AZ]\d{3,8}(?:[az]{2})?". Fig.12 The data range expressed by the rule can cover Fig.11 The result is that it greatly expands the range of expression, which will produce a certain deviation from the actual data and cause the problem of over-optimization. Fig.11 The resulting regular expression is more reasonable.

[0138] The overall process of optimizing the dictionary tree is to repeat the operations of upgrading, merging, pruning, etc. according to the above process until the dictionary tree no longer changes or the node level has been upgraded to the given highest level, so as to avoid the problem of over-optimization. Then output the final regular expression according to the optimized dictionary tree.

[0139] Fig.13 FIG. 1 is a schematic diagram of a structure of a device for processing abnormal order information provided by an embodiment of the present invention. Fig.13 As shown, the device comprises:

[0140] The information receiving module 1301 is used to receive the order abnormality information returned by the logistics service provider;

[0141] The classification acquisition module 1302 is used to obtain multiple abnormal classifications corresponding to the logistics service provider;

[0142] Result determination module 1303, used to determine the matching result of the abnormal expression corresponding to the abnormal order information and the abnormal classification;

[0143] The information processing module 1304 is used to determine the abnormal classification corresponding to the abnormal order information according to the matching result, and perform information processing on the abnormal order information according to the abnormal classification corresponding to the abnormal order information.

[0144] Optionally, the information processing module 1304 is specifically used for:

[0145] In response to the matching result indicating that there is a target expression matching the order abnormality information, determining a target category corresponding to the target expression, and determining the target category as the abnormal category corresponding to the order abnormality information;

[0146] In response to the matching result indicating that there is no abnormal expression matching the order abnormality information, it is determined that the order abnormality information corresponds to a new abnormal classification, and an abnormal expression corresponding to the new abnormal classification is generated.

[0147] Optionally, the information processing module 1304 is further configured to:

[0148] Obtain the order exception information set corresponding to the logistics service provider, which includes the order exception information;

[0149] Construct the dictionary tree corresponding to the order exception information set and optimize the dictionary tree;

[0150] According to the query path of the order exception information in the optimized dictionary tree, the exception expression corresponding to the new exception classification is generated.

[0151] Optionally, the information processing module 1304 is specifically used for:

[0152] Determine the packaging information of the abnormal classification corresponding to the abnormal order information;

[0153] According to the speech packaging information, the abnormal order information is packaged with speech;

[0154] Returns order exception information after script packaging processing.

[0155] Optionally, the information processing module 1304 is specifically used for:

[0156] Get the processing information in the speech packaging information;

[0157] In response to the processing information representation replacement, obtaining the placeholder expression and the replacement fragment in the speech packaging information;

[0158] According to the placeholder expression, the target segment is determined from the order exception information;

[0159] Replace the target segment in the order exception information with the replacement segment.

[0160] Optionally, it also includes:

[0161] Verification module, used to determine the order information of the target waybill;

[0162] Get the pre-verification script corresponding to the logistics service provider;

[0163] Determine whether the order information of the target waybill has passed the verification of the pre-verification script;

[0164] In response to the order information of the target waybill being verified by the pre-verification script, the order information of the target waybill is sent to the logistics service provider.

[0165] Optionally, the verification module is further used to:

[0166] In response to the order information of the target waybill not passing the verification of the pre-verification script, determining whether the target waybill satisfies the occasional release condition;

[0167] In response to the target waybill satisfying the occasional release condition, the order information of the target waybill is sent to the logistics service provider to obtain order processing information;

[0168] In response to the order processing information indicating that the order is successfully placed, the pre-verification script is disabled, and troubleshooting information for the pre-verification script is generated.

[0169] An embodiment of the present invention provides an electronic device, including:

[0170] one or more processors;

[0171] a storage device for storing one or more programs,

[0172] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.

[0173] Reference below Fig.14 , which shows a schematic diagram of the structure of a computer system 1400 of a terminal device suitable for implementing an embodiment of the present invention. Fig.14 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0174] like Fig.14 As shown, the computer system 1400 includes a central processing unit (CPU) 1401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage part 1408 into a random access memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation of the system 1400 are also stored. The CPU 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.

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

[0176] 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 includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1409, and / or installed from the removable medium 1411. When the computer program is executed by the central processing unit (CPU) 1401, the above-mentioned functions defined in the system of the present invention are executed.

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

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

[0179] 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, they may be described as: an information receiving module, a classification acquisition module, a result determination module, and an information processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the information receiving module may also be described as a "module for receiving order exception information returned by a logistics service provider."

[0180] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or 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:

[0181] Receive order exception information returned by the logistics service provider;

[0182] Obtain multiple exception categories corresponding to the logistics service provider;

[0183] Determine a matching result between the order exception information and an exception expression corresponding to the exception classification;

[0184] According to the matching result, the abnormal classification corresponding to the abnormal order information is determined, and according to the abnormal classification corresponding to the abnormal order information, information processing is performed on the abnormal order information.

[0185] According to the technical solution of the embodiment of the present invention, multiple exception categories corresponding to the logistics service provider and exception expressions corresponding to each exception category are set in the system. Each exception expression is matched with the order exception information. If there is a target expression that matches the order exception information, the target category corresponding to the target expression is determined as the exception category corresponding to the order exception information. If there is no exception expression that matches the order exception information, it is determined that the order exception information corresponds to a new exception category, and an exception expression corresponding to the new exception category is generated. Therefore, the various exception information returned by the logistics service provider can be divided into different exception categories, which is convenient for statistical analysis of the exception information and troubleshooting of the causes of the exceptions.

[0186] 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. A method for processing abnormal order information, characterized in that: include: Receive order exception information returned by the logistics service provider; Obtain multiple exception categories corresponding to the logistics service provider; Determine a matching result between the order exception information and an exception expression corresponding to the exception classification; According to the matching result, the abnormal classification corresponding to the abnormal order information is determined, and according to the abnormal classification corresponding to the abnormal order information, information processing is performed on the abnormal order information.

2. The method according to claim 1, characterized in that Determining the abnormal classification corresponding to the abnormal order information according to the matching result includes: In response to the matching result indicating that there is a target expression matching the order abnormality information, determining a target category corresponding to the target expression, and determining the target category as the abnormal category corresponding to the order abnormality information; In response to the matching result indicating that there is no abnormal expression matching the abnormal order information, it is determined that the abnormal order information corresponds to a new abnormal classification, and an abnormal expression corresponding to the new abnormal classification is generated.

3. The method according to claim 2, characterized in that The generating an abnormal expression corresponding to the new abnormal classification includes: Acquire an order exception information set corresponding to the logistics service provider, wherein the order exception information set includes the order exception information; Constructing a dictionary tree corresponding to the order exception information set, and optimizing the dictionary tree; According to the query path of the order exception information in the optimized dictionary tree, an exception expression corresponding to the new exception classification is generated.

4. The method according to claim 1, characterized in that: The performing information processing on the order abnormality information according to the abnormality classification corresponding to the order abnormality information includes: Determine the speech packaging information of the abnormal classification corresponding to the abnormal order information; According to the speech packaging information, the abnormal order information is packaged in a speech packaging manner; Returns order exception information after script packaging processing.

5. The method according to claim 4, characterized in that The step of performing speech packaging processing on the order abnormality information according to the speech packaging information includes: Obtaining processing information in the speech packaging information; In response to the processing information representing the replacement, obtaining the placeholder expression and the replacement fragment in the speech packaging information; According to the placeholder expression, a target segment is determined from the order exception information; The target segment in the order exception information is replaced by the replacement segment.

6. The method according to claim 1, characterized in that Also includes: Determine the order information of the target waybill; Obtain the pre-verification script corresponding to the logistics service provider; Determine whether the order information passes the verification of the pre-verification script; In response to the order information passing the verification of the pre-verification script, the order information is sent to the logistics service provider.

7. The method according to claim 6, characterized in that After determining whether the order information passes the verification of the pre-verification script, the method further includes: In response to the order information failing to pass the verification of the pre-verification script, determining whether the target waybill satisfies an occasional release condition; In response to the target waybill satisfying the occasional release condition, sending the order information to the logistics service provider to obtain order processing information; In response to the order processing information indicating that the order is successfully placed, the pre-verification script is disabled, and troubleshooting information for the pre-verification script is generated.

8. A device for processing abnormal order information, characterized in that: include: The information receiving module is used to receive the order abnormality information returned by the logistics service provider; A classification acquisition module, used to acquire multiple abnormal classifications corresponding to the logistics service provider; A result determination module, used to determine the matching result of the abnormal order information and the abnormal expression corresponding to the abnormal classification; An information processing module is used to determine the abnormal classification corresponding to the abnormal order information according to the matching result, and to perform information processing on the abnormal order information according to the abnormal classification corresponding to the abnormal order information.

9. 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 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.