Off-line collecting and dispatching method and device
By collecting scene images at the client terminal and generating offline reported data, the problem that the Lanpai service cannot confirm the Lanpai link in time when the network signal is poor is solved, and accurate monitoring of the Lanpai process and simplification of the order processing is achieved.
Patent Information
- Application Number
- CN202411635572.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-02-18
AI Technical Summary
The existing network signal of the portal service cannot confirm the portal process in a timely manner when the network signal is poor or unavailable, resulting in the confirmation information that does not match the actual process, which increases the difficulty of handling abnormal orders.
By calling the client terminal's camera, the scene images corresponding to the target order are collected in real time, the offline reported data is generated, and the data is uploaded when the network connection is restored.
It realizes accurate monitoring of the recruitment process when the network is unavailable, avoids the cumbersome process of abnormal order processing and simplifies the order processing process.
Smart Images

Figure CN119476853A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart logistics and instant retail technology, and in particular to an offline collection and delivery method and device. Background Art
[0002] In the process of collection and delivery, the existing collection and delivery business often needs to determine the nodes of each collection and delivery link based on network services. When the network service cannot be obtained or the network signal is poor, the collection and delivery personnel cannot confirm the nodes when the collection and delivery link is completed (for example, the pickup button cannot be clicked in time after picking up the goods, resulting in the inability to confirm the nodes of the pickup link in the system). For this, the collection and delivery personnel can only make delayed confirmations in areas where network services are restored, resulting in the confirmation information not matching the actual collection and delivery process, thus affecting the subsequent collection and delivery links. Moreover, this type of order will be monitored as an abnormal order, and a series of abnormal order processing procedures need to be carried out, which increases the difficulty of handling abnormal orders. Summary of the invention
[0003] In view of this, the embodiment of the present invention provides a method and device for offline collection and dispatch. When the network connection status of the current network is unavailable, the scene image corresponding to the target order can be collected in real time by calling the camera of the client terminal and generating offline reporting data, so as to obtain the data in the collection and dispatch process in time. After the network connection status is restored to an available state, the offline reporting data is uploaded in time, which can not only accurately monitor the collection and dispatch process, but also avoid the cumbersome abnormal order processing process and simplify the order processing process.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for offline dispatching is provided.
[0005] An offline delivery method according to an embodiment of the present invention includes: obtaining the network connection status of the current network; in response to the network connection status being an unavailable state, calling the camera of the client terminal to collect a scene image corresponding to a target order; wherein the scene image includes a target scene and a target item; based on the scene image, the current first longitude and latitude information of the client, and the order information of the target order, generating offline reporting data corresponding to the target order, and storing the offline reporting data in a local database of the client terminal; in response to the network connection status being restored to an available state, uploading the offline reporting data to a server and updating the local database.
[0006] Optionally, in response to the network connection status being unavailable, calling a camera to capture scene images corresponding to a target order, including: in response to the network connection status being unavailable, displaying an offline delivery selection page on the client; in response to receiving an offline delivery instruction triggered by a delivery personnel on the offline delivery selection page, calling a camera to capture scene images corresponding to the target order.
[0007] Optionally, generating offline reporting data corresponding to the target order based on the scene image, the client's current first longitude and latitude information, and the order information of the target order includes: determining a shooting timestamp corresponding to the scene image; using the order information as the key name, and the scene image, the first longitude and latitude information and the shooting timestamp as key values, to generate offline reporting data corresponding to the target order.
[0008] Optionally, the method also includes: in response to not receiving an offline delivery instruction triggered by the delivery personnel on the offline delivery selection page or failing to call the camera, when it is determined that the network connection status has recovered to an available state, generating online reporting data based on the client's current second longitude and latitude information and the order information of the target order; and uploading the online reporting data to the server.
[0009] Optionally, the target order corresponds to one or more collection and dispatch links; storing the offline reported data in the local database includes: determining the target link corresponding to the offline collection and dispatch instruction from one or more of the collection and dispatch links; determining the target data table corresponding to the target link from the local database; wherein the local database stores one or more data tables corresponding to each of the collection and dispatch links; storing the offline reported data in the target data table.
[0010] Optionally, uploading the offline reported data to the server and updating the local database includes: in response to the fact that there are multiple collection and dispatch links, determining the execution order between the multiple collection and dispatch links; determining the upload order of the multiple data tables in the local database according to the execution order; uploading the offline reported data in the multiple data tables in sequence according to the upload order, and deleting the offline reported data in the data table when the upload status of the data table is upload completion.
[0011] Optionally, after calling the camera to collect the scene image corresponding to the target order, it also includes: identifying the scene image, extracting key information of the target scene and the target item; determining whether the key information is consistent with the order information of the target order; if not, prompting the delivery personnel that the picture is incorrect, and re-calling the camera to collect the scene image.
[0012] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for offline collection and dispatch is provided.
[0013] An offline delivery device according to an embodiment of the present invention includes:
[0014] The acquisition module is used to obtain the network connection status with the server;
[0015] A collection module, configured to call a camera of the client terminal to collect a scene image corresponding to a target order in response to the network connection status being unavailable; wherein the scene image includes a target scene and a target item;
[0016] A generating module, configured to generate offline reporting data corresponding to the target order according to the scene image, the current first longitude and latitude information of the client, and the order information of the target order, and store the offline reporting data in a local database of the client terminal;
[0017] The uploading module is used for uploading the offline reporting data to the server and updating the local database in response to the network connection status being restored to an available state.
[0018] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for offline collection and dispatch is provided.
[0019] An electronic device for offline delivery according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement an offline delivery method according to an embodiment of the present invention.
[0020] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.
[0021] A computer-readable storage medium according to an embodiment of the present invention stores a computer program thereon, and when the program is executed by a processor, an offline dispatch method according to an embodiment of the present invention is implemented.
[0022] One embodiment of the above invention has the following advantages or beneficial effects: when the current network connection status is unavailable, the scene image corresponding to the target order can be collected in real time by calling the camera of the client terminal and generating offline reporting data, so as to obtain the data in the collection and delivery process in time. After the network connection status is restored to an available state, the offline reporting data is uploaded in time, which can not only accurately monitor the collection and delivery process, but also avoid the cumbersome abnormal order processing process and simplify the order processing process.
[0023] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0025] Figure 1 This is a schematic diagram of the main process of the offline delivery method according to an embodiment of the present invention;
[0026] Figure 2 is a schematic diagram of the main process of acquiring a scene image according to an embodiment of the present invention;
[0027] Figure 3 is a schematic diagram of a main process of verifying whether a scene image is valid according to an embodiment of the present invention;
[0028] Figure 4 This is a schematic diagram of the main process of uploading online reporting data according to an embodiment of the present invention;
[0029] Figure 5 This is a schematic diagram of the main process of generating offline reporting data according to an embodiment of the present invention;
[0030] Figure 6 It is a schematic diagram of the main process of storing offline reported data in a local database according to an embodiment of the present invention;
[0031] Figure 7 It is a schematic diagram of the main process of uploading offline reported data to a server and updating a local database according to an embodiment of the present invention;
[0032] Figure 8 is a schematic diagram of main modules of an offline delivery device according to an embodiment of the present invention;
[0033] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0034] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0036] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0037] It should be noted that in the technical solution disclosed herein, the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of the personal information of the dispatchers involved 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 the personal information of dispatchers to prevent illegal access to the personal information data of dispatchers and safeguard the personal information security of dispatchers, network security and national security.
[0038] Figure 1 It is a schematic diagram of the main steps of the offline collection and dispatch method according to an embodiment of the present invention.
[0039] like Figure 1 As shown, the offline delivery method of the embodiment of the present invention mainly includes the following steps:
[0040] Step S101: Obtaining the network connection status with the server;
[0041] Step S102: in response to the network connection status being unavailable, calling the camera of the client terminal to collect a scene image corresponding to the target order; wherein the scene image includes the target scene and the target item;
[0042] Step S103: generating offline reporting data corresponding to the target order according to the scene image, the current first longitude and latitude information of the client, and the order information of the target order, and storing the offline reporting data in a local database of the client terminal;
[0043] Step S104: in response to the network connection status being restored to an available state, the offline reporting data is uploaded to the server and the local database is updated.
[0044] Among them, for obtaining the network connection status with the server in step S101, in an optional embodiment, the network connection status can be monitored in real time, that is, the current network connection status with the server network can be obtained in real time. In another optional embodiment, in order to reduce resource consumption, network detection can be performed in response to a preset trigger condition. For example, in response to the start-up of the target application or in response to the triggering of a preset instruction by the dispatcher, the network detection is started to obtain the network connection status of the current network.
[0045] It can be understood that when the current network connection status is normal, the delivery personnel can operate each delivery link in time, that is, the uploaded data can be understood as the data actually operated by the delivery personnel. For example, when the delivery personnel clicks the store button, the store data (store arrival time, longitude and latitude information of the delivery personnel, etc.) is uploaded, and when the delivery personnel clicks the meal pickup button, the meal pickup data is uploaded. As long as the delivery personnel operate the nodes in time, there will generally be no abnormal data upload, and the order will jump to the next node smoothly after the node operation of each delivery link. The embodiment of the present invention solves the problem that the delivery personnel completes each delivery link in time, but due to network failures and other problems, the nodes of the delivery link cannot be operated in time, so that the delayed uploaded delivery data does not match the real delivery process, thereby marking the normally completed order as an abnormal order, adding unnecessary abnormal order processing procedures. Therefore, the embodiment of the present invention mainly limits the situation where the network connection status is unavailable, so as to explain how to avoid the generation of abnormal orders when the nodes of the delivery link cannot be operated in time. Specifically, whether the network connection status is in an unavailable state can be determined based on the time when the network request is returned. When the time when the network request is returned exceeds a preset time threshold, the current network connection status is considered to be in an unavailable state.
[0046] In an optional embodiment, the process of acquiring the scene image in step S102 can be as follows: Figure 2 As shown, including:
[0047] Step S201: In response to the network connection status being unavailable, displaying an offline delivery selection page on the client;
[0048] Step S202: In response to receiving an offline delivery instruction triggered by a delivery person on an offline delivery selection page, a camera is called to capture a scene image corresponding to a target order.
[0049] Among them, the client can be understood as the terminal device held by the collection and delivery personnel during the collection and delivery process. In actual application, the collection and delivery personnel need to perform operations on the nodes on the system in a timely manner after completing each collection and delivery link. Therefore, when the network is unavailable, the collection and delivery personnel are also required to perform corresponding operations on the client to realize the acquisition of scene images.
[0050] In an optional embodiment, the network connection status of the current network can be obtained in response to the node operation button clicked by the delivery personnel, and then when the network connection status is unavailable, the offline delivery selection interface can be displayed on the client through a pop-up window. Specifically, two buttons "offline operation" and "cancel" can be displayed on the offline delivery interface, so that the delivery personnel can choose whether to perform offline delivery according to their actual situation, where "offline operation" can be understood as the offline delivery instruction triggered in step S202.
[0051] It should be emphasized that in order to ensure the authenticity of the offline reported data, the present invention can only collect the scene image by calling the camera in step S102, that is, the delivery personnel need to take photos containing the target scene and the target object in real time, and cannot upload other photos by calling the album or the like. Among them, the target scene can be understood as the scene corresponding to the delivery link, and the target object refers to the delivery object. Exemplarily, when the delivery link is to pick up goods from pharmacy A, the target scene is the scene containing the door head or house number of pharmacy A, and the target object refers to the goods a taken from pharmacy A. It should be noted that the scene image needs to include the target scene and the target object at the same time to indicate that the delivery personnel have taken the goods a from the location corresponding to the target scene. It can be understood that if the target scene and the target object do not appear in the same scene image, that is, the image containing the target scene and the image containing the target object are taken separately, it cannot be shown that the two exist at the same time, that is, it cannot be proved that the delivery personnel have taken the target object from the target scene. Therefore, the scene image in the embodiment of the present invention only needs one image, and it contains the target scene and the target object at the same time.
[0052] For example, in addition to the pickup link, there are multiple collection and delivery links, such as the store link, the goods delivery link, etc. Taking the goods delivery link as an example, the target scene can be a scene picture containing the house number of the order address. Corresponding to different collection and delivery links, the target scenes are also different, so the embodiment of the present invention does not limit the specific content included in the target scene.
[0053] In a further optional embodiment, after calling the camera to collect the scene image in step S202, the following can also be done: Figure 3 As shown, the validity of the scene image is verified, including:
[0054] Step S301: Identify the scene image and extract key information of the target scene and the target object;
[0055] Step S302: Determine whether the key information is consistent with the order information of the target order;
[0056] Step S303: If not, the pick-up and dispatch personnel are prompted that the picture is incorrect, and the camera is called again to collect the scene image.
[0057] Among them, the key information in the target scene can be understood as the text content recognized in the target image, specifically, the house number and store name in the scene image. The key information in the target item can be understood as the order code, item name, and item quantity carried on the target item. By matching the key information with the order information of the target order, it can be determined whether the target item picked up and delivered by the delivery personnel from the target scene is correct, so as to avoid the situation where the item is picked up and delivered incorrectly.
[0058] In an optional embodiment, when the key information cannot be identified from the target scene and the target item, the key information is considered to be empty, and a matching result that the key information is inconsistent with the order information of the target order is obtained, and the delivery personnel are prompted to re-collect. Through the above process, it is also avoided that the delivery personnel arbitrarily take an image as a scene image for node jump without following the requirements, and the accuracy of the uploaded offline reporting data is further guaranteed.
[0059] In the actual delivery process, the delivery personnel may click the "Cancel" button instead of the "Offline Operation" button on the offline delivery interface. On the one hand, the delivery personnel made an error and manually closed the network connection. The network connection can be restored in time through relevant operations. In this case, offline delivery is not required. Therefore, the delivery personnel can click "Cancel" on the pop-up offline delivery interface to continue online delivery. On the other hand, although there is no network connection, the delivery personnel think that operations such as shooting scene images are too cumbersome and do not want to perform offline delivery. In this case, the current order can be treated as an abnormal order in accordance with the existing technology to carry out the abnormal order processing process.
[0060] In addition, the camera may be damaged and unable to take photos. In this case, offline delivery cannot be performed due to hardware reasons. Therefore, abnormal order processing can also be performed in the manner of the prior art. Since the abnormal order processing process is not the focus of the present invention, the subsequent processing process of abnormal orders is not further elaborated in the present invention. However, for the data upload process, in an optional embodiment of the present invention, Figure 4 As shown, it also includes:
[0061] Step S401: in response to failure to receive an offline delivery instruction triggered by the delivery personnel on the offline delivery selection page or failure to call the camera, when it is determined that the network connection status is restored to an available state, online reporting data is generated according to the current second longitude and latitude information of the client and the order information of the target order;
[0062] Step S402: Upload the online reporting data to the server.
[0063] It can be known from the above steps that, in the case of not uploading data by offline delivery, the entire offline process does not require the delivery personnel to operate the nodes, and the second longitude and latitude information and order information acquired in real time can only be reported as online reporting data after the network is restored. Among them, the second longitude and latitude information and the first longitude and latitude information are both longitude and latitude coordinates acquired by GPS, the only difference is that the first longitude and longitude information is acquired in the offline process, while the second longitude and latitude information is actually acquired when the network is restored. It can be seen that compared to uploading online reporting data, although the method of generating offline reporting data in the present invention requires the delivery personnel to increase the node operation process, it is more conducive to the accuracy and effectiveness of the acquired data.
[0064] For the process of generating offline reporting data in step S103, in an optional embodiment, the following can be done: Figure 5 As shown, including:
[0065] Step S501: Determine the shooting timestamp corresponding to the scene image;
[0066] Step S502: Generate offline reporting data corresponding to the target order by using the order information as the key name, the scene image, the first longitude and latitude information, and the shooting timestamp as the key value.
[0067] Among them, the shooting timestamp refers to the shooting time of the scene image. By using the scene image, the first longitude and latitude information and the shooting timestamp as key values, the offline reported data can be stored more comprehensively. Not only the captured scene image is stored, but also the shooting time and the location information of the dispatcher is stored, thereby ensuring the authenticity of the dispatcher's dispatch operation from multiple dimensions.
[0068] As mentioned above, the collection and dispatch links may include the store visit link, the pickup link, the goods delivery link, etc., but for a target order, it often includes more than one collection and dispatch link. In other words, each target order can correspond to one or more collection and dispatch links. Exemplarily, when the target order is a service for running errands, it will simultaneously include multiple links, that is, the store visit link is executed first, and then after the pickup link and the distribution link, the goods delivery link is finally executed. In this case, the process of storing the offline reported data in the local database in step S103, in an optional embodiment, can be as follows Figure 6 As shown, including:
[0069] Step S601: determining a target link corresponding to the offline delivery instruction from one or more delivery links;
[0070] Step S602: determining a target data table corresponding to the target link from a local database; wherein the local database stores one or more data tables corresponding to each collection and dispatch link;
[0071] Step S603: Store the offline reported data in the target data table.
[0072] Exemplarily, there is an arrival data table corresponding to the store link, and there is a pickup data table corresponding to the pickup link. In the embodiment of the present invention, after the offline reporting data corresponding to the collection and dispatch link is generated, the offline reporting data will be stored in the target data table corresponding to the collection and dispatch link. It can be seen that in order to improve the data storage and subsequent reporting efficiency, the embodiment of the present invention sets up multiple data tables corresponding to the collection and dispatch links, and stores the offline reporting data corresponding to the same collection and dispatch link together, avoiding confusion in the data storage process and affecting the data upload efficiency.
[0073] It is understandable that when multiple data tables are stored in the local database, there will be a priority order problem for uploading between the data tables. Therefore, in an optional embodiment of the present invention, the process of uploading the offline reported data to the server and updating the local database in step S104 can be as follows: Figure 7 As shown, including:
[0074] Step S701: In response to the fact that there are multiple collection and dispatching links, determining the execution order of the multiple collection and dispatching links;
[0075] Step S702: Determine the upload order of multiple data tables in the local database according to the execution order;
[0076] Step S703: uploading the offline reported data in the multiple data tables in sequence according to the uploading order, and deleting the offline reported data in the data table when the uploading status of the data table is upload completion.
[0077] The execution order of multiple pickup and delivery links is determined based on the order information of the target order. The uploaded data is often related, that is, the pickup data can only be stored after the store arrival data exists. If the order is messed up, data upload may fail.
[0078] According to the offline collection and dispatch method of the embodiment of the present invention, when the current network connection status is unavailable, the scene image corresponding to the target order can be collected in real time by calling the camera and generating offline reporting data, so as to obtain the data in the collection and dispatch process in time. After the network connection status is restored to an available state, the offline reporting data is uploaded in time, which can not only accurately monitor the collection and dispatch process, but also avoid the cumbersome abnormal order processing process and simplify the order processing process.
[0079] Figure 8 It is a schematic diagram of main modules of an offline collection and dispatch device according to an embodiment of the present invention.
[0080] like Figure 8 As shown, the offline delivery device 800 of the embodiment of the present invention includes:
[0081] The acquisition module 801 is used to acquire the network connection status with the server;
[0082] The acquisition module 802 is used for calling the camera of the client terminal to acquire a scene image corresponding to the target order in response to the network connection status being unavailable; wherein the scene image includes the target scene and the target item;
[0083] A generating module 803, configured to generate offline reporting data corresponding to the target order according to the scene image, the current first latitude and longitude information of the client, and the order information of the target order, and store the offline reporting data in a local database of the client terminal;
[0084] The uploading module 804 is configured to upload the offline reporting data to a server and update the local database in response to the network connection status being restored to an available state.
[0085] In an optional embodiment of the present invention, the acquisition module 802 is also used to, in response to the network connection status being unavailable, display an offline delivery selection page on the client; in response to receiving an offline delivery instruction triggered by the delivery personnel on the offline delivery selection page, call the camera to collect scene images corresponding to the target order.
[0086] In an optional embodiment of the present invention, the generation module 803 is also used to determine the shooting timestamp corresponding to the scene image; using the order information as the key name, the scene image, the first longitude and latitude information and the shooting timestamp as the key value, to generate offline reporting data corresponding to the target order.
[0087] In an optional embodiment of the present invention, the upload module 804 is also used to, in response to not receiving the offline delivery instruction triggered by the delivery personnel on the offline delivery selection page or failing to call the camera, determine that the network connection status has recovered to an available state, generate online reporting data according to the client's current second longitude and latitude information and the order information of the target order; and upload the online reporting data to the server.
[0088] In an optional embodiment of the present invention, the target order corresponds to one or more collection and dispatch links; the generation module 803 is also used to determine the target link corresponding to the offline collection and dispatch instruction from one or more of the collection and dispatch links; determine the target data table corresponding to the target link from the local database; wherein the local database stores one or more data tables corresponding to each of the collection and dispatch links; and stores the offline reported data in the target data table.
[0089] In an optional embodiment of the present invention, the upload module 804 is also used to, in response to the number of the collection and dispatch links being multiple, determine the execution order between the multiple collection and dispatch links; determine the upload order of the multiple data tables in the local database according to the execution order; upload the offline reported data in the multiple data tables in sequence according to the upload order, and delete the offline reported data in the data table when the upload status of the data table is upload completion.
[0090] In an optional embodiment of the present invention, the acquisition module 802 is also used to, after calling the camera to capture the scene image corresponding to the target order, identify the scene image and extract key information from the target scene and the target item; determine whether the key information is consistent with the order information of the target order; if not, prompt the delivery personnel that the picture is incorrect, and re-call the camera to capture the scene image.
[0091] According to the offline delivery device of the embodiment of the present invention, when the current network connection status is unavailable, the scene image corresponding to the target order can be collected in real time by calling the camera and generating offline reporting data, so as to obtain the data in the delivery process in time. After the network connection status is restored to an available state, the offline reporting data is uploaded in time, which can not only accurately monitor the delivery process, but also avoid the cumbersome abnormal order processing process and simplify the order processing process.
[0092] Fig. 9 An exemplary system architecture 900 is shown to which the method for offline dispatch or the apparatus for offline dispatch according to the embodiments of the present invention can be applied.
[0093] like Fig. 9 As shown, system architecture 900 may include terminal devices 901, 902, 903, network 904 and server 905. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0094] The dispatcher can use the terminal devices 901, 902, 903 to interact with the server 905 through the network 904 to receive or send data, etc. Various communication client applications can be installed on the terminal devices 901, 902, 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0095] The terminal devices 901 , 902 , and 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0096] The server 905 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by the pickup and dispatch personnel using the terminal devices 901, 902, and 903. The backend management server may analyze and store the received offline reported data and other data, and feed back the processing results (such as data reporting results) to the terminal device.
[0097] It should be noted that the offline collection and dispatch method provided in the embodiment of the present invention is generally executed by terminal devices 901, 902, and 903. Accordingly, the offline collection and dispatch device is generally set in the terminal devices 901, 902, and 903.
[0098] It should be understood that Fig. 9 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.
[0099] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0100] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) first interface 1005 is also connected to the bus 1004.
[0101] The following components are connected to the I / O first interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network first interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O first interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0102] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0103] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0104] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0105] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module, a collection module, a generation module and an upload module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the acquisition module may also be described as a "module for obtaining the network connection status of the current network".
[0106] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining the network connection status with the server; in response to the network connection status being unavailable, calling the camera of the client terminal to collect the scene image corresponding to the target order; wherein the scene image includes the target scene and the target item; according to the scene image, the current first longitude and latitude information of the client, and the order information of the target order, generating offline reporting data corresponding to the target order, and storing the offline reporting data in the local database of the client terminal; in response to the network connection status being restored to an available state, uploading the offline reporting data to the server and updating the local database.
[0107] According to the technical solution of the embodiment of the present invention, when the network connection status with the server is unavailable, the scene image corresponding to the target order can be collected in real time by calling the camera of the client terminal and generating offline reporting data, so as to obtain the data in the collection and delivery process in time. After the network connection status is restored to an available state, the offline reporting data is uploaded in time, which can not only accurately monitor the collection and delivery process, but also avoid the cumbersome abnormal order processing process and simplify the order processing process.
[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An offline dispatching method, characterized in that: Applied to client terminals, including: Get the network connection status with the server; In response to the network connection status being unavailable, calling the camera of the client terminal to collect a scene image corresponding to the target order; wherein the scene image includes a target scene and a target item; Generate offline reporting data corresponding to the target order according to the scene image, the current first longitude and latitude information of the client, and the order information of the target order, and store the offline reporting data in a local database of the client terminal; In response to the network connection status being restored to an available state, the offline reporting data is uploaded to a server and the local database is updated.
2. The method according to claim 1, characterized in that In response to the network connection state being unavailable, calling a camera to collect a scene image corresponding to the target order includes: In response to the network connection status being unavailable, displaying an offline delivery selection page on the client; In response to receiving an offline delivery instruction triggered by the delivery personnel on the offline delivery selection page, a camera is called to collect scene images corresponding to the target order.
3. The method according to claim 1, characterized in that The generating, according to the scene image, the current first longitude and latitude information of the client, and the order information of the target order, offline reporting data corresponding to the target order includes: Determining a shooting timestamp corresponding to the scene image; The offline reporting data corresponding to the target order is generated by using the order information as the key name, and the scene image, the first longitude and latitude information, and the shooting timestamp as the key values.
4. The method according to claim 2, characterized in that: The method further comprises: In response to not receiving the offline delivery instruction triggered by the delivery personnel on the offline delivery selection page or failing to call the camera, when it is determined that the network connection status is restored to an available state, generating online reporting data according to the current second latitude and longitude information of the client and the order information of the target order; The online reporting data is uploaded to the server.
5. The method according to claim 2, characterized in that: The target order corresponds to one or more collection and delivery links; storing the offline reported data in a local database includes: Determine a target link corresponding to the offline dispatch instruction from one or more dispatch links; Determine a target data table corresponding to the target link from the local database; wherein the local database stores one or more data tables corresponding to each of the collection and dispatch links; The offline reported data is stored in the target data table.
6. The method according to claim 5, characterized in that The uploading of the offline reported data to the server and updating the local database includes: In response to the plurality of collection and dispatch links, determining an execution order among the plurality of collection and dispatch links; Determining an uploading order of the plurality of data tables in the local database according to the execution order; The offline reported data in the plurality of data tables are uploaded in sequence according to the upload sequence, and when the upload status of the data table is upload completion, the offline reported data in the data table is deleted.
7. The method according to claim 1, characterized in that After calling the camera to collect the scene image corresponding to the target order, the method further includes: Recognize the scene image and extract key information from the target scene and the target object; Determining whether the key information is consistent with the order information of the target order; If not, the pick-up and dispatch personnel will be prompted that the picture is incorrect, and the camera will be called again to collect the scene image.
8. An off-line delivery device, characterized in that: include: The acquisition module is used to obtain the network connection status with the server; A collection module, configured to call a camera of the client terminal to collect a scene image corresponding to a target order in response to the network connection status being unavailable; wherein the scene image includes a target scene and a target item; A generating module, configured to generate offline reporting data corresponding to the target order according to the scene image, the current first longitude and latitude information of the client, and the order information of the target order, and store the offline reporting data in a local database of the client terminal; The uploading module is used for uploading the offline reporting data to the server and updating the local database in response to the network connection status being restored to an available state.
9. An electronic device for offline delivery, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 7.