A method, device, electronic device and storage medium for controlling express delivery
By locking and detecting the locking status of the couriers in the express box, the problem of concurrent couriers' pick-up and users canceling the delivery operation is solved, improving user experience and revenue, and filling system loopholes.
Patent Information
- Application Number
- CN202011443242.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2040-12-08
AI Technical Summary
In the prior art, when the courier picks up the parts and the user cancels the shipment operation concurrently, the express delivery is accidentally collected or the user is unable to cancel the order, resulting in refunds and disputes, affecting the user experience and the revenue of the express company.
By identifying the express parcel to be collected in the express cabinet and locking the parts, we can determine whether the conventional cancellation conditions are met. If they are met, the locking status of the carriage is detected, and a prompt message is generated to prevent cancellation operations, ensuring that the express parcel cannot be in the locking status of the carriage is locked. Cancel the shipment.
It effectively avoids the concurrent problems of couriers' pick-up and users' cancellation of the send-up operation, improves the user experience of both the pick-up and the send-up, ensures the revenue of the express company, and fills in the system loopholes.
Smart Images

Figure CN112541801B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of logistics technology, and in particular to a method, device, electronic device and storage medium for controlling the collection of express parcels. Background Art
[0002] With the rapid development of the express delivery industry, smart express lockers that provide self-service delivery services have appeared in various places in our lives. Users can place self-service delivery orders in front of the express lockers, and after successfully placing the order, they can put the express parcels they want to send into the lockers and wait for the courier to pick them up and deliver them. Within a period of time after completing the delivery order, users can choose to cancel the delivery and take the express parcels from the express lockers.
[0003] In the prior art, if the user initiates the cancellation of the delivery while the courier is also picking up the delivery at the locker, the following problems will occur: the customer service or user successfully initiates the cancellation of the order, but the delivery is successfully picked up by the courier; or, when the user receives the pickup code and goes to the locker to retrieve the delivery of the canceled delivery, the user is reminded that the order does not exist. In other words, when the user successfully cancels the delivery, the courier has already successfully picked up the delivery. If the delivery is successfully canceled, a refund will be made, resulting in the courier company being unable to receive the delivery fee normally, and the user will also have complaints and disputes due to the failure to intercept the delivery. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, electronic device and storage medium for controlling the collection of express parcels, which can solve many problems caused by the user canceling the delivery order while the courier collects the parcel, can realize more flexible collection and delivery of parcels, improve the user experience of both parties of the collection and delivery, and fill the system loopholes.
[0005] In a first aspect, an embodiment of the present invention provides a method for controlling the collection of express mail, wherein the method comprises:
[0006] In response to a pickup request corresponding to a target express locker, identifying the express parcels to be picked up in the target express locker, and locking each express parcel to be picked up;
[0007] In response to a request for canceling a shipment of a target express shipment from a shipping terminal, determining whether the target express shipment meets a conventional cancellation condition, and if so, detecting whether the target express shipment is in a pickup lock state;
[0008] If so, a first prompt message indicating that the mailing cannot be canceled at present is generated, and the first prompt message is fed back to the mailing terminal.
[0009] In a second aspect, an embodiment of the present invention further provides a device for controlling the collection of express mails, wherein the device comprises:
[0010] A collection module is used to respond to a collection request corresponding to a target express cabinet, identify the express parcels to be collected in the target express cabinet, and lock each express parcel to be collected;
[0011] A cancellation module for responding to a cancellation request for a target express by a mailing terminal, and determining whether the target express satisfies conventional cancellation conditions, and if so, detecting whether the target express is in a collection lock state;
[0012] The prompt information feedback module is used to generate a first prompt information indicating that the shipment cannot be canceled at present if it is detected that the target express shipment is in a locked state, and to feed back the first prompt information to the shipment terminal.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, wherein the device includes: one or more processors;
[0014] a storage device for storing one or more programs,
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the express collection control method as described in any one of the embodiments of the present invention.
[0016] In a fourth aspect, an embodiment of the present invention further provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for controlling the collection of express parcels as described in any one of the embodiments of the present invention.
[0017] The technical solution provided by the embodiment of the present invention, by responding to the pickup request corresponding to the target express cabinet, identifies the express parcels to be picked up in the target express cabinet, and locks each express parcel to be picked up; responding to the cancellation request of the mailing terminal for the target express parcel, it is judged whether the target express parcel meets the conventional cancellation conditions, and if so, it is detected whether the target express parcel is in the pickup lock state; if so, it generates the first prompt information that the mailing cannot be canceled at present, and feeds the first prompt information back to the mailing terminal. It can solve many problems caused by the mailing terminal canceling the mailing order operation while the courier picks up the parcel, and can realize more flexible collection and mailing, improve the user experience of both the collection and mailing parties, and fill the system loopholes. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a flow chart of a method for controlling the collection of express mails provided by an embodiment of the present invention;
[0019] Figure 2 It is a flow chart of another express collection control method provided by an embodiment of the present invention;
[0020] Figure 3It is a flow chart of another express collection control method provided by an embodiment of the present invention;
[0021] Figure 4 It is a flow chart of another express collection control method provided by an embodiment of the present invention;
[0022] Figure 5a This is a scene diagram of a courier picking up a parcel at a target express cabinet provided by an embodiment of the present invention;
[0023] Figure 5b This is a scene diagram of a mailing terminal canceling the delivery of a target express mail provided by an embodiment of the present invention;
[0024] Figure 6 It is a schematic diagram of the structure of a collection control device for express mail provided by an embodiment of the present invention;
[0025] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] Figure 1 This is a flow chart of a method for controlling the collection of express mail provided by an embodiment of the present invention. The method can be executed by a device for controlling the collection of express mail. The device can be implemented by software and / or hardware. The device can be configured in an electronic device such as a server. Optionally, the method is applied to a scenario where a mailing terminal cancels the mailing while a courier collects the mail. Figure 1 As shown, the technical solution provided by the embodiment of the present invention specifically includes:
[0028] S110. In response to a pickup request corresponding to a target express locker, the express parcels to be picked up are identified in the target express locker, and each express parcel to be picked up is locked for pickup.
[0029] In an embodiment of the present invention, optionally, the target express cabinet is the express cabinet where the express parcels to be collected are located, and there is at least one of them. After the courier terminal receives the mailing order, it obtains the information of the target express cabinet where the express parcels to be collected are located, and finds the target express cabinet according to the information of the target express cabinet. The target express cabinet detects the login instruction of the courier, enters the courier login page, obtains the input login account and password on the courier login page and verifies them, or scans the identification code of the courier terminal for verification. If the verification is successful, it is determined that the courier terminal has logged in successfully, and enters the collection page and clicks the collection operation, that is, sends a collection request to the background server. After the background server receives the collection request corresponding to the target express cabinet, it locks the express parcels to be collected in the target express cabinet, and prohibits the sending terminal from canceling the sending of the collected express parcel. The identification information of the express parcel to be collected can be added to the prohibited cancellation cache list to lock the collection, or the identification information of the express parcel to be collected can be marked as locked to lock the collection, or other methods can be used to lock the collection.
[0030] Therefore, by responding to the collection request corresponding to the target express cabinet, identifying the express parcels to be collected in the target express cabinet, and locking each express parcel to be collected, smooth collection can be achieved and the courier's collection experience can be improved.
[0031] S120: In response to a request for cancelling a shipment of a target shipment from a shipping terminal, determining whether the target shipment satisfies conventional conditions for cancelling shipment.
[0032] In an embodiment of the present invention, optionally, the sending terminal is a terminal for establishing a communication connection between the user or customer service and the target express cabinet, which can be a mobile terminal, a computer terminal, or other terminals. The target express can be the express for which the sending terminal wants to perform a cancellation request operation. The conventional cancellation conditions can be the conditions that must be met to meet the cancellation requirements, can be time limit conditions, or can be other conditions that are required to allow the cancellation operation. If the target express meets the conventional cancellation conditions, the background server performs further operations, which can be to continue to further judge other conditions, or to agree to the cancellation request of the target express; if the target express does not meet the conventional cancellation conditions, the cancellation request of the sending terminal is rejected in the form of sending a prompt message or in other forms.
[0033] In an embodiment of the present invention, optionally, after the user enters the identity authentication information through the identity authentication window in the sending terminal to log in, the user enters the page of delivered express parcels corresponding to the user's identity information, and further enters the page of delivered express parcels to be collected on this page to view the delivered express parcels to be collected. If the sending terminal wants to cancel the target express parcel order among the delivered express parcels to be collected, it selects the cancel shipment option corresponding to the target express parcel. At this time, the sending terminal sends a cancel shipment request for the target express parcel to the background server. After receiving the cancel shipment request, the background server determines whether the target express parcel meets the conventional cancel shipment conditions, and makes different response operations according to the determination result.
[0034] If so, execute S130; if not, execute S160.
[0035] S130: Detect whether the target express shipment is in a locked state.
[0036] In an embodiment of the present invention, optionally, if the target express meets the conventional conditions for canceling shipment, the backend server further determines whether the target express is locked, that is, whether the target express is in the state of being picked up by the courier, and performs corresponding response operations based on the judgment result of whether the target express is in the state of being locked for collection.
[0037] If yes, execute S140; if no, execute S150.
[0038] S140: Generate first prompt information indicating that the mailing cannot be canceled at present, and feed back the first prompt information to the mailing terminal.
[0039] In an embodiment of the present invention, optionally, the first prompt information is information fed back by the backend server to the sending terminal for letting the sending terminal know that the shipment cannot be canceled or the cancellation of the shipment has failed. It can be fed back to the sending terminal in the form of a short message, or a prompt information box can be popped up on the page of the cancellation request, or it can be other information prompt forms.
[0040] S150, executing a cancel operation corresponding to the target express shipment, and generating a pickup code corresponding to the target express shipment and feeding it back to the shipment terminal.
[0041] In an embodiment of the present invention, optionally, if the target express meets the conditions for canceling delivery, the backend server matches the identity authentication information sent by the delivery terminal with the corresponding information in the target express order. If the identity authentication information is consistent with the corresponding information in the target express order, the backend server determines that the user is the ordering user of the target express, and feeds back a message of successful identity authentication to the delivery terminal. The backend server cancels the order of the target express and generates a pickup code corresponding to the target express and feeds it back to the delivery terminal.
[0042] Therefore, by further detecting whether the target express is in a lock state to determine whether to cancel the shipment when the conventional cancellation conditions are met, it is possible to further limit the cancellation of shipment, that is, to ensure that the request to cancel the shipment is prohibited when the target express is in a lock state, and the request to cancel the shipment can be approved only after the lock state is released. This can avoid the situation where the target express is picked up and the request to cancel the shipment occurs at the same time, thereby improving the pickup and shipment experience.
[0043] S160: Generate prompt information indicating that conventional conditions for canceling mailing are not met, and feed the prompt information back to the mailing terminal.
[0044] In an embodiment of the present invention, optionally, if the target express delivery does not meet the conventional conditions for canceling delivery, the background server generates prompt information corresponding to the non-satisfaction of the conventional conditions for canceling delivery. For example, if the time condition is not met, prompt information corresponding to the non-satisfaction of the time condition can be generated; if the user identity information condition is not met, prompt information corresponding to the non-satisfaction of the user identity information condition can be generated, or other prompt information that does not meet the conventional conditions for canceling delivery can be generated, and the prompt information is fed back to the sending terminal to let the sending terminal know the reason why the conventional conditions for canceling delivery are not met.
[0045] The technical solution provided by the embodiment of the present invention, by responding to the collection request corresponding to the target express cabinet, identifies the express parcels to be collected in the target express cabinet, and locks the collection for each express parcel to be collected; in response to the cancellation request of the sender terminal for the target express parcel, determines whether the target express parcel meets the conventional cancellation conditions for sending, and if so, detects whether the target express parcel is in the collection lock state; if so, generates a first prompt information that the sending cannot be canceled at present, and feeds back the first prompt information to the sender terminal, that is, when the courier collects the express parcel to be collected, the express parcel to be collected is locked, so that the sender terminal cannot cancel the sending operation, which can solve many problems caused by the sender terminal canceling the sending operation while the courier collects the parcel, can realize more flexible collection and sending operations, improve the user experience of both the collection and sender, and fill the system loopholes.
[0046] Figure 2 It is a flow chart of the express collection control method provided by an embodiment of the present invention. In the embodiment of the present invention, optionally, after the express to be collected is locked, it also includes: if it is detected that the target locked express currently in the collection lock state has not successfully completed the express collection within the preset locking time, the target locked express is unlocked.
[0047] Optionally, the determining whether the target express shipment satisfies conventional conditions for cancelling shipment includes: determining whether the duration of shipment of the target express shipment exceeds a preset allowable cancellation duration; if not, determining that the conventional conditions for cancelling shipment are met; if so, determining that the conventional conditions for cancelling shipment are not met.
[0048] Optionally, after determining whether the target express shipment meets the conventional cancellation conditions, the method further includes: if not, generating a second prompt message indicating that the cancellation time has exceeded, and feeding back the second prompt message to the shipment terminal.
[0049] like Figure 2 As shown, the technical solution provided by the embodiment of the present invention includes:
[0050] S210. In response to a pickup request corresponding to a target express locker, the express parcels to be picked up are identified in the target express locker, and each express parcel to be picked up is locked for pickup.
[0051] S220: If it is detected that the target locked express parcel currently in the locked state has not been successfully collected within the preset locking time, the lock of the target locked express parcel is released.
[0052] In an embodiment of the present invention, optionally, when each express parcel to be collected is locked for collection, a locking time period may be preset as needed for each express parcel to be collected. The locking time period is used to provide the courier with time to collect the parcel. The locking time period may be set based on the regularity of the time period the courier takes to collect the parcels over a period of time, or may be set based on other conditions.
[0053] In one implementation of the embodiment of the present invention, optionally, the locking duration is determined according to the historical pickup time within a time interval set by the courier.
[0054] In an embodiment of the present invention, optionally, the background server may record the time taken by the courier to pick up a package each time, and collect statistics on the historical collection time according to the time interval set by the courier. The time interval may be, for example, different collection time periods of a day, or a period of collection dates. The background server determines the total historical collection time according to the time interval, and further determines the historical collection time. The historical collection time is used as the preset locking time. When the courier performs the collection operation, the time is counted and displayed to the courier in real time. It can be changed according to the actual situation.
[0055] In an embodiment of the present invention, optionally, when the backend server locks each parcel to be collected, a timer starts. When it is detected that the courier has not completed the collection operation of the target locked parcel that is currently in the collection locked state within the preset lock time, for example, the courier has not printed out the express waybill, or other operations indicating that the collection has been completed have not been completed, the lock state of the target locked parcel will be released.
[0056] Therefore, if it is detected that the target locked express currently in the collection lock state has not successfully completed the express collection within the preset lock time, the target locked express will be unlocked. This can solve the problem that the target locked express has been in the locked state and the cancellation request cannot be executed, affecting the user experience of the sending terminal, and flexible collection and delivery can be achieved.
[0057] S230: In response to a request for cancelling a shipment of a target express shipment from a shipping terminal, determining whether a shipping time of the target express shipment exceeds a preset allowable cancellation time.
[0058] In an embodiment of the present invention, optionally, the preset cancellation time period is the time period set by the background server to allow the execution of the cancellation request operation starting from the time the mail is successfully sent. The time period cannot be too long or too short and can be preset based on actual conditions.
[0059] The time difference between the time the cancellation request is issued and the time when the mailing terminal successfully sends the mail is taken as the time the mail has been sent and compared with the preset allowable cancellation time. If the time the mail has been sent exceeds the preset allowable cancellation time, it means that the regular cancellation conditions are not met. Otherwise, the regular cancellation conditions are met.
[0060] If not, it is determined that the conventional conditions for canceling shipment are met, and S240 is executed; if so, it is determined that the conventional conditions for canceling shipment are not met, and S270 is executed.
[0061] S240: Detect whether the target express shipment is in a locked state.
[0062] If so, execute S250; if not, execute S260.
[0063] S250: Generate first prompt information indicating that the mailing cannot be canceled at present, and feed back the first prompt information to the mailing terminal.
[0064] S260: Execute a cancel operation corresponding to the target express shipment, and generate a pickup code corresponding to the target express shipment and feed it back to the shipping terminal.
[0065] S270: Generate a second prompt message indicating that the time for canceling mailing has expired, and feed the second prompt message back to the mailing terminal.
[0066] In an embodiment of the present invention, optionally, if the time for sending a package exceeds the preset allowable cancellation time, the background server generates a second prompt information related to exceeding the cancellation time, which can be fed back to the sending terminal in the form of a short message, or in the form of a warning prompt box, or in other forms.
[0067] Figure 3 It is a flow chart of the express collection control method provided by an embodiment of the present invention. In the embodiment of the present invention, optionally, the collection and locking of each express parcel to be collected includes: adding the identification information of each express parcel to be collected to a prohibited cancellation cache list to lock the collection of each express parcel to be collected.
[0068] Optionally, the detecting whether the target express is in a locked state includes: determining whether identification information of the target express is stored in the prohibited cancellation cache list; if so, determining that the target express is in a locked state.
[0069] like Figure 3 As shown, the technical solution provided by the embodiment of the present invention includes:
[0070] S310. In response to a pickup request corresponding to a target express locker, the express parcels to be picked up are identified in the target express locker, and identification information of each of the express parcels to be picked up is added to a prohibited cancellation cache list to lock the pickup of each of the express parcels to be picked up.
[0071] In an embodiment of the present invention, optionally, the express number of each express to be collected can be used as its identification information, or the information that uniquely identifies each express to be collected can be used as identification information, and the prohibited cancellation cache list is stored in the database corresponding to the backend server, and the identification information of the express to be collected is recorded in the table. When the courier logs in to the target express cabinet and clicks the collection entrance, the target express cabinet calls the backend server interface to obtain the current target express cabinet courier's express order list to be collected, and the backend server needs to add the identification information of the express to be collected returned by the interface to the prohibited cancellation cache list, which means that the express to be collected in the prohibited cancellation cache list will be locked, and the cancellation operation is not allowed for the express to be collected in the locked state.
[0072] Therefore, by adding the identification information of each express parcel to be collected to the prohibited cancellation cache list, each express parcel to be collected can be locked for collection, and the operation of canceling the express parcels to be collected in the prohibited cancellation cache list can be prohibited, so that the courier can collect the parcels smoothly.
[0073] S320: If it is detected that the target locked express parcel currently in the locked state has not been successfully collected within the preset locking time, the lock of the target locked express parcel is released.
[0074] S330: In response to a request for cancelling a target express shipment from a shipping terminal, determine whether a shipping time of the target express shipment exceeds a preset allowable cancellation time.
[0075] If not, it is determined that the conventional conditions for canceling shipment are met, and S340 is executed; if so, it is determined that the conventional conditions for canceling shipment are not met, and S370 is executed.
[0076] S340: Determine whether the identification information of the target express is stored in the prohibited cancellation cache list.
[0077] In an embodiment of the present invention, optionally, based on the identification information of the target express corresponding to the cancellation request, which may be, for example, the express number or other information that uniquely identifies the target express, a search is performed in the cancellation cache list to determine whether the identification information of the target express exists.
[0078] If so, it is determined that the target express is in a locked state, and S350 is executed; if not, S360 is executed.
[0079] S350: Generate first prompt information indicating that the mailing cannot be canceled at present, and feed back the first prompt information to the mailing terminal.
[0080] S360: Execute a cancel operation corresponding to the target express shipment, and generate a pickup code corresponding to the target express shipment and feed it back to the shipping terminal.
[0081] S370: Generate a second prompt message indicating that the time for canceling mailing has expired, and feed the second prompt message back to the mailing terminal.
[0082] Figure 4 It is a flow chart of the express collection control method provided by an embodiment of the present invention. In the embodiment of the present invention, optionally, after adding the identification information of each express to be collected to the prohibited cancellation cache list, it also includes: setting a timer for the identification information of each express to be collected, and triggering each timer to start timing, and the timing duration of the timer is a preset lock duration; the identification information of the express to be collected that has successfully completed the express collection is removed from the prohibited cancellation cache list in real time.
[0083] Optionally, if it is detected that the target locked express parcel currently in the pickup lock state has not been successfully picked up within a preset locking time, unlocking the target locked express parcel includes:
[0084] When a target timer that has reached the timing duration is detected in the prohibited cancellation cache list, the identification information of the target express to be collected corresponding to the target timer is removed from the prohibited cancellation cache list to unlock the target express to be collected.
[0085] like Figure 4 As shown, the technical solution provided by the embodiment of the present invention includes:
[0086] S410. In response to a pickup request corresponding to a target express locker, the express parcels to be picked up are identified in the target express locker, and identification information of each of the express parcels to be picked up is added to a prohibited cancellation cache list to lock the pickup of each of the express parcels to be picked up.
[0087] S420, respectively set a timer for the identification information of each express mail to be collected, and trigger each timer to start timing, and the timing duration of the timer is the preset locking duration.
[0088] In an embodiment of the present invention, optionally, a correspondence is established between the identification information of each express parcel to be collected and the timer and stored in a prohibited cancellation cache list. When the identification information of each express parcel to be collected is added to the prohibited cancellation cache list, the timer starts a timing operation. The timing duration can be a preset lock duration, the courier's historical collection time, or the timing duration can be set according to actual conditions.
[0089] S430, removing the identification information of the express parcels to be collected that have successfully been collected from the prohibited cancellation cache list in real time.
[0090] In an embodiment of the present invention, optionally, when it is detected that a delivery note for an express shipment to be collected indicating successful collection has been printed out, or when it is detected that an operation to mark successful collection has been completed, the background server deletes the identification information corresponding to the express shipment to be collected from the prohibited cancellation list, thereby marking that the express shipment to be collected has been successfully collected.
[0091] Therefore, by removing the identification information of the express parcels to be collected that have successfully completed the collection from the prohibited cancellation cache list in real time, it is possible to dynamically manage the express parcels to be collected according to their status and realize flexible collection.
[0092] S440: When a target timer that has reached the timing duration is detected in the prohibited-cancellation cache list, the identification information of the target express to be collected corresponding to the target timer is removed from the prohibited-cancellation cache list to unlock the target express to be collected.
[0093] In an embodiment of the present invention, optionally, if it is detected that a target timer that has reached a set time duration appears in the prohibited cancellation cache list, that is, the locking time duration of the target express to be collected is exceeded, the identification information of the target express to be collected corresponding to the target timer is removed from the prohibited cancellation cache list to release the locking state of the target express to be collected, so that the sending terminal can cancel the sending request for the target express to be collected.
[0094] S450: In response to a request for cancelling a target express shipment from a shipping terminal, determine whether a shipping time of the target express shipment exceeds a preset allowable cancellation time.
[0095] If not, it is determined that the conventional conditions for canceling shipment are met, and S460 is executed; if so, it is determined that the conventional conditions for canceling shipment are not met, and S490 is executed.
[0096] S460: Determine whether the identification information of the target express is stored in the prohibited cancellation cache list.
[0097] If so, it is determined that the target express is in a locked state and S470 is executed; if not, S480 is executed.
[0098] S470: Generate first prompt information indicating that the mailing cannot be canceled at present, and feed back the first prompt information to the mailing terminal.
[0099] S480, executing a cancel operation corresponding to the target express shipment, and generating a pickup code corresponding to the target express shipment and feeding it back to the shipping terminal.
[0100] S490: Generate a second prompt message indicating that the time for canceling mailing has expired, and feed the second prompt message back to the mailing terminal.
[0101] In order to more clearly describe the technical solution provided by the embodiment of the present invention, the embodiment of the present invention provides a specific application scenario. Figure 5a is a scene diagram of a courier picking up a package at a target express cabinet provided by an embodiment of the present invention. Figure 5b is a scene diagram of the mailing terminal canceling the mailing of the target express mail provided by the embodiment of the present invention, such as Figure 5a As shown, the scenario provided by the embodiment of the present invention in which the courier picks up the parcel at the target express cabinet includes the following steps:
[0102] 1. The courier logs in to the target express cabinet and sends a request to the backend server to pick up the package.
[0103] In the embodiment of the present invention, optionally, the background server may be a CBS background.
[0104] 2. When the target express cabinet calls the background server interface to obtain the current list of express orders to be collected by the courier, the background server needs to add the identification information of the express to be collected returned by the interface to the prohibited cancellation cache list to lock the express to be collected and not allow the cancellation of the shipment; the preset lock time for the express to be collected locked by the prohibited cancellation cache list is 5 minutes by default, and the lock time can be configured at the code level (no interface is required).
[0105] When the courier logs in to the target express cabinet to pick up the parcel, the courier obtains the parcel to be collected from the background server and adds the identification information of the parcel to the prohibited cancellation cache list to lock the parcel to be collected. When the user or customer service clicks to cancel the shipment on the mobile or computer terminal, the first prompt information that the shipment cannot be canceled will be generated and the first prompt information will be fed back to the sending terminal.
[0106] In the embodiment of the present invention, optionally, the first prompt message may be, for example, that the courier is picking up the item and cancellation is not allowed, so please try again later.
[0107] Therefore, by adopting a mechanism that does not allow cancellation of parcels within the locking period when the courier logs in to the target express cabinet to pick up the parcel, the situation where the courier successfully picks up the parcel and the user or customer service cancels the delivery can be effectively reduced, and the following problems can be avoided: the user thinks that the delivery has been successfully canceled and uses the pickup code to retrieve the parcel, but is prompted that the target parcel does not exist, and the customer service or the user contacts the courier to intercept and recover the canceled parcel; it prevents users from exploiting system loopholes and still being able to send parcels normally after receiving a refund. The mechanism that locks the parcel within the locking period and does not allow cancellation of the delivery can effectively reduce the concurrent situation of couriers picking up parcels and users canceling the delivery, while not affecting the experience of users who really need to cancel the delivery too much, and has a certain degree of flexibility.
[0108] 3. The target express cabinet displays the parcels to be collected. The courier can click to collect them. The corresponding storage compartment of the target express cabinet will open. The courier can take out the parcel to be collected, print the delivery note, and complete the collection.
[0109] 4. According to the statistics of the backend server, the courier usually takes no more than 5 minutes to pick up the parcel. If it exceeds 5 minutes, the backend server will unlock the parcels that are locked in the cache list and the user can select the parcel after the lock is unlocked and send a request to cancel the shipment to complete the cancellation of the shipment.
[0110] If the courier has not successfully completed the target locked express collection at the target express cabinet for more than 5 minutes, the target locked express will be automatically unlocked, allowing the user and customer service to cancel the shipment. The 5-minute lock mechanism can be manually adjusted according to the courier's daily collection time in the past 7 days to avoid affecting the user's cancellation experience.
[0111] like Figure 5b As shown, the scenario in which the sending terminal cancels the sending of a target express mail provided by the embodiment of the present invention includes the following steps:
[0112] 1. After the user delivers the express package to the cabinet, if he wants to cancel the shipping order for some reason, he can click on the shipping order in the shipping terminal to enter the list page.
[0113] 2. Obtain all the user's shipping orders. The user selects a parcel that has been delivered to the cabinet for collection, clicks cancel shipping, and sends a request to cancel shipping to the backend server. The backend server determines whether the target express order meets the conventional cancellation conditions. If the conventional cancellation conditions are not met, a prompt message indicating that the cancellation conditions are not met is generated and the prompt message is fed back to the shipping terminal.
[0114] In an embodiment of the present invention, optionally, if the backend server detects that the time for the target express delivery order that the user chooses to cancel the delivery has exceeded 2 hours, a prompt message is generated indicating that the delivery has been transferred to the courier for collection and the delivery cannot be canceled, and the prompt message is fed back to the delivery terminal.
[0115] 3. Click to cancel the delivery order. If the target express delivery order is less than 2 hours, the background server will determine whether the courier of the target express delivery is logging in to pick up the delivery and is locked as a target locked express delivery. If it is locked as a target locked express delivery, a first prompt message indicating that the delivery cannot be canceled is generated and the first prompt message is fed back to the delivery terminal.
[0116] In the embodiment of the present invention, optionally, the first prompt information may be that the current order is being picked up by the courier, please try again later.
[0117] 4. If the courier logs in to pick up the package but fails to complete the collection within the preset lock time, the target locked package will be unlocked and the user can click to cancel the shipment.
[0118] In the embodiment of the present invention, optionally, the preset locking time may be 5 minutes.
[0119] 5. The user clicks to cancel the shipping order. If the locked target express has been unlocked, the shipment can be canceled directly. The background server executes the cancellation operation corresponding to the target express, and generates a pickup code corresponding to the target express and feeds it back to the shipping terminal, reminding the user to go to the target express cabinet to pick up the target express within the time limit. After receiving the pickup code, the user goes to the target express cabinet to cancel the shipment, pick up the express, complete the pickup, and the shipping fee will be returned to the original payment account.
[0120] 6. Special scenario instructions: If the courier logs in to the target express cabinet to pick up the package and the preset lock time has exceeded, and the courier clicks to pick up the package, but the delivery terminal cancels the delivery, the probability of this situation occurring is extremely low. In this case, the express delivery will be intercepted by calling the customer service number and a refund will be made manually.
[0121] When the customer service cancels the shipment, the locking mechanism and cache order strategy are also effective. When the courier logs in to the target express cabinet to pick up the shipment, within the preset locking period, if the customer service cancels the shipment order in the background, the first prompt information that the shipment cannot be canceled is generated and fed back to the customer service's corresponding operation terminal. Only after the preset locking period has expired can the target shipment be unlocked.
[0122] In the embodiment of the present invention, optionally, the first prompt message may be that the courier is logging in to pick up the package and cancellation is not allowed for the time being, please try again later.
[0123] Because the locking mechanism has a time limit, when the locking period is exceeded, the parcel to be collected will be unlocked to allow the user or customer service to cancel the shipment. Therefore, if the courier collects the parcel within the locking period and the user and customer service cancel the shipment, the probability of this happening is extremely low, so manual methods are used to intercept the parcel and refund the money. Manual processing does not take up too many development resources, which is conducive to simple and efficient product design and improved development efficiency.
[0124] In the related art, when a user successfully places an order to ship a package at a Fengchao locker, and the package is delivered to the locker, the user is allowed to cancel the order by themselves within 2 hours (optional), and a pickup code is sent to the user to retrieve the package; when the user initiates the cancellation operation, the courier happens to be operating to pick up the package at the target locker, and this concurrency cannot be resolved, which will lead to the following problems: the user successfully initiates the cancellation of the package order, but the target package is successfully picked up by the courier; when the customer service cancels the target package order that has been delivered to the locker in the background system, there is also a concurrency with the courier's pickup operation; when the user receives the pickup code and goes to the target locker to pick up the package, the user is reminded that the target package does not exist; while the user successfully cancels the package at the delivery terminal, the courier has successfully picked up the package, and a refund will be made if the package is successfully canceled, resulting in the courier company being unable to receive the shipping fee normally, and the user will also generate complaints and disputes due to the failure to intercept the package.
[0125] In order to solve the abnormal problem that the user successfully cancels the order but the express is collected when the user initiates the cancellation operation or the customer service cancels the order within 2 hours (optional) after the user sends the express to the locker, and the courier picks up the express at the target express locker at the same time, so as to improve the user experience and fill the system loopholes. A locking mechanism is designed. When the courier logs in to the target express locker and clicks to pick up the express, the target express locker calls the background server interface to obtain the current list of express orders to be collected by the courier in the target express locker. The background server needs to add the identification information of the express to be collected returned by the interface to the prohibited cancellation cache list, and lock these express to be collected, and do not allow the cancellation of the delivery; when the user cancels the delivery at the delivery terminal or the customer service cancels the delivery, the express to be collected in the prohibited cancellation cache list is temporarily locked and cannot be cancelled for the time being. Only after the express to be collected is released, the user or customer service is allowed to cancel the delivery, which can avoid the conflict caused by the user canceling the delivery and the courier picking up the express at the same time to a certain extent.
[0126] Figure 6 It is a schematic diagram of the structure of the express collection control device provided in an embodiment of the present invention. The device is configured in an electronic device such as a server, and the device includes: a collection module 610, a cancellation module 620 and a prompt information feedback module 630.
[0127] Among them, the collection module 610 is used to respond to the collection request corresponding to the target express cabinet, identify the express parcels to be collected in the target express cabinet, and lock the collection of each express parcel to be collected; the cancellation module 620 is used to respond to the cancellation request of the sending terminal for the target express parcel, determine whether the target express parcel meets the conventional cancellation conditions, and if so, detect whether the target express parcel is in the collection lock state; the prompt information feedback module 630 is used to generate a first prompt information that the shipment cannot be canceled at present if it is detected that the target express parcel is in the collection lock state, and feedback the first prompt information to the sending terminal.
[0128] In an exemplary embodiment, the device also includes a lock release module, which is used to release the lock of the target locked express parcel after the express parcel to be collected is locked for collection. If it is detected that the target locked express parcel currently in the collection lock state has not successfully completed the collection within a preset lock time period, the target locked express parcel will be unlocked.
[0129] In an exemplary embodiment, the locking of each express parcel to be collected includes: adding identification information of each express parcel to be collected to a prohibited cancellation cache list, so as to lock each express parcel to be collected.
[0130] In an exemplary embodiment, the detecting whether the target express is in a locked state includes: determining whether the identification information of the target express is stored in the prohibited cancellation cache list; if so, determining that the target express is in a locked state.
[0131] In an exemplary embodiment, the lock release module is specifically used to: after adding the identification information of each express parcel to be collected to the prohibited cancellation cache list, set a timer for the identification information of each express parcel to be collected, and trigger each timer to start timing, and the timing duration of the timer is the preset lock duration; in real time, remove the identification information of the express parcels to be collected that have successfully completed the express collection from the prohibited cancellation cache list.
[0132] In an exemplary embodiment, if it is detected that the target locked express parcel that is currently in the collection lock state has not successfully completed the collection within the preset lock time period, the target locked express parcel is unlocked, including: when it is detected that a target timer that has timed to the timing time period appears in the prohibited cancellation cache list, the identification information of the target express parcel to be collected corresponding to the target timer is removed from the prohibited cancellation cache list, so as to unlock the target express parcel to be collected.
[0133] In an exemplary embodiment, the cancellation module 620 is also used to: after detecting whether the target express is in a locked state, if not, execute the cancellation operation corresponding to the target express, and generate a pickup code corresponding to the target express and feed it back to the sending terminal.
[0134] In an exemplary embodiment, the determination of whether the target express shipment satisfies conventional conditions for cancelling shipment includes: determining whether the duration of shipment of the target express shipment exceeds a preset allowable cancellation duration; if not, determining that the conventional conditions for cancelling shipment are met; if so, determining that the conventional conditions for cancelling shipment are not met.
[0135] In an exemplary embodiment, the cancellation module 620 is also used to: after determining whether the target express meets the conventional cancellation conditions, if not, generate a second prompt message that the cancellation time has exceeded, and feed back the second prompt message to the sending terminal.
[0136] In an exemplary embodiment, the locking duration is determined based on the historical pickup time within a time interval set by the courier.
[0137] The device provided in the above-mentioned embodiments can execute the express collection control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0138] Figure 7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 7 As shown, the device includes:
[0139] one or more processors 710, Figure 7 A processor 710 is taken as an example;
[0140] Memory 720;
[0141] The device may further include: an input device 730 and an output device 740 .
[0142] The processor 710, memory 720, input device 730 and output device 740 in the device may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0143] The memory 720 is a non-transitory computer-readable storage medium that can be used to store software programs, computer executable programs, and modules, such as program instructions / modules corresponding to a method for controlling the collection of express mail in an embodiment of the present invention (for example, the attached Figure 6 The processor 710 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 720, that is, a method for controlling the collection of express mails in the above-mentioned method embodiment is implemented, namely:
[0144] In response to a pickup request corresponding to a target express locker, identifying the express parcels to be picked up in the target express locker, and locking each express parcel to be picked up;
[0145] In response to a request for canceling a shipment of a target express shipment from a shipping terminal, determining whether the target express shipment meets a conventional cancellation condition, and if so, detecting whether the target express shipment is in a pickup lock state;
[0146] If so, a first prompt message indicating that the mailing cannot be canceled at present is generated, and the first prompt message is fed back to the mailing terminal.
[0147] The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 720 may optionally include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0148] The input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device. The output device 740 may include a display device such as a display screen.
[0149] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, a method for controlling the collection of express mail provided in an embodiment of the present invention is implemented, namely:
[0150] In response to a pickup request corresponding to a target express locker, identifying the express parcels to be picked up in the target express locker, and locking each express parcel to be picked up;
[0151] In response to a request for canceling a shipment of a target express shipment from a shipping terminal, determining whether the target express shipment meets a conventional cancellation condition, and if so, detecting whether the target express shipment is in a pickup lock state;
[0152] If so, a first prompt message indicating that the mailing cannot be canceled at present is generated, and the first prompt message is fed back to the mailing terminal.
[0153] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A 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 thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: 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 thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0154] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals 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 a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0155] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0156] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0157] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for controlling the collection of express mail, characterized in that: Applicable to the scenario where the sending terminal cancels the shipment while the courier collects the shipment, including: In response to a pickup request corresponding to a target express locker, identifying an express parcel to be picked up in the target express locker; Adding the identification information of each express parcel to be collected to the prohibited cancellation cache list to lock each express parcel to be collected; wherein the identification information of each express parcel to be collected is the express parcel number of each express parcel to be collected; A timer is set for each identification information of the express mail to be collected, and each timer is triggered to start timing; wherein the timing duration of the timer is a preset locking duration; In real time, the identification information of the express parcels to be collected that have successfully completed the collection of the express parcels is removed from the prohibited cancellation cache list; If it is detected that the target locked express parcel currently in the pickup lock state has not successfully completed the pickup within the preset locking time, the target locked express parcel is unlocked, including: when it is detected that a target timer that has timed to the timing time appears in the prohibited cancellation cache list, the identification information of the target to-be-collected express parcel corresponding to the target timer is removed from the prohibited cancellation cache list, so as to unlock the target to-be-collected express parcel; In response to a request for canceling a shipment of a target express shipment from the shipping terminal, determining whether the target express shipment meets a conventional cancellation condition, and if so, detecting whether the target express shipment is in a pickup lock state; If yes, generating a first prompt message indicating that the mailing cannot be canceled at present, and feeding back the first prompt message to the mailing terminal; The step of detecting whether the target express is in a locked state includes: It is determined whether the identification information of the target express is stored in the prohibited cancellation cache list. If so, it is determined that the target express is in the collection lock state.
2. The method according to claim 1, characterized in that After detecting whether the target express is in a locked state, the method further includes: If not, the cancel operation corresponding to the target express is executed, and a pickup code corresponding to the target express is generated and fed back to the sending terminal.
3. The method according to claim 1, characterized in that The determining whether the target express shipment meets the conventional cancellation conditions includes: Determine whether the time period of the target express shipment exceeds the preset allowable cancellation time period, if not, determine that the conventional cancellation conditions are met, if so, determine that the conventional cancellation conditions are not met; After determining whether the target express shipment meets the conventional cancellation conditions, the method further includes: If not, a second prompt message indicating that the time for canceling mailing has expired is generated, and the second prompt message is fed back to the mailing terminal.
4. The method according to claim 1, characterized in that The locking duration is determined based on the historical pickup time within the time interval set by the courier.
5. A device for controlling the collection of express mail, characterized in that: Applicable to the scenario where the sending terminal cancels the shipment while the courier collects the shipment, including: A collection module, for responding to a collection request corresponding to a target express locker, identifying the express parcels to be collected in the target express locker; adding the identification information of each express parcel to be collected to a prohibited cancellation cache list, so as to lock the collection of each express parcel to be collected; wherein the identification information of each express parcel to be collected is the express parcel number of each express parcel to be collected; The lock release module is used to set a timer for each identification information of the express mail to be collected, and trigger each timer to start timing; wherein the timing duration of the timer is the preset lock duration; and the identification information of the express mail to be collected that has successfully completed the express collection is removed from the prohibited cancellation cache list in real time; The lock release module is further configured to release the lock of the target locked express parcel if it is detected that the target locked express parcel currently in the lock state has not been successfully collected within the preset lock time. The lock release module is specifically configured to remove the identification information of the target express mail to be collected corresponding to the target timer from the prohibition cancellation cache list when detecting that the target timer that has timed to the timing duration appears in the prohibition cancellation cache list, so as to unlock the target express mail to be collected; A cancellation module for responding to a cancellation request for a target express by the sending terminal, and determining whether the target express satisfies a conventional cancellation condition, and if so, detecting whether the target express is in a locked state; A prompt information feedback module is used to generate a first prompt information indicating that the shipment cannot be canceled at present if it is detected that the target express shipment is in a locked state, and to feed back the first prompt information to the shipment terminal; The step of detecting whether the target express is in a locked state includes: It is determined whether the identification information of the target express is stored in the prohibited cancellation cache list. If so, it is determined that the target express is in the collection lock state.
6. An electronic device, characterized in that: Also includes: 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 4.
7. A computer-readable storage 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 4 is implemented.
