Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is service data updating method first embodiment schematic flow sheet of the present invention, and as shown in Figure 1, service data updating method of the present invention comprises the following steps:
Step S01, user end to server send the network connecting request comprising account information and authorization information;
When client is according to the account information logon server preset, the network connecting request comprising authorization information is sent to server, the information such as the account of the identification information of self, current login can be registered at server by client simultaneously, and each login all need be registered at server; This is because, same account information can log in different clients, when adopting account information logon server, each login is carried out registering so that server can obtain the identification information of the client at same account place if the identification information of this client is as GUID(Globally Unique Identifier, overall situation unique identifier), so that the follow-up account information according to client logs, server finds the client adopting this account information to log in reference to the identification information stored; Because the identification information of client is as all unique for every platform machine in GUID information, therefore server can uniquely locate a client according to the identification information of client.
Step S02, server are according to described account information and authorization information, and when verifying described network connecting request for effectively asking, setting up network with the first client is connected;
When server receives the network connecting request that client sends, according to the authorization information comprised in the account information of client logs and this network connecting request, whether the network connecting request that checking client sends is effective request; If be verified the network connecting request that this client sends, the network connecting request that namely this client sends is effective connection request, then server is set up network with this client and is connected; Meanwhile, server preserves this network connection information of this client, such as the account information etc. of http link information, GUID information and client logs.
When step S03, the first client detect the service data updating instruction of user's triggering, upgrade corresponding business datum, and send service data updating information to server.
The instruction that client detecting real-time user triggers; When detecting the service data updating instruction that user triggers, the service data updating instruction that response user triggers, according to described service data updating instruction, upgrades corresponding business datum; Meanwhile, send service data updating information to server, so that server is according to the service data updating information of this service data updating information to other clients transmission correspondence of current login.
For network bookmark, when user utilizes existing account information to log in, handset starting worker thread; Worker thread initiates http request to server, and the http request of this url form is as follows: http: // 10.208.143.31:8080/sub uin=%s & skey=%s & ver=0.1 & rid=%d & guid=%s; Wherein uin field is the account number of the current login of browser, and skey is for logging in bill and authorization information, and server is used for verifying whether the http request that the worker thread on mobile phone is initiated to server is effective request according to logging in bill; Ver is reserved field, does not use temporarily; Rid is the random number that client generates; Guid is that client is used for identifying client, and every platform machine is all only.After server receives http request, from url, parse account and log in bill.If the verification passes, then server preserves this client-side information, and the information of this client that server is preserved comprises the account of http link information, guid information, user's login.When the worker thread on mobile phone detects the renewal of the network bookmark that user triggers, during as added new web tab, deletion or changing the web tab stored, the lastest imformation of web tab is sent to server by client, and the lastest imformation of this web tab comprises the latest edition information etc. of the account information of login, network bookmark.
Similarly, this enforcement is also applicable to other service data updating, such as carry out personal settings to the MSN under a certain account, as the personal information etc. in change QQ chat software, the present embodiment does not carry out exhaustive one by one to concrete type of service and business datum.
The present embodiment user end to server sends the network connecting request comprising account information and authorization information; Server is according to described account information and authorization information, and when verifying described network connecting request for effectively asking, setting up network with client is connected; When client detects the service data updating instruction of user's triggering, upgrade corresponding business datum, and the method for service data updating information is sent to server, there is the beneficial effect of the business datum in real-time update client, improve man-machine interaction.
Fig. 2 is service data updating method second embodiment schematic flow sheet of the present invention, embodiment illustrated in fig. 2ly adds on the basis of embodiment described in Fig. 1:
Step S04, server receive the described service data updating information that the first client sends;
Step S05, described account information according to the first client logs, other clients except the first client that whois lookup utilizes described account information to log in, and the described service data updating information received is sent to other clients found.
Based on the specific descriptions of embodiment described in Fig. 1, the present embodiment is when step S03, the first client detect the service data updating instruction of user's triggering, upgrade corresponding business datum, and send service data updating information to server, add step S04 and step S05 afterwards; The present embodiment is only specifically described step S04 and step S05, and relevant other steps involved by the present embodiment service data updating method please refer to the specific descriptions of embodiment described in Fig. 1, do not repeat them here.
As shown in Figure 2, in the present embodiment, when the first client detects the service data updating instruction of user's triggering, upgrade the business datum of self correspondence of this client, send service data updating information to server simultaneously; When server receives the described service data updating information of the first client transmission, the described account information logged in is carried out according to first client of preserving, search other clients except the first client utilizing this account information to log in, and the described service data updating information received is sent to other clients found.Certainly, the service data updating information that the first client sends also directly can be sent to all clients utilizing this account information to log in by server, comprises described first client.
Particularly, please refer to Fig. 3, Fig. 3 is server and client one deployment scenario schematic diagram in service data updating method of the present invention; For network bookmark, in deployment scenario schematic diagram shown in Fig. 3, after server receives the modification information made network bookmark that the first client sends, according to the account information of this first accessing server by customer end, search all clients that with described account information log in that are connected current with this server; Find and to log in this account information and after carrying out with server is current the client communicated to connect, server is issued to the client of all this accounts of login by receiving the lastest imformation of network bookmark that described first client sends.
Fig. 4 is service data updating method the 3rd embodiment schematic flow sheet of the present invention, embodiment illustrated in fig. 4ly adds on the basis of embodiment described in Fig. 2:
Step S06, other clients, according to the described service data updating information received, upgrade the business datum of self correspondence respectively.
Based on the specific descriptions of embodiment described in Fig. 2, the present embodiment is in step S05, described account information according to the first client logs, other clients except the first client that whois lookup utilizes described account information to log in, and the described service data updating information received is sent to other clients found, add step S06 afterwards; The present embodiment is only specifically described step S06, and relevant other steps involved by the present embodiment service data updating method please refer to the specific descriptions of above-mentioned related embodiment, do not repeat them here.
After other all clients adopting this account to log in receive the service data updating information that server issues, according to the current service data information that self stores, upgrade the business datum of self correspondence.
After each client receives the service data updating information that server issues, the business datum of the correspondence that comparison self stores, identifies that whether the business datum self stored is consistent with the service data updating information that server issues; Namely according to the service data updating information that server issues, each client judges whether the business datum self stored is up-to-date business datum.When the business datum that client identifies self storage is consistent with the service data updating information that server issues, the business datum of the current storage of client is the business datum of latest edition, without the need to upgrading; When client identifies the business datum that self stores and the service data updating information that issues of server is inconsistent, the service data updating information that client issues according to server, upgrade the business datum of the correspondence that self stores, the service data updating information making it to issue with server is consistent.
Further describing of connection with step S06 please refer to Fig. 5, and Fig. 5 is that in service data updating method of the present invention, client, according to the service data updating information received, upgrades the business datum one embodiment schematic flow sheet of self correspondence; As shown in Figure 5, step S06, other clients, according to the described service data updating information received, upgrade the business datum of self correspondence respectively, comprising:
Step S11, according to described service data updating information, obtain corresponding business datum version number;
The service data updating information that client issues according to server, obtains the business datum version number that this business datum is corresponding.Because the renewal of some business datum in client carries out judging with the version number that this business datum is corresponding, such as network bookmark.
For network bookmark, the initial version number of the network bookmark that client is preserved is 0, network bookmark often upgrades once, the version number that this network bookmark is corresponding just adds 1 automatically, and namely the version number of the business datum that this network bookmark that client stores is corresponding represents the lastest imformation of this network bookmark.
Whether the described business datum version number that step S12, identification obtain is consistent with the business datum version number that self stores; If so, then step S13 is performed; If not, then step S14 is performed;
Step S13, corresponding business datum do not upgrade;
Step S14, according to the described service data updating information obtained, upgrade corresponding business datum.
Client is by the business datum version number by service data updating acquisition of information, and the business datum version number corresponding with this business that self stores compares; Judge that whether the business datum version number obtained is consistent with the business datum version number that self stores.
If the business datum version number obtained is consistent with the business datum version number that self stores, then show that the current business datum of client is latest data, without the need to again upgrading; If the business datum version number obtained and the business datum version number that self stores inconsistent, then client is according to the described service data updating information received, upgrade the business datum corresponding to same business of having preserved, upgrade the business datum version number that this business datum is corresponding simultaneously.
The present embodiment service data updating method, is issued to all clients of same login account by the business lastest imformation of acquisition by server; Each client upgrades the method for the business datum of self according to business lastest imformation, when the client that same account login multiple stage is different, there is the beneficial effect of same business datum in each client under the same account of real-time update, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Based on the specific descriptions of the various embodiments described above, for network bookmark, the implementation procedure of service data updating method of the present invention is described again.Please refer to Fig. 6, Fig. 6 is server and the another deployment scenario schematic diagram of client in service data updating method of the present invention; In the present embodiment, server is divided into bookmark service device and message server.The account information of the GUID of client, current login, according to the account information log messages server pre-set, is registered by client simultaneously on message server, sends the http request comprising authorization information simultaneously; After message server is verified, client and message server maintain a http long-chain and connect; Namely message server and client maintain and communicate to connect.
And network bookmark corresponding to this account is stored in bookmark service device, after the operations such as client increases network bookmark, delete, change, by the whole long pass of amended network bookmark to bookmark service device; Bookmark service device storage networking bookmark data, and safeguard a version number for this network bookmark, setting initial version number is 0; Afterwards, when bookmark service device often receives the network bookmark of client upload, while upgrading the network bookmark data stored, the version number of the bookmark of preservation is added 1.
When bookmark service device receives the lastest imformation of the network bookmark that client sends, the lastest imformation of network bookmark is sent to message server by bookmark service device; The lastest imformation of described network bookmark comprises the account information of login and the latest edition number of bookmark.The lastest imformation of the network bookmark that message server sends according to bookmark service device, searches all clients logging in this account, bookmark lastest imformation is connected by http and sends to client; The lastest imformation of the network bookmark that client sends according to message server, obtains the account information in lastest imformation and latest version information; If client is identical with current login account, and the network bookmark version information of client this locality is different from the version in lastest imformation, then client trigger network bookmark more new logic, upgrades the network bookmark stored.
Utilize the present embodiment service data updating method, when making same login account use network bookmark or other business datums in different clients simultaneously, can same business datum under the same account of real-time update in each client, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Fig. 7 is service data updating method the 4th embodiment schematic flow sheet of the present invention; In the present embodiment, by client executing service data updating method.
Based on the specific descriptions of embodiment described in Fig. 1 to Fig. 6, as shown in Figure 7, comprise the following steps in client executing service data updating method of the present invention:
Step S101, the first user end to server send the network connecting request comprising account information and authorization information;
When first client is according to the account information logon server preset, the network connecting request comprising authorization information is sent to server, the information such as the account of the identification information of self, current login can be registered at server by client simultaneously, and each login all need be registered at server; This is because, same account information can log in different clients, when adopting account information logon server, each login is carried out registering so that server can obtain the identification information of the client at same account place if the identification information of this client is as GUID, so that the follow-up account information according to client logs, server finds the client adopting this account information to log in reference to the identification information stored; Because the identification information of client is as all unique for every platform machine in GUID information, therefore server can uniquely locate a client according to the identification information of client.
The response message that step S102, the first client reception server return when verifying described network connecting request for effectively asking according to described account information and authorization information, sets up network with server and is connected;
When server receives the network connecting request that client sends, according to the authorization information comprised in the account information of client logs and this network connecting request, whether the network connecting request that checking client sends is effective request; If be verified the network connecting request that this client sends, namely the network connecting request that this client sends is effective connection request, then server returns response message to the first client, the response message that first client reception server returns when verifying described network connecting request for effectively asking according to described account information and authorization information, sets up network with server and is connected.
When step S103, the first client detect the service data updating instruction of user's triggering, upgrade corresponding business datum, and send service data updating information to server.
The instruction that client detecting real-time user triggers; When detecting the service data updating instruction that user triggers, the service data updating instruction that response user triggers, according to described service data updating instruction, upgrades corresponding business datum; Meanwhile, send service data updating information to server, so that server is according to the service data updating information of this service data updating information to other clients transmission correspondence of current login.
Further, when first client detects the service data updating instruction of user's triggering, upgrade corresponding business datum, and to after server sends service data updating information, server is according to the account information of the first client logs, search other clients adopting same account information to log in the first client, and service data updating information is sent to other clients adopting same account information to log in; The Data Update information that other client reception servers adopting described account information to log in send, upgrades the business datum of self correspondence respectively.
Further, other clients adopting described account information to log in receive the Data Update information that server sends, and upgrade the business datum of self correspondence respectively, comprising:
According to described service data updating information, obtain corresponding business datum version number; Identify that whether the described business datum version number obtained is consistent with the business datum version number that self stores; If the described business datum version number of the business datum version number that self stores and acquisition is inconsistent, then according to the described service data updating information obtained, upgrade corresponding business datum.If the business datum version number that self stores is consistent with the described business datum version number of acquisition, then show that the corresponding business datum self stored is latest data, without the need to upgrading.
The present embodiment user end to server sends the network connecting request comprising account information and authorization information, the response message that reception server returns when verifying described network connecting request for effectively asking according to described account information and authorization information, sets up network with server and is connected; When detecting the service data updating instruction that user triggers, upgrade corresponding business datum, and send the method for service data updating information to server, there is the beneficial effect of the business datum in real-time update client, improve man-machine interaction; Further, when the client that same account login multiple stage is different, there is the beneficial effect of same business datum in each client under the same account of real-time update, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Fig. 8 is service data updating method the 5th embodiment schematic flow sheet of the present invention; In the present embodiment, perform service data updating method of the present invention by server.
Based on the specific descriptions of embodiment described in Fig. 1 to Fig. 6, as shown in Figure 8, perform service data updating method of the present invention at server to comprise the following steps:
Step S201, receive first client send the network connecting request comprising account information and authorization information;
Step S202, according to described account information and authorization information, verify described network connecting request for effectively ask time, setting up network with the first client is connected;
Server receive client send comprise the network connecting request of account information and authorization information time, according to the authorization information comprised in the account information of client logs and this network connecting request, whether the network connecting request that checking client sends is effective request; If be verified the network connecting request that this client sends, the network connecting request that namely this client sends is effective connection request, then server is set up network with this client and is connected; Meanwhile, server preserves this network connection information of this client, such as the account information etc. of http link information, GUID information and client logs.
Step S203, receive the first client service data updating information of sending when detecting the service data updating instruction that user triggers.
When the first client detects the service data updating instruction of user's triggering, the service data updating instruction that response user triggers, according to described service data updating instruction, upgrades corresponding business datum; Meanwhile, service data updating information is sent to server; Server receives the service data updating information that the first client sends when detecting the service data updating instruction that user triggers.
In a preferred embodiment, server according to the described service data updating information received, can upgrade the business datum version number corresponding to same business preserved.
Further, server is according to the described account information of the first client logs, search other clients except the first client utilizing described account information to log in, and the described service data updating information received is sent to other clients found.
The present embodiment server receives the network connecting request comprising account information and authorization information that the first client sends; According to described account information and authorization information, when verifying described network connecting request for effectively asking, setting up network with the first client is connected; Receiving the method for the service data updating information that the first client sends when detecting the service data updating instruction that user triggers, there is the beneficial effect of the business datum in real-time update client, improve man-machine interaction; Further, when the client that same account login multiple stage is different, there is the beneficial effect of same business datum in each client under the same account of real-time update, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Fig. 9 is service data updating system first embodiment high-level schematic functional block diagram of the present invention; As shown in Figure 9, service data updating system of the present invention comprises: the first client 01 and server 02.
First client 01 sends the network connecting request comprising account information and authorization information to server 02; Server 02 is according to described account information and authorization information, and when verifying described network connecting request for effectively asking, setting up network with the first client 01 is connected; First client 01 is being set up after network is connected with server 02, when detecting the service data updating instruction that user triggers, upgrades corresponding business datum, and sends service data updating information to server 02.
Further, when client 01 is according to the account information logon server 02 preset, the network connecting request comprising authorization information is sent to server 02, the information such as the account of the identification information of self, current login can be registered at server 02 by client 01 simultaneously, and each login all need be registered at server 02; This is because, same account information can log in different clients 01, when adopting account information logon server 02, each login is carried out registering so that server 02 can obtain the identification information of the client 01 at same account place if the identification information of this client 01 is as GUID, so that the follow-up account information logged according to client 01, server 02 finds the client 01 adopting this account information to log in reference to the identification information stored; Because the identification information of client 01 is as all unique for every platform machine in GUID information, therefore server 02 can uniquely locate a client 01 according to the identification information of client 01.
When server 02 receives the network connecting request that client 01 sends, the authorization information that comprises in the account information logged according to client 01 and this network connecting request, whether the network connecting request that checking client 01 sends is effective request; If be verified the network connecting request that this client 01 sends, the network connecting request that namely this client 01 sends is effective connection request, then server 02 is set up network with this client 01 and is connected; Meanwhile, server 02 preserves this network connection information of this client 01, the account information etc. that such as http link information, GUID information and client 01 log in.
The instruction that client 01 detecting real-time user triggers; When detecting the service data updating instruction that user triggers, the service data updating instruction that response user triggers, according to described service data updating instruction, upgrades corresponding business datum; Meanwhile, send service data updating information to server 02, so that server 02 sends corresponding service data updating information according to this service data updating information to other clients 01 of current login.
For network bookmark, when user utilizes existing account information to log in, client 01 i.e. handset starting worker thread; Worker thread initiates http request to server 02, and such as, represent with url form one concrete http request is as follows:
Http: // 10.208.143.31:8080/sub uin=%s & skey=%s & ver=0.1 & rid=%d & guid=%s; Wherein uin field is the account number of the current login of browser, and skey is for logging in bill and authorization information, and server 02 is used for verifying whether the http request that the worker thread on mobile phone is initiated to server 02 is effective request according to logging in bill; Ver is reserved field, does not use temporarily; Rid is the random number that client 01 generates; Guid is that client 01 is used for identifying client 01, and every platform machine is all only.After server 02 receives http request, from url, parse account and log in bill.If the verification passes, then server 02 preserves this client 01 information, and the information of this client 01 that server 02 is preserved comprises the account of http link information, guid information, user's login.When the worker thread on mobile phone detects the renewal of the network bookmark that user triggers, during as added new web tab, deletion or changing the web tab stored, the lastest imformation of web tab is sent to server 02 by client 01, and the lastest imformation of this web tab comprises the latest edition information etc. of the account information of login, network bookmark.
Similarly, this enforcement is also applicable to other service data updating, such as carry out personal settings to the MSN under a certain account, as the personal information etc. in change QQ chat software, the present embodiment does not carry out exhaustive one by one to concrete type of service and business datum.
The present embodiment user end to server sends the network connecting request comprising account information and authorization information; Server is according to described account information and authorization information, and when verifying described network connecting request for effectively asking, setting up network with client is connected; When client detects the service data updating instruction of user's triggering, upgrade corresponding business datum, and the method for service data updating information is sent to server, there is the beneficial effect of the business datum in real-time update client, improve man-machine interaction.
Figure 10 is service data updating system second embodiment high-level schematic functional block diagram of the present invention; Based on the specific descriptions of embodiment described in Fig. 9, service data updating system of the present invention also comprises other clients except the first client 01, in the present embodiment, above-mentioned client except the first client 01 is referred to as other clients 100.
Server 02 receives the described service data updating information that the first client 01 sends, and according to the described account information that the first client 01 logs in, server 02 searches other clients 100 except the first client 01 utilizing described account information to log in, and the described service data updating information received is sent to other clients 100 found.
As shown in Figure 10, in the present embodiment, when the first client 01 detects the service data updating instruction of user's triggering, upgrade the business datum of this self correspondence of client 01, send service data updating information to server 02 simultaneously; When server 02 receives the described service data updating information of the first client 01 transmission, the described account information logged in is carried out according to first client 01 of preserving, search other clients 100 except the first client 01 utilizing this account information to log in, and the described service data updating information received is sent to other clients 100 found.In deployment scenario schematic diagram shown in Fig. 3, after server 02 receives the lastest imformation of a certain business that the first client 01 sends, according to the account information of this first client 01 logon server 02, search other clients 100 of with described account information logging in of being connected current with this server 02; Find and to log in this account information and after carrying out with server 02 is current other clients 100 communicated to connect, server 02 is issued to other clients 100 of all this accounts of login by receiving service data updating information that described first client 01 sends.
Further, after other all clients 100 adopting this account to log in receive the service data updating information that server 02 issues, according to the current service data information that self stores, upgrade the business datum of self correspondence.
After each client 100 receives the service data updating information that server 02 issues, the business datum of the correspondence that comparison self stores, identifies that whether the business datum self stored is consistent with the service data updating information that server 02 issues; Namely according to the service data updating information that server 02 issues, each client 100 judges whether the business datum self stored is up-to-date business datum.When the business datum that client 100 identifies self storage is consistent with the service data updating information that server 02 issues, the business datum of the current storage of client 100 is the business datum of latest edition, without the need to upgrading; When client 100 identifies the business datum that self stores and the service data updating information that issues of server 02 is inconsistent, the service data updating information that client 100 issues according to server 02, upgrade the business datum of the correspondence that self stores, the service data updating information making it to issue with server 02 is consistent.
Further, client 100, according to described service data updating information, obtains corresponding business datum version number; The service data updating information that client 100 issues according to server 02, obtains the business datum version number that this business datum is corresponding.Because the renewal of some business datum in client 100 carries out judging with the version number that this business datum is corresponding, such as network bookmark.
For network bookmark, the initial version number of the network bookmark that client 100 is preserved is 0, network bookmark often upgrades once, the version number that this network bookmark is corresponding just adds 1 automatically, and namely the version number of the business datum that this network bookmark that client 100 stores is corresponding represents the lastest imformation of this network bookmark.
Client 100 is by the business datum version number by service data updating acquisition of information, and the business datum version number corresponding with this business that self stores compares; Judge that whether the business datum version number obtained is consistent with the business datum version number that self stores.
If the business datum version number obtained is consistent with the business datum version number that self stores, then show that the current business datum of client 100 is latest data, without the need to again upgrading; If the business datum version number obtained and the business datum version number that self stores inconsistent, then client 100 is according to the described service data updating information received, upgrade the business datum corresponding to same business of having preserved, upgrade the business datum version number that this business datum is corresponding simultaneously.
The present embodiment service data updating system, is issued to all clients of same login account by the business lastest imformation of acquisition by server; Each client upgrades the business datum of self according to business lastest imformation, when the client that same account login multiple stage is different, there is the beneficial effect of same business datum in each client under the same account of real-time update, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Based on the specific descriptions of the various embodiments described above, for network bookmark, the implementation procedure of service data updating method of the present invention is described again.Figure 11 is service data updating system the 3rd embodiment high-level schematic functional block diagram of the present invention; Please with reference to Fig. 6 and Figure 11, in the present embodiment, server 02 is divided into bookmark service device 11 and message server 12.The account information of the GUID of client 01, current login, according to the account information log messages server 12 pre-set, is registered by client 01 simultaneously on message server 12, sends the http request comprising authorization information simultaneously; After message server 12 is verified, client 01 and message server 12 maintain a http long-chain and connect; Namely message server 12 and client 01 maintain and communicate to connect.
And network bookmark corresponding to this account is stored in bookmark service device 11, after the operations such as client 01 pair of network bookmark increases, delete, change, by the whole long pass of amended network bookmark to bookmark service device 11; Bookmark service device 11 storage networking bookmark data, and safeguard a version number for this network bookmark, setting initial version number is 0; Afterwards, when bookmark service device 11 often receives the network bookmark that client 01 uploads, while upgrading the network bookmark data stored, the version number of the bookmark of preservation is added 1.
When bookmark service device 11 receives the lastest imformation of the network bookmark that client 01 sends, the lastest imformation of network bookmark is sent to message server 12 by bookmark service device 11; The lastest imformation of described network bookmark comprises the account information of login and the latest edition number of bookmark.The lastest imformation of the network bookmark that message server 12 sends according to bookmark service device 11, searches all clients 100 logging in this account, bookmark lastest imformation is connected by http and sends to client 100; The lastest imformation of the network bookmark that client 100 sends according to message server, obtains the account information in lastest imformation and latest version information; If client 100 is identical with current login account, and the network bookmark version information of client 100 this locality is different from the version in lastest imformation, then client 100 trigger network bookmark more new logic, upgrades the network bookmark stored.
Utilize the present embodiment service data updating system, when making same login account use network bookmark or other business datums in different clients simultaneously, can same business datum under the same account of real-time update in each client, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Figure 12 is service data updating client first embodiment high-level schematic functional block diagram of the present invention; Based on the specific descriptions of embodiment described in Fig. 9 to Figure 11, as shown in figure 12, service data updating client of the present invention comprises: the first client 01, for:
The network connecting request comprising account information and authorization information is sent to server;
The response message that reception server returns when verifying described network connecting request for effectively asking according to described account information and authorization information, sets up network with server and is connected;
When detecting the service data updating instruction of user's triggering, upgrade corresponding business datum, and send service data updating information to server.
When first client 01 is according to the account information logon server preset, the network connecting request comprising authorization information is sent to server, the information such as the account of the identification information of self, current login can be registered at server by client 01 simultaneously, and each login all need be registered at server; This is because, same account information can log in different clients 01, when adopting account information logon server, each login is carried out registering so that server can obtain the identification information of the client 01 at same account place if the identification information of this client 01 is as GUID, so that the follow-up account information logged according to client 01, server finds the client 01 adopting this account information to log in reference to the identification information stored; Because the identification information of client 01 is as all unique for every platform machine in GUID information, therefore server can uniquely locate a client 01 according to the identification information of client 01.
When server receives the network connecting request that client 01 sends, the authorization information that comprises in the account information logged according to client 01 and this network connecting request, whether the network connecting request that checking client 01 sends is effective request; If be verified the network connecting request that this client 01 sends, namely the network connecting request that this client 01 sends is effective connection request, then server returns response message to the first client 01, the response message that first client 01 reception server returns when verifying described network connecting request for effectively asking according to described account information and authorization information, sets up network with server and is connected.
The instruction that client 01 detecting real-time user triggers; When detecting the service data updating instruction that user triggers, the service data updating instruction that response user triggers, according to described service data updating instruction, upgrades corresponding business datum; Meanwhile, send service data updating information to server, so that server sends corresponding service data updating information according to this service data updating information to other clients 01 of current login.
Further, please refer to Figure 13, Figure 13 is service data updating client second embodiment high-level schematic functional block diagram of the present invention; Business of the present invention upgrades client and also comprises other clients 100, and other clients 100 and the first client 01 adopt same described account information logon server.
Other clients 100 described for:
The Data Update information that reception server sends, upgrades the business datum of self correspondence respectively.
Other clients 100 described, according to described service data updating information, obtain corresponding business datum version number; Identify that whether the described business datum version number obtained is consistent with the business datum version number that self stores; If the described business datum version number of the business datum version number that self stores and acquisition is inconsistent, then according to the described service data updating information obtained, upgrade corresponding business datum.If the business datum version number that self stores is consistent with the described business datum version number of acquisition, then show that the corresponding business datum self stored is latest data, without the need to upgrading.
The present embodiment user end to server sends the network connecting request comprising account information and authorization information, the response message that reception server returns when verifying described network connecting request for effectively asking according to described account information and authorization information, sets up network with server and is connected; When detecting the service data updating instruction that user triggers, upgrade corresponding business datum, and send the method for service data updating information to server, there is the beneficial effect of the business datum in real-time update client, improve man-machine interaction; Further, when the client that same account login multiple stage is different, there is the beneficial effect of same business datum in each client under the same account of real-time update, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
Figure 14 is service data updating server one embodiment high-level schematic functional block diagram of the present invention; Based on the specific descriptions of embodiment described in Fig. 9 to Figure 11, as shown in figure 14, service data updating server 200 of the present invention for:
Receive the network connecting request comprising account information and authorization information that the first client sends;
According to described account information and authorization information, when verifying described network connecting request for effectively asking, setting up network with the first client is connected;
Receive the service data updating information that the first client sends when detecting the service data updating instruction that user triggers.
Service data updating server 200 receive client send comprise the network connecting request of account information and authorization information time, according to the authorization information comprised in the account information of client logs and this network connecting request, whether the network connecting request that checking client sends is effective request; If be verified the network connecting request that this client sends, the network connecting request that namely this client sends is effective connection request, then server 200 is set up network with this client and is connected; Meanwhile, server 200 preserves this network connection information of this client, such as the account information etc. of http link information, GUID information and client logs.
When the first client detects the service data updating instruction of user's triggering, the service data updating instruction that response user triggers, according to described service data updating instruction, upgrades corresponding business datum; Meanwhile, service data updating information is sent to server 200; Server 200 receives the service data updating information that the first client sends when detecting the service data updating instruction that user triggers.
In a preferred embodiment, server 200 according to the described service data updating information received, can upgrade the business datum version number corresponding to same business preserved.
Further, server 200 is according to the described account information of the first client logs, search other clients except the first client utilizing described account information to log in, and the described service data updating information received is sent to other clients found.
The present embodiment server receives the network connecting request comprising account information and authorization information that the first client sends; According to described account information and authorization information, when verifying described network connecting request for effectively asking, setting up network with the first client is connected; Receiving the method for the service data updating information that the first client sends when detecting the service data updating instruction that user triggers, there is the beneficial effect of the business datum in real-time update client, improve man-machine interaction; Further, when the client that same account login multiple stage is different, there is the beneficial effect of same business datum in each client under the same account of real-time update, improve the real-time of service data updating, avoid multi-client and operate occurred business datum version conflict problem simultaneously; Further, improve the fail safe of service data updating.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, please refer to Figure 15, Figure 15 is service data updating system the 4th embodiment high-level schematic functional block diagram of the present invention.Technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), this computer software product comprises some instructions, above-mentioned instruction is stored in the memory 03 shown in Figure 15, can be mobile phone to make client 01(as described in Figure 15, computer, server, or the network equipment etc.) carry out data interaction, to perform the method described in each embodiment of the present invention with server 02.
The foregoing is only the preferred embodiments of the present invention; not thereby its scope of the claims is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; directly or indirectly be used in the technical field that other are relevant, be all in like manner included in scope of patent protection of the present invention.