Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below
It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only
It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of querying method flow chart of express waybill number provided in an embodiment of the present invention, and this method is transported by express delivery
The inquiry unit of odd numbers executes, which can be realized that the device can be only fitted to terminal device by software and/or hardware
In, this method can be applied in the scene of user query express waybill number.
As shown in Figure 1, technical solution provided in an embodiment of the present invention includes:
S110, the first character string for receiving the first express delivery identification code, the first character string are the part of the first express delivery identification code
Content.
Optionally, the first express delivery identification code and the subsequent second express delivery identification code and target express delivery identification code are
Cell-phone number;Correspondingly, the first character string is the portion numbers of cell-phone number, for example, the first character string is last four of cell-phone number
Number.
In other embodiments, the first express delivery identification code, the second express delivery identification code and target express delivery identification code, are also possible to
The information such as home Tel, identification card number.
S120, the first character string is sent to server.
S130, one or more the second express delivery identification code that server is returned according to the first character string, the second express delivery are received
Identification code includes the first character string.
Optionally, S130 is specifically included:
The identification code list that returns according to the first character string of server is received, includes one or more the in identification code list
Two express delivery identification codes, the second express delivery identification code include the first character string.
Further, the second express delivery identification code in identification code list uses time and/or frequency of use by newest
Sequence is enumerated.
In embodiments of the present invention, courier user is when inquiring express waybill by mobile phone terminal, the reception of mobile phone terminal
Last four numbers for the cell-phone number that user inputs in query frame, and last four numbers are sent to server.
Server inquires tail number and corresponds to whole cell-phone numbers of last four numbers according to last four numbers, and presses
Newest for express delivery enumerates the cell-phone number sequence inquired using the time, and/or by the use for express delivery
Frequency enumerates the cell-phone number sequence inquired, and the cell-phone number sequentially enumerated is sent to mobile phone in the form of cell-phone number list
End, wherein include one or more cell-phone numbers in cell-phone number list.
Mobile phone terminal receives the cell-phone number list that server is sent, and cell-phone number list is shown, user can be from the mobile phone of displaying
In number list, the target mobile phones number for wanting inquiry are selected.
S140, the target express delivery identification code for selecting user from one or more second express delivery identification codes, are sent to clothes
Business device.
In embodiments of the present invention, mobile phone terminal operates according to the user's choice, and the target mobile phones number of user's selection are sent
To server.
Server inquires express waybill corresponding with target mobile phones number according to the incidence relation of cell-phone number and express waybill number
Number, and the information page of the express waybill number inquired and the express waybill number is sent to mobile phone terminal.
S150, the express waybill number that server is returned according to target express delivery identification code is received.
In embodiments of the present invention, mobile phone terminal receives the express waybill number and information page that server returns, and showing should
The information page of express waybill number, user can update the up-to-date information of express mail in information page, such as listings, send part information
Deng.
A kind of querying method of express waybill number provided in an embodiment of the present invention passes through the first word of the first express delivery identification code
Symbol string, from server inquiry obtain include first character string the second express delivery identification code, then by from the second express delivery identify
The target express delivery identification code selected in code inquires corresponding express waybill number from server, wherein the first character string is first fast
Pass the partial content of identification code.User need to only input the first shorter character string, and the selection target from the second express delivery identification code
Express delivery identification code, can quick search express waybill number, method compared with prior art, when user query express waybill inputs
Simple and quick, search efficiency is high.
Fig. 2 is a kind of querying method of express waybill number provided in an embodiment of the present invention, as shown in Fig. 2, the present invention is implemented
Example provide technical solution include:
S210, the first character string for receiving the first express delivery identification code, the first character string are the part of the first express delivery identification code
Content.
S220, starting timing.
S230, interior the second character string for detecting whether to receive user's input when pre-designed, if being not received by use
Second character string of family input, then execute following S240;If there is receiving the second character string of user's input, then execute following
S280。
Optionally, the second character string includes at least one character.
In embodiments of the present invention, on the basis of the above embodiments, increase by a timing strategy.When mobile phone terminal receives use
When the cell-phone number of family input is four last, timing strategy is executed, starts countdown.For example, in countdown 1 second, mobile phone terminal inspection
Whether survey user, which has, is continued to input character, if being not received by the character of user's input, determines that user wants using cell-phone number
Last four are inquired, and following S240 are executed, and are sent to server for cell-phone number last four of user's input;If there is connecing
The character for receiving user's input then determines that user wants to inquire using complete target mobile phones number, executes following S280.
S240, the first character string is sent to server.
S250, one or more the second express delivery identification code that server is returned according to the first character string, the second express delivery are received
Identification code includes the first character string.
S260, the target express delivery identification code for selecting user from one or more second express delivery identification codes, are sent to clothes
Business device.
S270, the express waybill number that server is returned according to target express delivery identification code is received.
S280, it waits user to input target express delivery identification code, and target express delivery identification code is sent to server, in execution
State S270.
In embodiments of the present invention, it when having the character for receiving user's input in countdown 1 second when mobile phone terminal, waits stand-by
Family continues to input complete target mobile phones number, and the complete target mobile phones number that user inputs are sent to server.
Server inquires express delivery corresponding with target mobile phones number according to the incidence relation between cell-phone number and express waybill number
Air Way Bill No., and the information page of the express waybill number inquired and the express waybill number is sent to mobile phone terminal.
Mobile phone terminal receives the express waybill number and information page that server returns, and shows the information page of the express waybill number
Face, user can update the up-to-date information of express mail in information page, such as listings, send part information etc..
Technical solution provided in an embodiment of the present invention inputs the pre-designed of the first character string in user by timing strategy
When it is interior, mobile phone terminal detection user whether have continues input character, if be not received by user input character, determine user
Want to be inquired using the first character string, the inquiry mode for only inputting the first character string is provided for user;If there is receiving use
The character of family input then determines that user wants to inquire using complete target express delivery identification code, and providing for user need to input
The inquiry mode of whole target express delivery identification code.
It optionally, on the basis of the above embodiments, can also include following two steps before S220 after S210
It is rapid:
Calculate the length value of the first character string.
Confirm the data type of character in the first character string.
Correspondingly, S220 is specifically as follows:
When the length value of the first character string is equal to preset length value, and the character in the first character string is number, starting
Timing.
In embodiments of the present invention, on the basis of the above embodiments, a verification strategy is further increased.In user in hand
When inputting character in the query frame that generator terminal is shown, mobile phone terminal one character of every reception calculates the length of the first character string inputted
Angle value, while confirming the data type of character in the first character string inputted.When the length value of the first character string is equal to 4 (in advance
If length value), and when each character in the first character string is the number in 0~9, determine that the first character string meets cell-phone number
Last four forms, then start timing, otherwise, it is determined that the first character string does not meet last four forms of cell-phone number, does not open
Dynamic timing.
By verification strategy, mobile phone terminal is only responded to by the first character string of verification, to the first unverified word
Symbol string is not responding to, and can avoid initiating invalid inquiry request to server.
Fig. 3 is a kind of inquiry unit structural schematic diagram of express waybill number provided in an embodiment of the present invention, as shown in figure 3,
Device provided in an embodiment of the present invention includes: that the first character string receiving module 310, the first character string sending module 320, second are fast
Pass identification code receiving module 330, target express delivery identification code sending module 340 and express waybill receiving module 350.
Wherein, the first character string receiving module 310, for receiving the first character string of the first express delivery identification code, the first word
Symbol string is the partial content of the first express delivery identification code.
First character string sending module 320, for the first character string to be sent to server.
Second express delivery identification code receiving module 330, one or more returned for receiving server according to the first character string
A second express delivery identification code, the second express delivery identification code include the first character string.
Target express delivery identification code sending module 340, for selecting user from one or more second express delivery identification codes
Target express delivery identification code, be sent to server.With
Express waybill receiving module 350, the express waybill returned for receiving server according to target express delivery identification code
Number.
Optionally, device provided in an embodiment of the present invention, further includes:
Timing module, for starting timing.With
Second character string detection module, for the second character for detecting whether to receive user's input interior when pre-designed
String;If being not received by the second character string of user's input, above-mentioned first character string sending module 320 is run;If there is
The second character string for receiving user's input then waits user to input target express delivery identification code, and runs above-mentioned express waybill number
Receiving module 350.
Optionally, device provided in an embodiment of the present invention, further includes:
Length value computing module, for calculating the length value of the first character string.With
Data type confirmation module, for confirming the data type of character in the first character string.
Correspondingly, above-mentioned timing module, is equal to preset length value, and first specifically for the length value when the first character string
When character in character string is number, start timing.
Optionally, above-mentioned second express delivery identification code receiving module 330 is specifically used for receiving server according to the first character string
The identification code list of return, includes one or more second express delivery identification codes in identification code list, and the second express delivery identification code includes
There is the first character string.
Optionally, the second express delivery identification code in identification code list uses time and/or frequency of use sequence sieve by newest
Column.
Optionally, the first express delivery identification code, the second express delivery identification code and target express delivery identification code are cell-phone number;First word
Symbol string is the portion numbers of cell-phone number.
Method provided by any embodiment of the invention can be performed in above-mentioned apparatus, has the corresponding functional module of execution method
And beneficial effect.
Fig. 4 is a kind of device structure schematic diagram provided in an embodiment of the present invention, as shown in figure 4, the equipment includes:
One or more processors 410, in Fig. 4 by taking a processor 410 as an example;
Memory 420;
The equipment can also include: input unit 430 and output device 440.
Processor 410, memory 420, input unit 430 and output device 440 in the equipment can pass through bus
Or other modes connect, in Fig. 4 for being connected by bus.
Memory 420 be used as a kind of non-transient computer readable storage medium, can be used for storing software program, computer can
Execute program and module, as one of embodiment of the present invention express mail post/deposit the corresponding program instruction/module of method (for example,
Attached first character string receiving module 310 shown in Fig. 3, the first character string sending module 320, the second express delivery identification code receiving module
330, target express delivery identification code sending module 340 and express waybill receiving module 350).Processor 410 is stored in by operation
Software program, instruction and module in memory 420, at the various function application and data of computer equipment
A kind of querying method for express waybill number that reason, i.e. realization above method embodiment provide, it may be assumed that
The first character string of the first express delivery identification code is received, first character string is the portion of the first express delivery identification code
Divide content;
First character string is sent to server;
Receive one or more the second express delivery identification code that the server is returned according to first character string, described
Two express delivery identification codes include first character string;
The target express delivery identification code that user is selected from one or more of second express delivery identification codes is sent to described
Server;
Receive the express waybill number that the server is returned according to the target express delivery identification code.
Memory 420 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area can be stored to be created according to using for computer equipment
Data etc..In addition, memory 420 may include high-speed random access memory, it can also include non-transitory memory, such as
At least one disk memory, flush memory device or other non-transitory solid-state memories.In some embodiments, it stores
Optional device 420 includes the memory remotely located relative to processor 410, these remote memories can be by being connected to the network extremely
Terminal device.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and its group
It closes.
Input unit 430 can be used for receiving the number or character information of input, and generate the user with computer equipment
Setting and the related key signals input of function control.Output device 440 may include that display screen etc. shows equipment.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the program
A kind of such as querying method of express waybill number provided in an embodiment of the present invention is realized when being executed by processor, this method comprises:
The first character string of the first express delivery identification code is received, first character string is the portion of the first express delivery identification code
Divide content;
First character string is sent to server;
Receive one or more the second express delivery identification code that the server is returned according to first character string, described
Two express delivery identification codes include first character string;
The target express delivery identification code that user is selected from one or more of second express delivery identification codes is sent to described
Server;
Receive the express waybill number that the server is returned according to the target express delivery identification code.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating
Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited
In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates
The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just
Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.