The content of the invention
An embodiment of the present invention provides a kind of service processing method and device, at least to solve in correlation technique in offer
The technical issues of service, can not be provided a user according to the information of offer exactly when information lacks parameter.
One side according to embodiments of the present invention provides a kind of service processing method, including:It obtains from mobile whole
The first information at end;The corresponding first service type of the first information and the first query argument are obtained from the first information, wherein, the
One query argument is the foundation retrieved in the corresponding application of first service type or service;It obtains from mobile terminal
Second information;It obtains corresponding second query argument of the second information from the second information, and the is obtained according to first service type
The corresponding service type of two information;Notify mobile terminal that the corresponding application of second service type is called at least to join using the second inquiry
Number is inquired about;Alternatively, at least being inquired about by the corresponding service of second service type using the second query argument, and will look into
It askes result and is sent to mobile terminal.
Further, obtaining the corresponding service type of the second information according to first service type includes:It attempts to obtain second
The corresponding service type of information;In the case where obtaining the corresponding service type failure of the second information, first service type is made
For the corresponding service type of the second information.
Further, in the case where obtaining the corresponding service type failure of the first information from the first information, this method is also
Including:Service type is obtained in the information obtained successively before the first information;Using the service type got as the first letter
Cease corresponding service type.
Further, the corresponding service type of the information and query argument are obtained from information to be included:Determine the information pair
The required query argument of service type answered;It is looked into the query argument obtained from the information less than service type is required
In the case of asking parameter, the query argument lacked is determined;Using preconfigured query argument as the query argument lacked or
Person, the query argument lacked from acquisition for mobile terminal.
Further, corresponding second query argument of the second information is obtained from the second information to be included:Determine second service
The required query argument of type;The required inquiry of second service type is less than in the query argument obtained from the second information
In the case of parameter, the query argument lacked is determined;Join the query argument obtained from the first information as the inquiry lacked
Several supplements.
Another aspect according to embodiments of the present invention additionally provides a kind of service processing device, including:First obtains list
Member, for obtaining the first information from mobile terminal;Second acquisition unit, for obtaining the first information pair from the first information
The first service type answered and the first query argument, wherein, the first query argument be first service type it is corresponding application or
The foundation retrieved in service;3rd acquiring unit, for obtaining the second information from mobile terminal;4th obtains list
Member for obtaining corresponding second query argument of the second information from the second information, and obtains second according to first service type
The corresponding service type of information;Execution unit, for notifying mobile terminal that the corresponding application of second service type is called at least to make
It is inquired about with the second query argument;Alternatively, by second service type it is corresponding service at least using the second query argument into
Row inquiry, and query result is sent to mobile terminal.
Further, the 4th acquiring unit is additionally operable to attempt to obtain the corresponding service type of the second information, and is obtaining the
In the case of the corresponding service type failure of two information, using first service type as the corresponding service type of the second information.
Further, which further includes:5th acquiring unit, for corresponding from the first information acquisition first information
In the case of service type failure, service type is obtained in the information obtained successively before the first information, wherein, first performs
Unit is additionally operable to the service type that will be got as the corresponding service type of the first information.
Further, second acquisition unit and the 4th acquiring unit are additionally operable to determine needed for the corresponding service type of the information
The query argument wanted, in the case where the query argument obtained from the information is less than the required query argument of service type,
The query argument lacked is determined, and using preconfigured query argument as the query argument lacked, alternatively, from mobile terminal
Obtain the query argument lacked.
Further, the 4th acquiring unit is additionally operable to:Determine the required query argument of second service type;From second
In the case that the query argument obtained in information is less than the required query argument of second service type, determine that the inquiry lacked is joined
Number;Using the query argument obtained from the first information as the supplement of the query argument lacked.
In embodiments of the present invention, by the way that after the first information is obtained, first information correspondence is obtained from the first information
First service type, after the second information is obtained, corresponding second query argument of the second information is obtained from the second information,
And it is second service type to obtain the corresponding service type of the second information according to first service type;Mobile terminal is notified to call the
The corresponding application of two service types is at least inquired about using the second query argument, and query result is sent to mobile terminal,
Service can not be provided a user exactly when the information of offer lacks parameter according to the information of offer by solving in correlation technique
The technical issues of, and then realize can be according to the ginseng of information acquisition services type provided above to lack to current information
The technique effect that number is supplemented.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be the object for distinguishing similar, without being used to describe specific order or precedence.It should be appreciated that it so uses
Data can exchange in the appropriate case, so as to the embodiment of the present invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
According to the embodiment of the present application, a kind of embodiment of service processing method is provided.
Fig. 1 is a kind of flow chart of optional service processing method according to embodiments of the present invention, and this method can be applied
In server end, as shown in Figure 1, this method comprises the following steps:
Step S101 obtains the first information from mobile terminal;
Step S102 obtains the corresponding first service type of the first information and the first query argument from the first information,
In, the first query argument is the foundation retrieved in the corresponding application of first service type or service;
Step S103 obtains the second information from mobile terminal;
Step S104 obtains corresponding second query argument of the second information from the second information, and according to first service class
It is second service type that type, which obtains the corresponding service type of the second information,;
Step S105, notice mobile terminal call second service type it is corresponding application at least using the second query argument into
Row inquiry;Alternatively, at least being inquired about by the corresponding service of second service type using the second query argument, and inquiry is tied
Fruit is sent to mobile terminal.
Above-mentioned steps are described further below as follows:
The first information can be the information that user inputs to mobile terminal, the form of the first information can be text message or
Voice messaging for voice messaging, by mobile terminal or server can first be grabbed and be changed to text message by voice messaging.
It is corresponding to obtain the first information after the first information from mobile terminal is obtained from the first information for server
First service type and the first query argument.For example, user says microphone " today, how is weather ", user's is intended that
Inquire about the weather condition of today, then first service type can be weather lookup service.
First query argument is the foundation retrieved in the corresponding application of first service type or service, which joins
Inquiry in number refers to that the parameter is the parameter for being retrieved in application or service, without being to refer in particular to user needing
Query argument is just corresponding with when inquiring about class service.For the example of above-mentioned inquiry weather, the first query argument can include
Time, time are " today ".
Second information is the information obtained after the first information.Second information can be that user inputs to mobile terminal
Information, form can be text message or voice messaging, can be by mobile terminal or server first by language for voice messaging
Message breath, which is grabbed, is changed to text message.Server obtains after the second information from mobile terminal is obtained from the second information
Corresponding second query argument of second information, and it is second to obtain the corresponding service type of the second information according to first service type
Service type, the service type with reference to corresponding to the corresponding service type of the first information determines the second information.By combining above
The service type that information obtains determines the service type of the information inputted below, can solve be taken according to the second acquisition of information
During service type, it is impossible to which the problem of providing a user service realizes the effect that user view is preferably identified by contextual information
Fruit.
Specifically, the step of service type corresponding according to the second information of first service type acquisition, is exemplified below:With
" today, how is weather " is said in family to mobile terminal, service type is got from the information as " weather lookup service ", so
User says " tomorrow " to mobile terminal afterwards, then obtaining the service type of " tomorrow " with reference to " weather lookup service " is also
" weather lookup service ".
After corresponding second query argument of the second information is obtained from the second information, server notice mobile terminal tune
With the application corresponding to second service type, and inquired about according to the second query argument.In inquiry, at least looked into using second
Parameter is ask, the second query argument and the first query argument can also be combined, for example, the first information is " today, why is weather
Sample ", first service type are weather lookup service, and the first query argument is this time, and the second information is " tomorrow ",
Corresponding service type can not be got in second information, the second query argument is tomorrow for the time, and server notice is mobile eventually
The application of weather lookup service is called at end, and inquires about the weather of tomorrow.
Alternatively, after corresponding second query argument of the second information is obtained from the second information, second can also be passed through
The corresponding service of service type corresponding to information is at least inquired about using the second query argument, and query result is sent to
Mobile terminal.That is, mobile terminal does not provide a user service by application, and performed by servicing.
The embodiment from the first information by after the first information is obtained, obtaining the corresponding first service of the first information
Type after the second information is obtained, obtains corresponding second query argument of the second information from the second information, and according to first
Service type obtains the corresponding service type of the second information;Mobile terminal is notified to call the corresponding application of second service type at least
It is inquired about using the second query argument, and query result is sent to mobile terminal, solved in correlation technique in offer
The technical issues of service, can not be provided a user according to the information of offer exactly when information lacks parameter, and then realize can
The technique effect supplemented according to information acquisition services type provided above with the parameter lacked to current information.
Preferably, before the corresponding service type of the second information is obtained according to first service type, can first attempt to obtain
Take the corresponding service type of the second information, if it is possible to according to the second acquisition of information to corresponding service type, then can not have to
Using first service type as the corresponding service type of the second information, attempting to obtain the corresponding service type failure of the second information
In the case of, it can be using first service type as the corresponding service type of the second information.
Preferably, if the first information can not also get corresponding service type, that is, obtaining the from the first information
In the case of the corresponding service type failure of one information, service class is obtained in the information that can be obtained successively before the first information
Type using the service type got as the corresponding service type of the first information, specifically, can be obtained first from the first information
The 3rd nearest information, judges whether that the corresponding service type of the 3rd information can be got before obtaining the time, if it could not,
Obtain again from the 3rd information obtain the time before nearest the 4th information, judge whether that the 4th information can be got corresponding
Service type, until it can get service type.
Preferably, the above-mentioned specific steps that the corresponding service type of the information and query argument are obtained from information can be with
It is:Determine the required query argument of the corresponding service type of the information;In the query argument obtained from the information less than clothes
In the case of the required query argument of service type, the query argument lacked is determined;Using preconfigured query argument as
The query argument lacked, alternatively, the query argument lacked from acquisition for mobile terminal.
For example, information is " today, how is weather ", the corresponding service type of information is weather lookup service, and information corresponds to
Query argument for the time be today, and inquire about weather and also need to input place, the place in information is default, and server can
Default place to be set, when inquiring about weather using locality as the query argument lacked, root to be serviced by weather lookup as locality
It is believed that breath " today, how is weather " inquires about the weather condition of local today.
Preferably, corresponding second query argument of the second information is obtained from the second information to be included:Determine second service class
The required query argument of type;In the query argument obtained from the second information inquiry ginseng required less than second service type
In the case of number, the query argument lacked is determined;Using the query argument obtained from the first information as the query argument lacked
Supplement.
For example, the first information is " how is Shanghai weather ", the corresponding first service type of the first information is weather lookup
Service, the corresponding query argument of the first information are Shanghai for place, and inquire about weather and also need to input time, the time in information
It is default, server can set default time, and for today, by weather lookup service, according to the first information, " why is Shanghai weather
Sample " inquires about the weather condition of Shanghai today, and the second information is " tomorrow ", inquires about service class corresponding less than the second information
Type, therefore using first service type as the corresponding service type of the second information, weather lookup service also needs to input place,
Place is got in the first information as Shanghai, then inquires about the weather condition of Shanghai tomorrow.
It should be noted that step shown in the flowchart of the accompanying drawings can be mobile eventually in mobile phone, tablet computer etc.
It is performed in end, although also, show logical order in flow charts, it in some cases, can be to be different from herein
Order perform shown or described step.
According to the embodiment of the present application, a kind of embodiment of service processing device is provided.
Fig. 2 is a kind of schematic diagram of optional service processing device according to embodiments of the present invention, as shown in Fig. 2, the dress
It puts including first acquisition unit 10, second acquisition unit 20, the 3rd acquiring unit 30, the 4th acquiring unit 40 and execution unit
50。
First acquisition unit, for obtaining the first information from mobile terminal;Second acquisition unit, for believing from first
The corresponding first service type of the first information and the first query argument are obtained in breath, wherein, the first query argument is in the first clothes
The foundation retrieved in the corresponding application of service type or service;3rd acquiring unit, for obtaining the from mobile terminal
Two information;4th acquiring unit, for obtaining corresponding second query argument of the second information from the second information, and according to first
It is second service type that service type, which obtains the corresponding service type of the second information,;Execution unit, for notifying mobile terminal tune
It is at least inquired about with the corresponding application of second service type using the second query argument;Alternatively, pass through second service type pair
The service answered at least is inquired about using the second query argument, and query result is sent to mobile terminal.
Preferably, the 4th acquiring unit is additionally operable to attempt to obtain the corresponding service type of the second information, and is obtaining second
In the case of the corresponding service type failure of information, using first service type as the corresponding service type of the second information.
Preferably, which further includes:5th acquiring unit, for obtaining the corresponding clothes of the first information from the first information
In the case of service type failure, service type is obtained in the information obtained successively before the first information, wherein, first performs list
Member is additionally operable to the service type that will be got as the corresponding service type of the first information.
Preferably, required for second acquisition unit and the 4th acquiring unit are additionally operable to determine the corresponding service type of the information
Query argument, in the query argument obtained from the information less than in the case of the required query argument of service type, really
Surely the query argument lacked, and using preconfigured query argument as the query argument lacked, alternatively, being obtained from mobile terminal
Take the query argument lacked.
Preferably, the 4th acquiring unit is additionally operable to:Determine the required query argument of second service type;Believe from second
In the case that the query argument obtained in breath is less than the required query argument of second service type, determine that the inquiry lacked is joined
Number;Using the query argument obtained from the first information as the supplement of the query argument lacked.
Above-mentioned device can include processor and memory, and said units can be stored in storage as program unit
In device, above procedure unit stored in memory is performed by processor to realize corresponding function.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM), memory includes at least one storage
Chip.
In above-described embodiment of the application, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or
Person is desirably integrated into another system or some features can be ignored or does not perform.Another, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be employed in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the application whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art
For member, on the premise of the application principle is not departed from, several improvements and modifications can also be made, these improvements and modifications also should
It is considered as the protection domain of the application.