Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is carried out clear, intactly description.Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 has described a kind of flow process of loading the terminal communicating method of software terminal that one embodiment of the invention provides; In an embodiment of the present invention; Software terminal comprises primary module and Web page module; Primary module refers to possess the module of native applications Native App function, is mainly used in the processing terminal business information; Web page module refers to possess the module of web application Web App function, is mainly used in the displaying web page data.This embodiment comprises:
101, primary module is sent terminal traffic information to the software terminal server.
Concrete; Software terminal perhaps carried out before line service when starting; Primary module is sent terminal traffic information to the software terminal server in the software terminal; And the software terminal server generates a unique software terminal sign after the receiving terminal business information, and sets up and preserve the corresponding relation of terminal traffic information and software terminal sign.
Wherein, Terminal traffic information is meant the service related information that can reflect that software terminal or terminal, software terminal place are provided with, and can include but not limited to software terminal languages, software terminal font, terminal configuration information (such as mobile phone type or phone number), resolution or professional the country one belongs to sign indicating number etc.
102, primary module receives the software terminal sign that the software terminal server sends.
Concrete; The primary module of software terminal receives the software terminal sign that the software terminal server sends; And software terminal sign is kept at this locality, and then need be in the follow-up processing procedure to software terminal server requests software terminal sign, only if the software terminal sign is lost or damage etc.
103, primary module is sent the call request of carrying the software terminal sign to Web page module.
Primary module is sent call request with the functional module on the invoking web page module to Web page module, and this call request is carried the software terminal sign.Concrete, primary module can be sent a uniform resource position mark URL request to Web page module, and in URL, carries the software terminal sign.
104, Web page module sends the access request of carrying the software terminal sign to the software terminal server.
Web page module is after the call request that receives primary module transmission; Obtain software terminal sign wherein; And to software terminal server transmission access request; Because this access request is carried the software terminal sign, the software terminal server can obtain corresponding terminal traffic information according to the sign of the software terminal in this access request, and generates the web data of Web page module request visit according to terminal traffic information.
Concrete, Web page module can send the URL access request to the software terminal server, and in the URL request, carries the software terminal sign.
105, Web page module receives and the display web page data.
Concrete, Web page module receives the web data that the software terminal server generates based on terminal traffic information, and shows this web data.Because the generation of this web data has combined terminal traffic information, so the content of this web data is more various, the Web page module content displayed is abundanter.
From the above; In the embodiments of the invention; The software terminal server for saving corresponding relation of terminal traffic information and software terminal sign; After making that Web page module sends the access request of carrying the software terminal sign to the software terminal server in the software terminal, the software terminal server can generate corresponding web data according to the corresponding terminal traffic information of software terminal sign, so the software terminal Web page module can show the web data that generates according to terminal traffic information; Be that Web page module has been expanded the interface that calls terminal traffic information in the software terminal, the effect and the content that make software terminal show are abundanter.
Fig. 2 has described a kind of flow process of loading the terminal communicating method of software terminal that another embodiment of the present invention provides, and this embodiment comprises:
201, generate the software terminal sign, and preserve the corresponding relation of terminal traffic information and software terminal sign.
Concrete, the software terminal server generates a unique software terminal sign after the terminal traffic information that receives the software terminal transmission, and sets up and preserve the corresponding relation of terminal traffic information and software terminal sign.
202, send the software terminal sign to software terminal.
Concrete, after the software terminal server generates the software terminal sign, send this software terminal sign to software terminal.
203, receive the access request of carrying the software terminal sign that software terminal sends.
The software terminal server receives the access request that software terminal sends, and this access request is carried the software terminal sign.Concrete, this access request can be the URL access request, and carries the software terminal sign among this URL.
204, obtain terminal traffic information according to the software terminal sign, and generate corresponding web data according to terminal traffic information.
The software terminal server obtains the software terminal sign in the above-mentioned access request; Corresponding relation according to this software terminal sign inquiry software terminal sign and terminal traffic information; Obtain and the corresponding terminal traffic information of this software terminal sign, and generate corresponding web data according to this terminal traffic information.Concrete; The software terminal server can obtain pairing content of user capture and resource according to information such as the software terminal languages in the terminal traffic information, software terminal font or national codes, and generates the corresponding web data of Webpage of corresponding size according to resolution.
From the above; In the embodiments of the invention; The software terminal server for saving corresponding relation of terminal traffic information and software terminal sign; After making that Web page module sends the access request of carrying the software terminal sign to the software terminal server in the software terminal, the software terminal server can generate corresponding web data according to the corresponding terminal traffic information of software terminal sign, so the software terminal Web page module can show the web data that generates according to terminal traffic information; Be that Web page module has been expanded the interface that calls terminal traffic information in the software terminal, the effect and the content that make software terminal show are abundanter.
Fig. 3 has described a kind of signaling process that loads the terminal communicating method of software terminal that one embodiment of the invention provides, and this embodiment comprises:
301, send terminal traffic information.
Concrete; Software terminal perhaps carried out before line service when starting; Primary module is sent terminal traffic information to the software terminal server in the software terminal; Wherein, terminal traffic information is meant the service related information that can reflect that software terminal or terminal, software terminal place are provided with, and can include but not limited to software terminal languages, software terminal font, terminal configuration information (such as mobile phone type or phone number), resolution or professional the country one belongs to sign indicating number etc.
302, generate software terminal sign and preservation terminal traffic information.
Concrete, the software terminal server generates a unique software terminal sign after the terminal traffic information that receives the software terminal transmission, and sets up and preserve the corresponding relation of terminal traffic information and software terminal sign.
303, return the software terminal sign.
Concrete, after the software terminal server generates the software terminal sign, send this software terminal sign to software terminal.
304, preserve the software terminal sign.
Concrete; The primary module of software terminal receives the software terminal sign that the software terminal server sends; And software terminal sign is kept at this locality, and then need be in the follow-up processing procedure to software terminal server requests software terminal sign, only if the software terminal sign is lost or damage etc.
305, call.
Primary module is sent call request with the functional module on the invoking web page module to Web page module, and this call request is carried the software terminal sign.Concrete, primary module can be sent a uniform resource position mark URL request to Web page module, and in URL, carries the software terminal sign.
306, send access request.
Web page module is after the call request that receives primary module transmission; Obtain software terminal sign wherein; And to software terminal server transmission access request; Because this access request is carried the software terminal sign, the software terminal server can obtain corresponding terminal traffic information according to the sign of the software terminal in this access request, and generates the web data of Web page module request visit according to terminal traffic information.
Concrete, Web page module can send the URL access request to the software terminal server, and in the URL request, carries the software terminal sign.
307, obtain terminal traffic information, and generate web data.
The software terminal server obtains the software terminal sign in the above-mentioned access request; Corresponding relation according to this software terminal sign inquiry software terminal sign and terminal traffic information; Obtain and the corresponding terminal traffic information of this software terminal sign, and generate corresponding web data according to this terminal traffic information.Concrete; The software terminal server can obtain pairing content of user capture and resource according to information such as the software terminal languages in the terminal traffic information, software terminal font or national codes, and generates the corresponding web data of Webpage of corresponding size according to resolution.
308, generate session identification.
Concrete; The software terminal server is after obtaining the software terminal sign; Generate session session sign, and preserve the corresponding relation of software terminal sign and session identification, wherein; Session sign is used for safeguarding the session management of Web page module and software terminal server in the software terminal, makes that Web page module can be accomplished the self-life cycle management in the software terminal.
309, return web data.
Concrete, software terminal server Web page module in software terminal sends the session identification that generates in the web data and 308 that generates in 307.
310, display web page data.
Concrete, Web page module receives the web data that the software terminal server sends in the software terminal, shows corresponding Webpage according to this web data, such as show the Webpage that meets terminal resolution according to web data; Simultaneously, Web page module carries out session management according to the session identification that receives with the software terminal server in the software terminal, accomplishes the page and gives birth to the face cycle management.
Following 311-316 is when primary module is initiated information updating in the software terminal, the handling process of primary module and Web page module synchronizing information in the software terminal:
311, send the request of renewal.
Concrete; Primary module is sent the request of renewal to the software terminal server in the software terminal, and this renewal request comprises lastest imformation and software terminal sign, wherein; Lastest imformation is meant the terminal traffic lastest imformation that the user initiates in primary module, such as increasing or revising certain business information.
312, preserve lastest imformation.
Concrete; The software terminal server is after the renewal request that has received the software terminal transmission; According to upgrading the software terminal sign of carrying in the request; The corresponding relation of inquiry software terminal sign and terminal traffic information obtains corresponding terminal traffic information, will upgrade the lastest imformation of carrying in the request again and be kept in this terminal traffic information.
313, return the renewal result.
Concrete, the software terminal server sends to the primary module of software terminal and upgrades the result, such as upgrading success or failure etc.
314, send access request.
Concrete; Because the software terminal Web page module can receive the session identification that software terminal identifies and the software terminal server sends that primary module is sent; Therefore, the software terminal Web page module can send the access request of carrying software terminal sign or session identification to the software terminal server.
315, search lastest imformation, and generate web data.
Concrete, the software terminal server is after the access request that receives the transmission of software terminal Web page module, and according to the software terminal sign of carrying in the access request, the corresponding relation of inquiry software terminal sign and terminal traffic information obtains corresponding terminal traffic information; Perhaps, according to the session identification that carries in the access request, the corresponding relation of inquiry session sign and software terminal sign and software terminal sign and terminal traffic information obtains corresponding terminal traffic information.Comprise the lastest imformation in 311 in the terminal traffic information that above-mentioned dual mode obtains, the software terminal server generates the web data that upgrades according to this lastest imformation.
316, return the web data of renewal.
Concrete, the software terminal server sends the web data of the renewal that generates in 315 to the software terminal Web page module so that in the software terminal Web page module according to the Webpage of the web data display update of this renewal.Because the Webpage that Web page module shows in this moment software terminal has in time reflected the more new situation of primary module in the software terminal, thus in the software terminal Web page module synchronous primary module information.
Following 317-322 is when Web page module is initiated information updating in the software terminal, the handling process of primary module and Web page module synchronizing information in the software terminal:
317, send the access request of carrying lastest imformation.
Concrete; Web page module sends the access request of carrying lastest imformation to the software terminal server in the software terminal, and this access request also comprises software terminal sign or session identification, wherein; Lastest imformation is meant the renewal operation information that the user initiates at Web page module; Such as, the App Store client in the application program shop, the user has ordered the download of certain application on webpage.
318, preserve lastest imformation.
Concrete; The software terminal server received that Web page module sends in the software terminal 317 in access request after; According to the software terminal sign or the session identification that carry in the access request, the corresponding relation of inquiry software terminal sign and terminal traffic information, perhaps; The corresponding relation of session identification and software terminal sign and software terminal sign and terminal traffic information; Obtain terminal traffic information, upgrade terminal traffic information according to the lastest imformation of carrying in the access request again, be i.e. the corresponding relation of software terminal server for saving software terminal sign and lastest imformation.
319, return the renewal result.
Concrete, software terminal server Web page module in software terminal sends and upgrades the result, such as upgrading success or failure etc.
320, send access request.
Concrete, primary module is sent access request to the software terminal server in the software terminal, carries the software terminal sign in this access request.
321, search lastest imformation, and generate related data.
Concrete; After the software terminal server access request that primary module is sent in receiving software terminal; According to the software terminal sign of carrying in the access request; Obtain corresponding terminal traffic information, comprised the lastest imformation in 317 in this terminal traffic information, and generate the related data of the primary module request visit of software terminal according to this lastest imformation.
322, return request msg.
Concrete, software terminal server primary module in software terminal is sent the related data that generates based on lastest imformation, so that primary module receives and handle this related data in the software terminal.Because the data of primary resume module have reflected the situation of Web page module lastest imformation in the software terminal in this moment software terminal, thus in the software terminal primary module synchronous Web page module information.
To the synchronous webpage module information of primary module in the above-mentioned software terminal; Be exemplified below: App Store client in the application program shop; The user has ordered certain application download on webpage, webpage is through software terminal sign or session identification notice software terminal server ordering information, and the software terminal server is then preserved this ordering information; Application layer can be obtained the application that the user orders to the software terminal server in the follow-up software terminal, and accomplishes application download.
From the above; In the embodiments of the invention; The software terminal server for saving corresponding relation of terminal traffic information and software terminal sign; After making that Web page module sends the access request of carrying the software terminal sign to the software terminal server in the software terminal, the software terminal server can generate corresponding web data according to the corresponding terminal traffic information of software terminal sign, so the software terminal Web page module can show the web data that generates according to terminal traffic information; Be that Web page module has been expanded the interface that calls terminal traffic information in the software terminal, the effect and the content that make software terminal show are abundanter.
Fig. 4 has described a kind of terminal structure that loads software terminal that one embodiment of the invention provides; This terminal generally comprises at least one processor 401; At least one network interface 404, memory 405 and at least one communication bus 402 are used to realize the connection communication between these assemblies.This terminal can also comprise user interface 403, is used to realize mutual with the user.Memory 405 can comprise:
Operating system 406 is used to handle the system service and the hardware based task of execution on various bases.
Software terminal 407 is used for specifically comprising through the software terminal sign realization of software terminal server generation and communicating by letter of software terminal server:
Primary module 408 is used for sending terminal traffic information to the software terminal server, so that the software terminal server generates the software terminal sign, and preserves the corresponding relation of terminal traffic information and software terminal sign; Also be used to receive the software terminal sign that the software terminal server sends; Also be used for sending the call request of carrying the software terminal sign to Web page module 409;
Web page module 409 is used for sending the access request of carrying the software terminal sign to the software terminal server, so that the software terminal server obtains terminal traffic information according to the software terminal sign, and generates corresponding web data according to terminal traffic information.Concrete, being used for sending the URL request to the software terminal server, said URL request comprises said software terminal sign; Also be used to receive the web data that the software terminal server generates, and the display web page data.
From the above; In the embodiments of the invention; The software terminal server for saving corresponding relation of terminal traffic information and software terminal sign; After making that Web page module sends the access request of carrying the software terminal sign to the software terminal server in the software terminal, the software terminal server can generate corresponding web data according to the corresponding terminal traffic information of software terminal sign, so the software terminal Web page module can show the web data that generates according to terminal traffic information; Be that Web page module has been expanded the interface that calls terminal traffic information in the software terminal, the effect and the content that make software terminal show are abundanter.
Fig. 5 has described a kind of software terminal server architecture that one embodiment of the invention provides; This software terminal server generally comprises at least one processor 501; At least one network interface 504, memory 505 and at least one communication bus 502 are used to realize the connection communication between these assemblies.This software terminal equipment can also comprise user interface 503, is used to realize mutual with the user.Memory 505 can comprise:
Operating system 506 is used to handle the system service and the hardware based task of execution on various bases.
Applying unit 507, the terminal traffic information that is used for sending based on software terminal generates the software terminal sign, and mainly realizes and the communicating by letter of the terminal of having loaded software terminal through the software terminal sign, specifically comprises:
First generation unit 508 is used for after the terminal traffic information that receives the software terminal transmission, generates the software terminal sign, and preserves the corresponding relation of terminal traffic information and software terminal sign.
Transmitting element 509 is used for after the software terminal sign that receives 508 generations of first generation unit, sending the software terminal sign to software terminal.
Receiving element 510 is used to receive the access request of carrying the software terminal sign that software terminal sends; Also be used to receive the access request of carrying session identification that software terminal sends.
Second generation unit 511, the software terminal sign that is used for receiving according to receiving element 510 is obtained terminal traffic information, and generates corresponding web data according to terminal traffic information; Also be used for the session identification according to receiving element 510 receptions, the corresponding relation of inquiry session sign and software terminal sign and software terminal sign and terminal traffic information obtains terminal traffic information, and generates corresponding web data according to terminal traffic information.
In another embodiment of the present invention, applying unit 507 also comprises:
The 3rd generation unit 512 is used for after said receiving element 510 receives access request, generating session identification, and preserves the corresponding relation of said session identification and said software terminal sign.
From the above; In the embodiments of the invention; The software terminal server for saving corresponding relation of terminal traffic information and software terminal sign; After making that Web page module sends the access request of carrying the software terminal sign to the software terminal server in the software terminal, the software terminal server can generate corresponding web data according to the corresponding terminal traffic information of software terminal sign, so the software terminal Web page module can show the web data that generates according to terminal traffic information; Be that Web page module has been expanded the interface that calls terminal traffic information in the software terminal, the effect and the content that make software terminal show are abundanter.
Description through above execution mode; One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Above-mentioned program can be stored in the computer read/write memory medium, and this program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, above-mentioned storage medium can be magnetic disc, CD, read-only storage memory body (ROM:Read-Only Memory) or stores memory body (RAM:Random Access Memory) etc. at random.
Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand technical scheme of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.