Summary of the invention
For solve terminal in the prior art need with the server problem of networking in real time, the embodiment of the invention provides a kind of service data interaction method, terminal, server and system.Described technical scheme is as follows:
First aspect provides a kind of service data interaction method, and described method comprises:
Show login interface in browser, to be described terminal when historical log and network are unobstructed obtain and the login interface of buffer memory from server described login interface;
Finish authentication by the described login interface that shows;
When described authentication success, the interface of display client in described browser, to be described terminal when historical authentication success and network are unobstructed obtain and the client of buffer memory from described server described client;
Carry out service data interaction by described client and described server.
Described described login interface by demonstration is finished authentication, comprising:
Receive identify label and authentication password that the user imports in described login interface;
When the user selects server authentication, and network is when unobstructed, identify label and the authentication password of described user's input sent to described server, so that described server carries out authentication according to identify label and the authentication password of described user's input; Receive the checking result that described server returns;
When the user does not select server authentication, detect whether be cached with the authentication password corresponding with described identify label in the described terminal;
If testing result is to be cached with the authentication password corresponding with described identify label in the described terminal, then carry out authentication according to the authentication password corresponding with described identify label of buffer memory in the identify label of described user's input and authentication password and the described terminal;
If testing result is not to be cached with the authentication password corresponding with described identify label in the described terminal, and network is unobstructed, then obtain described and described identify label corresponding authentication password and buffer memory from described server, and carry out authentication according to the identify label of described user's input with authentication password and the corresponding authentication password of described and described identify label;
Wherein, the corresponding authentication password of described and described identify label is the authentication password after described server is encrypted in irreversible mode.
Describedly show that in browser described method also comprises before the login interface:
When network was unobstructed, whether the login interface that detects described buffer memory needed to upgrade;
If described login interface needs to upgrade, then download the login interface of latest edition from described server, and upgrade the login interface of described buffer memory with the login interface of the described latest edition of downloading.
Described in described browser before the interface of display client, described method also comprises:
When network was unobstructed, whether the client that detects described buffer memory needed to upgrade;
If described client needs to upgrade, then download the client of latest edition from described server, and upgrade the client of described buffer memory with the client of the described latest edition of downloading.
Describedly carry out service data interaction by described client and described server, comprising:
When network is unobstructed, operate to described server lookup business datum according to the data query of user in the interface of described client.
Describedly carry out service data interaction by described client and described server, comprising:
Interface by the described client that shows in described browser receives business datum to be reported;
When network is obstructed, by the described business datum of described client-cache, and when next network is unobstructed, report described business datum to server;
When network is unobstructed, directly report described business datum to described server.
Second aspect provides a kind of service data interaction method, and described method comprises:
When the network of terminal login and described terminal is unobstructed, provide login interface to described terminal, so that the described login interface of described terminal buffers; And in browser, show described login interface; And finish authentication by the described login interface that shows;
Be proved to be successful and the network of described terminal when unobstructed at described terminal identity, provide client to described terminal, so that the described client of described terminal buffers; And in described browser, show the interface of described client; And carry out data interaction by interface and the described server of described client.
Described method also comprises:
When the network of described terminal is unobstructed, receive described terminal identify label and authentication password that send, that the user imports in described login interface;
Carry out authentication according to the described identify label that receives and authentication password;
To verify that the result returns to described terminal.
Described method also comprises:
Provide the authentication password corresponding with described identify label to described terminal, so that the corresponding authentication password of the described and described identify label of described terminal buffers, and the identify label of importing in described login interface according to described user and the corresponding authentication password of described and described identify label of authentication password and buffer memory are carried out authentication;
Wherein, the corresponding authentication password of described and described identify label is the authentication password after encrypting in irreversible mode.
Described method also comprises:
The login interface that detects described buffer memory when described terminal needs to upgrade, and the network of described terminal provides the login interface of latest edition when unobstructed to described terminal.
Described method also comprises:
The client that detects described buffer memory when described terminal needs to upgrade, and the network of described terminal provides the client of latest edition when unobstructed to described terminal.
Described method also comprises:
When the network of described terminal is unobstructed, provide business datum to described terminal; Described business datum is that the data query in the interface of the client that shows in described browser of described user is operated corresponding data.
Described method also comprises:
Receive the business datum of described terminal to report;
Wherein, described business datum comprises:
When the network of described terminal was obstructed, described terminal received and cached business data by the interface of the client that shows in described browser;
And/or, when the network of described terminal is unobstructed, the business datum that the interface of described terminal by the client that shows in described browser receives.
The third aspect provides a kind of terminal, and described terminal comprises:
The login interface display module is used for showing login interface at browser, and to be described terminal when historical log and network are unobstructed obtain and the login interface of buffer memory from server described login interface;
First authentication module is used for finishing authentication by the described login interface that described login interface display module shows;
The client end interface display module is used for when described authentication success, the interface of display client in described browser, and to be described terminal when historical authentication success and network are unobstructed obtain and the client of buffer memory from described server described client;
The data interaction module is used for carrying out service data interaction by described client and described server.
Described first authentication module comprises:
First receiving element is used for receiving identify label and the authentication password that the user imports at described login interface;
First transmitting element, be used for selecting server authentication as the user, and when network was unobstructed, identify label and authentication password that described user is imported sent to described server, so that described server carries out authentication according to identify label and the authentication password of described user's input;
Second receiving element is used for receiving the checking result that described server returns;
Detecting unit is used for detecting whether be cached with the authentication password corresponding with described identify label in the described terminal when the user does not select server authentication;
First authentication unit, be used for if testing result is that described terminal is cached with the authentication password corresponding with described identify label, then carry out authentication according to the authentication password corresponding with described identify label of buffer memory in the identify label of described user's input and authentication password and the described terminal;
The password acquiring unit be used for if testing result is that described terminal is not cached with the authentication password corresponding with described identify label, and network is unobstructed, then obtains the corresponding authentication password of described and described identify label from described server;
The password buffer unit is used for the corresponding authentication password of described and described identify label that the described password acquiring unit of buffer memory gets access to;
Second authentication unit is used for carrying out authentication according to the identify label of described user's input with authentication password and the corresponding authentication password of described and described identify label;
Wherein, the corresponding authentication password of described and described identify label is the authentication password after described server is encrypted in irreversible mode.
Described terminal also comprises:
First detection module was used at described login interface display module before browser shows login interface, and when network was unobstructed, whether the login interface that detects described buffer memory needed to upgrade;
First download module is used for then downloading the login interface of latest edition from described server if described login interface needs to upgrade;
First update module is used for upgrading with the login interface of the described latest edition of described first download module download login interface of described buffer memory.
Described terminal also comprises:
Second detection module was used at described client end interface display module before the interface of described browser display client, and when network was unobstructed, whether the client that detects described buffer memory needed to upgrade;
Second download module is used for then downloading the client of latest edition from described server if described client needs to upgrade;
Second update module is used for upgrading with the client of the described latest edition of described second download module download client of described buffer memory.
Described data interaction module comprises:
The data query unit is used for when network is unobstructed, operates to described server lookup business datum according to the data query of user in the interface of described client.
Described data interaction module comprises:
The data receiving element is used for the interface reception business datum to be reported by the described client that shows at described browser;
Data buffer storage unit is used for when network is obstructed, by the described business datum of described client-cache;
First reports the unit, is used for reporting described data buffer storage unit cached business data to server when next network is unobstructed;
Second reports the unit, is used for when network is unobstructed, directly the business datum that reports described data receiving element to receive to described server.
Fourth aspect provides a kind of server, and described server comprises:
First login interface provides module, is used for network in terminal login and described terminal when unobstructed, provides login interface to described terminal, so that the described login interface of described terminal buffers; And in browser, show described login interface; And finish authentication by the described login interface that shows;
First client provides module, is used for being proved to be successful and the network of described terminal when unobstructed at described terminal identity, provides client to described terminal, so that the described client of described terminal buffers; And in described browser, show the interface of described client; And carry out data interaction by interface and the described server of described client.
Described server also comprises:
First receiver module is used for network in described terminal when unobstructed, receives described terminal identify label and authentication password that send, that the user imports in described login interface;
Second authentication module is used for carrying out authentication according to described identify label and authentication password that described first receiver module receives;
The checking result returns module, is used for the checking result of described second authentication module is returned to described terminal.
Described server also comprises:
Authentication password provides module, be used for providing the authentication password corresponding with described identify label to described terminal, so that the corresponding authentication password of the described and described identify label of described terminal buffers, and the identify label of importing in described login interface according to described user and the corresponding authentication password of described and described identify label of authentication password and buffer memory are carried out authentication;
Wherein, the corresponding authentication password of described and described identify label is the authentication password after encrypting in irreversible mode.
Described server also comprises:
Second login interface provides module, and the login interface that is used for detecting when described terminal described buffer memory needs to upgrade, and the network of described terminal provides the login interface of latest edition when unobstructed to described terminal.
Described server also comprises:
Second client provides module, and the client that is used for detecting when described terminal described buffer memory needs to upgrade, and the network of described terminal provides the client of latest edition when unobstructed to described terminal.
Described server also comprises:
Data provide module, are used for network when described terminal when unobstructed, provide business datum to described terminal; Described business datum is that the data query in the interface of the client that shows in described browser of described user is operated corresponding data.
Described server also comprises:
Data reception module is for the business datum that receives described terminal to report;
Wherein, described business datum comprises:
When the network of described terminal was obstructed, described terminal received and cached business data by the interface of the client that shows in described browser;
And/or, when the network of described terminal is unobstructed, the business datum that the interface of described terminal by the client that shows in described browser receives.
The 5th aspect provides a kind of service data interaction system, and described system comprises:
As the described terminal of the above-mentioned third aspect and as the described server of above-mentioned fourth aspect.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
By showing login interface in browser, described login interface is that described terminal is logined first and network obtains and the login interface of buffer memory from server when unobstructed; Finish authentication by the described login interface that shows; When described authentication success, the interface of display client in described browser, described client is that the authentication success first of described terminal and network obtain and the client of buffer memory from described server when unobstructed; Carry out service data interaction by described client and described server.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal be in also can realize under the obstructed environment of network and server between the purpose of service data interaction.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
See also Fig. 1, it shows the enforcement environment schematic diagram of the service data interaction method that the specific embodiment of the invention provides.Wherein, terminal can be the portable terminal of the browser that includes, such as smart mobile phone, panel computer or E-book reader etc.Be cached with login interface and client that terminal is downloaded from server in the browser when historical log.Wherein, login interface and customer end adopted HTML(Hypertext Markup Language, HTML) 5+JavaScript+CSS(Cascading Style Sheet, the cascade CSS) overall architecture, the interface of this login interface and client can directly show in the browser of same support HTML5, JavaScript and CSS.Because the framework of customer end adopted HTML5+JavaScript+CSS provided by the present invention is developed, for the industrial application software of developing based on specific embedded device in the prior art, can improve development efficiency significantly, shorten the construction cycle, and then can significantly save development cost.
Embodiment one
Please refer to Fig. 2, it shows the method flow diagram of the service data interaction method that the embodiment of the invention one provides.The enforcement environment of this data interactive method can be applied to carry out data interaction based on browser and server in terminal as shown in Figure 1.This data interactive method can comprise:
Step 102 shows login interface in browser, this login interface obtains and the login interface of buffer memory from server when historical log and network are unobstructed for this terminal;
Step 104 is finished authentication by this login interface that shows;
Step 106, when this authentication success, the interface of display client in this browser, this client is obtained and the client of buffer memory from this server when historical authentication success and network are unobstructed for this terminal;
Step 108 is carried out service data interaction by this client and this server.
In sum, the service data interaction method that the embodiment of the invention one provides, display terminal obtains from server when historical log and network are unobstructed in browser login interface and client, and carry out service data interaction by this client and server.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the service data interaction method that the embodiment of the invention one provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment two
The more preferred scheme of the service data interaction method that provides based on above-described embodiment one please refer to Fig. 3, and it shows the method flow diagram of the service data interaction method that the embodiment of the invention two provides.The enforcement environment of this data interactive method can be applied to carry out data interaction based on browser and server in terminal as shown in Figure 1.This data interactive method can comprise:
Step 202, terminal show login interface in browser, this login interface obtains and the login interface of buffer memory from server when historical log and network are unobstructed for this terminal;
Concrete, when the user imported the network address of appointment in browser, terminal can detect this locality and whether be cached with login interface:
If do not have the buffer memory login interface in the terminal, and the terminal current network is unobstructed, then terminal can be obtained this login interface and be buffered in this locality from server, and shows this login interface in browser; Such as, terminal to server sends the request of obtaining login interface, after server receives this request, this login interface is sent to this terminal.
Be cached with login interface as if in the terminal, and the terminal current network is obstructed, then this login interface of terminal direct display buffer in browser;
If be cached with login interface in the terminal, and the terminal current network is unobstructed, then whether the terminal login interface that can at first detect buffer memory needs to upgrade, if this login interface of buffer memory needs to upgrade, then download the login interface of latest edition from server, and upgrade the login interface of buffer memory with the login interface of the latest edition of downloading, and in browser login interface behind the display update, this latest edition.Such as, terminal can be obtained the version number of latest edition login interface from server, and the version number of the login interface of the version number that gets access to and local cache compared, if both are inconsistent, then send the request of the login interface obtain latest edition to server, after server receives the request of this login interface that obtains latest edition, the login interface of latest edition is sent to this terminal, the login interface of this latest edition of terminal storage, and in browser, show.
Step 204, terminal receives identify label and the authentication password that the user imports in this login interface;
Wherein, the identify label of user input can be the login account of registering at server in advance, such as the sequence number of registered user name, registration mailbox number or server-assignment etc.
Step 206, terminal is finished authentication by identify label and authentication password that the user imports in this login interface;
Whether can include the option from the server end checking in the login interface that in browser, shows, if the user chooses this option, then select the server end checking, if the user does not choose this option, then do not select server authentication, but in terminal, carry out authentication.Concrete:
When the user selects server authentication, and the network of terminal is when unobstructed, and terminal sends to server with identify label and the authentication password of this user's input, so that server carries out authentication according to identify label and the authentication password of this user's input; Terminal receives the checking result that this server returns;
When the user did not select server authentication, terminal detected whether be cached with the authentication password corresponding with this identify label in this terminal; Wherein, the authentication password corresponding with this identify label is the authentication password after server is encrypted in irreversible mode;
If testing result is for being cached with the authentication password corresponding with this identify label in this terminal, then terminal is carried out authentication according to the authentication password corresponding with this identify label of buffer memory in the identify label of user's input and authentication password and this terminal;
If testing result is not for being cached with the authentication password corresponding with this identify label in this terminal, and the current network of terminal is unobstructed, then terminal is obtained the authentication password corresponding with this identify label and buffer memory from server, and carries out authentication according to the identify label of user input and authentication password and the authentication password corresponding with this identify label that get access to.
Step 208, terminal when this authentication success, the interface of display client in this browser, this client is obtained and the client of buffer memory from this server when historical authentication success and network are unobstructed for this terminal;
Concrete, when receiving the checking result that server returns, terminal is the authentication success, perhaps, when the identify label of importing in terminal according to the user and authentication password and the authentication password corresponding with this identify label that gets access to are proved to be successful, can detect this locality and whether be cached with client:
If do not have cache client in the terminal, and the terminal current network is unobstructed, then terminal is obtained this client and buffer memory from server, and shows the interface of this client in this browser;
Be cached with client as if in the terminal, and the terminal current network is obstructed, then the interface of terminal this client of direct display buffer in browser;
If be cached with client in the terminal, and the terminal current network is unobstructed, then whether the terminal client that can at first detect buffer memory needs to upgrade, if this client needs to upgrade, then download the client of latest edition from server, and upgrade the client of buffer memory with the client of the latest edition of downloading, and in browser the interface of client behind the display update, this latest edition.
Wherein, terminal is obtained and is upgraded that the step of client and above-mentioned terminal are obtained and to upgrade the step of login interface similar, repeats no more herein.
Step 210, terminal is carried out service data interaction by this client and this server.
Wherein, service data interaction can comprise that business datum inquiry and business datum report.
When the user carried out the business datum inquiry, the network current as if terminal was unobstructed, and terminal can be according to the data query operation (such as the inquire button of clicking a certain business datum) of user in the interface of client to the server lookup business datum.
When the user carries out giving the correct time on the business datum, terminal receives business datum to be reported by the interface of the client that shows in browser;
Obstructed as if the network that terminal is current, terminal is passed through this business datum of this client-cache, and when next network is unobstructed, reports this business datum to server;
The network current as if terminal is unobstructed, and terminal directly reports this business datum to server.
Above-mentioned service data interaction method can be implemented as in the industrial application softwares such as logistic management system or sale management system.Concrete, sale management system with certain company is example, business personnel A is in the bad place of network signal, such as in underground storehouse or the garage time, the URL(Uniform Resource Locator of the server of input sale management system in the browser address bar on smart mobile phone, URL(uniform resource locator)) address, smart mobile phone show the login interface of this sale management system of local cache in browser.Business personnel A imports identify label and authentication password in this login interface, do not choose simultaneously the option of " from server authentication ", smart mobile phone is verified identify label and the authentication password of user's input in this locality, if be proved to be successful, then smart mobile phone shows the interface of client of this sale management system of local cache in browser.Business personnel A imports business datum to be reported in the interface of client, such as data such as the sales volume of all types of products or stocks, this business datum that smart mobile phone will be imported is buffered in this locality, and attempts connecting network always.Smart mobile phone successfully connects network and cached business data is reported server when business personnel A moves to the unobstructed place of network.In the process that whole data report, smart mobile phone is finished the process that data reception, network connection and data report automatically, and business personnel A does not have the wait of network connection to experience.
Simultaneously, the URL address of the server of input sale management system in the browser address bar of manager B on PC in the office, computer shows local cache or the login interface that obtains from server in browser.Manager B imports identify label and authentication password in this login interface, choose the option of " from server authentication " simultaneously, computer sends to server with the identify label of user input and authentication password and verifies, if server authentication success, then computer shows local cache or the interface of the client obtained from server in browser.Manager B can be by the action queries business datum in the interface of client, such as, manager B can click sales volume and the stock of the product of a certain model of inquiry, computer sends the sales volume of this product and stock's the request of obtaining to server, after server receives this request, return sales volume and the inventory data of this product, computer shows sales volume and the inventory data of this product in the interface of this client.
In sum, the service data interaction method that the embodiment of the invention two provides, display terminal obtains from server when historical log and network are unobstructed in browser login interface and client, and carry out service data interaction by this client and server.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; In addition, the service data interaction method that the embodiment of the invention two provides, terminal is obtained automatically or is upgraded login interface and client, solve prior art and be subject to the limited and ardware feature of SIM self-capacity, the problem that development process is comparatively loaded down with trivial details and upgrading is difficult reaches the purpose of simplifying deployment and escalation process; At last, the service data interaction method that the embodiment of the invention two provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment three
Please refer to Fig. 4, it shows the method flow diagram of the service data interaction method that the embodiment of the invention three provides.The enforcement environment of this data interactive method can be applied to carry out data interaction with terminal in server as shown in Figure 1.This data interactive method can comprise:
Step 302 when the network of terminal login and this terminal is unobstructed, provides login interface to this terminal, so that this login interface of this terminal buffers; And in browser, show this login interface; And finish authentication by this login interface that shows;
Step 304 is proved to be successful and the network of this terminal when unobstructed at this terminal identity, provides client to this terminal, so that this client of this terminal buffers; And in this browser, show the interface of this client; And carry out data interaction by interface and this server of this client.
In sum, the service data interaction method that the embodiment of the invention three provides provides login interface and client to terminal when terminal network is unobstructed, so that terminal shows the interface of this login interface and client in browser.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the service data interaction method that the embodiment of the invention three provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment four
The more preferred scheme of the service data interaction method that provides based on above-described embodiment three please refer to Fig. 5, and it shows the method flow diagram of the service data interaction method that the embodiment of the invention four provides.The enforcement environment of this data interactive method can be applied to carry out data interaction with terminal in server as shown in Figure 1.This data interactive method can comprise:
Step 402, server provides login interface to this terminal when the network of terminal login and this terminal is unobstructed, in case this login interface of this terminal buffers, and in browser, show this login interface, and finish authentication by this login interface that shows;
Concrete, when user's logon server in terminal, and terminal detects this locality not during this login interface of buffer memory, and terminal can send login interface to server and obtain request, after server receives this request, this login interface is sent to this terminal.
Wherein, when terminal is finished authentication by the login interface that shows, can be finished the step of authentication by server, also can be finished the step of this authentication by terminal voluntarily.Concrete,
When the network of this terminal was unobstructed, server received this terminal identify label and authentication password that send, that the user imports in this login interface; Carry out authentication according to this identify label that receives and authentication password; And will verify that the result returns to this terminal.
Perhaps, server provides the authentication password corresponding with this identify label to this terminal, so that the authentication password that this terminal buffers is corresponding with this identify label, and identify label and the authentication password imported in this login interface according to the user, and the authentication password corresponding with this identify label of buffer memory carried out authentication; Wherein, corresponding with this identify label authentication password is the authentication password that sends to this terminal after server is encrypted in irreversible mode.
In addition, the login interface that detects buffer memory when this terminal needs to upgrade, and the network of this terminal is when unobstructed, and server provides the login interface of latest edition to this terminal.Concrete, before the login interface of terminal display buffer, can also obtain the version number of the login interface of latest edition from server, and whether the version number of the login interface of storing in the version number of detecting this latest edition and the terminal is consistent, if both are inconsistent, then terminal can send the request of the login interface obtain latest edition to server, after server receives this request, the login interface of latest edition is returned to this terminal.
Step 404, server is proved to be successful and the network of this terminal when unobstructed at this terminal identity, provides client to this terminal, so that this client of this terminal buffers and show the interface of this client in this browser;
In addition, the client that detects buffer memory when this terminal needs to upgrade, and the network of this terminal is when unobstructed, and server can provide the client of latest edition to this terminal.
Wherein, server provides the concrete steps of client and provides the step of login interface similar to terminal to terminal, repeats no more herein.
Step 406, server carries out data interaction by interface and this terminal of this client.
Wherein, data interaction can comprise to client provides the business datum inquiry service, perhaps, receives the business datum that client reports.Concrete:
When the network of this terminal was unobstructed, server can provide business datum to this terminal; The corresponding data of data query operation (such as the inquire button of clicking a certain business datum) of carrying out in the interface of the client that this business datum shows in browser for the user.
Server can also receive the business datum of this terminal to report; Wherein, this business datum comprises:
When the network of this terminal was obstructed, this terminal received and cached business data by the interface of the client that shows in browser;
And/or, when the network of this terminal is unobstructed, the business datum that the interface of this terminal by the client that shows in browser receives.
In sum, the service data interaction method that the embodiment of the invention four provides provides login interface and client to terminal when terminal network is unobstructed, so that terminal shows the interface of this login interface and client in browser.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the service data interaction method that the embodiment of the invention four provides, server provides login interface and client from the trend terminal, solve prior art and be subject to the limited and ardware feature of SIM self-capacity, the problem that development process is comparatively loaded down with trivial details and upgrading is difficult reaches the purpose of simplifying deployment and escalation process; At last, the service data interaction method that the embodiment of the invention four provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment five
Please refer to Fig. 6, it shows the method flow diagram of the service data interaction method that the embodiment of the invention five provides.The enforcement environment of this data interactive method as shown in Figure 1.Be example to be applied to certain sale management system, this service data interaction method can comprise:
Step 502, portable terminal detect the user and import specified URL in browsers when network is obstructed, show the login interface of buffer memory in advance in browser;
When the user is in the obstructed region of network, during such as basement, in the browser of portable terminal, import the URL of server, portable terminal detects local cache login interface, then this login interface is presented in the browser.This login interface be portable terminal when network is unobstructed, send to this portable terminal by server.
Step 504, portable terminal receives identify label and the authentication password that the user imports in this login interface;
This identify label can be the login account of registered in advance, such as mailbox number or user name.
Step 506, portable terminal carries out authentication according to the authentication password corresponding with this identify label of buffer memory in the identify label of user input and authentication password and this portable terminal;
Wherein, to carry out authentication be portable terminal when being in the unobstructed region of network to the authentication password corresponding with this identify label of buffer memory in this portable terminal, and server is encrypted the authentication password that the back sends in irreversible mode.
Step 508, after the authentication success, portable terminal shows the interface of the client of local cache in browser;
Same, this client be portable terminal when network is unobstructed, send to this portable terminal by server.
Step 510, portable terminal receives user's business datum that import, to be uploaded in the interface of client, and this business datum is buffered in this locality;
Portable terminal is buffered in this locality detecting network when obstructed with the business datum that receives, and constantly attempts connecting network.
Step 512 when portable terminal moves to the unobstructed place of network, is uploaded to server with buffer memory, to be uploaded business datum;
After portable terminal connects the network success, buffer memory, to be uploaded business datum is sent to server.
Step 514, portable terminal detect user's data query operation in the interface of client, send the request of inquiry corresponding service data to server;
After step 516, server receive this request, inquiry corresponding service data;
Step 518, server sends to portable terminal with the business datum that inquires;
Step 520, portable terminal show this business datum that receives to the user.
In sum, the service data interaction method that the embodiment of the invention five provides, portable terminal when network is obstructed, the interface of the login interface of display buffer and client in browser.Because portable terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art portable terminal need with the server problem of networking in real time, reach when portable terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the service data interaction method that the embodiment of the invention five provides, server provides login interface and client from the trend portable terminal, solve prior art and be subject to the limited and ardware feature of SIM self-capacity, the problem that development process is comparatively loaded down with trivial details and upgrading is difficult reaches the purpose of simplifying deployment and escalation process; At last, the service data interaction method that the embodiment of the invention five provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment six
Please refer to Fig. 7, it shows the equipment pie graph of the terminal that the embodiment of the invention six provides.This terminal can be implemented as terminal as shown in Figure 1.This terminal can comprise:
Login interface display module 601 is used for showing login interface at browser, and to be described terminal when historical log and network are unobstructed obtain and the login interface of buffer memory from server described login interface;
First authentication module 602 is used for finishing authentication by the described login interface that described login interface display module 601 shows;
Client end interface display module 603, be used for when described authentication is successful, to be described terminal when historical authentication success and network are unobstructed obtain and the client of buffer memory from described server for the interface of display client in described browser, described client;
Data interaction module 604 is used for carrying out service data interaction by described client and described server.
In sum, the terminal that the embodiment of the invention six provides, display terminal obtains from server when historical log and network are unobstructed in browser login interface and client, and carry out service data interaction by this client and server.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the terminal that the embodiment of the invention six provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment seven
The more preferred scheme of the terminal that provides based on above-described embodiment six please refer to Fig. 8, and it shows the equipment pie graph of the terminal that the embodiment of the invention seven provides.This terminal can be implemented as terminal as shown in Figure 1, such as smart mobile phone, panel computer or E-book reader etc.This terminal can comprise:
Login interface display module 701 is used for showing login interface at browser, and to be described terminal when historical log and network are unobstructed obtain and the login interface of buffer memory from server described login interface;
First authentication module 702 is used for finishing authentication by the described login interface that described login interface display module 701 shows;
Client end interface display module 703, be used for when described authentication is successful, to be described terminal when historical authentication success and network are unobstructed obtain and the client of buffer memory from described server for the interface of display client in described browser, described client;
Data interaction module 704 is used for carrying out service data interaction by described client and described server.
Described first authentication module 702 comprises:
The first receiving element 702a is used for receiving identify label and the authentication password that the user imports at described login interface;
The first transmitting element 702b, be used for selecting server authentication as the user, and when network was unobstructed, identify label and authentication password that described user is imported sent to described server, so that described server carries out authentication according to identify label and the authentication password of described user's input;
The second receiving element 702c is used for receiving the checking result that described server returns;
Detecting unit 702d is used for detecting whether be cached with the authentication password corresponding with described identify label in the described terminal when the user does not select server authentication;
The first authentication unit 702e, be used for if the testing result of detecting unit 702d is that described terminal is cached with the authentication password corresponding with described identify label, then carry out authentication according to the authentication password corresponding with described identify label of buffer memory in the identify label of described user's input and authentication password and the described terminal;
Password acquiring unit 702f, be used for if the testing result of detecting unit 702d is that described terminal is not cached with the authentication password corresponding with described identify label, and network is unobstructed, then obtains the corresponding authentication password of described and described identify label from described server;
Password buffer unit 702g is used for the corresponding authentication password of described and described identify label that the described password acquiring unit of buffer memory 702f gets access to;
The second authentication unit 702h is used for carrying out authentication according to the identify label of described user's input with authentication password and the corresponding authentication password of described and described identify label;
Wherein, the corresponding authentication password of described and described identify label is the authentication password after described server is encrypted in irreversible mode.
Described terminal also comprises:
First detection module 705 was used at described login interface display module 701 before browser shows login interface, and when network was unobstructed, whether the login interface that detects described buffer memory needed to upgrade;
First download module 706 is used for then downloading the login interface of latest edition from described server if described login interface needs to upgrade;
First update module 707 is used for upgrading with the login interface of the described latest edition of described first download module 706 downloads the login interface of described buffer memory.
Described terminal also comprises:
Second detection module 708 was used at described client end interface display module 703 before the interface of described browser display client, and when network was unobstructed, whether the client that detects described buffer memory needed to upgrade;
Second download module 709 is used for then downloading the client of latest edition from described server if described client needs to upgrade;
Second update module 710 is used for upgrading with the client of the described latest edition of described second download module 709 downloads the client of described buffer memory.
Described data interaction module 704 comprises:
Data query unit 704a is used for when network is unobstructed, operates to described server lookup business datum according to the data query of user in the interface of described client.
Described data interaction module 704 comprises:
Data receiving element 704b is used for the interface reception business datum to be reported by the described client that shows at described browser;
Data buffer storage unit 704c is used for when network is obstructed, by the described business datum of described client-cache;
First reports unit 704d, is used for reporting described data buffer storage unit 704c cached business data to server when next network is unobstructed;
Second reports unit 704e, is used for when network is unobstructed, directly the business datum that reports described data receiving element 704b to receive to described server.
In sum, the terminal that the embodiment of the invention seven provides, display terminal obtains from server when historical log and network are unobstructed in browser login interface and client, and carry out service data interaction by this client and server.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; In addition, the terminal that the embodiment of the invention seven provides is obtained automatically or is upgraded login interface and client, has solved prior art and has been subject to the limited and ardware feature of SIM self-capacity, the problem that development process is comparatively loaded down with trivial details and upgrading is difficult reaches the purpose of simplifying deployment and escalation process; At last, the terminal that the embodiment of the invention seven provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment eight
Please refer to Fig. 9, it shows the equipment pie graph of the server that the embodiment of the invention eight provides.This server can be implemented as server as shown in fig. 1.This server can comprise:
First login interface provides module 801, is used for network in terminal login and described terminal when unobstructed, provides login interface to described terminal, so that the described login interface of described terminal buffers; And in browser, show described login interface; And finish authentication by the described login interface that shows;
First client provides module 802, is used for being proved to be successful and the network of described terminal when unobstructed at described terminal identity, provides client to described terminal, so that the described client of described terminal buffers; And in described browser, show the interface of described client; And carry out data interaction by interface and the described server of described client.
In sum, the server that the embodiment of the invention eight provides provides login interface and client to terminal when terminal network is unobstructed, so that terminal shows the interface of this login interface and client in browser.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the server that the embodiment of the invention eight provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment nine
The more preferred scheme of the server that provides based on above-described embodiment eight please refer to Figure 10, and it shows the equipment pie graph of the server that the embodiment of the invention nine provides.This server can be implemented as server as shown in fig. 1.This server can comprise:
First login interface provides module 901, is used for network in terminal login and described terminal when unobstructed, provides login interface to described terminal, so that the described login interface of described terminal buffers; And in browser, show described login interface; And finish authentication by the described login interface that shows;
First client provides module 902, is used for being proved to be successful and the network of described terminal when unobstructed at described terminal identity, provides client to described terminal, so that the described client of described terminal buffers; And in described browser, show the interface of described client; And carry out data interaction by interface and the described server of described client.
Described server also comprises:
First receiver module 903 is used for network in described terminal when unobstructed, receives described terminal identify label and authentication password that send, that the user imports in described login interface;
Second authentication module 904 is used for carrying out authentication according to described identify label and authentication password that described first receiver module 903 receives;
The checking result returns module 905, is used for the checking result of described second authentication module 904 is returned to described terminal.
Described server also comprises:
Authentication password provides module 906, be used for providing the authentication password corresponding with described identify label to described terminal, so that the corresponding authentication password of the described and described identify label of described terminal buffers, and the identify label of importing in described login interface according to described user and the corresponding authentication password of described and described identify label of authentication password and buffer memory are carried out authentication;
Wherein, the corresponding authentication password of described and described identify label is the authentication password after encrypting in irreversible mode.
Described server also comprises:
Second login interface provides module 907, and the login interface that is used for detecting when described terminal described buffer memory needs to upgrade, and the network of described terminal provides the login interface of latest edition when unobstructed to described terminal.
Described server also comprises:
Second client provides module 908, and the client that is used for detecting when described terminal described buffer memory needs to upgrade, and the network of described terminal provides the client of latest edition when unobstructed to described terminal.
Described server also comprises:
Data provide module 909, are used for network when described terminal when unobstructed, provide business datum to described terminal; Described business datum is that the data query in the interface of the client that shows in described browser of described user is operated corresponding data.
Described server also comprises:
Data reception module 910 is for the business datum that receives described terminal to report;
Wherein, described business datum comprises:
When the network of described terminal was obstructed, described terminal received and cached business data by the interface of the client that shows in described browser;
And/or, when the network of described terminal is unobstructed, the business datum that the interface of described terminal by the client that shows in described browser receives.
In sum, the server that the embodiment of the invention nine provides provides login interface and client to terminal when terminal network is unobstructed, so that terminal shows the interface of this login interface and client in browser.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; Secondly, the server that the embodiment of the invention nine provides provides login interface and client from the trend terminal, has solved prior art and has been subject to the limited and ardware feature of SIM self-capacity, the problem that development process is comparatively loaded down with trivial details and upgrading is difficult reaches the purpose of simplifying deployment and escalation process; At last, the server that the embodiment of the invention nine provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Embodiment ten
Please refer to Figure 11, it shows system's pie graph of the service data interaction system that the embodiment of the invention nine provides.This service data interaction system can be implemented in as shown in Figure 1 the enforcement environment.This service data interaction system can comprise:
Terminal 001 shown in above-mentioned embodiment five or embodiment six and the server 002 shown in above-mentioned embodiment seven or embodiment eight.
In sum, the service data interaction system that the embodiment of the invention ten provides, terminal are presented at login interface and the client that historical log and network obtain from server when unobstructed in browser, and carry out service data interaction by this client and server.Because terminal can buffer memory login interface and client, when network is obstructed, also can finish the login of client, solved in the prior art terminal need with the server problem of networking in real time, reach when terminal and be in purpose from the obstructed environment of network to server that also can upload business datum under; In addition, the system that the embodiment of the invention ten provides, terminal obtain automatically or upgrade login interface and client, have solved prior art and have been subject to the limited and ardware feature of SIM self-capacity, the problem that development process is comparatively loaded down with trivial details and upgrading is difficult reaches the purpose of simplifying deployment and escalation process; At last, the system that the embodiment of the invention ten provides, the framework of login interface and customer end adopted HTML5+JavaScript+CSS is developed, solved in the prior art when developing based on embedded device, need to consider the ardware feature of different embedded devices, the problem of the construction cycle that cross-platform adaptive needs are long and more development cost reaches raising development efficiency, shorten the construction cycle, significantly save the purpose of development cost.
Need to prove: the terminal that above-described embodiment provides and server are when carrying out service data interaction, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the terminal that above-described embodiment provides and server and service data interaction method embodiment belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.