WO2017041681A1 - Method and terminal for acquiring and presenting information - Google Patents

Method and terminal for acquiring and presenting information Download PDF

Info

Publication number
WO2017041681A1
WO2017041681A1 PCT/CN2016/098116 CN2016098116W WO2017041681A1 WO 2017041681 A1 WO2017041681 A1 WO 2017041681A1 CN 2016098116 W CN2016098116 W CN 2016098116W WO 2017041681 A1 WO2017041681 A1 WO 2017041681A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
courier
logistics information
information associated
express delivery
Prior art date
Application number
PCT/CN2016/098116
Other languages
French (fr)
Chinese (zh)
Inventor
郜文美
甘元莉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017041681A1 publication Critical patent/WO2017041681A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the obtained logistics information associated with the courier ticket number is displayed on the user interface of the terminal.
  • the method further includes:
  • the first action event is any one of the following events:
  • the obtained logistics information associated with the express delivery number is stored in the The storage area of the terminal.
  • User A's mobile phone learns the "copy” event of user A, and automatically acquires the event content in the clipboard;
  • the logistics information associated with the delivery order number is directly extracted from the storage area and added to the logistics information sent to the user B.
  • the determining unit 202 can be used to:
  • the display unit 203 is further configured to:
  • the processor 303 is the control center of the handset 30, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 302, and recalling data stored in the memory 302, The various functions and processing data of the mobile phone 30 are performed to perform overall monitoring of the mobile phone.
  • the processor 303 may include one or more processing units; preferably, the processor 303 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 303.
  • the processor 303 is configured to acquire event content of the first action event triggered by the user.
  • the express feature field in the express ticket number feature database may be counted according to the characteristics of the express delivery number, and may be represented by a regular expression.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method and a terminal for acquiring and presenting information, relating to the technical field of communications and solving the problem of the complicated operation process caused by the necessity of a user manually to perform a multi-step operation to look up an express tracking number in existing express tracking number look-up and tracking processes. The method provided by the embodiments of the present invention comprises: acquiring event content of a first action event triggered by a user; determining whether the event content comprises an express tracking number; if it is determined that the event content comprises an express tracking number, acquiring logistics information associated with the express tracking number; and displaying, on a user interface of the terminal, the acquired logistics information associated with the express tracking number.

Description

一种获取和呈现信息的方法及终端Method and terminal for acquiring and presenting information 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种获取和呈现信息的方法及终端。The present invention relates to the field of communications technologies, and in particular, to a method and terminal for acquiring and presenting information.
背景技术Background technique
随着互联网的普及,电子商务兴起,尤其是物联网的快速发展,人们对物流配送提出了更高的要求和更多的需求,例如,需要实时进行包裹快递的查询跟踪。目前,人们在进行包裹快递查询跟踪时,需要打开快递查询综合网站或者快递公司官方网站等服务网站,选择快递查询功能栏,输入快递公司的快递单号,点击查询按钮,对包裹快递过程进行查询跟踪。With the popularity of the Internet, the rise of e-commerce, especially the rapid development of the Internet of Things, people put forward higher requirements and more needs for logistics and distribution, for example, the need to conduct real-time query tracking of parcel delivery. At present, when people are conducting package tracking tracking, they need to open the service website such as the express inquiry comprehensive website or the official website of the express company, select the express inquiry function bar, input the express delivery number of the express company, click the inquiry button, and query the parcel delivery process. track.
由上可知,现有物流配送过程中快递单号查询跟踪的方法,需要用户手动进行多个步骤的操作,使得查询跟踪包裹快递时,操作过程复杂。It can be seen from the above that the method of tracking and tracking the express number in the existing logistics distribution process requires the user to manually perform multiple steps, so that the operation process is complicated when the query tracking package express is performed.
发明内容Summary of the invention
为解决上述问题,本发明提供一种获取和呈现信息的方法及终端,以解决现有快递单号查询跟踪过程中,需要用户手动进行多个步骤的操作查询快递单号而导致的操作过程复杂的问题。In order to solve the above problems, the present invention provides a method and a terminal for acquiring and presenting information, so as to solve the complicated operation process caused by the operation of querying the express delivery number by the user manually performing multiple steps in the process of tracking the tracking of the existing express delivery number. The problem.
本发明的实施例采用如下技术方案:Embodiments of the present invention adopt the following technical solutions:
第一方面,本发明实施例提供一种获取和呈现信息的方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for acquiring and presenting information, where the method includes:
终端获取用户触发的第一动作事件的事件内容;The terminal acquires an event content of the first action event triggered by the user;
判断所述事件内容中是否包含快递单号;Determining whether the content of the event includes a courier number;
若确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;If it is determined that the content of the event includes a delivery order number, obtaining logistics information associated with the delivery order number;
将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。The obtained logistics information associated with the courier ticket number is displayed on the user interface of the terminal.
在第一方面的第一种可实现方式中,结合第一方面,所述事件内容包含至少一个字符串;所述判断所述事件内容中是否包含快递单号具体包括:In a first implementation manner of the first aspect, in combination with the first aspect, the event content includes at least one character string; and determining whether the event content includes the express delivery number includes:
查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段;Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
若所述快递单号特征库中存在第一个快递特征字段,且所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包 含快递单号,且所述事件内容的快递单号为所述第一字符串。Determining the event content package if the first courier feature field exists in the courier number feature library, and the first courier feature field matches the first character string included in the event content The express delivery number is included, and the express delivery number of the event content is the first character string.
在第一方面的第二种可实现方式中,结合第一方面或第一方面的第一种可实现方式,所述获取与所述快递单号相关联的物流信息具体包括:In a second implementation manner of the first aspect, in combination with the first aspect or the first achievable manner of the first aspect, the acquiring the logistics information associated with the express delivery number specifically includes:
向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
在第一方面的第三种可实现方式中,结合第一方面的第二种可实现方式,所述将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上包括:In a third implementation manner of the first aspect, in combination with the second achievable manner of the first aspect, the obtained logistics information associated with the express delivery number is displayed on a user interface of the terminal Includes:
将所述获取到的与所述快递单号相关联的物流信息直接显示在所述终端当前的用户界面上;And the obtained logistics information associated with the express delivery number is directly displayed on a current user interface of the terminal;
或者,在所述终端当前的用户界面上显示第一提示信息,接收所述用户根据所述第一提示信息发送的查看指令;将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上;Or displaying the first prompt information on the current user interface of the terminal, receiving a viewing instruction sent by the user according to the first prompt information; and collecting the acquired logistics information associated with the express delivery number Displayed on the current user interface of the terminal;
其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号相关联的物流信息;所述查看指令用于查看与所述快递单号相关联的物流信息。The first prompt information is used to: notify the user that the logistics information associated with the express delivery number has been obtained; and the viewing instruction is used to view the logistics information associated with the express delivery number.
在第一方面的第四种可实现方式中,结合第一方面,在将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上之后,所述方法还包括:In a fourth implementation manner of the first aspect, in combination with the first aspect, after the obtained logistics information associated with the express delivery number is displayed on a current user interface of the terminal, The method also includes:
在所述终端当前的用户界面上显示第二提示信息,其中,所述第二提示信息用于:指示所述用户是否生成跟踪卡片;Displaying second prompt information on the current user interface of the terminal, where the second prompt information is used to: indicate whether the user generates a tracking card;
若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示给所述用户;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generation instruction sent by the user is received, generating a tracking card corresponding to the delivery order number and displaying the same to the user; and the generating instruction is used to: notify the terminal to generate a number corresponding to the express delivery number Corresponding tracking card.
在第一方面的第五种可实现方式中,结合第一方面,在获取与所述快递单号相关联的物流信息之后,所述方法还包括:In a fifth implementation manner of the first aspect, in combination with the first aspect, after acquiring the logistics information associated with the express delivery number, the method further includes:
所述终端将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;The terminal stores the acquired logistics information associated with the express delivery number in a storage area of the terminal, wherein the storage area includes: the logistics information associated with the express delivery number is the same as Correspondence of the express delivery number;
当所述终端确定第二动作事件的事件内容中包含所述快递单号时,查询 所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息;When the terminal determines that the event content of the second action event includes the courier number, the query The storage area directly acquires logistics information associated with the express delivery number from the storage area;
并将所述获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。And the obtained logistics information associated with the express delivery number is displayed on a user interface of the terminal.
在第一方面的第六种可实现方式中,结合第一方面至第一方面的第五种可实现方式中的任一种可实现方式,In a sixth implementable manner of the first aspect, the implementation of any one of the first aspect to the fifth implementable aspect of the first aspect,
所述第一动作事件为下述任一种事件:The first action event is any one of the following events:
粘贴、复制、通话、收发即时消息。Paste, copy, call, send and receive instant messages.
第二方面,本发明实施例提供一种终端,包括:In a second aspect, an embodiment of the present invention provides a terminal, including:
获取单元,用于获取用户触发的第一动作事件的事件内容;An obtaining unit, configured to acquire an event content of a first action event triggered by a user;
判断单元,用于判断所述获取单元获取到的事件内容中是否包含快递单号;a determining unit, configured to determine whether the content of the event obtained by the acquiring unit includes a courier number;
所述获取单元,还用于若所述判断单元确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;The obtaining unit is further configured to: if the determining unit determines that the event content includes a courier number, acquire the logistics information associated with the courier ticket number;
显示单元,用于将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。And a display unit, configured to display the acquired logistics information associated with the express delivery number on a user interface of the terminal.
在第二方面的第一种可实现方式中,结合第二方面,所述事件内容包含至少一个字符串;所述判断单元,具体用于:In a first implementation manner of the second aspect, in combination with the second aspect, the event content includes at least one character string; and the determining unit is specifically configured to:
查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段;Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
若所述快递单号特征库中存在第一个快递特征字段,且所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包含快递单号,且所述事件内容的快递单号为所述第一字符串。If the first courier feature field exists in the courier number feature database, and the first courier feature field matches the first character string included in the event content, determining that the event content includes a courier number And the express delivery number of the event content is the first character string.
在第二方面的第二种可实现方式中,结合第二方面或第二方面的第一种可实现方式,所述获取单元,具体用于:In a second implementation manner of the second aspect, in combination with the second aspect or the first implementation manner of the second aspect, the acquiring unit is specifically configured to:
向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
在第二方面的第三种可实现方式中,结合第二方面的第二种可实现方式,所述显示单元,具体用于:In a third implementation manner of the second aspect, in combination with the second implementation manner of the second aspect, the display unit is specifically configured to:
将所述获取到的与所述快递单号相关联的物流信息直接显示在所述终端 当前的用户界面上;Displaying the obtained logistics information associated with the express delivery number directly on the terminal Current user interface;
或者,在所述终端当前的用户界面上显示第一提示信息,接收所述用户根据所述第一提示信息发送的查看指令;将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上;Or displaying the first prompt information on the current user interface of the terminal, receiving a viewing instruction sent by the user according to the first prompt information; and collecting the acquired logistics information associated with the express delivery number Displayed on the current user interface of the terminal;
其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号相关联的物流信息;所述查看指令用于查看与所述快递单号相关联的物流信息。The first prompt information is used to: notify the user that the logistics information associated with the express delivery number has been obtained; and the viewing instruction is used to view the logistics information associated with the express delivery number.
在第二方面的第四种可实现方式中,结合第二方面,所述显示单元,还用于:In a fourth implementation manner of the second aspect, in combination with the second aspect, the display unit is further configured to:
在将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上之后,在所述终端当前的用户界面上显示第二提示信息,其中,所述第二提示信息用于:指示所述用户是否生成跟踪卡片;After displaying the acquired logistics information associated with the express delivery number on the current user interface of the terminal, displaying second prompt information on the current user interface of the terminal, where the The second prompt information is used to: indicate whether the user generates a tracking card;
若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示给所述用户;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generation instruction sent by the user is received, generating a tracking card corresponding to the delivery order number and displaying the same to the user; and the generating instruction is used to: notify the terminal to generate a number corresponding to the express delivery number Corresponding tracking card.
在第二方面的第五种可实现方式中,结合第二方面,所述终端还包括:In a fifth implementation manner of the second aspect, in combination with the second aspect, the terminal further includes:
存储单元,用于在所述获取单元获取到与所述快递单号相关联的物流信息之后,将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;a storage unit, configured to: after the obtaining unit acquires the logistics information associated with the express delivery number, store the acquired logistics information associated with the express delivery number in a storage area of the terminal, The storage area includes: a correspondence between the logistics information associated with the express delivery number and the express delivery number;
所述获取单元,还用于当所述判断单元确定第二动作事件的事件内容中包含所述快递单号时,查询所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息;The obtaining unit is further configured to: when the determining unit determines that the event content of the second action event includes the courier number, query the storage area, and directly obtain the courier number from the storage area Associated logistics information;
所述显示单元,还用于将所述获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。The display unit is further configured to display the acquired logistics information associated with the express delivery number on a user interface of the terminal.
在第二方面的第六种可实现方式中,结合第二方面至第二方面的第五种可实现方式中的任一种可实现方式,In a sixth implementable manner of the second aspect, the implementation of any one of the second aspect to the fifth implementable aspect of the second aspect,
所述第一动作事件为下述任一种事件:The first action event is any one of the following events:
粘贴、复制、通话、收发即时消息。Paste, copy, call, send and receive instant messages.
由上可知,本发明实施例提供一种获取和呈现信息的方法及终端,获取用户触发的第一动作事件的事件内容;判断所述事件内容中是否包含快递单 号;若确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。如此,由终端自动识别用户触发的事件中的快递单号,并直接将获取到的与快递单号相关联的物流信息显示在终端当前用户桌面上,供用户查看,使得当用户查看与快递单号相关的物流信息时,不需要打开服务网站、输入快递单号、点击查询进行相关信息查看;解决了现有快递单号查询跟踪过程中,需要用户手动进行多个步骤的操作查询快递单号而导致的操作过程复杂的问题。It can be seen that the embodiment of the present invention provides a method and a terminal for acquiring and presenting information, acquiring event content of a first action event triggered by a user, and determining whether the event content includes a courier If it is determined that the content of the event includes a delivery order number, obtaining logistics information associated with the delivery order number; and displaying the obtained logistics information associated with the delivery order number on the user of the terminal On the interface. In this way, the terminal automatically recognizes the courier ticket number in the event triggered by the user, and directly displays the obtained logistics information associated with the courier ticket number on the current user desktop of the terminal for the user to view, so that when the user views and expresses the courier No related information, no need to open the service website, enter the courier number, click on the query to view the relevant information; solve the existing courier number tracking tracking process, the user needs to manually perform multiple steps of the operation query express delivery number And the problem caused by the complicated operation process.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种获取和呈现信息的方法的流程图;FIG. 1 is a flowchart of a method for acquiring and presenting information according to an embodiment of the present invention;
图2A为本发明实施例的一种查询跟踪快递单号的方法的示意图;2A is a schematic diagram of a method for querying a tracking delivery number according to an embodiment of the present invention;
图2B为本发明实施例的一种查询跟踪快递单号的方法的示意图;2B is a schematic diagram of a method for querying a tracking delivery number according to an embodiment of the present invention;
图2C为本发明实施例的一种查询跟踪快递单号的方法的示意图;2C is a schematic diagram of a method for querying and tracking a delivery number according to an embodiment of the present invention;
图2D为本发明实施例的一种查询跟踪快递单号的方法的示意图;2D is a schematic diagram of a method for querying a tracking delivery number according to an embodiment of the present invention;
图2E为本发明实施例的一种查询跟踪快递单号的方法的示意图;2E is a schematic diagram of a method for querying and tracking a delivery number according to an embodiment of the present invention;
图3为本发明实施例的一种剪切板的结构图;3 is a structural view of a shearing plate according to an embodiment of the present invention;
图4为本发明实施例提供的一种终端的结构图;4 is a structural diagram of a terminal according to an embodiment of the present invention;
图4A为本发明实施例提供的一种终端的结构图;4A is a structural diagram of a terminal according to an embodiment of the present invention;
图5为本发明实施例提供的一种终端的结构图。FIG. 5 is a structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一 Embodiment 1
图1示出了本发明实施例提供的一种获取和呈现信息的方法的流程图, 应用于一终端设备,其中,所述终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等设备;如图1所示,所述方法可以包括:FIG. 1 is a flowchart of a method for acquiring and presenting information according to an embodiment of the present invention. The device is applied to a terminal device, where the terminal can be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), or the like; As shown in FIG. 1, the method may include:
步骤101:获取用户触发的第一动作事件的事件内容。Step 101: Acquire an event content of a first action event triggered by a user.
其中,所述第一动作事件可以为:用户根据需要在使用所述终端执行某种功能时产生,如:可以为复制、粘贴、语音通话、或者通过终端上的某应用程序(Application,App)软件与其他用户间收发即时消息、即时通讯中的任一事件。所述事件内容包含至少一个字符串。The first action event may be: when the user performs a certain function by using the terminal as needed, for example, it may be copying, pasting, voice calling, or passing an application (Application, App) on the terminal. The software sends and receives any event in instant messaging or instant messaging with other users. The event content includes at least one character string.
需要说明的是,终端可以根据现有技术探测到用户触发的第一动作事件,在此不再一一赘述。It should be noted that the terminal may detect the first action event triggered by the user according to the prior art, and details are not described herein again.
步骤102:判断所述事件内容中是否包含快递单号。Step 102: Determine whether the express order number is included in the event content.
可选的,所述判断所述事件内容中是否包含快递单号可以包括:Optionally, the determining whether the content of the event includes the express delivery number may include:
查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段;Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
若所述快递单号特征库中存在第一个快递特征字段,且所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包含快递单号,且所述事件内容的快递单号为所述第一字符串。If the first courier feature field exists in the courier number feature database, and the first courier feature field matches the first character string included in the event content, determining that the event content includes a courier number And the express delivery number of the event content is the first character string.
所述快递单号特征库中的快递特征字段可以根据快递单号的特性统计出来的,可以用正则表达式表示。The express feature field in the express ticket number feature database may be counted according to the characteristics of the express delivery number, and may be represented by a regular expression.
优选的,可以按照快递单号特征库中快递特征字段的顺序,将所述快递单号特征库中的快递特征字段与内容字符串进行匹配,以确定所述事件内容是否包含快递单号。Preferably, the courier feature field in the courier number feature library is matched with the content string according to the order of the courier feature fields in the courier number feature library to determine whether the event content includes a courier number.
例如,采用正则表达式将各快递公司对应的快递单描述特征表示出来,形成如表1所示的快递单号特征库,当所述内容字符串包含有“^[0-9]{12}$”、“^[A-Z]{2}[0-9]{9}[A-Z]{2}$”、“^[a-zA-Z0-9]{10}$”、“^[0-9]{12}$”中任一种字符串时,则确定所述事件内容中包含快递单号。For example, using a regular expression to express the courier description features corresponding to each courier company, forming a courier number feature library as shown in Table 1, when the content string contains "^[0-9]{12} $", "^[AZ]{2}[0-9]{9}[AZ]{2}$","^[a-zA-Z0-9]{10}$","^[0- When any of the strings of 9]{12}$" is determined, the content of the event is included in the event content.
表1Table 1
物流公司Logistics company 快递单描述特征Express note description feature
顺丰速递SF Express ^[0-9]{12}$^[0-9]{12}$
EMSEMS ^[A-Z]{2}[0-9]{9}[A-Z]{2}$^[A-Z]{2}[0-9]{9}[A-Z]{2}$
宅急送Home delivery ^[a-zA-Z0-9]{10}$^[a-zA-Z0-9]{10}$
联邦快递FedEx ^[0-9]{12}$^[0-9]{12}$
步骤103:若确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息。Step 103: If it is determined that the content of the event includes a delivery order number, obtain the logistics information associated with the delivery order number.
可选的,所述获取与所述快递单号相关联的物流信息可以包括:Optionally, the obtaining the logistics information associated with the delivery order number may include:
向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
其中,所述请求消息可以为:超文本传送协议(英文:hypertext transfer protocol,缩写:http)消息,通常情况下,请求消息携带有HTTP统一资源定位符(Uniform Resource Locator,URL)链接。The request message may be a hypertext transfer protocol (English: hypertext transfer protocol, abbreviated: http) message. Generally, the request message carries a HTTP Uniform Resource Locator (URL) link.
例如,可以通过RESTFUL格式的API进行查询:For example, you can query through the RESTFUL format API:
http://api.kuaidi100.com/api?id=[]&com=[]&nu=[]&valicode=[]&show=[0|1|2|3]&muti=[0|1]&order=[desc|asc]。Http://api.kuaidi100.com/api? Id=[]&com=[]&nu=[]&valicode=[]&show=[0|1|2|3]&muti=[0|1]&order=[desc|asc].
步骤104:将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。Step 104: Display the obtained logistics information associated with the express delivery number on the user interface of the terminal.
可选的,所述将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上可以包括:Optionally, the displaying the obtained logistics information associated with the express delivery number on the user interface of the terminal may include:
将所述获取到的与所述快递单号相关联的物流信息直接显示在所述终端当前的用户界面上;And the obtained logistics information associated with the express delivery number is directly displayed on a current user interface of the terminal;
或者,在所述终端当前的用户界面上显示第一提示信息;其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号相关联的物流信息;Or displaying the first prompt information on the current user interface of the terminal; wherein the first prompt information is used to: notify the user that the logistics information associated with the express delivery number has been obtained;
接收所述用户根据所述第一提示信息发送的查看指令;其中,所述查看指令用于查看与所述快递单号相关联的物流信息;Receiving, by the user, a viewing instruction sent according to the first prompt information; wherein the viewing instruction is used to view logistics information associated with the express delivery number;
将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上。The obtained logistics information associated with the express delivery number is displayed on a current user interface of the terminal.
进一步的,在将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上之后,所述方法还可以包括:Further, after the obtained logistics information associated with the express delivery number is displayed on the current user interface of the terminal, the method may further include:
在所述终端当前的用户界面上显示第二提示信息,其中,所述第二提示 信息用于:指示所述用户是否生成跟踪卡片;Displaying second prompt information on a current user interface of the terminal, where the second prompt The information is used to: indicate whether the user generates a tracking card;
若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示给用户;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generation instruction sent by the user is received, generating a tracking card corresponding to the delivery order number and displaying the same to the user; the generating instruction is configured to: notify the terminal to generate a corresponding to the express delivery number Track cards.
进一步的,为了便于后续更快地获取到与快递单号相关联的物流信息,本发明实施例中,在获取到与所述快递单号相关联的物流信息之后,所述方法还可以包括:Further, in order to facilitate the subsequent acquisition of the logistics information associated with the delivery order number, in the embodiment of the present invention, after obtaining the logistics information associated with the express delivery number, the method may further include:
将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;The obtained logistics information associated with the express delivery number is stored in a storage area of the terminal, wherein the storage area includes: logistics information associated with the express delivery number and the express delivery number Correspondence relationship;
当所述终端确定第二动作事件的事件内容中包含所述快递单号时,查询所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息;When the terminal determines that the event content of the second action event includes the courier ticket number, querying the storage area, and directly acquiring the logistics information associated with the courier ticket number from the storage area;
并将所述获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。And the obtained logistics information associated with the express delivery number is displayed on a user interface of the terminal.
其中,所述存储区域可以为终端存储器(如内存或硬盘)中预先开辟的一缓冲区。所述直接从所述存储区域中获取与所述快递单号相关联的物流信息具体包括:The storage area may be a buffer that is pre-opened in a terminal memory such as a memory or a hard disk. The obtaining the logistics information associated with the express delivery number directly from the storage area specifically includes:
查询预设的位置信息列表,其中,所述位置信息列表包含:快递单号、以及与快递单号相对应的位置信息,所述位置信息用于表示:与快递单号相关联的物流信息在所述存储区域中所处的位置;Querying a preset location information list, where the location information list includes: a delivery order number, and location information corresponding to the delivery order number, wherein the location information is used to indicate that the logistics information associated with the delivery order number is a location in the storage area;
获取与所述事件内容中包含的快递单号相对应的位置信息,Obtaining location information corresponding to the courier number included in the event content,
在所述存储区域中所述位置信息所指的位置处获取与所述快递单号相关联的物流信息。The logistics information associated with the courier ticket number is obtained at the location indicated by the location information in the storage area.
其中,位置信息列表可以存储在所述终端的剪切板上,即本发明实施例中,可以在剪切板上开辟一新的区域,设置一位置信息列表,例如,图3为本发明实施例提供的一种剪切板的结构图,如图3所示,当用户点击“复制”后,终端将复制内容所关联的物流信息存储在内存或硬盘中开辟一块临时的缓冲区,然后再将用于指向所关联的物流信息所处的缓冲区的内存地址、或路径、或URI作为位置信息,存储在该位置信息列表中,当用户点击“粘贴”操作后,终端中执行粘贴功能的模块可以直接从位置信息列表中获取所述粘 贴内容的物流信息指向的位置,直接从缓存区域中的该位置获取到物流信息。需要说明的是,位置信息存在的生命周期与剪贴板中当前所复制内容的生命周期相同,即“一同出现”、“一同消亡”。The location information list may be stored on the clipboard of the terminal, that is, in the embodiment of the present invention, a new area may be opened on the clipboard, and a location information list is set. For example, FIG. 3 is an implementation of the present invention. A structural diagram of a clipboard is provided. As shown in FIG. 3, when the user clicks “copy”, the terminal stores the logistics information associated with the copied content in a memory or a hard disk to open a temporary buffer, and then The memory address, or the path, or the URI, which is used to point to the buffer in which the associated logistics information is located, is stored as location information in the location information list. When the user clicks the "paste" operation, the terminal performs the paste function. The module can get the sticky directly from the location information list The location of the logistics information of the posted content directly obtains the logistics information from the location in the cache area. It should be noted that the life cycle of the location information is the same as the life cycle of the currently copied content in the clipboard, that is, “appears together” and “disappears together”.
需要说明的是,本发明实施例中,为了保证存储到存储区域中的相关信息为当前最新信息,可选的,所述将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中可以包括:It should be noted that, in the embodiment of the present invention, in order to ensure that the related information stored in the storage area is the current latest information, optionally, the obtained logistics information associated with the express delivery number is stored in the The storage area of the terminal may include:
若所述存储区域中已存储有与所述快递单号相关联的物流信息,则将获取到的与所述快递单号相关联的物流信息替换掉已存储的与所述快递单号相关联的物流信息。If the logistics information associated with the delivery order number is already stored in the storage area, the acquired logistics information associated with the delivery order number is replaced with the stored stored association number associated with the delivery order number. Logistics information.
如此,将获取到的物流信息进行存储,当用户再次触发获取时,直接从存储区域获取并显示,以缩短获取物流信息的时间。In this way, the acquired logistics information is stored, and when the user triggers the acquisition again, it is directly acquired and displayed from the storage area to shorten the time for obtaining the logistics information.
下面仅以下述五个场景下适时获取和呈现与快递单号关联的物流信息为例对上述方法进行介绍,其中,同场景下其他信息(如地址、车次、航班)的关联信息的获取和呈现、以及其他场景下快递单号的物流信息的获取和呈现方法与此雷同,在此不再一一赘述:In the following five scenarios, the following methods are used to obtain and present the logistics information associated with the courier ticket number as an example. The acquisition and presentation of the related information of other information (such as address, train, and flight) in the same scenario. And the acquisition and presentation methods of the logistics information of the express delivery number in other scenarios are similar to this, and will not be repeated here:
场景一:用户收到好友发来的快递单号Scene 1: The user receives the courier number sent by the friend
图2A为本发明实施例的一种查询跟踪快递单号的方法的示意图,如图2A所示,用户A通过用户A的手机上的第三方即时消息App(如微信、QQ、易信)收到好友B发来的快递单号“30597097”;FIG. 2A is a schematic diagram of a method for querying a tracking delivery number according to an embodiment of the present invention. As shown in FIG. 2A, user A receives a third-party instant messaging application (such as WeChat, QQ, and Easy Letter) on the mobile phone of user A. The courier number "30597097" sent to friend B;
用户A点击“复制”快递单号;User A clicks on the "copy" courier number;
用户A的手机获知用户A的“复制”事件,自动获取剪贴板中的事件内容;User A's mobile phone learns the "copy" event of user A, and automatically acquires the event content in the clipboard;
确定所述事件内容包含快递单号,Determining that the event content includes a courier number,
自动查询该快递单号“30597097”的快递状态,建立一个订单跟踪卡片,显示当前最新的快递状态,并给用户以提示是否保存该跟踪卡片。Automatically query the courier status of the courier number "30597097", create an order tracking card, display the current latest courier status, and give the user a hint to save the tracking card.
场景二:用户复制一个快递单号、粘贴发给好友Scene 2: The user copies a courier number and pastes it to a friend.
图2B为本发明实施例的另一种查询跟踪快递单号的方法的示意图,如图2B所示,用户A先在电商App、或备忘录、或网页、或其他第三方App中,对一个快递单号“30597097”进行复制,FIG. 2B is a schematic diagram of another method for querying a tracking delivery number according to an embodiment of the present invention. As shown in FIG. 2B, user A first in an e-commerce App, or a memo, or a webpage, or other third-party App, Courier number "30597097" is copied,
用户A的手机获知用户A的“复制”事件,自动获取剪贴板中的事件内容; User A's mobile phone learns the "copy" event of user A, and automatically acquires the event content in the clipboard;
确定所述事件内容包含快递单号;Determining that the event content includes a courier number;
自动查询该快递单号“30597097”的快递状态,建立一个订单跟踪卡片,并将该订单跟踪卡片保存在存储区域;Automatically query the express status of the courier number "30597097", create an order tracking card, and save the order tracking card in the storage area;
然后,当用户A点击“粘贴”该快递单号准备发送至用户B时;Then, when user A clicks "paste" the courier note number is ready to be sent to user B;
用户A的手机获知用户A的“粘贴”事件,自动判断用户A的手机的存储区域是否包含于与所述快递单号相关联的物流信息;User A's mobile phone learns the "paste" event of user A, and automatically determines whether the storage area of user A's mobile phone is included in the logistics information associated with the courier ticket number;
若包含,则提示用户手机中已保存快递单号“30597097”的跟踪状态卡片,是否需要添加并发送给用户B;If it is included, it prompts the user to save the tracking status card of the delivery order number "30597097" in the mobile phone, whether it needs to be added and sent to user B;
若接收到用户A的添加指示,则直接从存储区域中提取与所述快递单号相关联的物流信息添加在发送至用户B的物流信息中。If the addition instruction of the user A is received, the logistics information associated with the delivery order number is directly extracted from the storage area and added to the logistics information sent to the user B.
场景三:用户在收发即时消息时,手动输入一个快递单号Scenario 3: When the user sends and receives an instant message, manually enter a courier number
图2C为本发明实施例的另一种查询跟踪快递单号的方法的示意图,如图2C所示,用户A在即时通信App的聊天界面中手动输入快递单号“30597097”;2C is a schematic diagram of another method for querying a tracking delivery number according to an embodiment of the present invention. As shown in FIG. 2C, user A manually enters a courier number "30597097" in a chat interface of an instant messaging application;
用户A的手机获知用户A的“输入”事件,自动获取输入框中的事件内容;User A's mobile phone learns the "input" event of user A, and automatically acquires the event content in the input box;
确定所述事件内容包含快递单号,Determining that the event content includes a courier number,
自动查询该快递单号“30597097”的快递状态,建立一个订单跟踪卡片,显示当前最新的快递状态,并给用户以提示是否保存该跟踪卡片。Automatically query the courier status of the courier number "30597097", create an order tracking card, display the current latest courier status, and give the user a hint to save the tracking card.
场景四:通话过程包含快递单号Scene 4: The call process includes the courier number
图2D为本发明实施例的另一种查询跟踪快递单号的方法的示意图,如图2D所示,用户A和用户B打电话过程中,用户A告诉用户B一个快递单号“30597097”;2D is a schematic diagram of another method for querying and tracking a delivery number according to an embodiment of the present invention. As shown in FIG. 2D, during a call between user A and user B, user A tells user B that a delivery order number is “30597097”;
用户B的手机在后台对通话内容进行录制,并自动分析提取出快递单号“30597097”;User B's mobile phone records the content of the call in the background, and automatically analyzes and extracts the express delivery number "30597097";
自动查询该快递单号“30597097”的快递状态;Automatically check the express status of the courier number "30597097";
在用户A与用户B间通话结束后,自动将快递状态显示给用户,并提示用户是否生成跟踪卡片。After the call between user A and user B ends, the express status is automatically displayed to the user, and the user is prompted whether to generate a tracking card.
场景五:语音即时消息中包含快递单号Scenario 5: The voice instant message contains the courier number
图2E为本发明实施例的另一种查询跟踪快递单号的方法的示意图,如图2E所示,用户A通过即时消息APP给用户B发送了一条语音消息,语音 消息中包含了一个快递单号“30597097”;2E is a schematic diagram of another method for querying a tracking delivery number according to an embodiment of the present invention. As shown in FIG. 2E, user A sends a voice message to user B through an instant message APP. The message contains a courier number "30597097";
用户B的手机自动分析并提取即时语音消息中的快递单号“30597097”;User B's mobile phone automatically analyzes and extracts the express delivery number "30597097" in the instant voice message;
自动查询该快递单号“30597097”的快递状态;Automatically check the express status of the courier number "30597097";
将快递状态显示给用户,并提示用户是否生成跟踪卡片。Display the delivery status to the user and prompt the user to generate a tracking card.
由上可知,本发明实施例提供一种获取和呈现信息的方法,应用于一终端,获取用户触发的第一动作事件的事件内容;判断所述事件内容中是否包含快递单号;若确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。如此,由终端自动识别用户触发的事件中的快递单号,并直接将获取到的与快递单号相关联的物流信息显示在终端当前用户桌面上,供用户查看,使得当用户查看与快递单号相关的物流信息时,不需要打开服务网站、输入快递单号、点击查询进行相关信息查看;解决了现有快递单号查询跟踪过程中,需要用户手动进行多个步骤的操作查询快递单号而导致的操作过程复杂的问题。As can be seen from the above, the embodiment of the present invention provides a method for acquiring and presenting information, which is applied to a terminal, and acquires an event content of a first action event triggered by a user; and determines whether the content of the event includes a courier number; The event content includes the express delivery number, and the logistics information associated with the express delivery number is obtained; and the obtained logistics information associated with the express delivery number is displayed on the user interface of the terminal. In this way, the terminal automatically recognizes the courier ticket number in the event triggered by the user, and directly displays the obtained logistics information associated with the courier ticket number on the current user desktop of the terminal for the user to view, so that when the user views and expresses the courier No related information, no need to open the service website, enter the courier number, click on the query to view the relevant information; solve the existing courier number tracking tracking process, the user needs to manually perform multiple steps of the operation query express delivery number And the problem caused by the complicated operation process.
实施例二 Embodiment 2
图4为本发明实施例提供的一种终端,用于执行实施例一所述的方法,如图4所示,所述终端可以包括:FIG. 4 is a schematic diagram of a terminal according to an embodiment of the present invention, where the method is performed as shown in FIG.
获取单元201,用于获取用户触发的第一动作事件的事件内容。The obtaining unit 201 is configured to acquire event content of the first action event triggered by the user.
其中,所述第一动作事件可以为:用户根据需要在使用所述终端执行某种功能时产生,如:可以为复制、粘贴、语音通话、或者通过终端上的某应用程序(Application,App)软件与其他用户间收发即时消息、即时通讯中的任一事件。所述事件内容包含至少一个字符串。The first action event may be: when the user performs a certain function by using the terminal as needed, for example, it may be copying, pasting, voice calling, or passing an application (Application, App) on the terminal. The software sends and receives any event in instant messaging or instant messaging with other users. The event content includes at least one character string.
需要说明的是,获取单元201可以根据现有技术探测到用户触发的第一动作事件,在此不再一一赘述。It should be noted that the acquiring unit 201 can detect the first action event triggered by the user according to the prior art, and details are not described herein again.
判断单元202,用于判断所述获取单元201获取到的事件内容中是否包含快递单号。The determining unit 202 is configured to determine whether the courier number is included in the event content acquired by the acquiring unit 201.
所述获取单元201,还用于若所述判断单元202确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息。The obtaining unit 201 is further configured to: if the determining unit 202 determines that the event content includes a delivery order number, acquire the logistics information associated with the express delivery number.
显示单元203,用于将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。The display unit 203 is configured to display the acquired logistics information associated with the express delivery number on the user interface of the terminal.
具体的,所述判断单元202,可以用于: Specifically, the determining unit 202 can be used to:
查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段;Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
若所述快递单号特征库中存在第一个快递特征字段,且所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包含快递单号,且所述事件内容的快递单号为所述第一字符串。If the first courier feature field exists in the courier number feature database, and the first courier feature field matches the first character string included in the event content, determining that the event content includes a courier number And the express delivery number of the event content is the first character string.
所述快递单号特征库中的快递特征字段可以根据快递单号的特性统计出来的,可以用正则表达式表示。The express feature field in the express ticket number feature database may be counted according to the characteristics of the express delivery number, and may be represented by a regular expression.
优选的,可以按照快递单号特征库中快递特征字段的顺序,将所述快递单号特征库中的快递特征字段与内容字符串进行匹配,以确定所述事件内容是否包含快递单号。Preferably, the courier feature field in the courier number feature library is matched with the content string according to the order of the courier feature fields in the courier number feature library to determine whether the event content includes a courier number.
例如,采用正则表达式将各快递公司对应的快递单描述特征表示出来,形成如表1所示的快递单号特征库,当所述内容字符串包含有“^[0-9]{12}$”、“^[A-Z]{2}[0-9]{9}[A-Z]{2}$”、“^[a-zA-Z0-9]{10}$”、“^[0-9]{12}$”中任一种字符串时,则确定所述事件内容中包含快递单号。For example, using a regular expression to express the courier description features corresponding to each courier company, forming a courier number feature library as shown in Table 1, when the content string contains "^[0-9]{12} $", "^[AZ]{2}[0-9]{9}[AZ]{2}$","^[a-zA-Z0-9]{10}$","^[0- When any of the strings of 9]{12}$" is determined, the content of the event is included in the event content.
具体的,所述获取单元201,可以用于:Specifically, the obtaining unit 201 can be used to:
向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
其中,所述请求消息可以为:超文本传送协议(英文:hypertext transfer protocol,缩写:http)消息,通常情况下,请求消息携带有HTTP统一资源定位符(Uniform Resource Locator,URL)链接。The request message may be a hypertext transfer protocol (English: hypertext transfer protocol, abbreviated: http) message. Generally, the request message carries a HTTP Uniform Resource Locator (URL) link.
例如,可以通过RESTFUL格式的API进行查询:For example, you can query through the RESTFUL format API:
http://api.kuaidi100.com/api?id=[]&com=[]&nu=[]&valicode=[]&show=[0|1|2|3]&muti=[0|1]&order=[desc|asc]。Http://api.kuaidi100.com/api? Id=[]&com=[]&nu=[]&valicode=[]&show=[0|1|2|3]&muti=[0|1]&order=[desc|asc].
具体的,所述显示单元203,可以用于:Specifically, the display unit 203 can be used to:
将所述获取到的与所述快递单号相关联的物流信息直接显示在所述终端当前的用户界面上;And the obtained logistics information associated with the express delivery number is directly displayed on a current user interface of the terminal;
或者,在所述终端当前的用户界面上显示第一提示信息,接收所述用户根据所述第一提示信息发送的查看指令;将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上;Or displaying the first prompt information on the current user interface of the terminal, receiving a viewing instruction sent by the user according to the first prompt information; and collecting the acquired logistics information associated with the express delivery number Displayed on the current user interface of the terminal;
其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号 相关联的物流信息;所述查看指令用于查看与所述快递单号相关联的物流信息。The first prompt information is used to: notify the user that the express delivery number has been obtained. Associated logistics information; the viewing instructions are for viewing logistics information associated with the courier ticket number.
进一步的,本发明实施例中,所述显示单元203,还用于:Further, in the embodiment of the present invention, the display unit 203 is further configured to:
在将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上之后,在所述终端当前的用户界面上显示第二提示信息,其中,所述第二提示信息用于:指示所述用户是否生成跟踪卡片;After displaying the acquired logistics information associated with the express delivery number on the current user interface of the terminal, displaying second prompt information on the current user interface of the terminal, where the The second prompt information is used to: indicate whether the user generates a tracking card;
若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示给用户;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generation instruction sent by the user is received, generating a tracking card corresponding to the delivery order number and displaying the same to the user; the generating instruction is configured to: notify the terminal to generate a corresponding to the express delivery number Track cards.
进一步的,为了便于后续更快地获取到与快递单号相关联的物流信息,本发明实施例中,如图4A所示,所述终端还可以包括:Further, in order to facilitate the subsequent acquisition of the logistics information associated with the delivery number, the terminal may further include:
存储单元204,用于将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;The storage unit 204 is configured to store the acquired logistics information associated with the express delivery number in a storage area of the terminal, wherein the storage area includes: logistics information associated with the express delivery number Correspondence with the express delivery number;
所述获取单元201,还用于当所述判断单元202确定第二动作事件的事件内容中包含所述快递单号时,查询所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息;The obtaining unit 201 is further configured to: when the determining unit 202 determines that the event content of the second action event includes the courier number, query the storage area, and directly obtain the courier from the storage area Logistics information associated with the single number;
所述显示单元203,还用于将所述获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。The display unit 203 is further configured to display the acquired logistics information associated with the express delivery number on a user interface of the terminal.
其中,所述存储区域可以为终端存储器(如内存或硬盘)中预先开辟的一缓冲区。The storage area may be a buffer that is pre-opened in a terminal memory such as a memory or a hard disk.
需要说明的是,本发明实施例中,为了保证存储到存储区域中的相关信息为当前最新信息,可选的,所述将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中可以包括:It should be noted that, in the embodiment of the present invention, in order to ensure that the related information stored in the storage area is the current latest information, optionally, the obtained logistics information associated with the express delivery number is stored in the The storage area of the terminal may include:
若所述存储区域中已存储有与所述快递单号相关联的物流信息,则将获取到的与所述快递单号相关联的物流信息替换掉已存储的与所述快递单号相关联的物流信息。If the logistics information associated with the delivery order number is already stored in the storage area, the acquired logistics information associated with the delivery order number is replaced with the stored stored association number associated with the delivery order number. Logistics information.
如此,将获取到的物流信息进行存储,当用户再次触发获取时,直接从存储区域获取并显示,以缩短获取物流信息的时间。In this way, the acquired logistics information is stored, and when the user triggers the acquisition again, it is directly acquired and displayed from the storage area to shorten the time for obtaining the logistics information.
由上可知,本发明实施例提供一种终端,获取用户触发的第一动作事件的事件内容;判断所述事件内容中是否包含快递单号;若确定所述事件内容 中包含快递单号,则获取与所述快递单号相关联的物流信息;将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。如此,由终端自动识别用户触发的事件中的快递单号,并直接将获取到的与快递单号相关联的物流信息显示在终端当前用户桌面上,供用户查看,使得当用户查看与快递单号相关的物流信息时,不需要打开服务网站、输入快递单号、点击查询进行相关信息查看;解决了现有快递单号查询跟踪过程中,需要用户手动进行多个步骤的操作查询快递单号而导致的操作过程复杂的问题。As can be seen from the above, an embodiment of the present invention provides a terminal, which acquires an event content of a first action event triggered by a user, and determines whether the event content includes a courier number; if the event content is determined The delivery order number is included, and the logistics information associated with the delivery order number is obtained; and the obtained logistics information associated with the delivery order number is displayed on the user interface of the terminal. In this way, the terminal automatically recognizes the courier ticket number in the event triggered by the user, and directly displays the obtained logistics information associated with the courier ticket number on the current user desktop of the terminal for the user to view, so that when the user views and expresses the courier No related information, no need to open the service website, enter the courier number, click on the query to view the relevant information; solve the existing courier number tracking tracking process, the user needs to manually perform multiple steps of the operation query express delivery number And the problem caused by the complicated operation process.
实施例三Embodiment 3
图5为本发明实施例提供的一种终端的结构图,可以用于实施上述方法实施例一所示的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照上述方法实施例中的描述。FIG. 5 is a structural diagram of a terminal according to an embodiment of the present disclosure, which may be used to implement the method shown in Embodiment 1 of the foregoing method. For ease of description, only parts related to the embodiment of the present invention are shown, and specific technical details are provided. For unexplained, please refer to the description in the above method embodiment.
该终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等,本发明实施例以终端为手机为例进行说明,图5示出的是与本发明各实施例相关的手机30的部分结构的框图。The terminal can be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like. To be explained, FIG. 5 is a block diagram showing a partial configuration of a cellular phone 30 related to various embodiments of the present invention.
如图5所示,手机30包括:触摸屏301、存储器302以及处理器303等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 5, the mobile phone 30 includes components such as a touch screen 301, a memory 302, and a processor 303. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图5对手机30的各个构成部件进行具体的介绍:The components of the mobile phone 30 will be specifically described below with reference to FIG. 5:
触摸屏301称为触控显示面板,用于实现手机30的输入和输出功能。可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏301上或在触摸屏301附近的操作),并根据预先设定的程式驱动相应的连接装置,还可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。可选的,触摸屏301可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器303,并能接收处理器303发来的命令并加以执行,当触摸屏301检测到在其上或附近的触摸操作后,传送给处理器303以确定触摸事件的类型,随后处理器303根据触摸事件的类型在显示屏301上提供相应的视觉输出。此外,可以采用电阻式、 电容式、红外线以及表面声波等多种类型实现触摸屏301。The touch screen 301 is referred to as a touch display panel for implementing input and output functions of the mobile phone 30. A touch operation on or near the user may be collected (such as an operation of the user using a finger, a stylus, or the like on the touch screen 301 or in the vicinity of the touch screen 301), and the corresponding connection is driven according to a preset program. The device can also be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. Alternatively, the touch screen 301 may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 303 is configured to receive commands from the processor 303 and execute them. When the touch screen 301 detects a touch operation on or near the touch screen 301, it transmits to the processor 303 to determine the type of the touch event, and then the processor 303 A corresponding visual output is provided on display 301 depending on the type of touch event. In addition, it can be resistive, The touch screen 301 is implemented in various types such as a capacitive type, an infrared ray, and a surface acoustic wave.
存储器302可用于存储数据、软件程序以及模块;主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机30的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 302 can be used to store data, software programs, and modules; and mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.) The storage data area can store data (such as audio data, image data, phone book, etc.) created according to the use of the mobile phone 30, and the like. Moreover, memory 302 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器303是手机30的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器302内的软件程序和/或模块,以及调用存储在存储器302内的数据,执行手机30的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器303可包括一个或多个处理单元;优选的,处理器303可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器303中。The processor 303 is the control center of the handset 30, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 302, and recalling data stored in the memory 302, The various functions and processing data of the mobile phone 30 are performed to perform overall monitoring of the mobile phone. Optionally, the processor 303 may include one or more processing units; preferably, the processor 303 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 303.
尽管未示出,手机30还可以包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块、各个部件供电的电源(比如电池)等,在此不再赘述。Although not shown, the mobile phone 30 may further include a wireless (wireless fidelity) module, a Bluetooth module, a power source (such as a battery) powered by various components, and the like, and details are not described herein.
处理器303,用于获取用户触发的第一动作事件的事件内容。The processor 303 is configured to acquire event content of the first action event triggered by the user.
其中,所述动作事件可以为:用户根据需要在使用所述终端执行某种功能时产生,如:可以为复制、粘贴、信息输入、语音通话、或者通过终端上的某应用程序(Application,App)软件与其他用户间进行即时通讯中的任一事件。所述事件内容包含至少一个字符串。The action event may be: when the user performs a certain function by using the terminal as needed, for example, it may be copy, paste, information input, voice call, or through an application on the terminal (Application, App) ) Any event in the instant messaging between the software and other users. The event content includes at least one character string.
需要说明的是,处理器303可以根据现有技术探测到用户触发的第一动作事件,在此不再一一赘述。It should be noted that the processor 303 can detect the first action event triggered by the user according to the prior art, and details are not described herein again.
处理器303,还用于判断所述处理器303获取到的事件内容中是否包含快递单号。The processor 303 is further configured to determine whether the content of the event acquired by the processor 303 includes a courier number.
所述处理器303,还用于若所述处理器303确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息。The processor 303 is further configured to: if the processor 303 determines that the event content includes a courier number, obtain the logistics information associated with the courier number.
将获取到的与所述快递单号相关联的物流信息推送至所述显示屏301。The acquired logistics information associated with the courier ticket number is pushed to the display screen 301.
具体的,所述处理器303,可以用于:Specifically, the processor 303 can be configured to:
查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段; Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
若所述快递单号特征库中存在第一个快递特征字段,且所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包含快递单号,且所述事件内容的快递单号为所述第一字符串。If the first courier feature field exists in the courier number feature database, and the first courier feature field matches the first character string included in the event content, determining that the event content includes a courier number And the express delivery number of the event content is the first character string.
所述快递单号特征库中的快递特征字段可以根据快递单号的特性统计出来的,可以用正则表达式表示。The express feature field in the express ticket number feature database may be counted according to the characteristics of the express delivery number, and may be represented by a regular expression.
优选的,可以按照快递单号特征库中快递特征字段的顺序,将所述快递单号特征库中的快递特征字段与内容字符串进行匹配,以确定所述事件内容是否包含快递单号。Preferably, the courier feature field in the courier number feature library is matched with the content string according to the order of the courier feature fields in the courier number feature library to determine whether the event content includes a courier number.
例如,采用正则表达式将各快递公司对应的快递单描述特征表示出来,形成如表1所示的快递单号特征库,当所述内容字符串包含有“^[0-9]{12}$”、“^[A-Z]{2}[0-9]{9}[A-Z]{2}$”、“^[a-zA-Z0-9]{10}$”、“^[0-9]{12}$”中任一种字符串时,则确定所述事件内容中包含快递单号。For example, using a regular expression to express the courier description features corresponding to each courier company, forming a courier number feature library as shown in Table 1, when the content string contains "^[0-9]{12} $", "^[AZ]{2}[0-9]{9}[AZ]{2}$","^[a-zA-Z0-9]{10}$","^[0- When any of the strings of 9]{12}$" is determined, the content of the event is included in the event content.
具体的,所述处理器303,可以用于:Specifically, the processor 303 can be configured to:
向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
其中,所述请求消息可以为:超文本传送协议(英文:hypertext transfer protocol,缩写:http)消息,通常情况下,请求消息携带有HTTP统一资源定位符(Uniform Resource Locator,URL)链接。The request message may be a hypertext transfer protocol (English: hypertext transfer protocol, abbreviated: http) message. Generally, the request message carries a HTTP Uniform Resource Locator (URL) link.
例如,可以通过RESTFUL格式的API进行查询:For example, you can query through the RESTFUL format API:
http://api.kuaidi100.com/api?id=[]&com=[]&nu=[]&valicode=[]&show=[0|1|2|3]&muti=[0|1]&order=[desc|asc]。Http://api.kuaidi100.com/api? Id=[]&com=[]&nu=[]&valicode=[]&show=[0|1|2|3]&muti=[0|1]&order=[desc|asc].
具体的,所述处理器303,可以用于:Specifically, the processor 303 can be configured to:
将所述获取到的与所述快递单号相关联的物流信息直接显示在所述显示屏301当前的用户界面上;And the obtained logistics information associated with the express delivery number is directly displayed on a current user interface of the display screen 301;
或者,在所述终端当前的用户界面上显示第一提示信息,接收所述用户根据所述第一提示信息发送的查看指令;将所述获取到的与所述快递单号相关联的物流信息显示在所述显示屏301当前的用户界面上;Or displaying the first prompt information on the current user interface of the terminal, receiving a viewing instruction sent by the user according to the first prompt information; and collecting the acquired logistics information associated with the express delivery number Displayed on the current user interface of the display screen 301;
其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号相关联的物流信息;所述查看指令用于查看与所述快递单号相关联的物流信息。 The first prompt information is used to: notify the user that the logistics information associated with the express delivery number has been obtained; and the viewing instruction is used to view the logistics information associated with the express delivery number.
进一步的,本发明实施例中,所述处理器303,还用于:Further, in the embodiment of the present invention, the processor 303 is further configured to:
在将所述获取到的与所述快递单号相关联的物流信息显示在所述显示屏301上之后,在所述显示屏301上显示第二提示信息,其中,所述第二提示信息用于:指示所述用户是否生成跟踪卡片;After displaying the acquired logistics information associated with the express delivery number on the display screen 301, displaying second prompt information on the display screen 301, wherein the second prompt information is used In: indicating whether the user generates a tracking card;
若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示在显示屏301上;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generating instruction sent by the user is received, generating a tracking card corresponding to the courier number and displaying it on the display screen 301; the generating instruction is used to: notify the terminal to generate the courier number Corresponding tracking card.
进一步的,为了便于后续更快地获取到与快递单号相关联的物流信息,本发明实施例中,所述处理器303,还用于:Further, in order to facilitate the subsequent acquisition of the logistics information associated with the delivery number, the processor 303 is further configured to:
将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;The obtained logistics information associated with the express delivery number is stored in a storage area of the terminal, wherein the storage area includes: logistics information associated with the express delivery number and the express delivery number Correspondence relationship;
当所述终端确定第二动作事件的事件内容中包含所述快递单号时,查询所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息When the terminal determines that the event content of the second action event includes the courier ticket number, querying the storage area, and directly acquiring logistics information associated with the courier ticket number from the storage area
将所述获取到的与所述快递单号相关联的物流信息显示在所述显示屏301上。The acquired logistics information associated with the courier ticket number is displayed on the display screen 301.
其中,所述存储区域可以为终端存储器(如内存或硬盘)中预先开辟的一缓冲区。The storage area may be a buffer that is pre-opened in a terminal memory such as a memory or a hard disk.
需要说明的是,本发明实施例中,为了保证存储到存储区域中的相关信息为当前最新信息,可选的,所述将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中可以包括:It should be noted that, in the embodiment of the present invention, in order to ensure that the related information stored in the storage area is the current latest information, optionally, the obtained logistics information associated with the express delivery number is stored in the The storage area of the terminal may include:
若所述存储区域中已存储有与所述快递单号相关联的物流信息,则将获取到的与所述快递单号相关联的物流信息替换掉已存储的与所述快递单号相关联的物流信息。If the logistics information associated with the delivery order number is already stored in the storage area, the acquired logistics information associated with the delivery order number is replaced with the stored stored association number associated with the delivery order number. Logistics information.
如此,将获取到的物流信息进行存储,当用户再次触发获取时,直接从存储区域获取并显示,以缩短获取物流信息的时间。In this way, the acquired logistics information is stored, and when the user triggers the acquisition again, it is directly acquired and displayed from the storage area to shorten the time for obtaining the logistics information.
由上可知,本发明实施例提供一种终端,获取用户触发的第一动作事件的事件内容;判断所述事件内容中是否包含快递单号;若确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。如此,由终 端自动识别用户触发的事件中的快递单号,并直接将获取到的与快递单号相关联的物流信息显示在终端当前用户桌面上,供用户查看,使得当用户查看与快递单号相关的物流信息时,不需要打开服务网站、输入快递单号、点击查询进行相关信息查看;解决了现有快递单号查询跟踪过程中,需要用户手动进行多个步骤的操作查询快递单号而导致的操作过程复杂的问题。As can be seen from the above, an embodiment of the present invention provides a terminal, which acquires an event content of a first action event triggered by a user, and determines whether the event content includes a courier ticket number; if it is determined that the event content includes a courier ticket number, Obtaining logistics information associated with the courier ticket number; displaying the obtained logistics information associated with the courier ticket number on a user interface of the terminal. So, by the end The terminal automatically recognizes the courier number in the event triggered by the user, and directly displays the obtained logistics information associated with the courier number on the desktop of the current user of the terminal for the user to view, so that when the user views the courier number associated with the courier number When logistics information, you do not need to open the service website, enter the courier number, click on the query to view related information; solve the problem of the existing courier number tracking process, the user needs to manually perform multiple steps to query the courier number. The problem of complicated operation.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的单元和***的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-mentioned unit and system can refer to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的***,设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,网络节点或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, network node or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional units described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform portions of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件(例如处理器)来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器、随机存储器、磁盘或光盘等。One of ordinary skill in the art can understand all or part of the various methods of the above embodiments. The program may be implemented by instructing related hardware (for example, a processor), and the program may be stored in a computer readable storage medium, and the storage medium may include: a read only memory, a random access memory, a magnetic disk or an optical disk.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (14)

  1. 一种获取和呈现信息的方法,其特征在于,所述方法包括:A method of acquiring and presenting information, the method comprising:
    终端获取用户触发的第一动作事件的事件内容;The terminal acquires an event content of the first action event triggered by the user;
    所述终端判断所述事件内容中是否包含快递单号;Determining, by the terminal, whether the content of the event includes a courier number;
    若所述终端确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;If the terminal determines that the event content includes a courier ticket number, acquiring logistics information associated with the courier ticket number;
    所述终端将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。The terminal displays the acquired logistics information associated with the express delivery number on the user interface of the terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述事件内容包含至少一个字符串;所述判断所述事件内容中是否包含快递单号具体包括:The method according to claim 1, wherein the event content includes at least one character string; and determining whether the event content includes the courier number includes:
    查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段;Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
    若所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包含快递单号,且所述事件内容的快递单号为所述第一字符串。If the first courier feature field matches the first character string included in the event content, determining that the event content includes a courier number, and the courier number of the event content is the first string .
  3. 根据权利要求1或2所述的方法,其特征在于,所述获取与所述快递单号相关联的物流信息具体包括:The method according to claim 1 or 2, wherein the obtaining the logistics information associated with the express delivery number comprises:
    向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
    接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
  4. 根据权利要求3所述的方法,其特征在于,所述将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上包括:The method according to claim 3, wherein the displaying the obtained logistics information associated with the courier ticket number on the user interface of the terminal comprises:
    将所述获取到的与所述快递单号相关联的物流信息直接显示在所述终端当前的用户界面上; And the obtained logistics information associated with the express delivery number is directly displayed on a current user interface of the terminal;
    或者,在所述终端当前的用户界面上显示第一提示信息,接收所述用户根据所述第一提示信息发送的查看指令;将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上;Or displaying the first prompt information on the current user interface of the terminal, receiving a viewing instruction sent by the user according to the first prompt information; and collecting the acquired logistics information associated with the express delivery number Displayed on the current user interface of the terminal;
    其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号相关联的物流信息;所述查看指令用于查看与所述快递单号相关联的物流信息。The first prompt information is used to: notify the user that the logistics information associated with the express delivery number has been obtained; and the viewing instruction is used to view the logistics information associated with the express delivery number.
  5. 根据权利要求1所述的方法,其特征在于,在将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上之后,所述方法还包括:The method according to claim 1, wherein after the obtained logistics information associated with the courier ticket number is displayed on the current user interface of the terminal, the method further includes:
    在所述终端当前的用户界面上显示第二提示信息,其中,所述第二提示信息用于:指示所述用户是否生成跟踪卡片;Displaying second prompt information on the current user interface of the terminal, where the second prompt information is used to: indicate whether the user generates a tracking card;
    若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示给所述用户;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generation instruction sent by the user is received, generating a tracking card corresponding to the delivery order number and displaying the same to the user; and the generating instruction is used to: notify the terminal to generate a number corresponding to the express delivery number Corresponding tracking card.
  6. 根据权利要求1所述的方法,其特征在于,在获取与所述快递单号相关联的物流信息之后,所述方法还包括:The method of claim 1 wherein after obtaining the logistics information associated with the courier ticket number, the method further comprises:
    所述终端将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;The terminal stores the acquired logistics information associated with the express delivery number in a storage area of the terminal, wherein the storage area includes: the logistics information associated with the express delivery number is the same as Correspondence of the express delivery number;
    当所述终端确定第二动作事件的事件内容中包含所述快递单号时,查询所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息;When the terminal determines that the event content of the second action event includes the courier ticket number, querying the storage area, and directly acquiring the logistics information associated with the courier ticket number from the storage area;
    并将所述获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。And the obtained logistics information associated with the express delivery number is displayed on a user interface of the terminal.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一动作事件为下述任一种事件:The method according to any one of claims 1 to 6, wherein the first action event is any one of the following events:
    粘贴、复制、通话、收发即时消息。Paste, copy, call, send and receive instant messages.
  8. 一种终端,其特征在于,包括: A terminal, comprising:
    获取单元,用于获取用户触发的第一动作事件的事件内容;An obtaining unit, configured to acquire an event content of a first action event triggered by a user;
    判断单元,用于判断所述获取单元获取到的事件内容中是否包含快递单号;a determining unit, configured to determine whether the content of the event obtained by the acquiring unit includes a courier number;
    所述获取单元,还用于若所述判断单元确定所述事件内容中包含快递单号,则获取与所述快递单号相关联的物流信息;The obtaining unit is further configured to: if the determining unit determines that the event content includes a courier number, acquire the logistics information associated with the courier ticket number;
    显示单元,用于将获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。And a display unit, configured to display the acquired logistics information associated with the express delivery number on a user interface of the terminal.
  9. 根据权利要求8所述的终端,其特征在于,所述事件内容包含至少一个字符串;所述判断单元,具体用于:The terminal according to claim 8, wherein the event content includes at least one character string; the determining unit is specifically configured to:
    查询预设的快递单号特征库;其中,所述快递单号特征库存储有至少一个快递特征字段;Querying a preset express ticket number feature library; wherein the express ticket number feature inventory stores at least one express feature field;
    若所述快递单号特征库中存在第一个快递特征字段,且所述第一快递特征字段与所述事件内容包含的第一字符串相匹配,则确定所述事件内容中包含快递单号,且所述事件内容的快递单号为所述第一字符串。If the first courier feature field exists in the courier number feature database, and the first courier feature field matches the first character string included in the event content, determining that the event content includes a courier number And the express delivery number of the event content is the first character string.
  10. 根据权利要求8或9所述的终端,其特征在于,所述获取单元,具体用于:The terminal according to claim 8 or 9, wherein the obtaining unit is specifically configured to:
    向服务器端发送包含所述快递单号的请求消息,其中,所述请求消息用于请求与所述快递单号相关联的物流信息;Sending, to the server, a request message including the courier ticket number, wherein the request message is used to request logistics information associated with the courier ticket number;
    接收所述服务器端发送的与所述快递单号相关联的物流信息。Receiving the logistics information sent by the server end and associated with the courier ticket number.
  11. 根据权利要求10所述的终端,其特征在于,所述显示单元,具体用于:The terminal according to claim 10, wherein the display unit is specifically configured to:
    将所述获取到的与所述快递单号相关联的物流信息直接显示在所述终端当前的用户界面上;And the obtained logistics information associated with the express delivery number is directly displayed on a current user interface of the terminal;
    或者,在所述终端当前的用户界面上显示第一提示信息,接收所述用户根据所述第一提示信息发送的查看指令;将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上;Or displaying the first prompt information on the current user interface of the terminal, receiving a viewing instruction sent by the user according to the first prompt information; and collecting the acquired logistics information associated with the express delivery number Displayed on the current user interface of the terminal;
    其中,所述第一提示信息用于:通知所述用户已获取到与所述快递单号相关联的物流信息;所述查看指令用于查看与所述快递单号相关联的物流信息。 The first prompt information is used to: notify the user that the logistics information associated with the express delivery number has been obtained; and the viewing instruction is used to view the logistics information associated with the express delivery number.
  12. 根据权利要求8所述的终端,其特征在于,所述显示单元,还用于:The terminal according to claim 8, wherein the display unit is further configured to:
    在将所述获取到的与所述快递单号相关联的物流信息显示在所述终端当前的用户界面上之后,在所述终端当前的用户界面上显示第二提示信息,其中,所述第二提示信息用于:指示所述用户是否生成跟踪卡片;After displaying the acquired logistics information associated with the express delivery number on the current user interface of the terminal, displaying second prompt information on the current user interface of the terminal, where the The second prompt information is used to: indicate whether the user generates a tracking card;
    若接收到所述用户发送的生成指令,则生成与所述快递单号相对应的跟踪卡片并显示给所述用户;所述生成指令用于:通知所述终端生成与所述快递单号相对应的跟踪卡片。And if the generation instruction sent by the user is received, generating a tracking card corresponding to the delivery order number and displaying the same to the user; and the generating instruction is used to: notify the terminal to generate a number corresponding to the express delivery number Corresponding tracking card.
  13. 根据权利要求8所述的终端,其特征在于,所述终端还包括:The terminal according to claim 8, wherein the terminal further comprises:
    存储单元,用于在所述获取单元获取到与所述快递单号相关联的物流信息之后,将获取到的与所述快递单号相关联的物流信息存储在所述终端的存储区域中,其中,所述存储区域包含:与所述快递单号相关联的物流信息同所述快递单号的对应关系;a storage unit, configured to: after the obtaining unit acquires the logistics information associated with the express delivery number, store the acquired logistics information associated with the express delivery number in a storage area of the terminal, The storage area includes: a correspondence between the logistics information associated with the express delivery number and the express delivery number;
    所述获取单元,还用于当所述判断单元确定第二动作事件的事件内容中包含所述快递单号时,查询所述存储区域,直接从所述存储区域中获取与所述快递单号相关联的物流信息;The obtaining unit is further configured to: when the determining unit determines that the event content of the second action event includes the courier number, query the storage area, and directly obtain the courier number from the storage area Associated logistics information;
    所述显示单元,还用于将所述获取到的与所述快递单号相关联的物流信息显示在所述终端的用户界面上。The display unit is further configured to display the acquired logistics information associated with the express delivery number on a user interface of the terminal.
  14. 根据权利要求8-13任一项所述的终端,其特征在于,所述第一动作事件为下述任一种事件:The terminal according to any one of claims 8 to 13, wherein the first action event is any one of the following events:
    粘贴、复制、通话、收发即时消息。 Paste, copy, call, send and receive instant messages.
PCT/CN2016/098116 2015-09-08 2016-09-05 Method and terminal for acquiring and presenting information WO2017041681A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510567965.3 2015-09-08
CN201510567965.3A CN106503933A (en) 2015-09-08 2015-09-08 A kind of acquisition and the method and terminal of presentation information

Publications (1)

Publication Number Publication Date
WO2017041681A1 true WO2017041681A1 (en) 2017-03-16

Family

ID=58239100

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/098116 WO2017041681A1 (en) 2015-09-08 2016-09-05 Method and terminal for acquiring and presenting information

Country Status (2)

Country Link
CN (1) CN106503933A (en)
WO (1) WO2017041681A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223023A (en) * 2019-06-13 2019-09-10 圆通速递有限公司 A kind of express delivery tracking system
CN111008797A (en) * 2018-10-08 2020-04-14 菜鸟智能物流控股有限公司 Logistics object management method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399940A (en) * 2017-12-28 2018-08-14 嘉兴太美医疗科技有限公司 A safety message reports tracking and system
CN111724088A (en) * 2019-03-19 2020-09-29 阿里巴巴集团控股有限公司 Method and device for providing order information and electronic equipment
CN111861328B (en) * 2020-07-21 2022-04-08 上海寻梦信息技术有限公司 Method for establishing logistics identification library, and logistics track query updating method and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040030572A1 (en) * 2002-05-03 2004-02-12 Helen Campbell Same day product and document delivery management system and process
US20040117196A1 (en) * 2002-12-13 2004-06-17 Brockman Gary B. Method and apparatus for supporting delivery, sale and billing of perishable and time-sensitive goods such as newspapers, periodicals and direct marketing and promotional materials
CN102479218A (en) * 2010-11-30 2012-05-30 深圳市金蝶友商电子商务服务有限公司 Method and server for express query based on API (Application Program Interface)
CN103902682A (en) * 2014-03-21 2014-07-02 百度在线网络技术(北京)有限公司 Information inquiry method and device
CN104035962A (en) * 2014-05-09 2014-09-10 北京奇虎科技有限公司 Express state information query method and device
CN104484349A (en) * 2014-11-28 2015-04-01 小米科技有限责任公司 Progress enquiring method, device and terminal
CN104809155A (en) * 2015-03-24 2015-07-29 小米科技有限责任公司 Method and device for automatically inquiring service note numbers

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530751B (en) * 2013-10-09 2017-12-22 北京奇虎科技有限公司 The method and device of waybill is provided
CN104850971B (en) * 2014-02-13 2021-03-12 腾讯科技(深圳)有限公司 Correlation method and device of order information and logistics information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040030572A1 (en) * 2002-05-03 2004-02-12 Helen Campbell Same day product and document delivery management system and process
US20040117196A1 (en) * 2002-12-13 2004-06-17 Brockman Gary B. Method and apparatus for supporting delivery, sale and billing of perishable and time-sensitive goods such as newspapers, periodicals and direct marketing and promotional materials
CN102479218A (en) * 2010-11-30 2012-05-30 深圳市金蝶友商电子商务服务有限公司 Method and server for express query based on API (Application Program Interface)
CN103902682A (en) * 2014-03-21 2014-07-02 百度在线网络技术(北京)有限公司 Information inquiry method and device
CN104035962A (en) * 2014-05-09 2014-09-10 北京奇虎科技有限公司 Express state information query method and device
CN104484349A (en) * 2014-11-28 2015-04-01 小米科技有限责任公司 Progress enquiring method, device and terminal
CN104809155A (en) * 2015-03-24 2015-07-29 小米科技有限责任公司 Method and device for automatically inquiring service note numbers

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008797A (en) * 2018-10-08 2020-04-14 菜鸟智能物流控股有限公司 Logistics object management method and device
CN111008797B (en) * 2018-10-08 2024-04-09 菜鸟智能物流控股有限公司 Logistics object management method and device
CN110223023A (en) * 2019-06-13 2019-09-10 圆通速递有限公司 A kind of express delivery tracking system

Also Published As

Publication number Publication date
CN106503933A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
WO2017041681A1 (en) Method and terminal for acquiring and presenting information
CN106357517B (en) Directional label generation method and device
US9961129B2 (en) Business transaction correlation with client request monitoring data
US9559992B2 (en) System and method for updating information in an instant messaging application
TWI677225B (en) Instant messaging implementation method and device
CN108112270B (en) Providing collaborative communication tools within a document editor
CN106470110B (en) Method and device for sending messages to multiple users in user list in group mode
JP6522129B2 (en) Information processing method and device
CN107391579B (en) Method and device for searching account
JP2018506793A (en) Method, apparatus, system and computer program for providing a rich menu of official accounts in an instant messaging service
CN110022399B (en) Message display method and device, user terminal and readable storage medium
CN105426103A (en) Message editing method and device on mobile terminal
WO2018107575A1 (en) Modification reminder method, device, and terminal, and storage medium
WO2018205577A1 (en) File sending in instant messaging application
CN111814033A (en) Method, device, equipment and storage medium for determining delivered medium information
WO2014176896A1 (en) System and method for updating information in an instant messaging application
US20200007488A1 (en) Message Notification Method and Terminal
CN108073613A (en) Method for sending information and device
US11271884B2 (en) Providing social insight in email
CN109951380B (en) Method, electronic device, and computer-readable medium for finding conversation messages
CN107508745A (en) The association input method and device and computing device of prompting message
CN109739409A (en) A kind of method, apparatus and terminal device of batch processing
CN111147353B (en) Method and device for identifying friend, computer storage medium and electronic equipment
CN112288452B (en) Advertisement previewing method and device, electronic equipment and storage medium
CN114022300A (en) Social dynamic information publishing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16843619

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16843619

Country of ref document: EP

Kind code of ref document: A1