Method and device for processing express waybill

By receiving and processing couriers' misoperation authentication requests, using the rule engine to execute the authentication rule chain and rolling back the business data, the waybill card control problem caused by couriers' misoperation is solved, and the normal circulation and efficient logistics operations of the waybill are realized.

CN119106993APending Publication Date: 2024-12-10BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310671429.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The courier may have misoperation during the operation, resulting in errors in the tracking node of the waybill, causing the waybill to be blocked and unable to flow normally, affecting the courier's efficiency and customer experience.

Method used

Provide a method and device for processing express orders. By receiving the deliveryman's misoperation authentication request, obtaining the pre-configured authentication rule chain and the status information of the express order, calling the rule engine to execute the authentication rule chain, and rolling back to Misoperate previous business data, monitor the flow state and record it to adjust the accuracy of the rules.

Benefits of technology

Online misoperation certification is implemented to eliminate the impact of misoperation on the circulation of waybills, enable couriers to carry out logistics operations normally, and improve efficiency and customer experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119106993A_ABST
    Figure CN119106993A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and device for processing an express waybill. The specific implementation mode of the method comprises the following steps: receiving an authentication request of maloperation of an express bill triggered by a deliveryman; obtaining a pre-configured authentication rule chain corresponding to the type of the misoperation and the state information of the express bill; calling a rule engine to execute each rule in the authentication rule chain in sequence, and authenticating the misoperation according to the state information of the express bill; and if the authentication is passed, calling a rollback callback interface, and rolling back to the business data before the misoperation. According to the implementation mode, misoperation authentication of the dynamic configuration rule is realized, a courier is supported to apply for misoperation authentication online, the misoperation can be rolled back when the authentication is passed, and the clamping control influence of the misoperation on normal circulation of the waybill is eliminated, so that the courier can normally perform logistics operation on the waybill.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of logistics technology, and in particular to a method and device for processing express delivery orders. Background Art

[0002] During the operation, couriers may make some mistakes, some of which will be recorded in the full tracking node of the waybill. The full tracking information written due to the mistakes will block the normal operation in the operation process, causing the waybill to be stuck and unable to operate normally. For example, a waybill in the collection stage is mistakenly operated by the courier [deliveryman receives goods]. At this time, the system detects the full tracking node [deliveryman receives goods] and determines that the order is in the delivery stage. The collection stage operation is not allowed. The courier is blocked to complete the collection operation, causing the waybill to be stuck. The only way is to contact the customer to cancel the waybill and place a new order, which not only affects the courier's operating efficiency, but also affects the customer experience. Summary of the invention

[0003] The embodiments of the present disclosure provide a method and device for processing a courier order.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for processing an express delivery order, comprising: receiving an authentication request for an erroneous operation of an express delivery order triggered by a deliveryman; obtaining a pre-configured authentication rule chain corresponding to the type of the erroneous operation and status information of the express delivery order; calling a rule engine to execute each rule in the authentication rule chain in sequence, and authenticating the erroneous operation according to the status information of the express delivery order; if the authentication passes, calling a rollback callback interface to roll back to the business data before the erroneous operation.

[0005] In some embodiments, the rules include assertion rules; and the authenticating the erroneous operation according to the status information of the express delivery order includes: if the status information of the express delivery order matches any assertion rule, the authentication is passed.

[0006] In some embodiments, the rules include weighted rules; and the authentication of the erroneous operation based on the status information of the express delivery order includes: accumulating the sum of the weights of at least one weighted rule that matches the status information of the express delivery order; if the sum of the weights is greater than a preset threshold, the authentication is passed.

[0007] In some embodiments, the method further includes: monitoring the circulation status of the authenticated express delivery orders; judging the accuracy of the authentication results according to the circulation status and recording them in a database.

[0008] In some embodiments, the method further includes: marking the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history; and adjusting the weight of the weighted rule based on the accuracy of the weighted rule.

[0009] In some embodiments, the method further includes: marking the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history; and deleting the assertion rule whose accuracy is lower than a predetermined accuracy threshold.

[0010] In some embodiments, the rule engine includes a rule dialect set and a rule parser, wherein the rule dialect set defines a series of natural language phrases used in editing rules, wherein the natural language phrases include associative logic phrases and data status phrases; the rule parser includes a dialect parser and an underlying data interface, wherein the dialect parser is used to parse the authentication rules, and convert the natural language into a high-level language recognized by the computer after lexical and grammatical analysis; the underlying data interface is used to obtain the data status involved in the rules to support the final judgment of the rules.

[0011] In a second aspect, an embodiment of the present disclosure provides a device for processing express delivery orders, comprising: a receiving unit, configured to receive an authentication request for an erroneous operation of an express delivery order triggered by a deliveryman; an acquisition unit, configured to acquire a pre-configured authentication rule chain corresponding to the type of the erroneous operation and status information of the express delivery order; a judgment unit, configured to call a rule engine to execute each rule in the authentication rule chain in sequence, and authenticate the erroneous operation according to the status information of the express delivery order; and a rollback unit, configured to call a rollback callback interface if the authentication is passed, and roll back to the business data before the erroneous operation.

[0012] In some embodiments, the rule includes an assertion rule; and the judgment unit is further configured to: if the status information of the express delivery order matches any assertion rule, the authentication is passed.

[0013] In some embodiments, the rules include weighted rules; and the judgment unit is further configured to: accumulate the sum of the weights of at least one weighted rule that matches the status information of the express delivery order; if the sum of the weights is greater than a preset threshold, the authentication is passed.

[0014] In some embodiments, the device further includes a recording unit configured to: monitor the circulation status of the authenticated express delivery orders; determine the accuracy of the authentication results based on the circulation status and record them in a database.

[0015] In some embodiments, the recording unit is further configured to: mark the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history; and adjust the weight of the weighted rule based on the accuracy of the weighted rule.

[0016] In some embodiments, the recording unit is further configured to: mark the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history; and delete the assertion rules whose accuracy is lower than a predetermined accuracy threshold.

[0017] In some embodiments, the rule engine includes a rule dialect set and a rule parser, wherein the rule dialect set defines a series of natural language phrases used in editing rules, wherein the natural language phrases include associative logic phrases and data status phrases; the rule parser includes a dialect parser and an underlying data interface, wherein the dialect parser is used to parse the authentication rules, and convert the natural language into a high-level language recognized by the computer after lexical and grammatical analysis; the underlying data interface is used to obtain the data status involved in the rules to support the final judgment of the rules.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device for processing express delivery orders, comprising: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement a method as described in any one of the first aspects.

[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any one of the first aspects.

[0020] The method and device for processing express delivery orders provided by the embodiments of the present disclosure provide an error operation authentication system based on dynamically configurable rules, which supports couriers to apply for [error operation authentication] online. Once the authentication is passed, the error operation can be rolled back, and the impact of the error operation on the normal circulation of the waybill can be eliminated, so that the courier can perform logistics operations on the waybill normally.

[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0023] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0024] Figure 2 is a flowchart of an embodiment of a method for processing a courier order according to the present disclosure;

[0025] Figure 3 is a schematic diagram of an application scenario of the method for processing express delivery orders according to the present disclosure;

[0026] Figure 4 is a flowchart of another embodiment of a method for processing a courier order according to the present disclosure;

[0027] Figure 5 is a structural schematic diagram of an embodiment of a device for processing express delivery orders according to the present disclosure;

[0028] Figure 6 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a method for processing a courier order or an apparatus for processing a courier order of the present disclosure can be applied.

[0032] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0033] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as logistics management applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0034] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0035] The server 105 may be a server that provides various services, such as a background logistics server that provides support for the logistics information displayed on the terminal devices 101, 102, and 103. The background logistics server may analyze and process the received data such as the collected and delivered data, and feed back the processing results (such as the whole tracking status, the terminal collection status, and the terminal delivery status) to the terminal device.

[0036] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0037] It should be noted that the method for processing express delivery orders provided in the embodiments of the present disclosure is generally executed by the server 105 , and accordingly, the device for processing express delivery orders is generally set in the server 105 .

[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0039] Continue to refer Figure 2, shows a process 200 of an embodiment of a method for processing a courier order according to the present disclosure. The method for processing a courier order comprises the following steps:

[0040] Step 201, receiving an authentication request for an erroneous operation of a courier order triggered by a delivery person.

[0041] In this embodiment, the execution subject of the method for processing the express delivery order (for example Figure 1 The server shown) can receive an authentication request for an erroneous operation from a terminal used by a user to submit delivery data through a wired connection or a wireless connection. The deliveryman accidentally used the receiving device to scan the waybill's delivery note and performed the receiving operation before collecting the document. When he collected the document again, he was reminded of the exception "The waybill is in the delivery stage and collection is not allowed", and he could not complete the collection operation. The deliveryman can use the erroneous operation authentication function on the all-in-one machine to apply for erroneous operation authentication for this express delivery order. The purpose is to cancel the previous collection operation, roll back to the state before the collection operation, and restart the collection. The server needs to authenticate that the erroneous operation is true before allowing the cancellation.

[0042] Step 202: Obtain the pre-configured authentication rule chain and express delivery order status information corresponding to the type of erroneous operation.

[0043] In this embodiment, the method of the present application uses an error operation authentication system, through which the operator pre-configures some authentication rules, and multiple authentication rules are executed in chronological order to form an authentication rule chain. The server records the status information of the express order, and the courier reports to the server for recording each time the status of the express order is changed.

[0044] The core modules of the misoperation authentication system are as follows:

[0045] 1. Error operation type set module: This module supports operators to add / delete error operation types online, maintain authentication rules corresponding to error operations, and configure rollback callback functions corresponding to error operations.

[0046] Authentication rules are divided into assertion rules and weighted rules.

[0047] Assertion rules refer to rules that can be used to make positive or negative judgments, for example: {If the full tracking status does not include the site delivery node, then the deliveryman's delivery is an error}. Because the waybill does not have a site delivery status, it means that it has not yet arrived at the delivery site, so it is determined that the deliveryman's delivery operation is an error. Assertion rules are blocking rules. As long as any assertion rule is matched, the execution of the rule chain can be terminated to obtain the final judgment.

[0048] Weighted rules are the opposite of assertive rules. They cannot get a positive or negative judgment, but can only provide a judgment weight. For example, {if the whole tracking status includes the sorting and weighing node, then the deliveryman receives the goods 30% of the time without error}, and the 30% in the rule is the weight of the rule's impact on the final judgment. The weights of multiple weighted rules will be accumulated and compared with the final threshold configured by the operator to get the final judgment.

[0049] A unified rollback interface standard is defined in the rollback processor, which is implemented by each business system to facilitate each business system to perform its own personalized business data rollback processing. When the rule authentication passes, the authentication system calls back the rollback interface of the business system to implement data rollback.

[0050] 2. Rule engine module: The rule engine module consists of a rule dialect set and a rule parser. The rule dialect set defines a series of natural language phrases used in editing rules, which makes it easier for operators who do not understand programming languages ​​to edit authentication rules smoothly. The rule parser is the core of the rule engine. The dialect parser is used to parse authentication rules. After lexical and grammatical analysis of natural language, it is converted into a high-level language recognized by computers. The underlying data interface is used to obtain the data status involved in the rules and support the final judgment of the rules.

[0051] The regular dialect set defines the following natural language phrases:

[0052] Associative logical phrases: if, and, or, not, contains, does not contain, equals, does not equal, then, is, is not.

[0053] Data status phrases: full tracking status, terminal collection status, terminal delivery status.

[0054] The working logic of the dialect parser:

[0055] The rule definition mode agreed upon by this system is: if XX status is equal to | not equal to | contains | does not contain YYY and | or XX status is equal to | not equal to | contains | does not contain ZZZ then it is | is not an incorrect operation.

[0056] The dialect parser will first use regular expressions to check the matching of rules and analyze whether the rule syntax conforms to the agreed rule definition mode.

[0057] Mapping natural language to computer language, the pseudo code is as follows:

[0058]

[0059] According to the data status phrase, call the corresponding underlying interface to obtain the target data (YYY and ZZZ) compared in the rule conditions, and set the data to the target rule object

[0060] Bring the target rule object into the rule and run it to get the rule assertion

[0061] 3. Authentication result analysis module: This module monitors the status of the waybill circulation that has passed the authentication, determines the accuracy of the authentication result based on the status of the waybill circulation, and records it in the database. Then, based on the authentication record and correctness, the accuracy of the corresponding rule is marked. As the authentication data becomes larger and larger, the accuracy of the rule will gradually stabilize, and the rules with low accuracy will be automatically eliminated. In this way, through a certain period of analysis and elimination, high-precision authentication rules can be obtained, which can improve the authentication accuracy of subsequent systems.

[0062] Step 203, calling the rule engine to execute each rule in the authentication rule chain in sequence, and authenticating the erroneous operation according to the status information of the express delivery order.

[0063] In this embodiment, the erroneous operation may be authenticated according to the assertion rule or the weighted rule.

[0064] If the status information of the express delivery order matches any of the assertion rules, the authentication is passed. For example: {If the full tracking status does not include the site receiving node, then the deliveryman’s receiving operation is an error}. Because the waybill does not have a site receiving status, it means that it has not yet arrived at the delivery site, so it is determined that the deliveryman’s receiving operation is an error. Assertion rules are blocking rules. As long as any assertion rule is matched, the execution of the rule chain can be terminated to obtain the final judgment.

[0065] The sum of the weights of at least one weighted rule that matches the status information of the express order is accumulated; if the sum of the weights is greater than the preset threshold, the authentication is passed. Weighted rules are the opposite of assertion rules. They cannot get a positive or negative judgment, but can only provide a judgment weight. For example: {If the full tracking status includes the sorting and weighing node, then the deliveryman’s 30% non-error operation when receiving the goods}, the 30% in the rule is the weight of the rule’s impact on the final judgment. The weights of multiple weighted rules will be accumulated and compared with the final threshold configured by the operator to get the final judgment.

[0066] Step 204: If the authentication is successful, the rollback callback interface is called to roll back to the business data before the erroneous operation.

[0067] In this embodiment, the data is rolled back only after the authentication is passed, and the business data before the erroneous operation is rolled back. In this way, there is no need to contact the customer to place a new order.

[0068] The method provided by the above embodiment of the present disclosure supports couriers to apply for [misoperation certification] online. If the certification is passed, the misoperation can be rolled back and the impact of the misoperation on the normal flow of the waybill can be eliminated, so that the courier can perform logistics operations on the waybill normally. There is no need to notify the customer to cancel the waybill that has been blocked and place a new order, thereby improving efficiency and enhancing customer experience.

[0069] In some optional implementations of this embodiment, the rule includes an assertion rule; and the authenticating the erroneous operation according to the status information of the express order includes: if the status information of the express order matches any assertion rule, the authentication is passed. The assertion rule can quickly and accurately authenticate the erroneous operation, improve the authentication efficiency, and reduce the logistics time.

[0070] In some optional implementations of this embodiment, the rule includes a weighted rule; and the authenticating the misoperation according to the status information of the express order includes: accumulating the sum of the weights of at least one weighted rule that matches the status information of the express order; if the sum of the weights is greater than a preset threshold, the authentication is passed. For situations where it is impossible to directly determine the misoperation, the accuracy of the judgment can be increased by accumulating the weights of multiple rules to avoid misjudgment.

[0071] In some optional implementations of this embodiment, the rule engine includes a rule dialect set and a rule parser, wherein the rule dialect set defines a series of natural language phrases used in editing rules, wherein the natural language phrases include associative logic phrases and data status phrases; the rule parser includes a dialect parser and an underlying data interface, wherein the dialect parser is used to parse the authentication rules, convert the natural language into a high-level language recognized by the computer after lexical and grammatical analysis; the underlying data interface is used to obtain the data status involved in the rules and support the final judgment of the rules. It is convenient for managers to dynamically configure rules, with a low operating threshold and no training required. The rules are easy to maintain and manage, which is conducive to improving work efficiency.

[0072] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the method for processing a courier order according to this embodiment. Figure 3 The application scenario shows the operation process of the entire system:

[0073] 1. The operator adds a new error operation type [Deliveryman Receiving Goods], adds an assertion rule {If the full tracking status does not include sorting and delivery, then it is an error operation}, and configures the corresponding rollback callback interface. The implementation logic of the callback interface is: delete the full tracking of the deliveryman receiving the waybill, and clean up the delivery task data corresponding to the delivery table.

[0074] 2. The front-line courier accidentally used the deliveryman to scan the waybill before collecting the document. When he collected the document, he was reminded that "the waybill is in the delivery stage and collection is not allowed", and he could not complete the collection operation. The courier used the error operation certification function on the all-in-one machine to apply for error operation certification for this order.

[0075] 3. The error operation authentication system receives the request and obtains the configured authentication rule chain according to the error operation authentication type (in this case, there is only one rule in the rule chain).

[0076] 4. Call the rule engine to execute each rule in the rule chain in order. If an assertion is obtained during the execution, the execution can be terminated and the assertion returned. Because this order is not tracked throughout the sorting and delivery process, the assertion result is "yes" for an incorrect operation.

[0077] 5. Call the rollback callback interface to delete the entire tracking process of the delivery person receiving the freight order and clean up the delivery task data.

[0078] 6. The authentication records are stored in the database for subsequent data statistics and analysis, and the authentication results are synchronized to the caller.

[0079] 7. The courier receives the authentication and continues to pick up the goods. The waybill will not be blocked.

[0080] Collection completed.

[0081] Further references Figure 4 , which shows a process 400 of another embodiment of a method for processing a courier order. The process 400 of the method for processing a courier order includes the following steps:

[0082] Step 401, receiving a certification request for an erroneous operation of a courier order triggered by a delivery person.

[0083] Step 402, obtaining the pre-configured authentication rule chain and the status information of the express delivery order corresponding to the type of the erroneous operation.

[0084] Step 403, calling the rule engine to execute each rule in the authentication rule chain in sequence, and authenticating the erroneous operation according to the status information of the express delivery order.

[0085] Step 404: If the authentication is successful, the rollback callback interface is called to roll back to the business data before the erroneous operation.

[0086] Steps 401-404 are substantially the same as steps 201-204, and thus are not described in detail herein.

[0087] Step 405, monitoring the circulation status of the authenticated express delivery orders.

[0088] In this embodiment, the circulation status includes successful circulation and failed circulation. If the express order is finally circulated successfully after the authentication is passed, it means that the authentication is correct. If the express order is finally circulated failed after the authentication is passed, it means that the authentication is wrong.

[0089] Step 406, determine the accuracy of the authentication result based on the flow status and record it in the database.

[0090] In this embodiment, if the circulation is successful, it is counted as positive feedback, and if the circulation fails, it is counted as negative feedback. The accuracy can be calculated by dividing the number of positive feedbacks by the total number of certification applications.

[0091] Step 407, marking the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history.

[0092] In this embodiment, the rules used in each authentication are associated with the final flow state. The rules corresponding to the correct authentication and the rules corresponding to the authentication error are counted. The accuracy of the authentication result corresponding to each used rule is calculated.

[0093] Step 408: Adjust the rules based on the accuracy of the rules.

[0094] In this embodiment, as the authentication data becomes larger and larger, the accuracy of the rules will gradually stabilize, and the rules with low accuracy will be automatically eliminated. In this way, high-precision authentication rules can be obtained through a certain period of analysis and elimination, thereby improving the authentication accuracy of subsequent systems.

[0095] Optionally, the weight of the weighted rule is adjusted based on the accuracy of the weighted rule. For a weighted rule with a high accuracy, its weight can be increased, and for a weighted rule with a low accuracy, its weight can be reduced. When the weight is lower than a predetermined threshold, the weighted rule can be eliminated.

[0096] Optionally, delete the assertion rules whose accuracy is lower than the predetermined accuracy threshold. If the accuracy is too low, directly making an assertion will lead to misjudgment, so it is necessary to delete the assertion rules with low accuracy. Optionally, the assertion rules with low accuracy can be converted into weighted rules, which occupy a certain weight but cannot directly judge the result.

[0097] from Figure 4 It can be seen that Figure 2 Compared with the corresponding embodiment, the process 400 of the method for processing the express delivery order in this embodiment embodies the step of adjusting the rules. Therefore, the solution described in this embodiment can automatically identify and eliminate inferior rules based on big data analysis, thereby automatically improving the recognition accuracy.

[0098] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for processing a courier order. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0099] like Figure 5As shown, the device 500 for processing a courier order in this embodiment includes: a receiving unit 501, an acquisition unit 502, a judgment unit 503 and a rollback unit 504. The receiving unit 501 is configured to receive an authentication request for an erroneous operation of the courier order triggered by a delivery person; the acquisition unit 502 is configured to obtain a pre-configured authentication rule chain corresponding to the type of the erroneous operation and the status information of the courier order; the judgment unit 503 is configured to call a rule engine to execute each rule in the authentication rule chain in sequence, and authenticate the erroneous operation according to the status information of the courier order; the rollback unit 504 is configured to call a rollback callback interface if the authentication is passed, and roll back to the business data before the erroneous operation.

[0100] In this embodiment, the specific processing of the receiving unit 501, the obtaining unit 502, the judging unit 503 and the rolling back unit 504 of the device 500 for processing the express delivery order can be referred to Figure 2 Corresponding to step 201, step 202, step 203, and step 204 in the embodiment.

[0101] In some optional implementations of this embodiment, the rule includes an assertion rule; and the judgment unit 503 is further configured to: if the status information of the express delivery order matches any assertion rule, the authentication is passed.

[0102] In some optional implementations of this embodiment, the rules include weighted rules; and the judgment unit 503 is further configured to: accumulate the sum of the weights of at least one weighted rule that matches the status information of the express delivery order; if the sum of the weights is greater than a preset threshold, the authentication is passed.

[0103] In some optional implementations of this embodiment, the device 500 also includes a recording unit (not shown in the drawings), which is configured to: monitor the circulation status of the express delivery orders that have passed the authentication; judge the accuracy of the authentication results based on the circulation status and record them in the database.

[0104] In some optional implementations of this embodiment, the recording unit is further configured to: mark the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history; and adjust the weight of the weighted rule based on the accuracy of the weighted rule.

[0105] In some optional implementations of this embodiment, the recording unit is further configured to: mark the accuracy of the corresponding rule based on the accuracy of the authentication results of multiple express delivery orders in history; and delete the assertion rules whose accuracy is lower than a predetermined accuracy threshold.

[0106] In some optional implementations of this embodiment, the rule engine includes a rule dialect set and a rule parser, wherein the rule dialect set defines a series of natural language phrases used in editing rules, and the natural language phrases include associative logic phrases and data status phrases; the rule parser includes a dialect parser and an underlying data interface, wherein the dialect parser is used to parse the authentication rules and convert the natural language into a high-level language recognizable by a computer after lexical and grammatical analysis; the underlying data interface is used to obtain the data status involved in the rules to support the final judgment of the rules.

[0107] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0108] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0109] An electronic device comprises: one or more processors; a storage device on which one or more computer programs are stored, and when the one or more computer programs are executed by the one or more processors, the one or more processors implement the method described in process 200 or 400.

[0110] A computer-readable medium stores a computer program, wherein the computer program implements the method described in process 200 or 400 when executed by a processor.

[0111] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0112] like Figure 6As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0113] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0114] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as a method for processing a courier order. For example, in some embodiments, the method for processing a courier order may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method for processing a courier order described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute a method for processing a courier order by any other appropriate means (e.g., by means of firmware).

[0115] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0116] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0117] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0118] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0119] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0120] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

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

Claims

1. A method for processing express delivery orders, include: Receive the authentication request for the courier order's misoperation triggered by the delivery person; Obtaining a pre-configured authentication rule chain corresponding to the type of the erroneous operation and status information of the express delivery order; Calling a rule engine to execute each rule in the authentication rule chain in sequence, and authenticating the erroneous operation according to the status information of the express delivery order; If the authentication is successful, the rollback callback interface is called to roll back the business data before the erroneous operation.

2. The method according to claim 1, in, The rules include assertion rules; and The authenticating the erroneous operation according to the status information of the express delivery order includes: If the status information of the express delivery order matches any assertion rule, the authentication is successful.

3. The method according to claim 1, in, The rules include weighting rules; and The authenticating the erroneous operation according to the status information of the express delivery order includes: Accumulating the sum of the weights of at least one weighted rule that matches the status information of the express delivery order; If the sum of the weights is greater than a preset threshold, the authentication is successful.

4. The method according to claim 1, in, The method further comprises: Monitor the circulation status of certified express orders; The accuracy of the authentication result is determined based on the flow status and recorded in the database.

5. The method according to claim 4, in, The method further comprises: The accuracy of the corresponding rules is marked based on the accuracy of the authentication results of multiple express orders in history; The weights of the weighted rules are adjusted based on the accuracy of the weighted rules.

6. The method according to claim 4, in, The method further comprises: The accuracy of the corresponding rules is marked based on the accuracy of the authentication results of multiple express orders in history; Delete the assertion rules whose accuracy is lower than the predetermined accuracy threshold.

7. The method according to claim 1, in, The rule engine includes a rule dialect set and a rule parser. The rule dialect set defines a series of natural language phrases used in editing rules, and the natural language phrases include associative logic phrases and data status phrases; the rule parser includes a dialect parser and an underlying data interface, wherein the dialect parser is used to parse the authentication rules, and convert the natural language into a high-level language recognized by the computer after lexical and grammatical analysis; the underlying data interface is used to obtain the data status involved in the rules to support the final judgment of the rules.

8. A device for processing express delivery orders, include: A receiving unit, configured to receive an authentication request for an erroneous operation of a courier order triggered by a delivery person; An acquisition unit, configured to acquire a pre-configured authentication rule chain corresponding to the type of the erroneous operation and status information of the express delivery order; A judgment unit is configured to call a rule engine to execute each rule in the authentication rule chain in sequence, and authenticate the erroneous operation according to the status information of the express delivery order; The rollback unit is configured to call the rollback callback interface to roll back to the business data before the erroneous operation if the authentication is passed.

9. An electronic device for processing express delivery orders, include: one or more processors; a storage device having one or more computer programs stored thereon, When the one or more computer 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, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.